X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Foutput_functions.php;h=060927966717e3db8bd44fb4eb41cf748e44cbe1;hb=f97f57dea3e736e564d7316d720d6a8820a75713;hp=49a2d8385fa577721e7658c861e9f8491f1a82af;hpb=8a9324b2d931f54f54f4319fd7234910af77012c;p=mailer.git diff --git a/inc/libs/output_functions.php b/inc/libs/output_functions.php index 49a2d8385f..0609279667 100644 --- a/inc/libs/output_functions.php +++ b/inc/libs/output_functions.php @@ -77,12 +77,12 @@ function get_template ($template, $return=false, $content="") { // Add more variables which you want to use in your template files global $DATA, $ACTION, $WHAT; - $REFID = bigintval($_COOKIE['refid']); + $REFID = bigintval(get_session('refid')); if ($template == "member_support_form") { // Support request of a member - $ID = bigintval($_COOKIE['userid']); + $ID = bigintval($GLOBALS['userid']); $result = SQL_QUERY_ESC("SELECT sex, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid='%s' LIMIT 1", array($ID), __FILE__, __LINE__); list($sex, $surname, $family) = SQL_FETCHROW($result); SQL_FREERESULT($result);