X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=js.php;h=2b27f51aa9f5ff1973f104f06004edafb112a141;hp=b1d8ce6118892617ef9b17b886db5b32fd55c183;hb=99be3ce68f08d6e36202789168188a9078b04aea;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa diff --git a/js.php b/js.php index b1d8ce6118..2b27f51aa9 100644 --- a/js.php +++ b/js.php @@ -14,8 +14,6 @@ * $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 * * Copyright (c) 2009, 2010 by Mailer Developer Team * @@ -56,8 +54,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')) { @@ -71,6 +70,9 @@ if (isGetRequestParameterSet('js')) { // Is that file readable? if (isIncludeReadable($inc)) { + // Okay, found + setHttpStatus('200 OK'); + // Include it loadIncludeOnce($inc); } // END - if