1<?php 2 3if (strpos($_SERVER["SCRIPT_NAME"], basename(__FILE__)) !== false) { 4 header("location: index.php"); 5 exit; 6} 7/** 8 * Gets Category Id from the Category name 9 */ 10 11function smarty_modifier_categid($category) 12{ 13 return TikiLib::lib('categ')->get_category_id($category); 14} 15