function EditSpInfo($add, $userid, $username) { global $empire, $dbtbpre; $spid = (int) $add[spid]; $sid = (int) $add[sid]; if (!$spid) { printerror('ErrorUrl', ''); } //验证 $spr = CheckSpInfoLevel($spid); if ($spr[sptype] == 1) { $log = EditSpInfo1($spid, $spr, $sid, $add); } elseif ($spr[sptype] == 2) { $log = EditSpInfo2($spid, $spr, $sid, $add); } elseif ($spr[sptype] == 3) { $log = EditSpInfo3($spid, $spr, $sid, $add); } else { printerror('ErrorUrl', ''); } //删除多余碎片信息 DelMoreSpInfo($spid, $spr); //操作日志 insert_dolog($log); printerror("EditSpInfoSuccess", "ListSpInfo.php?spid={$spid}"); }
function EditSpInfo($add, $userid, $username) { global $empire, $dbtbpre; $spid = (int) $add[spid]; $sid = (int) $add['sid']; if (!$spid) { printerror('ErrorUrl', ''); } //验证 $spr = CheckSpInfoLevel($spid); if ($spr[sptype] == 1) { $log = EditSpInfo1($spid, $spr, $sid, $add); } elseif ($spr[sptype] == 2) { $log = EditSpInfo2($spid, $spr, $sid, $add); } elseif ($spr[sptype] == 3) { $log = EditSpInfo3($spid, $spr, $sid, $add); } else { printerror('ErrorUrl', ''); } //删除多余碎片信息 DelMoreSpInfo($spid, $spr); //更新附件 UpdateTheFileEditOther(7, $spid, 'other'); //操作日志 insert_dolog($log); printerror("EditSpInfoSuccess", "ListSpInfo.php?spid={$spid}" . hReturnEcmsHashStrHref2(0)); }