:::

6-4 html.php

<?php
include_once "header.php";

include_once $GLOBALS['xoops']->path('/modules/system/include/functions.php');
$op = system_CleanVars($_REQUEST, 'op', '', 'string');
$sn = system_CleanVars($_REQUEST, 'sn', 0, 'int');

if (!file_exists(XOOPS_ROOT_PATH . "/uploads/snews/{$sn}.html")) {
    $html = mk_html($sn);
} else {
    $html = file_get_contents(XOOPS_ROOT_PATH . "/uploads/snews/{$sn}.html");
}

if ($op == "online") {
    header("location: " . XOOPS_URL . "/uploads/snews/{$sn}.html");
} else {

    header("Content-type: text/html");
    header("Content-Disposition: attachment; filename={$sn}.html");
    echo $html;
}
exit;

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fmail.tad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1469%26tbsn%3D44

書籍目錄

展開 | 闔起

線上使用者

346人線上 (142人在瀏覽線上書籍)

會員: 0

訪客: 346

更多…