X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=js.php;h=2b27f51aa9f5ff1973f104f06004edafb112a141;hp=6cdea2a1c6545d812b82de7e244fb7e6ddb00605;hb=f0957663700eda99144d6d1eed2d8b225225cf11;hpb=57227d33e870ec5cd271209c4a978a52b45c2dd6 diff --git a/js.php b/js.php index 6cdea2a1c6..2b27f51aa9 100644 --- a/js.php +++ b/js.php @@ -14,10 +14,9 @@ * $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 * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -55,11 +54,12 @@ $GLOBALS['module'] = 'js'; // Load the required file(s) require('inc/config-global.php'); +// Set header and HTTP status +setContentType('text/javascript'); +setHttpStatus('404 NOT FOUND'); + // Is 'js' is provied? if (isGetRequestParameterSet('js')) { - // Set header - setContentType('text/javascript'); - // Load header loadIncludeOnce('inc/header.php'); @@ -70,6 +70,9 @@ if (isGetRequestParameterSet('js')) { // Is that file readable? if (isIncludeReadable($inc)) { + // Okay, found + setHttpStatus('200 OK'); + // Include it loadIncludeOnce($inc); } // END - if