X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=beg.php;h=168c5ad45e8444f996e56eef94a7072314acff1e;hb=08e7a259eb3649641a680bde64854f54cd5c5b68;hp=a7564ce67cf720227a91989481adcd7643808cb6;hpb=8e2fb42c9361b26ff47796e4cfdf9d19a2bc58a7;p=mailer.git diff --git a/beg.php b/beg.php index a7564ce67c..168c5ad45e 100644 --- a/beg.php +++ b/beg.php @@ -49,7 +49,7 @@ $msg = null; require ("inc/config.php"); // Is the script installed? -if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) { +if (isBooleanConstantAndTrue('mxchange_installed')) { // Check for userid if (!empty($_GET['uid'])) { // Init user ID @@ -126,7 +126,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install // Remember remote address, userid and timestamp for next click // but only when there is no admin begging. // Admins shall be able to test it! - $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES('%s', '%s', UNIX_TIMESTAMP())", + $result = SQL_QUERY_ESC("INSERT INTO "._MYSQL_PREFIX."_beg_ips (userid, remote_ip, timeout) VALUES('%s','%s', UNIX_TIMESTAMP())", array($uid, getenv('REMOTE_ADDR')), __FILE__, __LINE__); }