" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); $strFunction = isset($_GET['function']) ? $_GET['function'] : (isset($_GET['action']) ? $_GET['action'] : null); $strDomainID = isset($_GET['domainID']) ? $_GET['domainID'] : null; $strInstanceID = isset($_GET['instanceID']) ? $_GET['instanceID'] : null; $strCallID = isset($_GET['callID']) ? $_GET['callID'] : null; if( $strFunction != null && $strDomainID != null ) { switch( $strFunction ) { case "getDomainPreferences": $bStartup = isset($_GET['startup']) ? $_GET['startup'] : null; $bStartup = $bStartup == "true" || $bStartup == "1"; echo( "" ); echo( "" ); echo( "5" ); echo( "true" ); echo( "" ); echo( "setBannedStatus,setBlockedStatus,setFriendStatus" ); echo( "60" ); echo( "-1" ); echo( "false" ); echo( "false" ); echo( "000000,ff0000,f0037f,4c004a,000275,26429b,00a0c6,005100,6dc000,ff3f00,ff8600,542c06,905b34,787878,7ea5ba" ); echo( "" ); /*echo( "" ); echo( "Ultra Angry" ); echo( "http://images.yourCompany.userplane.com/images/smiley/UltraAngry.jpg" ); echo( "" ); echo( ">:O]]>" ); echo( ">:-O]]>" ); echo( "" ); echo( "" ); echo( "" ); echo( "Angry" ); echo( "DELETE" ); echo( "" );*/ echo( "" ); echo( "" ); echo( "" ); echo( "false" ); echo( "5" ); echo( "5" ); echo( "10" ); echo( "" ); echo( "" ); echo( "Age" ); echo( "Location" ); echo( "User Name" ); echo( "" ); echo( "Waiting RoomThis is the lobby" ); echo( "" ); echo( "200" ); // Allowing multiple dock items could result in bandwidth overage fees. // Please contact a userplane representative for details on overage rates and billing questions. // http://www.userplane.com/contact.cfm echo( "2" ); echo( "500" ); echo( "true" ); echo( "600" ); echo( "30" ); echo( "true" ); echo( "" ); echo( "true" ); echo( "false" ); echo( "true" ); echo( "false" ); echo( "false" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "false" ); echo( "false" ); echo( "" ); echo( "http://images.clearplane.userplane.com/im/images/UserplaneLogo.jpg" ); echo( "" ); echo( "1" ); echo( "true" ); echo( "" ); echo( "" ); // Make as many as you want, these are chat rooms list the ones britton wants here echo( "Guys GeneralWhere the guys come to talk." ); echo( "Guys Steamyfor all the sexy dirty talk" ); echo( "" ); echo( "-1" ); echo( "false" ); echo( "[[NAME]] was banned]]>" ); echo( "-1" ); echo( "-1" ); echo( "Call the party line: " ); echo( "" ); echo( "" ); echo( "" ); echo( "true" ); echo( "true" ); // if report abuse button is on / off echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "Grunt" ); echo( "http://www.cockthevote.com/imgs/logo.jpg" ); echo( "" ); echo( "" ); echo( "Private" ); echo( "http://www.cockthevote.com/imgs/logo.jpg" ); echo( "" ); echo( "" ); echo( "Sargeant" ); echo( "http://www.cockthevote.com/imgs/logo.jpg" ); echo( "" ); echo( "" ); echo( "General" ); echo( "http://www.cockthevote.com/imgs/logo.jpg" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); break; case "getUser": $strSessionGUID = isset($_GET['sessionGUID']) ? $_GET['sessionGUID'] : null; $strKey = isset($_GET['key']) ? $_GET['key'] : null; //$strUserIDList = isset($_GET['userIDList']) ? $_GET['userIDList'] : null; $strApp = isset($_GET['app']) ? $_GET['app'] : null; $strUrl = isset($_GET['url']) ? $_GET['url'] : null; $strIpAddress = isset($_GET['ip']) ? $_GET['ip'] : null; if( $strSessionGUID != null) { $sessionGUIDsUserID = $strSessionGUID; $bSessionGUIDIsValidSession = true; //this fetchs the user data to populate the xml with @mysql_connect($host,$user,$pass) or die("Unable to connect to database"); @mysql_select_db($database) or die( "Unable to select database"); $userresult=mysql_query("SELECT * FROM $usertable WHERE name = '$strSessionGUID'") or die(mysql_error()); $user = mysql_fetch_array($userresult); if($user["category"]=="Staff") $isAdmin=true; else $isAdmin=false; if (!isset($id)) { $idresult=mysql_query("SELECT id FROM $imagetable WHERE name = '$strSessionGUID' && `default` = 'Y' && `status` = 'active' && priv != '1' LIMIT 1") or die(mysql_error()); $nopic = mysql_num_rows($idresult); if (!($nopic > 0)) { $idresult=mysql_query("SELECT id FROM $imagetable WHERE name = '$strSessionGUID' && `status` = 'active' && priv != '1' LIMIT 1") or die(mysql_error()); $nopic = mysql_num_rows($idresult); if ($nopic > 0) $id=mysql_result($idresult,0,"id"); } else { $id=mysql_result($idresult,0,"id"); } } else { $nopic = 1; } if ($nopic > 0 ) { $imageresult=mysql_query("SELECT * FROM $imagetable WHERE id = '$id'") or die(mysql_error()); $url=mysql_result($imageresult,0,"url"); } else {$url ="nopic.gif";} echo( "" ); echo( "" ); // If the currentUserID is one we authenticated above, return the sessionGUID too so we can accept/reject the connection echo( "" . $strSessionGUID . "" ); echo( "" . $sessionGUIDsUserID . "" ); echo( "" ); if($isAdmin) echo( "true" ); else echo( "false" ); echo( "false" ); if($user["info1"]!="") echo( "" . $user["info1"] . "" ); else echo( "". $strSessionGUID . "" ); echo( "address@hidden" ); echo( "false" ); echo( "" ); echo( "true" ); echo( "" ); echo( "true" ); echo( "true" ); echo( "true" ); echo( "true" ); echo( "true" ); echo( "44" ); // acceptable values: 10,16,22,44,88 echo( "200" ); // recommended range: 10 - 200 echo( "14" ); // acceptable range: 1 - 30 echo( "3" ); // acceptable values: 1, 2, 3 echo( "2" ); echo( "" ); echo( "" );//implement buddy list here /*echo( "" ); echo( "britton" ); echo( "Britton" ); echo( "" ); echo( "http://www.cockthevote.com/imgs/redstar.gif" ); echo( "http://www.cockthevote.com/pics/img49338b04e1577SM.jpg" ); echo( "http://www.cockthevote.com/pics/img49338b04e1577.jpg" ); echo( "" ); echo( "" );*/ echo( "" ); echo( "" ); /* implement block lists here echo( "45" ); echo( "21" );*/ echo( "" ); /*edit this*/ echo( "" ); echo( "http://www.cockthevote.com/imgs/redstar.gif" ); echo( "http://www.cockthevote.com/pics/".str_replace(".","SM.",$url)."" ); echo( "http://www.cockthevote.com/pics/".$url."" ); echo( "" ); echo( "" ); echo( "" ); /*look over this once finished*/ echo( "" ); echo( "". $user["age"] . "" ); if ($user["info12"]!="") echo( "" . $user["info12"] . ", " . $user["info13"] . "" ); else echo( "" . $user["info13"] . "" ); echo( "$strSessionGUID"); echo( "" ); echo( "" ); echo( "true" ); echo( "false" ); echo( "" ); echo( "false" ); echo( "false" ); if ($isAdmin) { echo( "true" ); echo( "" ); echo( "Admin RoomOnly Site admins can get into this room" ); echo( "" ); echo( "" ); echo( "" ); } if (!$isAdmin) { echo( "false" ); echo( "" ); echo( "" ); echo( "" ); echo( "Admin RoomOnly Site admins can get into this room" ); echo( "" ); } echo( "Guys General" ); echo( "2" ); echo( "true" ); echo( "-1" ); echo( "Your session has expired." ); echo( "" . $sessionGUIDsUserID . "" ); echo( "-1" ); echo( "You were timed out due to inactivity." ); echo( "true" ); echo( "" ); echo( "How long would you like to ban this user?" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "" ); echo( "miniprofile,onlineusers,buddylist" ); echo( "false" ); echo( "false" ); echo( "false" ); echo( "true" ); echo( "true" ); echo( "" ); echo( "false" ); echo( "" ); echo( "" ); echo( "false" ); echo( "true" ); echo( "true" ); echo( "false" ); echo( "false" ); echo( "" ); echo( "" ); echo( "" ); echo( "true" ); echo( "true" ); echo( "true" ); // rate buttons on / off echo( "true" ); // embed button on / off echo( "true" ); // branch button on / off echo( "true" ); // search tab on / off echo( "true" ); // watched threads tab and watch button on / off echo( "true" ); // help button on / off echo( "true" ); // link buttons on / off echo( "true" ); echo( "5" ); // number of posts to show in the modules on the home state echo( "5" ); // number of threads to show in the modules on the home state echo( "Welcome to Boards!" ); echo( "" ); echo( "29" ); echo( "M" ); echo( "Santa Monica" ); echo( "" ); echo( "" ); echo( "false" ); echo( "" ); echo( "2342" ); echo( "765" ); echo( "" ); echo( "" ); echo( "323" ); echo( "2451" ); echo( "" ); echo( "" ); echo( "5665" ); echo( "765" ); echo( "54543" ); echo( "" ); echo( "" ); echo( "-1" ); echo( "Your session has expired." ); echo( "2" ); echo( "You were timed out due to inactivity." ); echo( "" ); echo( "" ); echo( "" ); } // } // } break; case "onRoomStatusChange": $strRoomName = isset($_GET['roomName']) ? $_GET['roomName'] : null; $strUserID = isset($_GET['userID']) ? $_GET['userID'] : null; $bAdmin = isset($_GET['admin']) ? $_GET['admin'] : null; $bAdmin = $bAdmin == "true" || $bAdmin == "1"; $bExists = isset($_GET['exists']) ? $_GET['exists'] : null; $bExists = $bExists == "true" || $bExists == "1"; // This function is not on by default, use allowCalls in getDomainPreferences to turn it on if( $strRoomName != null && $strUserID != null ) { // bExists is the true or false boolean that specifies whether the room exists or not // bAdmin is also available (see docs) if( $bExists ) { } else { } // Handle this event, no need to return anything else } break; case "onUserConnectionChange": $strUserID = isset($_GET['userID']) ? $_GET['userID'] : null; $bConnected = isset($_GET['connected']) ? $_GET['connected'] : null; $bConnected = $bConnected == "true" || $bConnected == "1"; // This function is not on by default, use allowCalls in getDomainPreferences to turn it on if( $strUserID != null ) { // $bConnected is whether they are currently connected if( $bConnected ) { } else { } // Handle this event, no need to return anything else } break; case "onUserRoomChange": $strUserID = isset($_GET['userID']) ? $_GET['userID'] : null; $strRoomName = isset($_GET['roomName']) ? $_GET['roomName'] : null; $bInRoom = isset($_GET['inRoom']) ? $_GET['inRoom'] : null; $bInRoom = $bInRoom == "true" || $bInRoom == "1"; // This function is not on by default, use allowCalls in getDomainPreferences to turn it on if( $strRoomName != null && $strUserID != null ) { // bInRoom is the true or false boolean that specifies whether they are in the room if( $bInRoom ) { } else { } // Handle this event, no need to return anything else } break; case "onLastUserDisconnect": // This function is not on by default, use allowCalls in getDomainPreferences to turn it on // Handle this event, no need to return anything else break; case "setBannedStatus": $strUserID = isset($_GET['userID']) ? $_GET['userID'] : null; $bBanned = isset($_GET['banned']) ? $_GET['banned'] : null; $bBanned = $bBanned == "true" || $bBanned == "1"; $strInfo = isset($_GET['info']) ? $_GET['info'] : null; if( $strUserID != null ) { // bBanned is true or false whether userID has been banned by an admin if( $bBanned ) { if( $strInfo != null && $strInfo != "" ) { //if you're using a banOptions list (see getDomainPreferences), strInfo will contain the text of the " ); ?>