Mercurial > hg > mgallery
diff mgallery.php @ 107:71de97240799
Add support for urchin file.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 06 Oct 2016 13:43:43 +0300 |
parents | a3b8cd4183e6 |
children | c8cfc6cc161a |
line wrap: on
line diff
--- a/mgallery.php Wed Sep 21 10:35:53 2016 +0300 +++ b/mgallery.php Thu Oct 06 13:43:43 2016 +0300 @@ -140,17 +140,12 @@ "</head>\n". "<body>\n"; -/* - if (isset($pageUrchin) && file_exists($pageUrchin)) + if ($pageUrchin !== FALSE && file_exists($pageUrchin)) require_once $pageUrchin; - else - if (file_exists("urchin.inc.php")) - require_once "urchin.inc.php"; -*/ - echo "<div id=\"messageBox\"></div>\n"; - - echo "<div id=\"contents\">\n"; + echo + "<div id=\"messageBox\"></div>\n". + "<div id=\"contents\">\n"; } @@ -473,6 +468,7 @@ $pageCSS = mgGetSetting("css"); $pageCSSSelect = mgGetSetting("css_select"); +$pageUrchin = mgGetSetting("urchin_file"); $galBasePath = mgGetSetting("base_path"); $galBaseURL = mgGetSetting("base_url"); $galImageURL = mgGetSetting("image_url", mgGetSetting("base_url"));