query("update {$dbtbpre}enewspublicadd set digglevel='$add[digglevel]',diggcmids='$diggcmids' limit 1");
if($sql)
{
GetConfig();
//操作日志
insert_dolog("");
printerror("SetDiggSuccess","SetDigg.php".hReturnEcmsHashStrHref2(1));
}
else
{printerror("DbError","history.go(-1)");}
}
//清空DIGG记录
function eClearDiggRecord($add,$userid,$username){
global $empire,$dbtbpre,$ecms_config,$public_r;
//DIGG记录表
$empire->query("TRUNCATE `{$dbtbpre}enewsdiggips`;");
//操作日志
insert_dolog("");
printerror("ClearDiggRecordSuccess",EcmsGetReturnUrl());
}
$enews=$_POST['enews'];
if(empty($enews))
{$enews=$_GET['enews'];}
if($enews)
{
hCheckEcmsRHash();
}
if($enews=="SetDigg")//设置参数
{
eSetDigg($_POST,$logininid,$loginin);
}
elseif($enews=="ClearDiggRecord")//清空记录
{
@set_time_limit(1000);
eClearDiggRecord($_GET,$logininid,$loginin);
}
else
{}
$r=$empire->fetch1("select * from {$dbtbpre}enewspublicadd limit 1");
//系统模型
$mids='';
$i=0;
$modsql=$empire->query("select mid,mname from {$dbtbpre}enewsmod order by myorder,mid");
while($modr=$empire->fetch($modsql))
{
$i++;
if($i%4==0)
{
$br="
";
}
else
{
$br="";
}
$select='';
if(strstr($r['diggcmids'],','.$modr['mid'].','))
{
$select=' checked';
}
$mids.="$modr[mname] ".$br;
}
db_close();
$empire=null;
?>
位置:DIGG顶参数设置 |