plugins/SpecialAdmin.php
changeset 42 45ebe475ff75
parent 40 723bb7acf914
child 43 30d2fb25afff
equal deleted inserted replaced
41:7c7920b65f42 42:45ebe475ff75
   108   echo '<tr><th style="width: 60%;">Type</th><th>Date</th><th>Username</th><th>IP Address</th></tr>';
   108   echo '<tr><th style="width: 60%;">Type</th><th>Date</th><th>Username</th><th>IP Address</th></tr>';
   109   require('config.php');
   109   require('config.php');
   110   $hash = md5($dbpasswd);
   110   $hash = md5($dbpasswd);
   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 ]) )
   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>';
   116   }
   120   }
   117   else
   121   else
   118   {
   122   {
   119     if(isset($_GET['fulllog']))
   123     if(isset($_GET['fulllog']))
   120     {
   124     {