:::

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%3Ftbsn%3D30%26tbdsn%3D829

計數器

今天: 1289128912891289
昨天: 2138213821382138
總計: 7322571732257173225717322571732257173225717322571