echo "Friends: " . $items['friends_count'] . "<br />"; echo "Listed: " . $items['listed_count'] . "<br />"; echo "<br>"; } } switch ($_POST[action]) { case "get_user_timeline": get_user_timelines($settings, $_POST[user_id1], $_POST[screen_name1], $_POST[count1]); break; case "get_user_lookup": get_user_lookup($settings, $_POST[user_id2]); break; case "get_status_lookup": get_statuses_lookup($settings, $_POST[id3]); break; case "get_search_tweet": search_tweet($settings, $_POST[q4]); break; case "get_friend_list": get_friend_list($settings, $_POST[id5]); break; case "get_statuses_retweets": get_statuses_retweet($settings, $_POST[id7], $_POST[count7]); break; case "show_ids": show_status_id($settings, $id = "647290776779538432"); break; case "follower_id": get_follower_id($settings, $_POST[user_id10]); break; }
$messages = array(); $buddyList = array(); $time = time(); if (var_check('popout')) { $popout = true; } else { $popout = false; } // ###################### START BUDDY LIST RECEIVE ####################### if (logged_in($userid)) { // Refresh the user's session updateUserSession(); if ($disable_buddy_list == 1 or check_if_guest($userid) or NO_FREIND_SYSTEM == 1 or $is_admin == 1 and $admin_chat_all == 1) { $sql = get_online_list($userid, $time); } else { $sql = get_friend_list($userid, $time); } $result = $db->execute($sql); while ($chat = $db->fetch_array($result)) { if ($chat['userid'] != $userid) { if ($time - $chat['lastactivity'] < $online_timeout and $chat['status'] != 'invisible' and $chat['status'] != 'offline') { if ($chat['status'] != 'busy' and $chat['status'] != 'away') { $chat['status'] = 'available'; } } else { if ($chat['status'] == 'invisible') { if ($is_admin == 1) { $chat['status'] = 'available'; } } else { $chat['status'] = 'offline';
$test_userid_img = "checked"; } else { $test_userid = 'The User ID is not set. ArrowChat is acting as if no one is logged in which may or may not show the bar depending on your settings. <a href="javascript:;" class="vtip" title="<b>What this means</b><br />Depending on your ArrowChat admin settings, this may mean several things. If guests are allowed to chat, the full bar will be displayed. If the option to show a message was chosen, then guests will see a message to login. If neither of those is true, ArrowChat will not be displayed.<br /><br /><b>How to fix this</b><br />You can fix the User ID if there is a problem in the /arrowchat/includes/integration.php file. The get_user_id() function must return the logged in user\'s ID.">More Information →</a>'; $test_userid_img = "unchecked"; } // Check if the buddy list is functioning if ($disable_buddy_list == 1) { if (!logged_in($userid)) { $userid = 0; } $sql = get_online_list($userid, time()); } else { if (!logged_in($userid)) { $userid = 0; } $sql = get_friend_list($userid, time()); } $result = $db->execute($sql); if ($result) { $test_buddylist = ""; $test_buddylist_img = "checked"; } else { $test_buddylist = 'The buddy list has an error in the MySQL. Here is the error that MySQL is returning:' . $db->display_errors() . '<a href="javascript:;" class="vtip" title="<b>What this means</b><br />The buddy list cannot be loaded properly. You are most likely seeing an error when clicking on the chat tab.<br /><br /><b>How to fix this</b><br />You can fix the buddy list if there is a problem in the /arrowchat/includes/integration.php file. The get_friend_list() function is used for sites with a friends list. The get_online_list() function is used for sites that want to display all online users.">More Information →</a>'; $test_buddylist_img = "unchecked"; } // Check if the user's ID or IP address is banned if (!in_array($_SERVER['REMOTE_ADDR'], $banlist) or !in_array($userid, $banlist)) { $test_banned = ""; $test_banned_img = "checked"; } else { $test_banned = 'Your user ID or IP address is currently banned. You can change this in the ArrowChat admin panel.';