X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Forder_functions.php;h=50cde4274d895000a27798b39e035039b744c8c4;hp=a05f2f345a20affb81d6ce6cf9d3bab38391f4ec;hb=6586600d8020147192e5f28ca2a3a0153f774d3c;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/inc/libs/order_functions.php b/inc/libs/order_functions.php index a05f2f345a..50cde4274d 100644 --- a/inc/libs/order_functions.php +++ b/inc/libs/order_functions.php @@ -32,23 +32,22 @@ ************************************************************************/ // 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); } -function ORDER_SELECT_OPTION_LIST($default) -{ +function ORDER_SELECT_OPTION_LIST($default) { // Currenty the list is hardcoded... $LIST = array("userid", "zip", "country", "email", "birth_year", "last_online", "ref_clicks", "total_logins", "mail_orders"); $OUT = ""; - foreach ($LIST as $item) - { + foreach ($LIST as $item) { $selected = ""; if ($item == $default) $selected = " selected=\"selected\""; $OUT .= "\n"; } + + // Return the output return $OUT; }