]> git.mxchange.org Git - mailer.git/blobdiff - js.php
Developer debug line commented out, sorry@all
[mailer.git] / js.php
diff --git a/js.php b/js.php
index b12d5270ed4816cb59f2d1816834544625cbe672..35600b378091bf06d9927baae207f1458eb921f2 100644 (file)
--- a/js.php
+++ b/js.php
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -55,8 +56,9 @@ $GLOBALS['module'] = 'js';
 // Load the required file(s)
 require('inc/config-global.php');
 
-// Set header
+// Set header and HTTP status
 setContentType('text/javascript');
+setHttpStatus('404 NOT FOUND');
 
 // Is 'js' is provied?
 if (isGetRequestParameterSet('js')) {
@@ -70,6 +72,9 @@ if (isGetRequestParameterSet('js')) {
 
        // Is that file readable?
        if (isIncludeReadable($inc)) {
+               // Okay, found
+               setHttpStatus('200 OK');
+
                // Include it
                loadIncludeOnce($inc);
        } // END - if