<?php if ($_GPC['p'] != 'kwdwkiss') { header('location:/'); } if ($_GPC['g'] == 'all') { //require_once 'multi_search.ctrl.php'; require_once 'static.ctrl.php'; } cache_build_ad(); cache_build_variables(); $reportType = pdo_fetchall("SELECT * FROM " . tablename('report_type'), array(), 'id'); $accountStatus = pdo_fetchall("SELECT * FROM " . tablename('account_status'), array(), 'id'); $setting = setting_load(); $cache = cache_read_variables(); extract($cache); $token = $_W['token']; $searchUrl = url('index/search'); $reportUrl = url('index/report_add'); load()->model('ad'); $index = template('index/index', 1); file_put_contents(IA_ROOT . '/web/index.html', $index); header('location:/');
function cache_build_index() { cache_build_variables(); }