function parselinkdata($linkdata) { $info = array(); for ($i = 0; $i < $linkdata['count']; $i++) { $detail = getdetail($linkdata['data'][$i][1]); $typeid = explode('-', rtrim($linkdata['data'][$i][1], '.html')); $typeid = $typeid[2]; $info[$i]['area'] = $detail['PROVINCE'] . $detail['CITY']; $info[$i]['typeid'] = $typeid; $info[$i]['type'] = $detail['SIGNALTYPE'] . $detail['SIGNALLEVEL']; $info[$i]['time'] = strtotime($detail['ISSUETIME']); $info[$i]['content'] = $detail['ISSUECONTENT']; $info[$i]['picurl'] = getpicurl($typeid); // $info[$i]['measures'] = getmeasures($typeid); } return $info; }
showmessage('no_privilege'); //吧主/副吧主 } } //栏目 $field = $_SGLOBAL['profield'][$mtag['fieldid']]; //提交处理 if (submitcheck('basesubmit')) { $setarr = array(); if ($mtag['grade'] == 9) { //群主 $setarr['joinperm'] = $field['manualmember'] ? intval($_POST['joinperm']) : 0; $setarr['viewperm'] = intval($_POST['viewperm']); $setarr['closeapply'] = intval($_POST['closeapply']); } $setarr['pic'] = getpicurl($_POST['pic'], 150); $setarr['announcement'] = getstr($_POST['announcement'], 200, 1, 1, 1, 1); updatetable('mtag', $setarr, array('tagid' => $tagid)); showmessage('do_success', "cp.php?ac=mtag&op=manage&tagid={$tagid}&subop={$_GET['subop']}"); } elseif (submitcheck('memberssubmit')) { //人员管理 mtag_managemember($mtag, $_POST['ids'], $_POST['newgrade']); showmessage('do_success', "cp.php?ac=mtag&op=manage&tagid={$tagid}&subop={$_GET['subop']}&grade={$_GET['grade']}"); } elseif (submitcheck('invitesubmit')) { //邀请 $ids = empty($_POST['ids']) ? array() : $_POST['ids']; $inserts = array(); if ($ids) { $haves = array(); $query = $_SGLOBAL['db']->query("SELECT uid FROM " . tname('tagspace') . " WHERE tagid='{$mtag['tagid']}' AND uid IN (" . simplode($ids) . ")"); while ($value = $_SGLOBAL['db']->fetch_array($query)) {
//通知 $note = cplang('note_thread_reply') . " <a href=\"space.php?uid={$thread['uid']}&do=thread&id={$thread['tid']}&pid={$pid}\" target=\"_blank\">{$thread['subject']}</a>"; notification_add($thread['uid'], 'post', $note); } elseif ($post) { $note = cplang('note_post_reply', array("space.php?uid={$thread['uid']}&do=thread&id={$thread['tid']}", $thread['subject'], "space.php?uid={$thread['uid']}&do=thread&id={$thread['tid']}&pid={$pid}")); notification_add($post['uid'], 'post', $note); } //跳转 showmessage('do_success', "space.php?uid={$_SGLOBAL['supe_uid']}&do=thread&id={$tid}&pid={$pid}", 0); } elseif (submitcheck('posteditsubmit')) { $pid = empty($_POST['pid']) ? 0 : intval($_POST['pid']); $message = $_POST['message']; //处理网络图片 if (!empty($_POST['pics'])) { foreach ($_POST['pics'] as $key => $pic) { $picurl = getpicurl($pic); if (!empty($picurl)) { $message .= "\n[img]" . $picurl . "[/img]"; } } } $message = getstr($message, 0, 1, 1, 1, 2); if (strlen($message) < 2) { showmessage('content_is_too_short'); } //开启编辑记录 if (checkperm('edittrail')) { $message = $message . saddslashes(cplang('thread_edit_trail', array($_SGLOBAL['supe_username'], sgmdate('Y-m-d H:i:s')))); } //内容 updatetable('post', array('message' => $message), array('pid' => $pid, 'uid' => $_SGLOBAL['supe_uid']));