// ini_set('display_errors',1); // ini_set('display_startup_errors', 1); // error_reporting(-1); @include 'ico.ico'; require_once './app.ini'; // require_once 'faq/lib/util.class'; if (isset($_POST['eventhandler'])) { $_POST['eventhandler'](); } /* function downloadRemoteImage() { $src = req_str('src'); $imgdata = req_url($src); // D:\ProgramData\traceback\sys\lib\utility.class $filename = pathinfo($src, PATHINFO_BASENAME); $arr = get_user_dir('tmp/'.date('ymd')); $src = $arr['url'].'/'.$filename; $path = $arr['path'].'/'.$filename; // file_put_contents($filename, $file); $f = fopen($path, 'a'); fwrite($f, $imgdata); fclose($f); // $src = $this->saveRemoteImage($src); die($src); } function removeTempImage() { $path = __ROOTPATH__.req_str_strict('src'); die(''.unlink($path)); } */ require_once 'faq/lib/util.class'; $pageShell = util::get_pageShell(); $a = array('metaStyle', 'metaScript'); for ($i = 0; $i < count($a); $i++) { $path = util::get_template_path('/tpl/'.$a[$i].'.tpl'); if (file_exists($path)) { $pageShell = str_replace('', file_get_contents($path), $pageShell); } } $pageShell = util::faqPageShellReplace($pageShell); $sys = get_sys_settings(); $pageShell = str_replace('@{keywords}', decodeStr($sys['metaKeywords']), $pageShell); $pageShell = str_replace('@{description}', decodeStr($sys['metaDescription']), $pageShell); require_once util::get_templateid_dir('/index.php'); // D:\iis\php\QRCodes\damuyou_xyz\faq\tpl\1\index.php