<?php include_once "check.php"; $client = intval(Char_Cv('client', 'get')); Links(); $from = Char_Cv('from', 'get'); $uid = Char_Cv('uid', 'get'); if (substr($userid, 0, 1) == '_') { $user = array('username' => $guestname, 'face' => 'images/guest.gif'); } else { $user = API_Info($userid); } if (substr($uid, 0, 1) == '_') { $touser = array('uid' => $uid, 'username' => $guestname, 'face' => 'images/guest.gif'); } else { $touser = API_Info($uid); } //print_r($touser); if (!$touser) { exit('<script>alert("此用户不存在");window.parent.FrameClose("' . $_GET["onezid"] . '")</script>'); } @(include_once 'plugins/toolbar.php'); if (is_array($ONLOAD)) { $ONLOAD = implode("\n", $ONLOAD); } if (is_array($SWFLOAD)) { $SWFLOAD = implode(";", $SWFLOAD); } if (is_array($closeobj)) { $closeobj = implode(";", $closeobj); }
} if ($uid == $userid) { exit('-2'); } $user = API_Info($userid); mkdirs(ONEZ_ROOT . './onezdata/limit'); @touch(ONEZ_ROOT . './onezdata/limit/' . $uid . '.txt'); AddMsg_User($uid, "\n3\t�ܱ�Ǹ�����ѱ�ϵͳ����Ա�Ƴ���Ⱥ��30�����ڲ������ٴν���\tlogout"); exit('1'); break; case 'addmaster': if (!$ChannelId) { exit('Channel Error!'); } $uid = Char_Cv('uid'); $user = API_Info($userid); if ($Channel['username'] != $username) { exit('-1'); } if (!$db) { include_once ONEZ_ROOT . './include/db_mysql.class.php'; db_local(); $db = new onez_db(); $masters = explode(',', $Channel['masters']); if (!in_array($username, $masters)) { $masters[] = $username; $masters = implode(',', $masters); $db->update("channel", array('masters' => $masters), "id='{$ChannelId}'"); Channel($ChannelId, 1); } }