X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fuser_functions.php;h=115bec72f7a4c7f858e289a8153e8dc7698eb2f8;hb=bfe24b8d5abcc23e3330580c3ffbeab93166b29b;hp=9c42fb28a2b8f6b6b072b4deb35d2db5aa9d284a;hpb=0369c36aaab5af6ed44da1e13a53baef285f79b4;p=mailer.git diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 9c42fb28a2..115bec72f7 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -32,8 +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); } @@ -46,7 +45,7 @@ function alpha($sortby, $colspan, $return=false) if (!empty($_GET['mode'])) $ADD .= "&mode=".SQL_ESCAPE($_GET['mode']); /* Creates the list of letters and makes them a link. */ - $alphabet = array(_ALL2, "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", 'N', "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", 'Y', "Z", _OTHERS); + $alphabet = array(_ALL2,"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z",_OTHERS); $num = count($alphabet) - 1; $OUT = ""; while (list($counter, $ltr) = each($alphabet))