From 5ed966f7a5c7f5a2b7592c8de9ee1954912fa726 Mon Sep 17 00:00:00 2001 From: Ulrich Block Date: Tue, 24 Sep 2013 21:20:27 +0200 Subject: [PATCH] https://github.com/easy-wi/developer/issues/75 --- web/protectioncheck.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/web/protectioncheck.php b/web/protectioncheck.php index 9b3f7569..f05afa08 100644 --- a/web/protectioncheck.php +++ b/web/protectioncheck.php @@ -44,13 +44,13 @@ if (isset($page_include)) { $protection_link=$page_url.'/'.$user_language.'/'.$page_category.'/'; } } else { - define('EASYWIDIR',dirname(__FILE__)); + define('EASYWIDIR', dirname(__FILE__)); if (is_dir(EASYWIDIR."/install")) die('Please remove the "install" folder'); $logininclude=true; - include(EASYWIDIR.'/stuff/vorlage.php'); - include(EASYWIDIR.'/stuff/class_validator.php'); - include(EASYWIDIR.'/stuff/functions.php'); - include(EASYWIDIR.'/stuff/settings.php'); + include(EASYWIDIR . '/stuff/vorlage.php'); + include(EASYWIDIR . '/stuff/class_validator.php'); + include(EASYWIDIR . '/stuff/functions.php'); + include(EASYWIDIR . '/stuff/settings.php'); $query="SELECT `language` FROM `settings` WHERE `resellerid`=0 LIMIT 1"; foreach ($sql->query($query) as $row) { $default_language=$row['language']; @@ -139,18 +139,18 @@ if (!isset($protected)) { $imgAlt='unprotected'; } else if ($protected=="Y") { $imgName='64_protected'; - $imgAlt='unprotected'; + $imgAlt='protected'; } if ($ui->ipport('serveraddress','post')) { if (isset($page_include)) { $template_file='page_protectioncheck.tpl'; } else { - if (file_exists(EASYWIDIR.'/template/'.$template_to_use.'/protectioncheck.tpl')) { - include(EASYWIDIR.'/template/'.$template_to_use.'/protectioncheck.tpl'); - } else if (file_exists(EASYWIDIR.'/template/default/protectioncheck.tpl')) { - include(EASYWIDIR.'/template/default/protectioncheck.tpl'); + if (file_exists(EASYWIDIR . '/template/'.$template_to_use.'/protectioncheck.tpl')) { + include(EASYWIDIR . '/template/'.$template_to_use.'/protectioncheck.tpl'); + } else if (file_exists(EASYWIDIR . '/template/default/protectioncheck.tpl')) { + include(EASYWIDIR . '/template/default/protectioncheck.tpl'); } else { - include(EASYWIDIR.'/template/protectioncheck.tpl'); + include(EASYWIDIR . '/template/protectioncheck.tpl'); } } } else if (!isset($page_include) and isset($server_ip) and isset($server_port)) { @@ -221,12 +221,12 @@ XML; $template_file='page_protectioncheck.tpl'; } else { - if (file_exists(EASYWIDIR.'/template/'.$template_to_use.'/protectioncheck.tpl')) { - include(EASYWIDIR.'/template/'.$template_to_use.'/protectioncheck.tpl'); - } else if (file_exists(EASYWIDIR.'/template/default/protectioncheck.tpl')) { - include(EASYWIDIR.'/template/default/protectioncheck.tpl'); + if (file_exists(EASYWIDIR . '/template/'.$template_to_use.'/protectioncheck.tpl')) { + include(EASYWIDIR . '/template/'.$template_to_use.'/protectioncheck.tpl'); + } else if (file_exists(EASYWIDIR . '/template/default/protectioncheck.tpl')) { + include(EASYWIDIR . '/template/default/protectioncheck.tpl'); } else { - include(EASYWIDIR.'/template/protectioncheck.tpl'); + include(EASYWIDIR . '/template/protectioncheck.tpl'); } } if (!isset($page_include)) {