* @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');
<?php /** * @version $Id: index.php 1 2010-06-30 11:43:09Z tianya $ * @package DedeCMS.Site * @copyright Copyright (c) 2007 - 2010, DesDev, Inc. * @license http://help.dedecms.com/usersguide/license.html * @link http://www.dedecms.com */ require_once dirname(__FILE__) . "/../include/common.inc.php"; require_once DEDEINC . "/arc.specview.class.php"; if (strlen($art_shortname) > 6) { exit("art_shortname too long!"); } $specfile = dirname(__FILE__) . "spec_1" . $art_shortname; //如果已经编译静态列表,则直接引入第一个文件 if (file_exists($specfile)) { include $specfile; exit; } else { $sp = new SpecView(); $sp->Display(); }
<?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(); ?>
<?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');