freePower(); if(!$power["power"]){ if(!$power["isLogin"]){ $backurl = trim($_REQUEST['backurl']); turntourl("bigview_report_nologin.php?id=".$id.'&backurl='.urlencode($backurl)); exit; }else{ turntourl("bigview_report_nopower.php?id=".$id.'&backurl='.urlencode($backurl)); exit; } } $arrReport =$objReport->get_report_by_id($id); $objReport->count_viewcount($id); $ym_now = date("Ym",strtotime($arrReport["create_time"])); $page_url = B_REPORT_PATH.$ym_now."/".$arrReport["dir_name"]."/".$arrReport["html_name"]; $report_content = file_get_contents($page_url); if($arrReport["is_nfd"]==2){ $temp->set_file("main",TEMPLATES_DEFAULT."report_content_nfd.html"); $temp->set_var("id",$id); $temp->set_var("WEB_ROOT_URL",WEB_ROOT_URL); $temp->set_var("report_content",$report_content); $temp->set_var("for_date_text",$arrReport["for_date_text"]); $temp->set_var("type_text",$arrReport["type_text"]); $temp->set_var("category_text",$arrReport["category_text"]); $temp->set_var("name",$arrReport["name"]); $temp->parse("mains","main"); $temp->p("mains"); }else{ $temp->set_file("main",TEMPLATES_DEFAULT."report_content.html"); $temp->set_var("id",$id); $temp->set_var("WEB_ROOT_URL",WEB_ROOT_URL); $temp->set_var("report_content",$report_content); $temp->set_var("for_date_text",$arrReport["for_date_text"]); $temp->set_var("type_text",$arrReport["type_text"]); $temp->set_var("category_text",$arrReport["category_text"]); $temp->set_var("name",$arrReport["name"]); $temp->parse("mains","main"); $temp->p("mains"); } ?>