require "../gestion/fonctions.php"; dbconnect(); while (list($key, $val) = each($HTTP_POST_VARS)) { $message .= "$key : $val\n"; } //mail("gabole-83@hotmail.fr","test",$message,"From:contact@vdicenter.com"); //echo $roomID; $infos=explode("-",$roomID); $roomID2 = $infos[0]; $sponsor_id = $infos[1]; $client_id = $infos[2]; if($roomID2==1) { header("location:http://visio.weesoo.com/1-$sponsor_id-$client_id"); exit(); } //INFOS ROOM $query2 = mysql_query("SELECT * FROM listing_reunions WHERE id='$roomID2'"); if($a = mysql_fetch_array($query2)) { $http_server = $a['http_server']; $adherentID="".$a['adherent_id'].""; $bgColor="".$a['bgcolor'].""; $roomVersion="".$a['roomVersion'].""; $backgroundImage = "".$a['backgroundImage'].""; $url = "".$a['url'].""; if($url=="http://www.weesoo.com/net/capture_conf.php") { $url.="?adherent_id=$sponsor_id"; } elseif($url=="") { $url = "../blank.html"; } } if($http_server=="visio-2") { header("location:https://visio-2.weesoo.com/$roomID2-$sponsor_id-$client_id"); exit(); } if($roomVersion=="new") { header("location:http://www.weesoo.com/visiohtml5/$roomID2-$sponsor_id-$client_id"); exit(); } if($roomVersion=="v4") { header("location:https://visio-2.weesoo.com/$roomID2-$sponsor_id-$client_id"); exit(); } setcookie("vdicenter_par",$sponsor_id,time()+2592000); if($roomPwd=="undefined") { $roomPwd=""; } $a=date("Y"); $m=date("m"); $j=date("d"); $h=date("H"); $mm=date("i"); $s=date("s"); $datex = mktime($h,$mm,$s,$m,$j,$a); $datex-=210; $dateT = date("Y-m-d H:i:s",$datex); $now = date("Y-m-d H:i:s"); //STATS $date = date("Y-m-d"); $ip = $_SERVER['REMOTE_ADDR']; $referer = $_SERVER['HTTP_REFERER']; $query=mysql_query("INSERT INTO stats_reunions (date,room_id,sponsor_id,heure_arrivee,ip,client_id) VALUES ('$dateT','$roomID2','$sponsor_id','$dateT','$ip','$client_id')"); if($client_id!="") { $query2 = mysql_query("SELECT * FROM listing_prospects WHERE id='$client_id'"); if($a = mysql_fetch_array($query2)) { $theSponsor = "".$a['adherent_id'].""; } $query=mysql_query("INSERT INTO stats_sponso_conf (date,room_id,adherent_id,prospect_id,referer) VALUES ('$now','$roomID2','$theSponsor','$client_id','$referer')"); } // $isAdmin=$_POST["isAdmin"]; $queryAdh = mysql_query("SELECT * FROM adherents WHERE id='$adherentID' AND valid='1'"); $nbAdh = mysql_num_rows($queryAdh); if($nbAdh==0) { //break; echo utf8_decode("desole, cette salle n'est pas accessible"); exit(); } ?>
if($isAdmin=="ok") { ?>