Example #1
0
             $v['type'] = '文件';
         }
         $filelist .= "{$v['type']}|{$v['name']}\r\n";
     }
     if (file_exists(DEDEDATA . "/module/{$hash}-readme.php")) {
         $setupinfo = "已安装 <a href='module_main.php?action=uninstall&hash={$hash}'>卸载</a>";
     } else {
         $setupinfo = "未安装 <a href='module_main.php?action=setup&hash={$hash}'>安装</a>";
     }
     $win = new OxWindow();
     $win->Init("", "js/blank.js", "");
     $wecome_info = "模块管理";
     $win->AddTitle("<a href='module_main.php'>模块管理</a> &gt;&gt; 模块详情: {$infos['name']}");
     $msg = "<style>.dtb{border-bottom:1px dotted #cccccc}</style>\r\n    <table width='98%' border='0' cellspacing='0' cellpadding='0'>\r\n  <tr>\r\n    <td width='20%' height='28' class='dtb'>模块名称:</td>\r\n    <td width='80%' class='dtb'>{$infos['name']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>语言:</td>\r\n    <td class='dtb'>{$infos['lang']} {$alertMsg}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>文件大小:</td>\r\n    <td class='dtb'>{$infos['filesize']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>是否已安装:</td>\r\n    <td class='dtb'>{$setupinfo}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>团队名称:</td>\r\n    <td class='dtb'>{$infos['team']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>发布时间:</td>\r\n    <td class='dtb'>{$infos['time']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>电子邮箱:</td>\r\n    <td class='dtb'>{$infos['email']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>官方网址:</td>\r\n    <td class='dtb'>{$infos['url']}</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28' class='dtb'>使用协议:</td>\r\n    <td class='dtb'><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank'>点击浏览...</a></td>\r\n  </tr>\r\n  <tr>\r\n    <td height='28'>模块包含的文件:<br />(文件路径相对于当前目录)</td><td>&nbsp;</td>\r\n  </tr>\r\n  <tr>\r\n    <td height='164' colspan='2'>\r\n     <textarea name='filelists' id='filelists' style='width:90%;height:200px'>{$filelist}</textarea>\r\n    </td>\r\n  </tr>\r\n</table>\r\n    ";
     $win->AddMsgItem("<div style='padding-left:10px;line-height:150%'>{$msg}</div>");
     $winform = $win->GetWindow('hand', '');
     $win->Display();
     $dm->Clear();
     exit;
 } else {
     if ($action == 'edit') {
         $dm = new DedeModule($mdir);
         $minfos = $dm->GetModuleInfo($hash);
         extract($minfos, EXTR_SKIP);
         if (!isset($lang)) {
             $lang = 'gb2312';
         }
         if (!isset($moduletype)) {
             $moduletype = 'soft';
         }
         $menustring = $dm->GetSystemFile($hash, 'menustring');
Example #2
0
 function GotoStaMsg($msg)
 {
     global $wintitle, $wecome_info, $winform;
     $wintitle = "导入内容模型规则";
     $wecome_info = "<a href='mychannel_main.php'>内容模型管理</a>::导入内容模型规则";
     $win = new OxWindow();
     $win->Init();
     $win->AddTitle("操作状态提示:");
     $win->AddMsgItem($msg);
     $winform = $win->GetWindow("hand");
     $win->Display();
     exit;
 }
Example #3
0
        $urls = addslashes($urls);
        //更新附加表
        $needmoney = @intval($needmoney);
        if ($needmoney > 100) {
            $needmoney = 100;
        }
        $cts = $dsql->GetOne("Select addtable From `#@__channeltype` where id='{$channelid}' ");
        $addtable = trim($cts['addtable']);
        if ($addtable != '') {
            $inQuery = "update `{$addtable}`\r\n            set typeid ='{$typeid}',\r\n            filetype ='{$filetype}',\r\n            language ='{$language}',\r\n            softtype ='{$softtype}',\r\n            accredit ='{$accredit}',\r\n            os ='{$os}',\r\n            softrank ='{$softrank}',\r\n            officialUrl ='{$officialUrl}',\r\n            officialDemo ='{$officialDemo}',\r\n            softsize ='{$softsize}',\r\n            softlinks ='{$urls}',\r\n            userip='{$userip}',\r\n            needmoney='{$needmoney}',\r\n            introduce='{$body}'{$inadd_f}\r\n            where aid='{$aid}'; ";
            if (!$dsql->ExecuteNoneQuery($inQuery)) {
                ShowMsg("更新数据库附加表 addonsoft 时出错,请检查原因!", "-1");
                exit;
            }
        }
        UpIndexKey($aid, $arcrank, $typeid, $sortrank, $tags);
        $artUrl = MakeArt($aid, TRUE);
        if ($artUrl == '') {
            $artUrl = $cfg_phpurl . "/view.php?aid={$aid}";
        }
        //返回成功信息
        $msg = "  请选择你的后续操作:\r\n        <a href='soft_add.php?cid={$typeid}'><u>发布新软件</u></a>\r\n        &nbsp;&nbsp;\r\n        <a href='soft_edit.php?channelid={$channelid}&aid=" . $aid . "'><u>查看更改</u></a>\r\n        &nbsp;&nbsp;\r\n        <a href='{$artUrl}' target='_blank'><u>查看软件</u></a>\r\n        &nbsp;&nbsp;\r\n        <a href='content_list.php?channelid={$channelid}'><u>管理软件</u></a>\r\n        ";
        $wintitle = "成功更改软件!";
        $wecome_info = "软件管理::更改软件";
        $win = new OxWindow();
        $win->AddTitle("成功更改软件:");
        $win->AddMsgItem($msg);
        $winform = $win->GetWindow("hand", "&nbsp;", FALSE);
        $win->Display();
    }
}
Example #4
0
	$dsql->Close();
	ShowMsg("成功删除一则广告代码!",$ENV_GOBACK_URL);
	exit();
}
else if($dopost=="getjs")
{
	require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
	$jscode = "<script src='{$cfg_plus_dir}/ad_js.php?aid=$aid' language='javascript'></script>";
	$showhtml = "<xmp style='color:#333333;background-color:#ffffff'>\r\n\r\n$jscode\r\n\r\n</xmp>";
  $showhtml .= "预览:<iframe name='testfrm' frameborder='0' src='ad_edit.php?aid={$aid}&dopost=testjs' id='testfrm' width='100%' height='200'></iframe>";
  $wintitle = "广告管理-获取JS";
	$wecome_info = "<a href='ad_main.php'><u>广告管理</u></a>::获取JS";
  $win = new OxWindow();
  $win->Init();
  $win->AddTitle("以下为选定广告的JS调用代码:");
  $winform = $win->GetWindow("hand",$showhtml);
  $win->Display();
	exit();
}
else if($dopost=="testjs")
{
	header("Content-Type: text/html; charset={$cfg_ver_lang}");
	echo "<script src='{$cfg_plus_dir}/ad_js.php?aid=$aid' language='javascript'></script>";
	exit();
}
else if($dopost=="saveedit")
{
	$dsql = new DedeSql(false);
	$starttime = GetMkTime($starttime);
	$endtime = GetMkTime($endtime);
	$query = "
Example #5
0
    $dopost = '';
}
if (empty($allsource)) {
    $allsource = '';
} else {
    $allsource = stripslashes($allsource);
}
$m_file = DEDEDATA . "/admin/source.txt";
//保存
if ($dopost == 'save') {
    $fp = fopen($m_file, 'w');
    flock($fp, 3);
    fwrite($fp, $allsource);
    fclose($fp);
    echo "<script>alert('Save OK!');</script>";
}
//读出
if (empty($allsource) && filesize($m_file) > 0) {
    $fp = fopen($m_file, 'r');
    $allsource = fread($fp, filesize($m_file));
    fclose($fp);
}
$wintitle = "文章来源管理";
$wecome_info = "文章来源管理";
$win = new OxWindow();
$win->Init('article_source_edit.php', 'js/blank.js', 'POST');
$win->AddHidden('dopost', 'save');
$win->AddTitle("每行保存一个来源:");
$win->AddMsgItem("<textarea name='allsource' id='allsource' style='width:100%;height:300px'>{$allsource}</textarea>");
$winform = $win->GetWindow('ok');
$win->Display();
Example #6
0
 if ($dopost == "delete") {
     if (empty($job)) {
         $job = "";
     }
     if ($job == "") {
         require_once DEDEINC . "/oxwindow.class.php";
         $wintitle = "删除插件";
         $wecome_info = "<a href='plus_main.php'>插件管理</a>::删除插件";
         $win = new OxWindow();
         $win->Init("plus_edit.php", "js/blank.js", "POST");
         $win->AddHidden("job", "yes");
         $win->AddHidden("dopost", $dopost);
         $win->AddHidden("aid", $aid);
         $win->AddTitle("你确实要删除'" . $title . "'这个插件?");
         $win->AddMsgItem("<font color='red'>警告:在这里删除仅仅删除菜单项,要干净删除请在模块管理处删除!<br /><br /> <a href='module_main.php?moduletype=plus'>模块管理&gt;&gt;</a> </font>");
         $winform = $win->GetWindow("ok");
         $win->Display();
         exit;
     } else {
         if ($job == "yes") {
             $dsql->ExecuteNoneQuery("DELETE FROM #@__plus WHERE aid='{$aid}';");
             ShowMsg("成功删除一个插件,请刷新导航菜单!", "plus_main.php");
             exit;
         }
     }
 } else {
     if ($dopost == "saveedit") {
         $inquery = "UPDATE #@__plus SET plusname='{$plusname}',menustring='{$menustring}',filelist='{$filelist}' WHERE aid='{$aid}';";
         $dsql->ExecuteNoneQuery($inquery);
         ShowMsg("成功更改插件的配置!", "plus_main.php");
         exit;
	   exit();
   }
   exit();
}
else if($action=="export")
{
   $dsql = new DedeSql(false);
   $row = $dsql->GetOne("Select * From #@__co_exrule where aid='$aid'");
   $dsql->Close();
   require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
   $wintitle = "删除数据规则模型";
	 $wecome_info = "<a href='co_export_rule.php'><u>数据规则模型</u></a>::导出规则配置";
	 $win = new OxWindow();
	 $win->Init();
	 $win->AddTitle("以下为规则[{$aid}]的文本配置,你可以共享给你的朋友:");
	 $winform = $win->GetWindow("hand","<textarea name='cg' style='width:100%;height:300px'>".$row['ruleset']."</textarea><br/><br/>");
	 $win->Display();
   exit();
}
////////////////////////////////
require_once(dirname(__FILE__)."/../include/pub_dedetag.php");
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__co_exrule where aid='$aid'");
$dsql->Close();
$ruleset = $row['ruleset'];
$channelid = $row['channelid'];
$dtp = new DedeTagParse();
$dtp->LoadString($ruleset);
$noteid = 0;
if(is_array($dtp->CTags))
{
Example #8
0
function ShowMsgWin($msg, $title)
{
    $win = new OxWindow();
    $win->AddTitle($title);
    $win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
    $winform = $win->GetWindow("hand", "&nbsp;", false);
    $win->Display();
}
Example #9
0
    $dsql->ExecuteNoneQuery("Update `#@__channeltype` set isdefault=0 where id<>'{$cid}'");
    if ($cid != 0) {
        $dsql->ExecuteNoneQuery("Update `#@__channeltype` set isdefault=1 where id='{$cid}'");
    }
    $win = new OxWindow();
    $win->Init();
    $win->mainTitle = "内容发布向导";
    $wecome_info = "<a href='public_guide.php?action=edit'>内容发布向导</a>";
    $win->AddTitle("<a href='public_guide.php?action=edit'>内容发布向导</a> &gt;&gt; 设置默认发布表单");
    if ($cid == 0) {
        $msg = "\r\n         成功取消默认发布表单!\r\n\t       <hr style='width:90%' size='1' />\r\n\t       你目前想要进行的操作: <a href='public_guide.php?action=edit'>返回发布向导页</a>\r\n\t  ";
    } else {
        $msg = "\r\n\t\t成功保存默认发布表单,以后点击“内容发布”面板将直接跳转到你选择的内容发布页!\r\n\t\t<hr style='width:90%' size='1' />\r\n\t       你目前想要进行的操作: <a href='public_guide.php'>转到默认发布表单</a> &nbsp; <a href='public_guide.php?action=edit'>返回发布向导页</a>\r\n\t  ";
    }
    $win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
    $winform = $win->GetWindow("hand");
    $win->Display();
    exit;
}
//以下为正常浏览的内容
/*--------------------
function __PageShow();
----------------------*/
$row = $dsql->GetOne("Select id,addcon From `#@__channeltype` where isdefault='1' ");
//已经设置了默认发布表单
if (is_array($row) && $action != 'edit') {
    $addcon = $row['addcon'];
    if ($addcon == '') {
        $addcon = 'archives_add.php';
    }
    $channelid = $row['id'];
	$msg = "
	<table width='600' border='0' cellspacing='0' cellpadding='0'>
  <tr>
    <td height='30'>文件格式:</td>
    <td>
    <input name='filetype' type='radio' value='0' checked='checked' />
      正常的模块包
      <input type='radio' name='filetype' value='1' />
    经过 zip 压缩的模块包 </td>
  </tr>
  <tr>
    <td height='30'>已有模块:</td>
    <td>
	<input name='delhas' type='checkbox' id='delhas' value='1' /> 强制删除同名模块(这可能导致已经安装的模块无法卸载)
	 </td>
  </tr>
  <tr>
    <td width='96' height='60'>请选择文件:</td>
    <td width='504'>
	<input name='upfile' type='file' id='upfile' style='width:300px' />	</td>
  </tr>
 </table>
	";
	$win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>$msg</div>");
	$winform = $win->GetWindow("okonly","");
	$win->Display();
	exit();
}

