:::

1-1-3 header.php 前台頁首檔

<?php
use Xmf\Request;
use XoopsModules\Tadtools\TadUpFiles;

//載入XOOPS主設定檔(必要)
include_once "../../mainfile.php";
include_once 'preloads/autoloader.php';
include_once "function.php";

$xoopsOption['template_main'] = basename(__DIR__) . '_index.tpl';
include_once XOOPS_ROOT_PATH . "/header.php";

$op = Request::getString('op');
$self = Request::getString('PHP_SELF', '', 'SERVER');
$from = Request::getString('HTTP_REFERER', '', 'SERVER');
$files_sn = Request::getInt('files_sn');

//下載檔案
if ($op == 'tufdl') {
    $TadUpFiles = new TadUpFiles(basename(__DIR__));
    $TadUpFiles->add_file_counter($files_sn);
    exit;
}

前台的功能頁面檔案需引入此檔

此檔會載入XOOPS模組需要載入的各種東西及物件類別

並會設定一些模組頁面會用到的變數


:::

書籍目錄

展開 | 闔起

http%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D48%26tbdsn%3D1651

計數器

今天: 1502150215021502
昨天: 2198219821982198
總計: 7326360732636073263607326360732636073263607326360