X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fcountry_functions.php;h=6f31bb5102e47ac9cebdf17eb13c3a5c26b813b4;hp=30b39fae7507cea2f2094929758dede55faba88b;hb=808db972209a973665be5ab9d69f520762a4e087;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/inc/libs/country_functions.php b/inc/libs/country_functions.php index 30b39fae75..6f31bb5102 100644 --- a/inc/libs/country_functions.php +++ b/inc/libs/country_functions.php @@ -32,15 +32,15 @@ ************************************************************************/ // 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 COUNTRY_GENERATE_INFO($ID) { - $result = SQL_QUERY_ESC("SELECT code, descr FROM "._MYSQL_PREFIX."_countries WHERE id=%d LIMIT 1", + $result = SQL_QUERY_ESC("SELECT code, descr FROM "._MYSQL_PREFIX."_countries WHERE id=%s LIMIT 1", array(bigintval($ID)), __FILE__, __LINE__); if (SQL_NUMROWS($result) == 1) {