From: <dam...@us...> - 2004-08-26 20:25:39
|
Update of /cvsroot/tikiwiki/tiki/lib/sheet/include/org/apicnet/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22728/apicnet/util Modified Files: Tag: BRANCH-1-9 HTTPHeader.php StringBuffer.php Log Message: im sure you can guess Index: HTTPHeader.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/sheet/include/org/apicnet/util/HTTPHeader.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -d -r1.1 -r1.1.2.1 --- HTTPHeader.php 12 Jun 2004 16:19:26 -0000 1.1 +++ HTTPHeader.php 26 Aug 2004 20:25:29 -0000 1.1.2.1 @@ -1,4 +1,12 @@ <?php + +//this script may only be included - so its better to die if called directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) { + header("location: index.php"); + exit; +} + + /*This file is part of J4PHP - Ensembles de propriétés et méthodes permettant le developpment rapide d'application web modulaire Copyright (c) 2002-2004 @PICNet Index: StringBuffer.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/sheet/include/org/apicnet/util/StringBuffer.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -u -d -r1.1 -r1.1.2.1 --- StringBuffer.php 12 Jun 2004 16:19:26 -0000 1.1 +++ StringBuffer.php 26 Aug 2004 20:25:29 -0000 1.1.2.1 @@ -1,4 +1,12 @@ <?php + +//this script may only be included - so its better to die if called directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) { + header("location: index.php"); + exit; +} + + /** * @version 2.0 * @author Nicolas BUI <nb...@wa...> @@ -383,4 +391,4 @@ } } -?> \ No newline at end of file +?> |