<?php session_start(); //引入設定檔 require_once 'config.php'; //引入共同函數檔 require_once 'function.php'; //引入樣板引擎的 class 檔 require_once 'smarty/libs/Smarty.class.php'; //資料庫連線 $db = link_db(); //實體化樣板引擎物件(下面才能使用樣板引擎功能) $smarty = new Smarty; //清除樣板快取 // $smarty->clearAllCache(); /*過濾變數*/ $group = isset($_SESSION['group']) ? $_SESSION['group'] : ""; $op = isset($_REQUEST['op']) ? filter_var($_REQUEST['op'], FILTER_SANITIZE_SPECIAL_CHARS) : ""; $name = isset($_SESSION['name']) ? $_SESSION['name'] : "訪客"; $content = $error = '';