X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=js.php;h=44477e69e2a683b55e50762a7c76bfbb5f3a647a;hp=3ddaf80a471ad83b3b40f6235b382a345101649c;hb=55c4eb541be70c2a5b4600b2f6253cf8a01bce29;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60 diff --git a/js.php b/js.php index 3ddaf80a47..44477e69e2 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 - 2011 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,21 +54,25 @@ $GLOBALS['module'] = 'js'; // Load the required file(s) require('inc/config-global.php'); -// Is 'js' is provied? -if (isGetRequestElementSet('js')) { - // Set header - setContentType('text/javascript'); +// Set header and HTTP status +setContentType('text/javascript'); +setHttpStatus('404 NOT FOUND'); +// Is 'js' is provied? +if (isGetRequestParameterSet('js')) { // Load header loadIncludeOnce('inc/header.php'); // Prepare include file for looking $inc = sprintf("inc/js/js-%s.php", - getRequestElement('js') + getRequestParameter('js') ); // Is that file readable? if (isIncludeReadable($inc)) { + // Okay, found + setHttpStatus('200 OK'); + // Include it loadIncludeOnce($inc); } // END - if