compile_check = true; $smarty->debugging = true; } else { error_reporting(0); } ignore_user_abort(true); set_time_limit($ttl); # $action = get_get_data('action')?get_get_data('action'):get_post_data('action'); $smarty->assign('action',$action); $redirect = get_get_data('redirect')?get_get_data('redirect'):get_post_data('redirect'); $smarty->assign('redirect',$redirect); if($redirect) { $smarty->assign('redirect_location',$redirect_array[$redirect]); } $smarty->assign('total_search',get_total_search()); include("includes/".$module."_body.php"); if($conn->connection) { #print ($smarty->template_dir)."/".$module."_body.xhtml"; $this_page = $smarty->fetch(($smarty->template_dir)."/".$module."_body.xhtml"); print $this_page; if($gen_cache and $this_page) { $subd = get_hash($module.md5(serialize($_SERVER['REQUEST_URI']))).'/'; if(!is_dir($cache_dir.$subd)) { mk_dir($cache_dir.$subd); } $filename = $cache_dir.$subd.$module.'_'.md5(serialize($_SERVER['REQUEST_URI'])); $handle = fopen($filename, 'w'); fwrite($handle, $this_page); fclose($handle); } } else { print get_gen($module); exit; } require("fotorobot/finish_database.php"); ?>