plugins/SpecialAdmin.php
changeset 443 a48b72312f6d
parent 322 5f1cd51bf1be
child 458 c433348f3628
equal deleted inserted replaced
442:4da2dfc28728 443:a48b72312f6d
    65   // Demo mode
    65   // Demo mode
    66   if ( defined('ENANO_DEMO_MODE') )
    66   if ( defined('ENANO_DEMO_MODE') )
    67   {
    67   {
    68     echo '<h3>Enano is running in demo mode.</h3>
    68     echo '<h3>Enano is running in demo mode.</h3>
    69           <p>If you borked something up, or if you\'re done testing, you can <a href="' . makeUrlNS('Special', 'DemoReset', false, true) . '">reset this site</a>. The site is reset automatically once every two hours. When a reset is performed, all custom modifications to the site are lost and replaced with default values.</p>';
    69           <p>If you borked something up, or if you\'re done testing, you can <a href="' . makeUrlNS('Special', 'DemoReset', false, true) . '">reset this site</a>. The site is reset automatically once every two hours. When a reset is performed, all custom modifications to the site are lost and replaced with default values.</p>';
       
    70   }
       
    71   
       
    72   // If we're on PHP4, warn the user
       
    73   // Enano is not supported on PHP4 after December 31, 2007.
       
    74   if ( version_compare(PHP_VERSION, '5.0.0', '<') )
       
    75   {
       
    76     echo '<div class="warning-box">
       
    77             <b>Your server is running PHP ' . PHP_VERSION . '.</b><br />
       
    78             As of December 31, 2007, servers running the PHP 4.x interpreter are not eligible for support on the Enano forums. While you
       
    79             may be able to obtain support elsewhere, all official Enano support channels do not provide any type of support for servers
       
    80             running this outdated and vulnerable version of PHP.<br />
       
    81             <br />
       
    82             This notice will not show if PHP 5.0.0 or later is detected. You may want to ask your web host to upgrade their PHP
       
    83             installation. If you\'re refused, point them to <a href="http://gophp5.org/">GoPHP5.org</a> and explain that they are opening
       
    84             themselves to security problems by not upgrading.
       
    85           </div>';
    70   }
    86   }
    71   
    87   
    72   // Check for the installer scripts
    88   // Check for the installer scripts
    73   if( ( file_exists(ENANO_ROOT.'/install.php') || file_exists(ENANO_ROOT.'/schema.sql') ) && !defined('ENANO_DEMO_MODE') )
    89   if( ( file_exists(ENANO_ROOT.'/install.php') || file_exists(ENANO_ROOT.'/schema.sql') ) && !defined('ENANO_DEMO_MODE') )
    74   {
    90   {