X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-order.php;h=537f7b36cd2b4ddd65fc70d3fed7759a66a22407;hp=8c72e86f92642dbf88a546aaf88d53529627acf3;hb=963e55ca1ea79e255f235e359cde9f7862191dc5;hpb=b91d882dbd9bb78ee175a108b5ee0dfcd29d5bbc diff --git a/inc/extensions/ext-order.php b/inc/extensions/ext-order.php index 8c72e86f92..537f7b36cd 100644 --- a/inc/extensions/ext-order.php +++ b/inc/extensions/ext-order.php @@ -32,7 +32,7 @@ ************************************************************************/ // 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); } @@ -55,7 +55,6 @@ case "register": // Do stuff when installtion is running (modules.php?module=adm case "remove": // Do stuff when removing extension // SQL commands to run - $SQLs[] = "ALTER TABLE "._MYSQL_PREFIX."_config DROP order_max_full"; $SQLs[] = "DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_admin_menu WHERE what='config_order' LIMIT 1"; break;