init()) die(" Can't connect to DataBase"); } #include("$DOCUMENT_ROOT/s/new_template.php");$template= new template; include("/var/www/vhosts/perspektif.net/httpdocs/s/new_template.php");$template= new template; include("/var/www/vhosts/perspektif.net/httpdocs/s/pic.php"); /* customize variable ,begin */ # $cat_var1 =""; # $var_title1 =""; /* customize variable ,end */ $result = preg_match("/(.+)\/(article|index|archieve)/i", $PHP_SELF, $grap); $active_theme =$db->convert_value(array("table"=>"theme","cs"=>"id","cd"=>"active","vd"=>"1")); $cat_tpl_id =$db->convert_value(array("table"=>"category","cs"=>"id","cd"=>"category","vd"=>"$grap[1]")); $result =$db->select_act(array("table"=>"template_category","cond" =>array("category_id"=>$cat_tpl_id,"theme_id"=>$active_theme),"rel"=>"and")); #if(!empty($result[0][cat_header]))$template->get_template(array("id"=>$result[0][cat_header])); #if(!empty($result[0][cat_body])) $template->get_template(array("id"=>$result[0][cat_body])); #if(!empty($result[0][cat_footer]))$template->get_template(array("id"=>$result[0][cat_footer])); $template->get_template(array("id"=>"3")); mysql_close(); ?>