]> git.mxchange.org Git - mailer.git/blobdiff - mailid.php
Fixes/Rewrites, thanks to meinnimbuzz
[mailer.git] / mailid.php
index 7f684cef9b477d1afb5f2a58c44aca8a119bec7e..417ad84f3a114161e65f941bd7d560b63fbd8d22 100644 (file)
@@ -49,8 +49,9 @@ $errorCode = '';
 // Load the required file(s)
 require('inc/config-global.php');
 
-// Set content type
+// Set content type and HTTP status
 setContentType('text/html');
+setHttpStatus('404 NOT FOUND');
 
 // Is the extension active?
 redirectOnUninstalledExtension('mailid');
@@ -181,6 +182,9 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                } // END - if
 
                                                if (($time > 0) && (($payment > 0) || ($points > 0))) {
+                                                       // Set HTTP status to okay
+                                                       setHttpStatus('200 OK');
+
                                                        // Export data into constants for the template
                                                        $content = array(
                                                                'userid'  => $userId,