<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower("menu_message"); $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__message` order by id DESC"); page($total, $maxperpage, "条留言"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__message` order by id DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 留言管理','');</script> <div class="container" id="cpcontainer"> <h3>留言管理</h3><form action="admincp.php?do=message&operation=post" method="post"> <table class="tb tb2 "> <?php for ($i = 0; $i < $_count; $i++) { $rs[$i]['user'] = unserialize($rs[$i]['user']); if ($rs[$i]['reply']) { $reply = explode('||', $rs[$i]['reply']); $reply[0] == 'admin' && ($rs[$i]['reply'] = '<strong>管理员回复:</strong>' . $reply[1]);
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower("menu_user_manage"); $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__members` WHERE `adminid`='0' order by uid DESC"); page($total, $maxperpage, "位会员"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__members` WHERE `adminid`='0' order by uid DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 会员管理','');</script> <div class="container" id="cpcontainer"> <h3>会员管理</h3> <table class="tb tb2 nobdb" id="tips"> <tr> <th colspan="15" class="partition">技巧提示</th> </tr> <tr> <td class="tipsblock"><ul id="tipslis"> <li>点击ID可查看该会员</li> </ul></td>
</tr> <tr> <td class="vtop tips2">按日期:</td> <td class="vtop rowform">开始时间:<input type="text" class="txt" name="starttime" value="" onclick="showcalendar(event, this)" style="width:120px"><br />-<br />结束时间:<input type="text" class="txt" name="endtime" value="" onclick="showcalendar(event, this)" style="width:120px"></td> </tr> <tr> <td colspan="2" class="td21"><input type="submit" class="btn" name="cleanupsubmit" value="提交" /></td> </tr> </table> </form> </div> </body></html> <?php break; case 'page': checkpower(array("menu_html_all", "menu_html_page")); da_admin_head(); catalogvars(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » HTML更新 » 更新独立页面','');</script> <div class="container" id="cpcontainer"> <h3>更新独立页面</h3> <form name="cpform" method="get" action="admincp.php" id="cpform" > <input type="hidden" name="do" value="html" /> <input type="hidden" name="operation" value="create" /> <input type="hidden" name="action" value="page" /> <table class="tb tb2 "> <tr> <td class="vtop tips2" width="120">独立页面:</td>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower("menu_installhelper"); $ittype = save($_GET['ittype']); $rs = $DreamCMS->db->get_row("SELECT * FROM `#DC@__installhelper` WHERE `ittype`='" . $ittype . "' order by itid DESC LIMIT 1", ARRAY_A); include DCPATH . "include/fckeditor.php"; $editor = new FCKeditor('body'); $editor->Width = 800; $editor->Value = $rs['body']; da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 装机助手','');</script> <div class="container" id="cpcontainer"> <h3>装机助手</h3> <form action="admincp.php?do=installhelper&operation=post" method="post" enctype="multipart/form-data"> <input type="hidden" name="action" value="add" /> <input type="hidden" name="itid" value="<?php echo $rs['itid']; ?> " />
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); $contitle = '品牌或机型管理'; switch ($operation) { case '': checkpower("menu_brands"); $fid = intval($_GET['fid']); $sql = " WHERE `fid`='{$fid}' AND `state`='0' "; $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__brands`" . $sql); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__brands` " . $sql . " order by `orders` ASC,`id` DESC "); $_count = count($rs); if ($fid) { //查询所属上级分类 $prebrand = $DreamCMS->db->get_row("SELECT * FROM `#DC@__brands` WHERE `id`=" . $fid . " LIMIT 1 ", ARRAY_A); } da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; if ($prebrand) { echo "--" . $prebrand['name'];
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower("menu_events_livehall"); $contitle = '直播大厅'; switch ($operation) { case 'manage': $contitle .= "--列表"; $sql = ''; $title = $_GET['title'] ? save($_GET['title']) : ''; $title && ($sql .= " AND `title` LIKE '%" . $title . "%' "); if ($sql) { $sql = " WHERE " . trim(trim($sql), 'AND') . " "; } $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__events_livehall` " . $sql); page($total, $maxperpage, "条数据"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__events_livehall` " . $sql . " ORDER BY `id` DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; ?>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); unset($_catalog_array, $_parent_catalog_array); switch ($operation) { case '': checkpower("menu_cache"); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 更新缓存','');</script> <div class="container" id="cpcontainer"> <h3>更新系统统计</h3> <table class="tb tb2 nobdb" id="tips"> <tr> <th colspan="15" class="partition">技巧提示</th> </tr> <tr> <td class="tipsblock"><ul id="tipslis"> <li>清除模板缓存:影响清理后第一次访问速度,建议在未对模板进行修改时请勿进行清除模板缓存操作</li> </ul></td> </tr> </table> <form name="cpform" method="post" action="admincp.php?do=cache&operation=post" id="cpform" >
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); $types = intval($_GET['types']) ? intval($_GET['types']) : intval($_POST['types']); checkpower("menu_events_wonderful" . $types); if ($types == 1) { $contitle = '精彩篮球'; } elseif ($types == 2) { $contitle = '精彩足球'; } else { alert('类型错误'); } switch ($operation) { case 'manage': $contitle .= "--列表"; $sql = ''; $types && ($sql .= " AND `types`='" . $types . "' "); $title = $_GET['title'] ? save($_GET['title']) : ''; $title && ($sql .= " AND `title` LIKE '%" . $title . "%' "); if ($sql) { $sql = " WHERE " . trim(trim($sql), 'AND') . " "; } $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__events_wonderful` " . $sql); page($total, $maxperpage, "条数据");
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case 'manage': checkpower("menu_template_manage"); $dir = trim($_GET["dir"]); $L = GetFolderList($dir, "templates", ""); da_admin_head(); ?> <div class="container" id="cpcontainer"> <table class="tb tb2 nobdb" width="100%"> <tr> <th height="20">当前路径:<strong><a href="admincp.php?do=template&operation=manage"><?php echo $Folder . '/' . $dir; ?> </a></strong></th> </tr> </table> <table class="tb tb2 nobdb" width="100%"> <?php if ($L['parentfolder']) { ?>
<td colspan="2" class="vtop tips2"></td> </tr> <tr class="nobg"> <td colspan="3" class="td27">水印透明度:</td> </tr> <tr> <td class="vtop rowform"><input name="waterpct" value="<?php echo $DreamCMS->config['waterpct']; ?> " size="10" maxlength="3" class="txt"/></td> <td colspan="2" class="vtop tips2"></td> </tr> <?php } if (empty($operation) || $operation == "bbs") { checkpower(array("menu_setting_all", "menu_setting_bbs")); ?> <tr> <th colspan="3" class="partition"> 调用论坛设置</th> </tr> <tr class="nobg"> <td colspan="3" class="td27">是否调用论坛:</td> </tr> <tr> <td class="vtop rowform"><ul onmouseover="altStyle(this);"> <li> <input class="radio" type="radio" name="bbs[call]" value="1" /> 调用 </li> <li> <input class="radio" type="radio" name="bbs[call]" value="0" /> 不调用 </li> </ul></td> <td colspan="2" class="vtop tips2"></td> </tr>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower("menu_events_liverecomment"); $contitle = '直播推荐'; switch ($operation) { case 'manage': $contitle .= "--列表"; $sql = ''; $sortname = $_GET['sortname'] ? save($_GET['sortname']) : ''; $sortname && ($sql .= " AND `sortname` LIKE '%" . $sortname . "%' "); if ($sql) { $sql = " WHERE " . trim(trim($sql), 'AND') . " "; } $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__events_liverecomment` " . $sql); page($total, $maxperpage, "条数据"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__events_liverecomment` " . $sql . " ORDER BY `id` DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; ?>
if ($action == "login") { //checkverifycode(trim($_POST['verifycode']),'验证码错误!',"admin"); $username = trim($_POST['username']); $password = md5(trim($_POST['password'])); strlen($username) > 20 && alert('字段长度才20,你想输入多长?'); if ($uid = checkadmin($username, $password)) { set_cookie('adminid', $uid, $cookietime); set_cookie('administrator', $username, $cookietime); set_cookie('adminpassword', $password, $cookietime); $DreamCMS->db->query("UPDATE `#DC@__members` SET `lastip`='" . getip() . "',`lastlogintime`='" . time() . "',`logintimes`=logintimes+1 WHERE `uid`='{$uid}'"); redirect('登陆成功, 请稍候......', "admincp.php"); } else { redirect('登陆失败!', "admincp.php"); } } $administrator = get_cookie("administrator"); $adminpassword = get_cookie("adminpassword"); if ($administrator && $adminpassword) { islogin($administrator, $adminpassword); } else { unset($_SESSION['admincode']); set_cookie("admincode", '', time() - 31536000); set_cookie("adminid", '', time() - 31536000); set_cookie("administrator", '', time() - 31536000); set_cookie("adminpassword", '', time() - 31536000); da_admin_login(); } $admin = get_admin_info($administrator, $adminpassword); $menu_array = (include DCPATH . 'admin/menu.array.php'); checkpower("__ADMINCP__", "ADMINCP_Permission_Denied");
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower("menu_wordcup_livelist"); $contitle = '直播列表'; switch ($operation) { case 'manage': $contitle .= "--列表"; $sql = ''; $title = $_GET['title'] ? save($_GET['title']) : ''; $title && ($sql .= " AND `title` LIKE '%" . $title . "%' "); if ($sql) { $sql = " WHERE " . trim(trim($sql), 'AND') . " "; } $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__wordcup_livelist` " . $sql); page($total, $maxperpage, "条数据"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__wordcup_livelist` " . $sql . " ORDER BY `id` DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; ?>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower("menu_articletype"); $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__articletype` order by id DESC"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__articletype` order by id DESC "); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 文档自定义属性管理','');</script> <div class="container" id="cpcontainer"> <h3>文档自定义属性管理</h3> <table class="tb tb2 nobdb" id="tips"> <tr> <th colspan="15" class="partition">技巧提示</th> </tr> <tr> <td class="tipsblock"><ul id="tipslis"> <li>点击ID可查看该TAG</li> </ul></td> </tr>
<td style="width:60px;">重新上传:</td> <td class="vtop rowform"><input name="file" type="file" class="uploadbtn" id="pic" /><input name="fid" type="hidden" value="<?php echo $fid; ?> " /><input name="action" type="hidden" value="reupload" /> <input type="submit" value="上传" style="border:1px solid #999999;"/></td> </form> </tr> </table> </div> <iframe width="100%" height="100" style="display:none" id="post" name="post"></iframe> </body> </html> <?php break; case 'upload': checkpower("menu_file_upload"); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 文件管理 » 上传文件','');</script> <div class="container" id="cpcontainer"> <h3>上传文件</h3> <table class="tb tb2 nobdb" id="tips"> <tr> <th colspan="15" class="partition">技巧提示</th> </tr> <tr> <td class="tipsblock"><ul id="tipslis"> <li></li> </ul></td> </tr>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower("menu_events_playsource"); $types = intval($_GET['types']) ? intval($_GET['types']) : intval($_POST['types']); !$types && alert('您没有选择类型'); $contitle = '来源管理'; switch ($operation) { case 'manage': $contitle .= "--列表"; $sql = " `state`='0' AND `types`='" . $types . "' "; $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__events_playsource` WHERE " . $sql); page($total, $maxperpage, "条数据"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__events_playsource` WHERE " . $sql . " ORDER BY `orders` ASC,`id` ASC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; ?> ','');</script> <div class="container" id="cpcontainer"> <div class="itemtitle">
echo catalog(); ?> <tr class="nobg"> <td colspan="14"><div class="fixsel"> <input type="submit" class="btn" name="editsubmit" value="提交" /> </div></td> </tr> </table> </form> </div> </body> </html> <?php break; case 'add': checkpower(array("menu_index_catalog_add", "menu_catalog_add")); $p = isset($_GET['type']) ? $_GET['type'] : '0'; catalogvars(); if ($_GET['cid']) { $rs = $DreamCMS->db->get_row("SELECT * FROM `#DC@__catalog` WHERE `id`='" . intval($_GET['cid']) . "'", ARRAY_A); $rootid = $rs['rootid']; } else { $rootid = intval($_GET['rid']); } if (empty($rs)) { $rs = array(); $rs['attrib'] = $p ? 'page' : 'list'; $rs['ishidden'] = '0'; $rs['order'] = '0'; $rs['isexamine'] = '1'; $rs['issend'] = '1';
init_adodb(); init_smarty(); global $smarty, $cfg, $db; $tbl_article = $cfg['tbl_article']; if (!isset($_POST['postflag'])) { $sql = "select id,heading,score,editor from {$tbl_article} where id = " . intval($_GET['article_id']); $arr = $db->GetRow($sql); $arr['heading'] = Charset::convert($arr['heading'], "gbk", "utf8"); $arr['editor'] = Charset::convert($arr['editor'], "gbk", "utf8"); $smarty->assign("article", $arr); $smarty->display("givescore.html"); } else { $privileges_check = "givescore"; $sql = "select catalog from {$tbl_article} where id = " . intval($_POST['article_id']); $catalog_id = $db->GetOne($sql); if (!checkpower($catalog_id, GetUid(), 3)) { echo intval($_POST['fscore']); exit; } else { $sql = "update {$tbl_article} set score = " . intval($_POST['score']) . " where id = " . intval($_POST['article_id']) . " limit 1"; if ($db->Execute($sql)) { echo intval($_POST['score']); } else { echo intval($_POST['fscore']); } } } function GetFatherCatalog($id) { global $cfg; global $db;
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower(array("menu_index_comment", "menu_comment")); $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__comment` order by id DESC"); page($total, $maxperpage, "条评论"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__comment` order by id DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 评论管理','');</script> <div class="container" id="cpcontainer"> <h3>评论管理</h3><form action="admincp.php?do=comment&operation=post" method="post"> <table class="tb tb2 "> <?php for ($i = 0; $i < $_count; $i++) { if ($rs[$i]['reply']) { $reply = explode('||', $rs[$i]['reply']); $rs[$i]['reply'] = $reply[0] == 'admin' ? '<strong>管理员回复:</strong>' . $reply[1] : '<strong>文章发布者回复:</strong>' . $reply[1]; }
echo $pagenav; ?> </td> </tr> <tr class="nobg"> <td class="td25"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'delete')" /> <label for="chkall">删?</label></td> <td colspan="6"><div class="fixsel"> <input type="submit" class="btn" name="forumlinksubmit" value="提交" /> </div></td> </tr> </table> </form> </div> </body></html><?php break; case 'edit': checkpower("menu_account_edit"); $rs = $DreamCMS->db->get_row("SELECT * FROM `#DC@__members` WHERE `uid`='" . intval($_GET['uid']) . "'"); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 管理员管理','');</script> <div class="container" id="cpcontainer"> <h3>管理员管理</h3> <table class="tb tb2 nobdb" id="tips"> <tr> <th colspan="15" class="partition">技巧提示</th> </tr> <tr> <td class="tipsblock"><ul id="tipslis"> <li>点击ID可查看该管理员</li> </ul></td>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); !file_exists(DCPATH . 'YWR2ZXJ0aXNl') && createdir(DCPATH . 'YWR2ZXJ0aXNl'); switch ($operation) { case '': checkpower(array("menu_index_advertise", "menu_advertise")); $maxperpage = 30; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__advertise` order by id DESC"); page($total, $maxperpage, "个广告"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__advertise` order by id DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <script type="text/JavaScript"> function doaction(obj){ switch(obj.value){ case "del": if(confirm("确定要删除!!!")){ return true; }else{ obj.value=""; return false; } break;
echo $DreamCMS->config['fileext']; ?> '; lang['post_attachment_ext_notallowed'] = '对不起,不支持上传此类扩展名的附件。'; lang['post_attachment_img_invalid'] = '无效的图片文件。'; lang['post_attachment_deletelink'] = '删除'; lang['post_attachment_insert'] = '点击这里将本附件插入帖子内容中当前光标的位置'; lang['post_attachment_insertlink'] = '插入'; </script> <script src="include/javascript/post_attach.js" type="text/javascript"></script> --> </body></html> <?php break; case 'manage': checkpower(array("menu_article_manage", "menu_article_draft", "menu_article_user_manage", "menu_article_user_draft")); // include_once(DCPATH.'include/syscache/catalog.cache.php'); $cid = (int) $_GET['cid']; $act = $_GET['act']; $sql = " where "; $sql .= $_GET['type'] == 'draft' ? "`visible` ='0'" : "`visible` ='1'"; $sql .= $act == 'user' ? " AND `postype`!='0'" : " AND `postype`='0'"; $_GET['keywords'] && ($sql .= " AND CONCAT(title,keywords,description) REGEXP '{$_GET['keywords']}'"); $_GET['title'] && ($sql .= " AND `title` like '%{$_GET['title']}%'"); $_GET['tag'] && ($sql .= " AND `tags` REGEXP '[[:<:]]" . preg_quote(rawurldecode($_GET['tag']), '/') . "[[:>:]]'"); isset($_GET['at']) && ($sql .= " AND `type` REGEXP '[[:<:]]" . preg_quote($_GET['at'], '/') . "[[:>:]]'"); isset($_GET['userid']) && ($sql .= " AND `userid`='" . (int) $_GET['userid'] . "'"); $cid && ($sql .= " AND cid IN(" . catalogID($cid) . $cid . ")"); // if($_catalog_hidden_id){ // $sql.=" AND cid not IN($_catalog_hidden_id)"; // }
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower("menu_keywords"); $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__keywords` order by id DESC"); page($total, $maxperpage, "个关键字"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__keywords` order by id DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » 关键字管理','');</script> <div class="container" id="cpcontainer"> <div class="itemtitle"> <h3>关键字管理</h3> <ul class="tab1" id="submenu"> <li id="nav_manage" class="current"><a href="admincp.php?do=keywords"><span>管理</span></a></li> <li id="nav_add"><a href="admincp.php?do=keywords&operation=add"><span>添加关键字</span></a></li> </ul> </div> <table class="tb tb2 nobdb" id="tips"> <tr>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower(array("menu_downloadpics")); $title = ''; $pictype = save($_GET['pictype']) ? save($_GET['pictype']) : 'download'; $navtitle = ''; if ($pictype == 'download') { $title = '下载详情公共图'; $navtitle = '下载详情公共图'; } switch ($operation) { case '': $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__otherpics`"); page($total, $maxperpage, '条数据'); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__otherpics` ORDER BY `picorder` ASC,`picid` DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <div class="container" id="cpcontainer"> <script type="text/JavaScript">admincpnav('首页 » <?php echo $title; ?> ');</script>
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower("menu_wordcup_championroad"); $id = intval($_GET['id']) ? intval($_GET['id']) : intval($_POST['id']); !$id && alert('传参错误'); if ($id == 1) { $contitle = '冠军之路'; } else { alert('没有此数据'); } switch ($operation) { case 'add': $rs = $DreamCMS->db->get_row("SELECT * FROM `#DC@__others` WHERE `id`='" . $id . "'", ARRAY_A); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; ?> ','');</script> <div class="container" id="cpcontainer"> <div class="itemtitle"> <h3><?php echo $contitle;
redirect("正在备份数据库表{$t_name}: 共{$rows}条记录<br>已经备份至{$c_n}条记录,已生成{$f_num}个备份文件,<br>程序将自动备份余下部分", "admincp.php?do=database&operation=savebackup&start={$startfrom}&tableid={$tableid}&sizelimit={$sizelimit}&step={$step}&aaa={$aaa}&tablesel={$tablesel}&rows={$rows}", 3); } else { trim($writedata) && writefile(DCPATH . 'admin/data/' . $filename, $bak . $writedata, 'ab'); if ($step > 1) { for ($i = 1; $i <= $f_num; $i++) { $temp = substr($filename, 0, 19) . $i . ".sql"; if (file_exists("data/{$temp}")) { $bakfile .= '<a href="' . "data/{$temp}" . '">' . $temp . '</a><br>'; } } } redirect("已全部备份完成,备份文件保存在data目录下", "admincp.php?do=database&operation=recover"); } break; case 'recover': checkpower("menu_database_recover"); include DCPATH . 'admin/table.inc.php'; $filedb = array(); $handle = opendir(DCPATH . 'admin/data'); while ($file = readdir($handle)) { /*if(eregi("^DreamCMS_",$file) && eregi("\.sql$",$file)){ $strlen=eregi("^DreamCMS_",$file) ? 16 + strlen("DreamCMS_") : 19;*/ if (preg_match("/^DreamCMS_/i", $file) && preg_match("/\\.sql\$/i", $file)) { //zhaoyanmin php5.3以上版本 eregi在php5.3以上版本改成preg_match $strlen = preg_match("/^DreamCMS_/i", $file) ? 16 + strlen("DreamCMS_") : 19; //zhaoyanmin php5.3以上版本 eregi在php5.3以上版本改成preg_match $fp = fopen(DCPATH . "admin/data/{$file}", 'rb'); $bakinfo = fread($fp, 200); fclose($fp); $detail = explode("\n", $bakinfo); $bk['name'] = $file;
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); checkpower("menu_wordcup_focusrecomment"); $contitle = '焦点图推荐'; switch ($operation) { case 'manage': $contitle .= "--列表"; $sql = ''; $title = $_GET['title'] ? save($_GET['title']) : ''; $title && ($sql .= " AND `title` LIKE '%" . $title . "%' "); if ($sql) { $sql = " WHERE " . trim(trim($sql), 'AND') . " "; } $maxperpage = 20; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__wordcup_focusrecomment` " . $sql); page($total, $maxperpage, "条数据"); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__wordcup_focusrecomment` " . $sql . " ORDER BY `id` DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <link rel="stylesheet" href="images/style.css" type="text/css" media="all" /> <script type="text/JavaScript">admincpnav('首页 » <?php echo $contitle; ?>
break; case "user_manage": if (isset($_GET['cmd'])) { $cmd = $_GET['cmd']; } else { if (isset($_POST['cmd'])) { $cmd = $_POST['cmd']; } else { $cmd = "list"; } } if (!($cmd == "edit" && !isset($_GET['uid']) && !isset($_POST['id']))) { if (!checkpower(-1, GetUid(), 8)) { alert("没有权限进行此操作"); exit; } } break; case "group_manage": if (!checkpower(-1, GetUid(), 6)) { alert("没有权限进行此操作"); exit; } break; case "privilege_manage": if (!checkpower(-1, GetUid(), 12)) { alert("没有权限进行此操作"); exit; } break; }
</th> </tr> <tr class="nobg"> <td><div class="fixsel"> <input type="submit" class="btn" onclick="return mTiJiao()" name="forumlinksubmit" value="添加" /> </div></td> </tr> </table> </form> </div> </body> </html> <?php break; case 'edit': checkpower("menu_modeltype"); $modelid = intval($_GET['modelid']); !$modelid && alert('模型传参错误'); $model = $DreamCMS->db->get_row("SELECT * FROM `#DC@__model` WHERE `modelid`='{$modelid}'", ARRAY_A); $fields = $DreamCMS->db->get_results("SELECT * FROM `#DC@__model_field` WHERE `modelid`='{$modelid}' AND `state`!=2 AND `state` != 3 ORDER BY `disorder` ASC,`fieldid` ASC "); $fieldid = intval($_GET['fieldid']); $fieldid && ($fielddata = $DreamCMS->db->get_row("SELECT * FROM `#DC@__model_field` WHERE `fieldid`='{$fieldid}'", ARRAY_A)); da_admin_head(); //查询字段类型表 $formtype = $DreamCMS->db->get_results("SELECT * FROM `#DC@__formtype`"); $typearr = array(); if ($formtype && is_array($formtype)) { foreach ($formtype as $key => $val) { $typearr[$val['typename']] = $val['typebieming']; } }
<?php /* * DreamArticle Version3.0 * Copyright 2007-2008, iDreamSoft * http://www.idreamsoft.cn * By:coolmoo<*****@*****.**> */ !defined('DCPATH') && exit('What are you doing?'); switch ($operation) { case '': checkpower(array("menu_index_link", "menu_link")); $maxperpage = 60; $total = $DreamCMS->db->get_var("SELECT count(*) FROM `#DC@__links` ORDER BY `orderid` ASC,`id` DESC"); page($total, $maxperpage, '个链接'); $rs = $DreamCMS->db->get_results("SELECT * FROM `#DC@__links` ORDER BY `orderid` ASC,`id` DESC LIMIT {$firstcount},{$maxperpage}"); $_count = count($rs); da_admin_head(); ?> <div class="container" id="cpcontainer"> <script type="text/JavaScript">admincpnav('首页 » 友情链接','<a href="admincp.php?action=misc&operation=custommenu&do=add&title=cplog_misc_forumlinks&url=action%3Dmisc%26operation%3Dforumlinks" target="main"><img src="admin/images/btn_add2menu.gif" title="添加常用操作" width="19" height="18" /></a>');</script> <div class="itemtitle"> <h3>友情链接</h3> <ul class="tab1" id="submenu"> <li id="nav_manage" class="current"><a href="admincp.php?do=link"><span>管理</span></a></li> <li id="nav_add"><a href="admincp.php?do=link&operation=add"><span>添加友情链接</span></a></li> </ul> </div> <table class="tb tb2 nobdb" id="tips"> <tr> <th colspan="15" class="partition">技巧提示</th>