X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffunctions.php;h=005fea7a724446b0860a599b029a8dd6b5e7272b;hb=3b95154ce2a1a5609a08bf665ee315098c8874e0;hp=459c6962d510c5a59e978d2bebebc04823a1be77;hpb=8383fc52cd2340ea1756f9e1808fa3589e27c341;p=mailer.git diff --git a/inc/functions.php b/inc/functions.php index 459c6962d5..005fea7a72 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -786,7 +786,11 @@ function LOAD_EMAIL_TEMPLATE($template, $content="", $UID="0") { break; case "add-points": - $points = bigintval($_POST['points']); + if (isset($_POST['points'])) { + $points = bigintval($_POST['points']); + } else { + $points = __POINTS_VALUE; + } break; case "guest_request_confirm": @@ -930,7 +934,7 @@ function LOAD_URL($URL, $addUrlData=true) { } else { // Output error message include(PATH."inc/header.php"); - OUTPUT_HTML(LOAD_URL_ERROR_1.$URL.LOAD_URL_ERROR_2); + LOAD_TEMPLATE("redirect_url", false, str_replace("&", "&", $URL)); include(PATH."inc/footer.php"); } exit(); @@ -1635,7 +1639,7 @@ function ADD_EMAIL_NAV($PAGES, $offset, $show_form, $colspan, $return=false) { } // -function MXCHANGE_OPEN($script) { +function MXCHANGE_OPEN ($script) { // Compile the script name $script = COMPILE_CODE($script); @@ -1659,8 +1663,7 @@ function MXCHANGE_OPEN($script) { // Open connection $fp = @fsockopen($host, 80, $errno, $errdesc, 30); - if (!$fp) - { + if (!$fp) { // Failed! return array("", "", ""); } @@ -1679,7 +1682,7 @@ function MXCHANGE_OPEN($script) { // Read response while(!feof($fp)) { - $response[] = fgets($fp, 1024); + $response[] = trim(fgets($fp, 1024)); } // Close socket