ClearAllLink();
?>
Example #11
0
/**
 * 导出采集规则
 * 统一转换为unicode编码然后再base64加密
 *
 * @version        $Id: co_export_corule.php 1 14:31 2010年7月12日Z tianya $
 * @package        DedeCMS.Administrator
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require dirname(__FILE__) . "/config.php";
CheckPurview('co_EditNote');
require_once DEDEINC . "/oxwindow.class.php";
$nid = ereg_replace('[^0-9]', '', $nid);
$row = $dsql->GetOne("Select * From `#@__co_note` where nid='{$nid}'");
$noteconfig = "{dede:listconfig}\r\n" . $row['listconfig'] . "\r\n{/dede:listconfig}\r\n\r\n";
$noteconfig .= "{dede:itemconfig}\r\n" . $row['itemconfig'] . "\r\n{/dede:itemconfig}";
if (empty($extype) || $extype == 'base64') {
    $noteconfig = "BASE64:" . base64_encode($noteconfig) . ":END";
    $exmsg = " &nbsp; <a href='co_export_corule.php?nid={$nid}&extype=text'>【导出为普通格式】</a> ";
} else {
    $exmsg = " &nbsp; <a href='co_export_corule.php?nid={$nid}&extype=base64'>【导出为Base64格式】</a> ";
}
$wintitle = "导出采集规则";
$wecome_info = "<a href='co_main.php'><u>采集节点管理</u></a>::导出采集规则 {$exmsg}";
$win = new OxWindow();
$win->Init();
$win->AddTitle("以下为规则 [{$row['notename']}] 的文本配置,你可以共享给你的朋友:");
$winform = $win->GetWindow("hand", "<textarea name='config' style='width:100%;height:450px;word-wrap: break-word;word-break:break-all;'>" . $noteconfig . "</textarea>");
$win->Display();
Example #12
0
/**
 *  显示一个不带表单的普通提示
 *
 * @access    public
 * @param     string   $msg  消息提示信息
 * @param     string   $title  提示标题
 * @return    string
 */
