]> git.mxchange.org Git - mailer.git/blobdiff - js.php
Large code cleanups:
[mailer.git] / js.php
diff --git a/js.php b/js.php
index 6cdea2a1c6545d812b82de7e244fb7e6ddb00605..0e44f38e503224e257659df42056deee08ace7a6 100644 (file)
--- a/js.php
+++ b/js.php
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -55,21 +54,25 @@ $GLOBALS['module'] = 'js';
 // Load the required file(s)
 require('inc/config-global.php');
 
-// Is 'js' is provied?
-if (isGetRequestParameterSet('js')) {
-       // Set header
-       setContentType('text/javascript');
+// Set header and HTTP status
+setContentType('text/javascript');
+setHttpStatus('404 NOT FOUND');
 
+// Is 'js' is provied?
+if (isGetRequestElementSet('js')) {
        // Load header
        loadIncludeOnce('inc/header.php');
 
        // Prepare include file for looking
        $inc = sprintf("inc/js/js-%s.php",
-               getRequestParameter('js')
+               getRequestElement('js')
        );
 
        // Is that file readable?
        if (isIncludeReadable($inc)) {
+               // Okay, found
+               setHttpStatus('200 OK');
+
                // Include it
                loadIncludeOnce($inc);
        } // END - if