connect($host,$appName,$port,$data); //checking to see if the client has been kicked to stop refreshing the userslist /*$amIKicked =$client->checkIfKicked(); if($amIKicked == true){ header('Location: error.php?kickedStatus=true'); die(); }*/ $usersList = $client->getUsersList($_SESSION["roomId"]); //var_dump($usersList); //print_r($usersList); /*$theUsers = array(); foreach($usersList as $i){ array_push($theUsers, $i); }*/ $genders = simplexml_load_file('genders.xml'); //echo ''; } /*function getIp($proper_address){ if(count(explode(".",(string)$proper_address)) > 1){ return (string)$proper_address; } $output=""; if($proper_address && ($proper_address >=0 || $proper_address <= 4294967295)){ $output = floor($proper_address / pow( 256, 3 ) ) . '.' . floor( ( $proper_address % pow( 256, 3 ) ) / pow( 256, 2 ) ) . '.' . floor( ( ( $proper_address % pow( 256, 3 ) ) % pow( 256, 2 ) ) / pow( 256, 1 ) ) . '.' . floor( ( ( ( $proper_address % pow( 256, 3 ) ) % pow( 256, 2 ) ) % pow( 256, 1 ) ) / pow( 256, 0 ) ); } return $output; }*/ //$client->close(); ?>