Location: PHPKode > projects > Advanced Reporting Portal > xtopmateur.php
<?
require "./connect.inc.php";

$sql_101="SELECT ip from ae_ban";
$sql_h_101 = mysql_query($sql_101) or die ("Could not execute request ! err code : $sql_101");
while(list($t_ip) = mysql_fetch_row($sql_h_101)) {
if ($t_ip==$_SERVER['REMOTE_ADDR']) {die ("You are not welcome anymore !");}
}

$id=$_GET['id'];

print <<<EOT
<HTML>
<HEAD>
<link rel="stylesheet" href="./style.css" type="text/css">
<SCRIPT language="JavaScript">
aerialstart=0;


function msgclick(val) {
window.parent.window.frames[1].document.BOT.MSG_TMP.focus();
window.parent.window.frames[1].document.BOT.MSG_TMP.value="&msg "+val+" ";
}




function timeclick(val) {
timeinfo_1=document.getElementById('time['+val+']').innerHTML;
userinfo_1=document.getElementById('user['+val+']').innerHTML;
msginfo_1=document.getElementById('ms['+val+']').innerHTML;
window.parent.window.frames[1].document.BOT.MSG_TMP.focus();
window.parent.window.frames[1].document.BOT.MSG_TMP.value="&quote"+timeinfo_1+" "+userinfo_1+"> "+"&middle_quote"+msginfo_1+"&end_quote ";
}




function userclick2(val) {
window.parent.window.frames[1].document.BOT.MSG_TMP.focus();
window.parent.window.frames[1].document.BOT.MSG_TMP.value=val+"> ";
}




function eq(valeur) {
if (valeur) {


  for (i = 15; i > 0; i--)
 {
  for (j = 15; j > 0; j--)
 {
  top.moveBy(0,i);
  top.moveBy(i,0);
  top.moveBy(0,-i);
  top.moveBy(-i,0);
  }
  }


}
}




function TraiteReponse(nom,valeur){
         if (valeur) {
                  document.getElementById(nom).innerHTML=valeur;
                  }
        }


function TraiteSon(valeur){
         if (valeur) {
         valeur='<EMBED SRC=./sound/'+valeur+' AUTOSTART=true HIDDEN=true VOLUME=100%>';
                  document.getElementById('son').innerHTML=valeur;
                  }
        }

function TraiteFilter(xfilter){
if (document.body.style.filter!=xfilter) {
             document.body.style.filter=xfilter;
             }
         }




function TraiteBoard(msg_time,userinfo,msg,display,msg_color,msg_id){
         chainex=msg.substr(0,8);testx=0;
         if (chainex=="<B>Gomme") {
             for (var i=35;i>0;i=i-1){
                  document.getElementById('user['+i+']').innerHTML="";
                  document.getElementById('time['+i+']').innerHTML="";
                  document.getElementById('ms['+i+']').innerHTML="";
                  }
             }
         gruk=0;
         for (var i=10;i>0;i=i-1){
           userinfo_1=document.getElementById('user['+i+']').innerHTML;
           timeinfo_1=document.getElementById('time['+i+']').innerHTML;
           if ((userinfo_1==userinfo) && (timeinfo_1==msg_time)) {gruk=1;}
         }


         if (gruk!=1) {
         for (var i=display;i>1;i=i-1){
              document.getElementById('time['+i+']').innerHTML=document.getElementById('time['+(i-1)+']').innerHTML;
              document.getElementById('user['+i+']').innerHTML=document.getElementById('user['+(i-1)+']').innerHTML;
              document.getElementById('ms['+i+']').innerHTML=document.getElementById('ms['+(i-1)+']').innerHTML;
              }
         document.getElementById('time[1]').innerHTML=msg_time;
         document.getElementById('user[1]').innerHTML=userinfo;
         document.getElementById('ms[1]').innerHTML="<FONT color=#"+msg_color+">"+msg+"</FONT>";
         }
}




function TraiteNews(valeur,valeur2){
if (valeur) {
document.getElementById('connerie').innerHTML="<APPLET code=Scroll.class width=550 height=12 archive=./pouetpouet.jar><PARAM name=text value='"+valeur+"'><PARAM name=textcolor value=FFFFFF><PARAM name=bgcolor value=006699><PARAM name=vitesse value="+valeur2+"><PARAM name=fontsize value=10><PARAM name=fontname value=Verdana></APPLET>";
}
}




function TraiteMessage(nom,valeur){
         if (valeur) {
                        document.getElementById('warning').innerHTML="";
                        document.getElementById(nom).innerHTML=valeur;
                        if (valeur!=' ') {
                                document.getElementById('warning').innerHTML="Vous avez un nouveau message !";
                                window.alert("Vous avez un message !");
                                }
                  } else {
                        document.getElementById('warning').innerHTML="";
                        }
        }












function fin() {
        window.clearTimeout(actif);
        RemoteScripting.location="./kernel.php?id=$id";
        }




