]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/action-admin.php
Mediadata extension now creates the guest menu link, extension 'active' fixed
[mailer.git] / inc / modules / guest / action-admin.php
index 94dbca97ce17a953a800f670596fe5d41edae7e2..d62329fd1a8fb76f15a72938f59fb61121f9bd99 100644 (file)
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (!defined('__SECURITY')) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
+} elseif ($BLOCK_MODE) {
+       // Block mode detected
+       return;
 }
 
 if (GET_ACTION("guest", $GLOBALS['what']) == "admin") {
        // Only when one admin link is clicked...
-       $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, $GLOBALS['what']);
+       $INC = sprintf("%sinc/modules/guest/what-%s.php", PATH, SQL_ESCAPE($GLOBALS['what']));
        if (FILE_READABLE($INC)) {
                // Ok, we finally load the guest action module
                include($INC);