-ADD_DESCR("member", basename(__FILE__));
-
-$URL = ""; $id = 0;
-$whereStatement = " WHERE visible='Y'";
-
-// Set undefined array elements
-if (empty($_GET['msg'])) $_GET['msg'] = "";
-if (empty($_POST['zip'])) $_POST['zip'] = "";
-if (empty($_POST['html'])) $_POST['html'] = "";
-if (empty($_POST['receiver'])) $_POST['receiver'] = "";
-if (is_admin()) $whereStatement = "";
-
-// Add slashes to every value
-foreach($_POST as $key=>$value)
-{
- // Skip submit buttons
- if (($key != "data") && ($key != "frametester")) $_POST[$key] = addslashes($value);
-}
-
-// Minimum mails / order
-define('__MIN_VALUE', $_CONFIG['order_min']);
-
-// Count unconfirmed mails
-$result_links = SQL_QUERY_ESC("SELECT id FROM "._MYSQL_PREFIX."_user_links WHERE userid=%d",
- array($GLOBALS['userid']), __FILE__, __LINE__);
-$links = SQL_NUMROWS($result_links);
-SQL_FREERESULT($result_links);
-
-// Does the user has more than 0 mails per day set?
-$HOLIDAY="userid";
-if (GET_EXT_VERSION("holiday") >= "0.1.3")
-{
- // Fetch also holiday activation data
- $HOLIDAY = "holiday_active";
-}
-
-$result_mmails = SQL_QUERY_ESC("SELECT userid, receive_mails, mail_orders, ".$HOLIDAY."
-FROM "._MYSQL_PREFIX."_user_data
-WHERE userid=%d AND max_mails > 0 LIMIT 1",
- array($GLOBALS['userid']), __FILE__, __LINE__);