plugins/SpecialAdmin.php
changeset 387 92664d2efab8
parent 380 73444271fd1c
child 391 85f91037cd4f
equal deleted inserted replaced
382:2ccb55995aef 387:92664d2efab8
     2 /*
     2 /*
     3 Plugin Name: plugin_specialadmin_title
     3 Plugin Name: plugin_specialadmin_title
     4 Plugin URI: http://enanocms.org/
     4 Plugin URI: http://enanocms.org/
     5 Description: plugin_specialadmin_desc
     5 Description: plugin_specialadmin_desc
     6 Author: Dan Fuhry
     6 Author: Dan Fuhry
     7 Version: 1.0.3
     7 Version: 1.1.1
     8 Author URI: http://enanocms.org/
     8 Author URI: http://enanocms.org/
     9 */
     9 */
    10 
    10 
    11 /*
    11 /*
    12  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
    12  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
  1106   {
  1106   {
  1107     if ( !isset($_GET['plugin']) )
  1107     if ( !isset($_GET['plugin']) )
  1108     {
  1108     {
  1109       echo '<div class="error-box">No plugin specified.</div>';
  1109       echo '<div class="error-box">No plugin specified.</div>';
  1110     }
  1110     }
  1111     else if ( !preg_match('/^[A-z0-9_-]+\.php$/', $_GET['plugin']) )
  1111     else if ( !preg_match('/^[A-z0-9_\.-]+\.php$/', $_GET['plugin']) )
  1112     {
  1112     {
  1113       echo '<div class="error-box">Hacking attempt</div>';
  1113       echo '<div class="error-box">Hacking attempt</div>';
  1114     }
  1114     }
  1115     else
  1115     else
  1116     {
  1116     {