From: <dam...@us...> - 2004-03-31 15:44:04
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31778 Modified Files: Tag: release_eta_carinea_rc1 tiki-tc.php Log Message: ditto Index: tiki-tc.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-tc.php,v retrieving revision 1.1.4.1 retrieving revision 1.1.4.2 diff -u -d -r1.1.4.1 -r1.1.4.2 --- tiki-tc.php 28 Mar 2004 09:59:53 -0000 1.1.4.1 +++ tiki-tc.php 31 Mar 2004 15:32:15 -0000 1.1.4.2 @@ -5,6 +5,15 @@ // 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 |