plugins/SpecialAdmin.php
changeset 43 30d2fb25afff
parent 42 45ebe475ff75
child 57 b354deeaa4c4
equal deleted inserted replaced
42:45ebe475ff75 43:30d2fb25afff
   111   unset($dbname, $dbhost, $dbuser, $dbpasswd);
   111   unset($dbname, $dbhost, $dbuser, $dbpasswd);
   112   unset($dbname, $dbhost, $dbuser, $dbpasswd); // PHP5 Zend bug
   112   unset($dbname, $dbhost, $dbuser, $dbpasswd); // PHP5 Zend bug
   113   if ( defined('ENANO_DEMO_MODE') && !isset($_GET[ $hash ]) && substr($_SERVER['REMOTE_ADDR'], 0, 8) != '192.168.' )
   113   if ( defined('ENANO_DEMO_MODE') && !isset($_GET[ $hash ]) && substr($_SERVER['REMOTE_ADDR'], 0, 8) != '192.168.' )
   114   {
   114   {
   115     echo '<tr><td class="row1" colspan="4">Logs are recorded but not displayed for privacy purposes in the demo.</td></tr>';
   115     echo '<tr><td class="row1" colspan="4">Logs are recorded but not displayed for privacy purposes in the demo.</td></tr>';
   116   }
       
   117   else if ( defined('ENANO_DEMO_MODE') && isset($_GET['hash']) && $_GET['hash'] != $hash && substr($_SERVER['REMOTE_ADDR'], 0, 8) != '192.168.' )
       
   118   {
       
   119     echo '<tr><td class="row1" colspan="4">Invalid hash. Cheater.</td></tr>';
       
   120   }
   116   }
   121   else
   117   else
   122   {
   118   {
   123     if(isset($_GET['fulllog']))
   119     if(isset($_GET['fulllog']))
   124     {
   120     {