X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-mem_add.php;h=60ff92960f2326af97efbd9943c1b949fb433bbf;hb=3c2f106c02f6d86a90f529a0564abcbbe716fe71;hp=eaef1cdfdb0c442220e104825b4b6d148e8a4984;hpb=52690b87d4382bd4bc15905068ab99bb70b1e3c9;p=mailer.git
diff --git a/inc/modules/admin/what-mem_add.php b/inc/modules/admin/what-mem_add.php
index eaef1cdfdb..60ff92960f 100644
--- a/inc/modules/admin/what-mem_add.php
+++ b/inc/modules/admin/what-mem_add.php
@@ -33,16 +33,13 @@
************************************************************************/
// Some security stuff...
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
-{
+if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
+
// Add desciption as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML("
");
-
-OPEN_TABLE("100%", "admin_content admin_content_align", "");
// Check if the admin has entered title and what-php file name...
if ((empty($_POST['title'])) && (isset($_POST['ok'])))
@@ -77,7 +74,7 @@ if (!isset($_POST['ok']))
// Remove double eintries
$prev = ""; $dmy = $menus; $dmy2 = $titles; $dmy3 = $below;
- foreach ($menus as $key=>$value)
+ foreach ($menus as $key => $value)
{
if ($value == $prev)
{
@@ -93,7 +90,7 @@ if (!isset($_POST['ok']))
}
$menus = $dmy; $titles = $dmy2; $below = $dmy3;
// Load sub menus :)
- foreach ($menus as $key_main=>$value_main)
+ foreach ($menus as $key_main => $value_main)
{
$result = SQL_QUERY_ESC("SELECT what, title, sort FROM "._MYSQL_PREFIX."_member_menu WHERE action='%s' AND what != '' ORDER BY sort",
array($value_main), __FILE__, __LINE__);
@@ -122,7 +119,7 @@ if (!isset($_POST['ok']))
// Remove double eintries
$prev = ""; $dmy = $menus[$value_main]; $dmy2 = $titles[$value_main]; $dmy3 = $below[$value_main];
- foreach ($menus[$value_main] as $key=>$value)
+ foreach ($menus[$value_main] as $key => $value)
{
if ($value == $prev)
{
@@ -142,14 +139,14 @@ if (!isset($_POST['ok']))
$OUT = "