file->body->{'trans-unit'}; echo' AVChat

'.(string)$theUnits[236]->source.'

'; //setting the cookie if(empty($_COOKIE["userId"])){ setcookie("userId", "u".rand(10000,999999)); } if(isset($avconfig['showLoginError']) && $avconfig['showLoginError'] == 1){ $disableLogin =""; $disableRegister =""; if(isset($avconfig['loginPageURL']) && isset($avconfig['registerPageURL'])){ echo '
'.(string)$theUnits[219]->source.'
'.(string)$theUnits[220]->source.'
'; if($avconfig['registerPageURL'] ==""){ echo ''.(string)$theUnits[221]->source.'

'; }else{ echo ''.(string)$theUnits[221]->source.'

'; } echo' '.(string)$theUnits[222]->source.'
'.(string)$theUnits[223]->source.'
'; if($avconfig['loginPageURL'] ==""){ echo ''.(string)$theUnits[224]->source.'

'; }else{ echo ''.(string)$theUnits[224]->source.'

'; } echo '
'; return; } } //loading the genders $genders = simplexml_load_file('genders.xml'); $_username=""; $_gender=""; $disabled = ""; if(isset($avconfig['username']) && $avconfig['username'] != ''){ $_username = $avconfig['username']; } if(isset($_SESSION["username"]) && $avconfig['username'] == ''){ $_username = $_SESSION["username"]; } if(isset($avconfig['gender']) && $avconfig['gender'] != ''){ $_gender = $avconfig['gender']; } if(isset($avconfig['changegender']) && $avconfig['changegender'] == 0){ $disabled = "disabled"; } if( $avconfig['changegender'] == 0 && $avconfig['changeuser'] == 0 && !empty($avconfig['username'])){ $_POST['username'] = $avconfig['username']; $_POST['gender'] = $avconfig['gender']; header("Location: getRooms.php"); } if(isset($avconfig['connectionstring']) && $avconfig['connectionstring'] != ''){ echo'

'; if(isset($avconfig['changeuser']) && $avconfig['changeuser'] == 0){ echo ''; echo ''; }else{ echo ''; } echo '
'.(string)$theUnits[237]->source.'
'; for($i=1; $igender[$i]['adminOnly'] == "false"){ if($_gender != "" && $genders->gender[$i]['id'] == $_gender){ echo ' '; echo ''; }else{ echo ' '; echo ''; } } } echo '
'; }else{ echo '
The connection string is empty

'; } if(isset($avconfig['dropInRoom']) && $avconfig['dropInRoom'] != ''){ $_SESSION["dropInRoom"] = $avconfig['dropInRoom']; $_SESSION["firstTimeConnected"] = true; } if(isset($avconfig['typingEnabled'])){ $_SESSION["typingEnabled"] = $avconfig['typingEnabled']; } if(isset($avconfig['disconnectButtonLink']) && $avconfig['disconnectButtonLink'] != ''){ $_SESSION["disconnectButtonLink"] = $avconfig['disconnectButtonLink']; }else{ $_SESSION["disconnectButtonLink"] = "m.php"; } if(isset($avconfig['emoticonsurl']) && $avconfig['emoticonsurl'] != ''){ $_SESSION["emoticonsurl"] = $avconfig['emoticonsurl']; }else{ $_SESSION["emoticonsurl"] = "emoticons/squarePack/emoticons.xml"; } if(isset($avconfig['autoAddIpToUsername'])){ $_SESSION["autoAddIpToUsername"] = $avconfig['autoAddIpToUsername']; } if(isset($avconfig['thumbnailUrl']) && $avconfig['thumbnailUrl'] != ''){ $_SESSION["thumbnailUrl"] = $avconfig['thumbnailUrl']; }else{ $_SESSION["thumbnailUrl"]=""; } if(isset($avconfig['profileUrl']) && $avconfig['profileUrl'] != ''){ $_SESSION["profileUrl"] = $avconfig['profileUrl']; }else{ $_SESSION["profileUrl"]=""; } if(isset($avconfig['profileCountryFlag']) && $avconfig['profileCountryFlag'] != ''){ $_SESSION["profileCountryFlag"] = $avconfig['profileCountryFlag']; }else{ $_SESSION["profileCountryFlag"]=""; } if(isset($avconfig['clientUniqueIdentifier']) && $avconfig['clientUniqueIdentifier'] != ''){ $_SESSION["clientUniqueIdentifier"] = $avconfig['clientUniqueIdentifier']; }else{ $_SESSION["clientUniqueIdentifier"]=""; } //adding translations to the session variables for the other pages $_SESSION["AVC_welcomeMessage"] = (string)$theUnits[235]->source; $_SESSION["AVC_btnloginArea"] = (string)$theUnits[238]->source; $_SESSION["AVC_welcomeUser"] = (string)$theUnits[239]->source; $_SESSION["AVC_inRoom"] = (string)$theUnits[240]->source; $_SESSION["AVC_owner"] = (string)$theUnits[241]->source; $_SESSION["AVC_isPrivate"] = (string)$theUnits[242]->source; $_SESSION["AVC_isPrivateYes"] = (string)$theUnits[48]->source; $_SESSION["AVC_isPrivateNo"] = (string)$theUnits[49]->source; $_SESSION["AVC_roomUsers"] = (string)$theUnits[51]->source; $_SESSION["AVC_btnRooms"] = (string)$theUnits[18]->source; $_SESSION["AVC_welcomeToRoom"] = (string)$theUnits[246]->source; $_SESSION["AVC_btnLeaveChat"] = (string)$theUnits[17]->source; $_SESSION["AVC_clickToType"] = (string)$theUnits[245]->source; $_SESSION["AVC_btnSend"] = (string)$theUnits[137]->source; $_SESSION["AVC_btnUsers"] = (string)$theUnits[243]->source; $_SESSION["AVC_usersInRoom"] = (string)$theUnits[244]->source; //loading the emoticons $emotes = simplexml_load_file($_SESSION["emoticonsurl"]); $emoticonsArray = array(); foreach($emotes as $e){ //echo $e["text"]." -> ".$e["url"]."
"; $emoticonsArray[(string)$e["text"]] = (string)$e["url"]; } $_SESSION["AVC_emoteIcons"] = $emoticonsArray; /*foreach($_SESSION["AVC_emoteIcons"] as $key => $value){ echo $value; }*/ ?>

AVChat