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); } } AddMsg_Public("5\t{$uid}", $ChannelId); exit('1'); break; case 'addfriend': $uid = Char_Cv('uid'); $A = explode(',', API_LsFriend()); if (in_array($uid, $A)) { exit('-1'); } echo API_AddFriend($uid); break; }
?> ; var sec_list=<?php echo (int) ($setting['sec_list'] * 1000); ?> ; var sec_online=<?php echo (int) ($setting['sec_online'] * 1000); ?> ; var sec_msg=<?php echo (int) ($setting['sec_msg'] * 1000); ?> ; var Friends=",<?php echo API_LsFriend(); ?> ,"; var RevcBot=[<?php echo is_array($BotList[5]) ? "'" . implode("','", $BotList[5]) . "'" : ''; ?> ]; var robotCount=<?php echo is_array($BotList[3]) ? count($BotList[3]) : 0; ?> ; var TheKey=getcookie('sendkey'); <?php echo $JS; ?> </script>