From: <dam...@us...> - 2004-03-31 15:43:46
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31693 Modified Files: Tag: BRANCH-1-8 tiki-tc.php Log Message: this one cant be called directly Index: tiki-tc.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-tc.php,v retrieving revision 1.2.4.2 retrieving revision 1.2.4.3 diff -u -d -r1.2.4.2 -r1.2.4.3 --- tiki-tc.php 28 Mar 2004 00:55:35 -0000 1.2.4.2 +++ tiki-tc.php 31 Mar 2004 15:31:57 -0000 1.2.4.3 @@ -5,6 +5,16 @@ // Copyright (c) 2002-2004, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. + +//this script may only be included - so its better to die if called directly. +if (strpos($_SERVER["SCRIPT_NAME"],"comments.php")!=FALSE) { + //smarty is not there - we need setup + require_once('tiki-setup.php'); + $smarty->assign('msg',tra("This script cannot be called directly")); + $smarty->display("error.tpl"); + die; +} + if ($feature_theme_control == 'y') { // defined: $cat_type and cat_objid // search for theme for $cat_type |