function raf() {
             valeur=7;
             		if (aerialstart==0) {aerialstart=1;valeur=0;}
             actif=window.setTimeout("fin()",valeur*1000);
        }




</SCRIPT>
</HEAD>


<IFRAME name="RemoteScripting" width="0" height="0" border="0" src="blank.html" onLoad=raf();>
</IFRAME>


<SCRIPT>
onLoad=rafload();
function rafload() {
         actif=window.setTimeout("fin()",0);
         fin();
        }
</SCRIPT>


<style type="text/css">
body, textarea {
  background-color:#006699;
  font-family:"Andale Mono",Arial,sans-serif;
  scrollbar-3dlight-color:#0099CC;
  scrollbar-arrow-color:#FFFF00;
  scrollbar-darkshadow-color:#003366;
  scrollbar-face-color:#0099FF;
  scrollbar-highlight-color:#006699;
  scrollbar-shadow-color:#000033;
  scrollbar-track-color:#0099CC;
}
</style>




<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="menublanc2" style="background-image:url(./images/usa6.jpg);background-attachment:fixed;background-position:center;z-index:1;">




<TABLE COLS=2 WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD class="menutitre" WIDTH=550 VALIGN=TOP>
<FONT COLOR=#FFCC99><b><div id="title" style="position:absolute;top:1;left=5;visibility:show; font-size:12pt;filter:Glow(color=#000000, strength=5);">[Loading Please Wait ...]</div></b></FONT>
</TD>


<TD class="menublanc2" WIDTH=170>
<FONT COLOR=#FF9900><A HREF = "./xindex.php?id=$id&FROM=disconnect" target="_top" class=blanc style="width:80%; font-size:10pt;filter:Glow(color=#000000, strength=2);"><FONT COLOR=#FF9900>&nbsp;Logout</FONT></A></FONT>
</TD>
</TR>


<TR>
<TD>
<TABLE BGCOLOR=#C0C0C0 style="width:550;font-size:10pt;">
<TR>
<TD>
<DIV id=warning class=menurouge>.</DIV>
<DIV id=message class=menunoir>[msg]</DIV>
</TD>
</TR>
</TABLE>
</TD>


<TD>

<div id="channel" class=menublanc2 style="width:80%; font-size:10pt;filter:Glow(color=#000000, strength=2);">Channel: la_plage</div>
</TD>
</TR>


<TR>
<TD WIDTH=550 valign=top style="width:550;font-size:10pt;z-index:0;">
<DIV id=connerie>Aerial Chat News</DIV>
<TABLE BGCOLOR=#FFFFFF style="width:550;font-size:10pt;">
<TR>


<TD>
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR><TD WIDTH=65></TD><TD WIDTH=80></TD><TD WIDTH=405></TD></TR>
EOT;
for ($i = 1; $i <= 35; $i++) { print <<<EOT
<TR>
<TD><div onClick=timeclick($i) class=menutime id=time[$i] style="font-size:10pt;"></div></TD>
<TD><div class=menulogin id=user[$i] style="font-size:10pt;"></div></TD>
<TD><div class=menutime id=ms[$i] style="font-size:10pt;"></div></TD>
</TR>
EOT;
}


print <<<EOT
</TABLE>
</TD>
</TR>
</TABLE>
</TD>


<TD VALIGN=TOP class="menublanc2">
<TABLE BORDER=0 VALIGN=TOP>
<TR><TD><A style="width:80%; font-size:10pt;filter:Glow(color=#000000, strength=2);"HREF="./kernel.php?id=$id" target=RemoteScripting class=blanc onClick="window.open('./doc.en.html','help_f')">
Documentation
</A></TD></TR>
<TR><TD><A style="width:80%; font-size:10pt;filter:Glow(color=#000000, strength=2);" HREF="./kernel.php?id=$id" target=RemoteScripting class=blanc onClick="window.open('./help_smiley.php','help_s')">
Smileys
</A></TD></TR>
<TR><TD><A style="width:80%; font-size:10pt;filter:Glow(color=#000000, strength=2);"HREF="./kernel.php?id=$id" target=RemoteScripting class=blanc onClick="window.open('./user_list.php?id=$id','user_list','toolbar=0,location=0,directories=0,status=0,scrollbars=1, resizable=0,copyhistory=0,menuBar=0,width=800,height=600')">
Users
</A></TD></TR>






<TR>
<TD>
<div id="cx" style="width:100%; font-size:7pt;filter:Glow(color=#000000, strength=1);"></div><br>
</TD>
</TR>
<TR>
<TD>
<div id="connexions" class=menujaune style="width:100%; font-size:10pt;filter:Glow(color=#000000, strength=2);">[Users]</div>
</TD>
</TR>
<TR>
<TD>
<div id="son" class=menujaune style="width:100%; font-size:10pt;filter:Glow(color=#000000, strength=2);"></div>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
EOT;
?>
Return current item: Advanced Reporting Portal