function ShowMsgWin($msg, $title)
{
    $win = new OxWindow();
    $win->Init();
    $win->mainTitle = "Oceanforex系统提示:";
    $win->AddTitle($title);
    $win->AddMsgItem("<div style='padding-left:20px;line-height:150%'>{$msg}</div>");
    $winform = $win->GetWindow("hand");
    $win->Display();
}
Example #13
0
 } else {
     if ($action == 'view') {
         require_once DEDEINC . "/oxwindow.class.php";
         $filetxt = '';
         if (!eregi('data(.*)common.inc.php', $filename)) {
             $fp = fopen($filename, 'r');
             $filetxt = fread($fp, filesize($filename));
             fclose($fp);
         }
         $filetxt = str_replace('textarea', '!textarea', $filetxt);
         $wintitle = "文件效验::查看文件";
         $wecome_info = "<a href='sys_verifies.php'><u>文件效验</u></a>::查看文件";
         $win = new OxWindow();
         $win->Init();
         $win->AddTitle("以下为文件 {$filename} 的内容,请检查是否可疑:");
         $winform = $win->GetWindow("hand", "<textarea name='filetxt' style='width:100%;height:450px;word-wrap: break-word;word-break:break-all;'>" . $filetxt . "</textarea>");
         $win->Display();
         exit;
     } else {
         if ($action == 'manage') {
             $dsql->SetQuery("Select * from `#@__verifies` ");
             $dsql->Execute();
             $filelist = array();
             while ($row = $dsql->GetArray()) {
                 $filelist[] = $row;
             }
             include DEDEADMIN . '/templets/sys_verifies_manage.htm';
             exit;
         } else {
             if ($action == 'getfiles') {
                 if (!isset($refiles)) {
Example #14
0
 /**
  * caijixia for dedecms
  * @version        $Id: cjx.class.php 112 2013-05-28 01:22:57Z qinjinpeng $
  * @copyright Copyright (c) 2011,caijixia for dedecms,caijixia.com.
  * @license   This is NOT a freeware, use is subject to license terms
  *
  * @param     NULL
  * @return    NULL
 */
 function ac_testregx()
 {
     global $cfg_soft_lang;
     $data = stripslashes($this->GV('data'));
     if ($cfg_soft_lang != 'utf-8') {
         $data = utf82gb($data);
     }
     require_once DEDEINC . '/dedetag.class.php';
     $this->dtp = new DedeTagParse();
     $this->dtp->LoadString($data);
     foreach ($this->dtp->CTags as $ctag) {
         $itemName = $ctag->TagName;
         ${$itemName} = trim($ctag->InnerText);
     }
     if (empty($list) || empty($page) || $list == 'http://' || $page == 'http://') {
         exit('规则错误');
     }
     $listarr = array();
     if (preg_match("/\\[([0-9]*-[0-9]*)\\]/", $list, $out)) {
         list($min, $max) = explode('-', $out[1]);
         if ($max - $min > 10) {
             $max = $min + 9;
         }
         for ($i = $min; $i <= $max; $i++) {
             $listarr[] = preg_replace("/\\[([0-9]*-[0-9]*)\\]/", $i, $list);
         }
         $list = preg_replace("/\\[([0-9]*-[0-9]*)\\]/", $min, $list);
     } else {
         $listarr[] = $list;
     }
     $str = $this->downfile($list);
     if ($cfg_soft_lang != $charset) {
         if ($charset == 'utf-8') {
             $str = utf82gb($str);
         } else {
             $str = gb2utf8($str);
         }
     }
     $page = str_replace('(*)', '###', $page);
     $page = preg_quote($page, '/');
     $page = str_replace('###', '([0-9a-zA-Z\\.\\-\\/_]*)', $page);
     $dhtml = new DedeHtml2();
     $dhtml->SetSource($str, $list, 'link');
     $lss = array();
     $i = 0;
     foreach ($dhtml->Links as $s) {
         if (preg_match('/' . $page . '/iU', $s['link'])) {
             if (!isset($lss[$s['link']])) {
                 if (!isset($first)) {
                     $first = $s['link'];
                 }
                 $lss[$s['link']] = $s['link'];
                 $i++;
                 if ($i == 10) {
                     break;
                 }
             }
         }
     }
     $msg = '';
     $GLOBALS['wintitle'] = "采集侠-测试定向采集规则";
     $GLOBALS['wecome_info'] = "采集侠定向采集::采集规则测试";
     $win = new OxWindow();
     $win->AddTitle('匹配到的列表地址(前10个)');
     foreach ($listarr as $v) {
         $msg .= $v . "<br>";
     }
     $win->AddMsgItem($msg);
     $win->AddTitle('第一个列表页匹配到的文章地址(前10个)');
     $msg = '';
     foreach ($lss as $v) {
         $msg .= $v . "<br>";
     }
     $win->AddMsgItem($msg);
     $str = $this->downfile($first);
     if ($cfg_soft_lang != $charset) {
         if ($charset == 'utf-8') {
             $str = utf82gb($str);
         } else {
             $str = gb2utf8($str);
         }
     }
     $win->AddTitle("<font color=black>测试采集第一篇文章:{$first} </font>");
     $win->AddTitle('文章标题');
     if (empty($titlerule)) {
         $win->AddMsgItem('自动规则不需要测试');
     } else {
         $win->AddMsgItem($this->UT($str, $titlerule));
     }
     $win->AddTitle('作者');
     if (empty($authorrule)) {
         $win->AddMsgItem('自动规则不需要测试');
     } else {
         $win->AddMsgItem($this->UT($str, $authorrule));
     }
     $win->AddTitle('来源');
     if (empty($sourcerule)) {
         $win->AddMsgItem('自动规则不需要测试');
     } else {
         $win->AddMsgItem($this->UT($str, $sourcerule));
     }
     $win->AddTitle('文章内容(测试无法采集分页内容)');
     if (empty($bodyrule)) {
         $win->AddMsgItem('自动规则不需要测试');
     } else {
         $win->AddMsgItem($this->UT($str, $bodyrule));
     }
     $win->AddTitle('分页链接');
     if (empty($fyrule)) {
         $win->AddMsgItem('自动采集分页不需要测试');
     } else {
         $fylink = $this->UT($str, $fyrule);
         $dhtml = new DedeHtml2();
         $dhtml->SetSource($fylink, $first, 'link');
         $relink = '';
         foreach ($dhtml->Links as $k => $v) {
             $relink .= $k . "<br>";
         }
         $win->AddMsgItem($relink);
     }
     $GLOBALS['winform'] = $win->GetWindow("hand");
     $win->Display();
 }
Example #15
0
\t\t\t\t\t\t</tr>
\t\t<tr>
\t\t\t<td height="30" colspan="2" style="color:#999"><strong>百度站内搜索</strong>百度站内搜索旨在帮助站长低成本地为网站用户提供高质量的网站内搜索服务。使用百度站内搜索工具,您可以轻松打造网站专属的搜索引擎,自定义个性化的展现样式、功能模块等,并通过搜索广告获得收入。</td>
\t\t</tr>
\t\t</tbody>
\t\t</table>
\t\t</td>
\t\t</tr>
\t</tbody>
</table>
当您看到这个页面的时候,则说明已经完成DedeCMS百度站内搜索模块的安装和站点绑定。<br />
您还需要完成以下步骤才能完成DedeCMS百度站内搜索功能的部署:<br/><br/>
1.<b>提交索引</b>:登录系统后台,在【模块】-【百度站内搜索】-【站内搜索】中提交站点索引,如果您是第一次使用,需要选择【重新提交全量索引】,如果您已经提交过,每次添加完新内容后则直接使用【提交增量索引】功能;<br/><br/>
2.<b>部署代码</b>:您在模板对应位置插入标签 <font color='red'>{dede:baidusitemap/}</font>,或者可以直接复制下面文本框中的代码,粘贴到模板对应位置,重新更新HTML,即可查看百度搜索框。<br/><br/>
<textarea name="" rows="6" cols="80">
<script type="text/javascript">document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E%3Cscript charset="utf-8" src="http://znsv.baidu.com/customer_search/api/js?sid={$site_id}') + '&plate_url=' + (encodeURIComponent(window.location.href)) + '&t=' + (Math.ceil(new Date()/3600000)) + unescape('"%3E%3C/script%3E'));</script>
</textarea><br/><br/>
<script type="text/javascript">document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E%3Cscript charset="utf-8" src="http://znsv.baidu.com/customer_search/api/js?sid={$site_id}') + '&plate_url=' + (encodeURIComponent(window.location.href)) + '&t=' + (Math.ceil(new Date()/3600000)) + unescape('"%3E%3C/script%3E'));</script>
也可以登录后台,在【模块】-【百度站内搜索】-【搜索框管理】中根据自己需求创建符合站点样式的搜索框。<br/><br/>
CopyRight 2010  DesDev Inc. All rights reserved Powered by <a target="_blank" href="http://www.dedecms.com/">DedeCMS</a> <a target="_blank" href="百度站内搜索模块">百度站内搜索模块</a>
</div>
EOT;
    $msg = "<div style=\"line-height:36px;\">{$msg}</div>";
    $wintitle = '百度站内搜索';
    $wecome_info = 'DedeCMS百度站内搜索模块 》';
    $win = new OxWindow();
    $win->AddTitle($wintitle);
    $win->AddMsgItem($msg);
    $winform = $win->GetWindow('hand', '&nbsp;', false);
    $win->Display();
}
Example #16
0
    ShowMsg("成功删除一则广告代码!", $ENV_GOBACK_URL);
    exit;
} else {
    if ($dopost == "gettag") {
        require_once DEDEINC . '/oxwindow.class.php';
        $jscode = "<script src='{$cfg_phpurl}/ad_js.php?aid={$aid}' language='javascript'></script>";
        $showhtml = "<xmp style='color:#333333;background-color:#ffffff'>\r\n\r\n{$jscode}\r\n\r\n</xmp>";
        $showhtml .= "预览:<iframe name='testfrm' frameborder='0' src='ad_edit.php?aid={$aid}&dopost=testjs' id='testfrm' width='100%' height='200'></iframe>";
        $row = $dsql->GetOne("SELECT tagname from `#@__myad` WHERE aid='{$aid}' ");
        $showtag = '{' . "dede:myad name='{$row['tagname']}'/" . '}';
        $info = "<b>说明:</b>如果嵌入的是织梦CMS广告标签,那么将会解析成标签中的内容到页面,广告更改后需要重新生成。<br />\r\n    如果不希望重新生成所有页面,则直接调用JS代码即可。\r\n    ";
        $wintitle = "广告管理-获取广告标签";
        $wecome_info = "<a href='ad_main.php'><u>广告管理</u></a>::获取JS";
        $win = new OxWindow();
        $win->Init();
        $winform = $win->GetWindow("hand", $info);
        $win->AddTitle("织梦CMS标签调用代码:");
        $winform = $win->GetWindow("hand", $showtag);
        $win->myWinItem = '';
        $win->AddTitle("以下为选定广告的JS调用代码:");
        $winform = $win->GetWindow("hand", $showhtml);
        $win->Display();
        exit;
    } else {
        if ($dopost == 'testjs') {
            echo "<script src='{$cfg_phpurl}/ad_js.php?aid={$aid}&nocache=1' language='javascript'></script>";
            exit;
        } else {
            if ($dopost == 'saveedit') {
                $starttime = GetMkTime($starttime);
                $endtime = GetMkTime($endtime);
Example #17
0
        $starttime = GetMkTime($starttime);
        $endtime = GetMkTime($endtime);
        $query = "UPDATE `#@__mytag`\r\n     SET\r\n     typeid='{$typeid}',\r\n     timeset='{$timeset}',\r\n     starttime='{$starttime}',\r\n     endtime='{$endtime}',\r\n     normbody='{$normbody}',\r\n     expbody='{$expbody}'\r\n     WHERE aid='{$aid}' ";
        $dsql->ExecuteNoneQuery($query);
        ShowMsg("成功更改一个自定义标记!", $ENV_GOBACK_URL);
        exit;
    } else {
        if ($dopost == "getjs") {
            require_once DEDEINC . "/oxwindow.class.php";
            $jscode = "<script src='{$cfg_phpurl}/mytag_js.php?aid={$aid}' language='javascript'></script>";
            $showhtml = "<xmp style='color:#333333;background-color:#ffffff'>\r\n\r\n{$jscode}\r\n\r\n</xmp>";
            $showhtml .= "<b>预览:</b><iframe name='testfrm' frameborder='0' src='mytag_edit.php?aid={$aid}&dopost=testjs' id='testfrm' width='100%' height='250'></iframe>";
            $wintitle = "宏标记定义-获取JS";
            $wecome_info = "<a href='mytag_main.php'><u>宏标记定义</u></a>::获取JS";
            $win = new OxWindow();
            $win->Init();
            $win->AddTitle('以下为选定宏标记的JS调用代码:');
            $winform = $win->GetWindow('hand', $showhtml);
            $win->Display();
            exit;
        } else {
            if ($dopost == "testjs") {
                echo "<body bgcolor='#ffffff'>";
                echo "<script src='{$cfg_phpurl}/mytag_js.php?aid={$aid}&nocache=1' language='javascript'></script>";
                exit;
            }
        }
    }
}
$row = $dsql->GetOne("SELECT * FROM `#@__mytag` WHERE aid='{$aid}'");
include DedeInclude('templets/mytag_edit.htm');
Example #18
0
                        ShowMsg("成功上传 {$j} 个文件到: {$activepath}", "file_manage_main.php?activepath={$activepath}");
                        exit;
                    } else {
                        if ($fmdo == "space") {
                            if ($activepath == "") {
                                $ecpath = "所有目录";
                            } else {
                                $ecpath = $activepath;
                            }
                            $titleinfo = "目录 <a href='file_manage_main.php?activepath={$activepath}'><b><u>{$ecpath}</u></b></a> 空间使用状况:<br/>";
                            $wintitle = "文件管理";
                            $wecome_info = "文件管理::空间大小检查 [<a href='file_manage_main.php?activepath={$activepath}'>文件浏览器</a>]</a>";
                            $activepath = $cfg_basedir . $activepath;
                            $space = new SpaceUse();
                            $space->checksize($activepath);
                            $total = $space->totalsize;
                            $totalkb = $space->setkb($total);
                            $totalmb = $space->setmb($total);
                            $win = new OxWindow();
                            $win->Init("", "js/blank.js", "POST");
                            $win->AddTitle($titleinfo);
                            $win->AddMsgItem("  {$totalmb} M<br/>  {$totalkb} KB<br/>  {$total} 字节");
                            $winform = $win->GetWindow("");
                            $win->Display();
                        }
                    }
                }
            }
        }
    }
}
Example #19
0
            }
        }
        //生成HTML
        UpIndexKey($id, $arcrank, $typeid, $sortrank, $tags);
        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!');
            }
        }
        $artUrl = MakeArt($id, true, true, $isremote);
        if ($artUrl == '') {
            $artUrl = $cfg_phpurl . "/view.php?aid={$id}";
        }
        ClearMyAddon($id, $title);
        //返回成功信息
        $msg = "\r\n      请选择你的后续操作:\r\n    <a href='article_add.php?cid={$typeid}'><u>发布新文章</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='archives_do.php?aid=" . $id . "&dopost=editArchives'><u>查看更改</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='{$artUrl}' target='_blank'><u>查看文章</u></a>\r\n    &nbsp;&nbsp;\r\n    <a href='catalog_do.php?cid={$typeid}&dopost=listArchives'><u>管理文章</u></a>\r\n    &nbsp;&nbsp;\r\n    {$backurl}\r\n    ";
        $wintitle = "成功更改文章!";
        $wecome_info = "文章管理::更改文章";
        $win = new OxWindow();
        $win->AddTitle("成功更改文章:");
        $win->AddMsgItem($msg);
        $winform = $win->GetWindow("hand", "&nbsp;", false);
        $win->Display();
    }
}
<?php 
require(dirname(__FILE__)."/config.php");
CheckPurview('co_EditNote');
$nid = ereg_replace("[^0-9]","",$nid);
if(empty($nid)){
   ShowMsg("参数无效!","-1");
   exit();
}
$dsql = new DedeSql(false);
$row = $dsql->GetOne("Select * From #@__conote where nid='$nid'");
$dsql->Close();
require_once(dirname(__FILE__)."/../include/pub_oxwindow.php");
$wintitle = "导出采集规则";
$wecome_info = "<a href='co_main.php'><u>采集节点管理</u></a>::导出采集规则";
$win = new OxWindow();
$win->Init();
$win->AddTitle("以下为规则 [{$row['gathername']}] 的文本配置,你可以共享给你的朋友:");
$winform = $win->GetWindow("hand","<xmp style='color:#333333;background-color:#ffffff'>".$row['noteinfo']."</xmp>");
$win->Display();

ClearAllLink();
?>