//define('PASS','admin'); //define('DBNAME','2015_etc'); // //require_once( ROOT.'../wp-admin/admin.php' ); include "inc/db.php"; include "inc/lib.php"; include "inc/simple_html_dom.php"; include "inc/function_string.php"; include "inc/resize-class.php"; include "inc/libimg.php"; include "inc/img.php"; $img = new img(); $lib = new lib(); $db = new db(); $catid = (int) $_GET['term_id']; $ar_cat = $lib->ar_cat_string($catid); $total_no_active1 = $lib->get_num_link_no_active($ar_cat); $total_no_active = $total_no_active1; $total_active = $lib->get_num_link_active($ar_cat); $total_link = $total_active + $total_no_active; $phantram = round($total_active * 100 / $total_link, 1); $_SESSION['total'] = $total_link; $_SESSION['da_thuc_hien'] = $total_active; $_SESSION['chua_thuc_hien'] = $total_no_active; $_SESSION['con_lai'] = $total_link - $total_active; $_SESSION['phan_tram'] = $phantram; $data['chua_thuc_hien'] = $total_no_active; $data['phantram'] = $phantram; $random = rand(20, 1000); if ($total_no_active1 == 0) { $lib->ac_active();