:::

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%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1469%26tbsn%3D44

書籍目錄

展開 | 闔起

線上使用者

48人線上 (11人在瀏覽線上書籍)

會員: 0

訪客: 48

更多…