Ejemplo n.º 1
0
<?php
require_once(dirname(__FILE__)."/config.php");
header("Content-Type: text/html; charset={$cfg_ver_lang}");
CheckPurview('sys_MakeHtml');
if(empty($dopost)) $dopost = "";

if($dopost=="ok")
{
  require_once(dirname(__FILE__)."/../include/inc_arcspec_view.php");
  $sp = new SpecView();
  $sp->MakeHtml();
  $sp->Close();
  exit();
}

require_once(dirname(__FILE__)."/templets/makehtml_spec.htm");

ClearAllLink();
?>
Ejemplo n.º 2
0
 * @package        DedeCMS.Administrator
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require_once dirname(__FILE__) . "/config.php";
CheckPurview('sys_MakeHtml');
$isremote = empty($isremote) ? 0 : $isremote;
$serviterm = empty($serviterm) ? "" : $serviterm;
if (empty($dopost)) {
    $dopost = "";
}
if ($dopost == "ok") {
    require_once DEDEINC . "/arc.specview.class.php";
    if ($cfg_remote_site == 'Y' && $isremote == "1") {
        if ($serviterm != "") {
            list($servurl, $servuser, $servpwd) = explode(',', $serviterm);
            $config = array('hostname' => $servurl, 'username' => $servuser, 'password' => $servpwd, 'debug' => 'TRUE');
        } else {
            $config = array();
        }
        if (!$ftp->connect($config)) {
            exit('Error:None FTP Connection!');
        }
    }
    $sp = new SpecView();
    $rurl = $sp->MakeHtml($isremote);
    echo "成功生成所有专题HTML列表!<a href='{$rurl}' target='_blank'>预览</a>";
    exit;
}
include DedeInclude('templets/makehtml_spec.htm');
Ejemplo n.º 3
0
<?php

require_once dirname(__FILE__) . "/config.php";
CheckPurview('sys_MakeHtml');
if (empty($dopost)) {
    $dopost = "";
}
if ($dopost == "ok") {
    require_once DEDEINC . "/arc.specview.class.php";
    $sp = new SpecView();
    $rurl = $sp->MakeHtml();
    echo "成功生成所有专题HTML列表!<a href='{$rurl}' target='_blank'>预览</a>";
    exit;
}
include DedeInclude('templets/makehtml_spec.htm');