:::

4-2 header.php

<?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 = '';

 


:::

書籍目錄

展開 | 闔起

快速登入


http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D829%26tbsn%3D30

計數器

今天: 1833183318331833
昨天: 2602260226022602
總計: 8096161809616180961618096161809616180961618096161