admin/group_notice.php
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 圈子公告管理
*
* @version $Id: group_notice.php 1 15:34 2011-1-21 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_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC.'/datalistcp.class.php');
CheckPurview('group_Edit');
$id = isset($id) && is_numeric($id) ? $id : 0;
$gid = isset($gid) && is_numeric($gid) ? $gid : 0;
$action = isset($action) ? trim($action) : '';
$keyword = isset($keyword) ? trim($keyword) : '';
$keyword = stripslashes($keyword);
$keyword = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($keyword));
$keyword = addslashes($keyword);
$username = isset($username) ? trim($username) : '';
$username = stripslashes($username);
$username = preg_replace("#[\"\r\n\t\*\?\(\)\$%']#", " ", trim($username));
$username = addslashes($username);
if($gid < 1)
{
ShowMsg("含有非法操作!.","-1");
exit();
}
if($action=="del")
{
if($id > 0)
{
$db->ExecuteNoneQuery("DELETE FROM #@__group_notice WHERE id='$id'");
}
}
else if($action=="edit")
{
$row = $db->GetOne("SELECT * FROM #@__group_notice WHERE id='$id'");
$title = $row['title'];
$notice = $row['notice'];
}
else if($action=="save")
{
$row = $db->GetOne("SELECT * FROM #@__group_notice WHERE id='$id'");
if(empty($title))
{
$title = $row['title'];
}
if(empty($notice))
{
$notice = $row['notice'];
}
$db->ExecuteNoneQuery("UPDATE #@__group_notice SET notice='".$notice."',title='".$title."' WHERE id='$id'");
}
后面还有 26 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。