X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ftemplate-functions.php;h=3f28df112407f20140ab25decc065a3191e04fa8;hp=cac8b529dd56277417eb5b913a48a6b4fcbb9e10;hb=73e9d78e610057f6c6d311328b3ad438ad017791;hpb=db0c6702086eea2c44d0aae1702dc2e77a0afc4e diff --git a/inc/template-functions.php b/inc/template-functions.php index cac8b529dd..3f28df1124 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -543,8 +543,8 @@ function getMenuCssClasses ($data) { } // Generate XHTML code for the CAPTCHA -function generateCaptchaCode ($code, $type, $DATA, $userid) { - return 'Code ' . $code . ''; +function generateCaptchaCode ($code, $type, $type, $userid) { + return 'Code ' . $code . ''; } // Compiles the given HTML/mail code @@ -818,6 +818,7 @@ function generateImageOrCode ($img_code, $headerSent = true) { // Remove image from memory imagedestroy($image); } + // Create selection box or array of splitted timestamp function createTimeSelections ($timestamp, $prefix = '', $display = '', $align = 'center', $return_array=false) { // Do not continue if ONE_DAY is absend @@ -1231,7 +1232,9 @@ function handleCodeMessage () { $ext = 'unknown'; // Is extension given? - if (isGetRequestParameterSet('ext')) $ext = getRequestParameter('ext'); + if (isGetRequestParameterSet('ext')) { + $ext = getRequestParameter('ext'); + } // END - if // Convert the 'code' parameter from URL to a human-readable message $message = getMessageFromErrorCode(getRequestParameter('code')); @@ -1341,7 +1344,7 @@ function linenumberCode ($code) { if ($count_lines == 1) { $r .= 1; } else { - $r .= ($line == ($count_lines - 1)) ? '' : ($line+1); + $r .= ($line == ($count_lines - 1)) ? '' : ($line+1); } $r .= '|';