<?php
error_reporting(0);
session_start();
$id=session_id();
if($_GET['admin']=='foutre')
$_SESSION['admin']=1;
if($_GET['admin']=='non')
$_SESSION['admin']=0;

require ('sistite/connexion.php');

if($_GET['serche'])
$_SESSION['serche']=$_GET['serche'];
else
$_SESSION['serche']='';


if($_GET['mode'])
$_SESSION['mode']=$_GET['mode'];


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
		<link rel="stylesheet" type="text/css" href="elyts/fute.css" />
<title>5TFU !</title>
 
<script type="text/javascript">

function doPassVar(args){
   var sendText = args.value;
  // var signal = signal.value;
   window.document.myFlash.SetVariable("music", sendText);
  window.document.myFlash.SetVariable("actual", "0");

}

var secs
var timerID = null
var timerRunning = false
var delay = 1000
var flan

function InitializeTimer()
{
    // Set the length of the timer, in seconds
	document.getElementById('button4').disabled=false;
		document.getElementById('button4').src="nuk/5TFU.png";
    secs = 0;
	flan = 2500000000;
    StopTheClock()
    StartTheTimer()
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function StartTheTimer()
{
    if (secs==flan)
    {
        StopTheClock()
        // Here's where you put something useful that's
        // supposed to happen after the allotted time.
        // For example, you could display a message:
        
		document.getElementById('button4').disabled=true;
		document.getElementById('button4').src="nuk/5TFUNA.png";
		document.getElementById('Clock').value='5tfu time over';
    }
    else
    {
		// document.getElementById('Clock').value=secs;
        self.status = secs
        secs = secs + 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
}
	

var xmlhttps= new Array();
function loadXMLdoc(url, id, attente) {
		
		
		document.getElementById('Clock').value='';
	// var url= urli + "?v=" + v + "&ids=" + ids;
// alert(url);
 var i= xmlhttps.length;
 if(attente != null) {
  document.getElementById(id).innerHTML= attente;
 }
 if(window.XMLHttpRequest) {/*Mozilla*/
  xmlhttps[i]= new XMLHttpRequest();
  xmlhttps[i].onreadystatechange= function() { xmlhttpChange(i, url, id); };
  xmlhttps[i].open("GET", url, true);
  xmlhttps[i].send(null);
 }
 else if(window.ActiveXObject) {/*IE*/
  xmlhttps[i]= new ActiveXObject("Microsoft.XMLHTTP");
  if(xmlhttps[i]) {
   xmlhttps[i].onreadystatechange= function() { xmlhttpChange(i, url, id); };
   xmlhttps[i].open("GET", url, true);
   xmlhttps[i].send();
  }
 }
 
}

function xmlhttpChange(i, url, id) {
 if(xmlhttps[i].readyState==4) {/*complete*/
  if(xmlhttps[i].status < 400) {

   
   setInnerHTML(document.getElementById(id), xmlhttps[i].responseText);

  }
  else {
   document.getElementById(id).innerHTML= "[<span title=\""+url+"\">Erreur "+xmlhttps[i].status+"</span>]";
  }
 }
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

////////////////////////////////////////////////////WTF////////////////////////////////////////////
 // SetInnerHTML Sécurisé
    function setInnerHTML(divContent, HTML) {
      divContent.innerHTML=HTML; 
      var All=divContent.getElementsByTagName("*");
      for (var i=0; i<All.length; i++) {
        All[i].id=All[i].getAttribute("id")
        All[i].name=All[i].getAttribute("name")
        All[i].className=All[i].getAttribute("class")
      }
      var AllScripts=divContent.getElementsByTagName("script")
      for (var i=0; i<AllScripts.length; i++) {
         var s=AllScripts[i];
         if (s.src && s.src!="") {
            // Précédement asynchrone, mis en synchrone pour éviter des problèmes de dépendances de scripts
            eval(getFileContent(s.src))
         }
         else {
            eval(s.innerHTML)
         }
      }
    }
 
    // Renvoie le texte de l'objet ActiveXObject le plus récent depuis une liste
    var pickRecentProgID = function (idList){
	    // found progID flag
        var bFound = false;
        for(var i=0; i < idList.length && !bFound; i++){
            try{
                var oDoc = new ActiveXObject(idList[i]);
                o2Store = idList[i];
                bFound = true;
            }catch (objException){
                // trap; try next progID
            };
        };
        if (!bFound)
		    throw ("Aucun ActiveXObject n'est valide sur votre ordinateur, pensez à mettre à jour votre navigateur");
        idList = null;
        return o2Store;
    }
 
    // Retourne un nouvel objet XmlHttpRequest
    var GetXmlHttpRequest_AXO=null
    var GetXmlHttpRequest=function () {
	    if (window.XMLHttpRequest) {
		    return new XMLHttpRequest()
	    }
	    else if (window.ActiveXObject) {
		    if (!GetXmlHttpRequest_AXO) {
			    GetXmlHttpRequest_AXO=pickRecentProgID(["Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]);
		    }
		    return new ActiveXObject(GetXmlHttpRequest_AXO)
	    }
	    return false;
    }
 
    function getFileContent(url) {
       var Xhr=GetXmlHttpRequest();
       Xhr.open("GET",url,false);
       Xhr.send(null);
       return Xhr.responseText;
    }

				
					
	


</script>


<style type="text/css">
<!--
.Style1 {
	font-size: 8px;
	color: #FFFFFF;
}

table td
{
border:1px solid #CCCCCC;

}

.rouge {color: #990000}
.vert {color: #009900}
.Style4 {color: #333333}

-->
</style>

</head>
<?php // ?>
<body onload="loadXMLdoc('stfu.php','muz','lodine')"  >

<? echo $_GET['serche']; ?>
  <SCRIPT LANGUAGE=JavaScript >
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function myFlash_DoFSCommand(command, args)                {
  var myFlashObj = InternetExplorer ? myFlash : document.myFlash;
  // alert (args);
  loadXMLdoc('stfu2.php','muz','lodine');
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
  document.write('<SCRIPT LANGUAGE=VBScript\> \n');
  document.write('on error resume next \n');
  document.write('Sub myFlash_FSCommand(ByVal command, ByVal args)\n');
  document.write(' call myFlash_DoFSCommand(command, args)\n');
  document.write('end sub\n');
  document.write('</SCRIPT\> \n');
} 
//-->


</SCRIPT>



  <?

if($_SESSION['mode']=='dark') echo ' / dark mode ';
if($_SESSION['mode']=='disco') echo ' / ';
if($_SESSION['mode']=='junk') echo ' / <span style="color:#8edf00;"><b>junk mode</b></a>';
?>

<p>
<? $x=1; ?>

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','30','height','30','src','anime','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','anime' ); //end AC code
</script><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="anime" width="50" height="50" align="middle" id="anime">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="anime.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="anime.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="50" height="50" name="anime" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="<? echo $x; ?>" height="<? echo $x; ?>" id="myFlash">
    <param name="movie" value="mp3.swf?music=<?php echo $dl; ?>" />
    <param name="quality" value="high" />
    <embed src="mp3.swf?music=<?php echo $dl; ?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" NAME="myFlash" swLiveConnect="true" width="<? echo $x; ?>" height="<? echo $x; ?>"></embed>
  </object>
</p>
<p>
  <?
if($_SESSION['admin']==1)
	$boutal='button';
	else
	$boutal='hidden';
//
?>
<input name="button3" type="image" src="nuk/love.png" onclick="loadXMLdoc('love.php','muz','lodine')" value="love" alt="I LOVE IT !!"/>  <input name="image" type="image" src="nuk/skip.png" onclick="loadXMLdoc('stfu.php','muz','lodine')" value="SKIP" />  <input  name="image2" type="image" src="nuk/stop.png"  onclick="doPassVar('');" value="STOP" />
  <input name="button4" type="image" src="nuk/5TFU.png" id="button4" onclick="loadXMLdoc('stfu3.php','muz','lodine')" value="lol" />
</p>
<p>
  <? //<input name="button3" class="fat" onclick="loadXMLdoc('random.php','muz','lodine')" value="random" /> ?>
</p>
<div class="fat"><input type="hidden" class="fat" id="Clock" size="50" readonly="readonly" />
</div>
<div id="muz">
  <p>Click on play to start music</p>
  <p><span class="ligne">
    
      </span>
    <?php
			if($_SESSION['admin']==1)
			echo '<p class="bleu">debugger style on</p>';
			?>
  </p>
</div>


<div class="ligne"></div>

<p>
  <input name="button2" type="button" onclick="loadXMLdoc('wtf.php','blok','lodine')" value="f.a.q"/>
  <input name="button5" type="button" onclick="loadXMLdoc('search.php','blok','lodine')" value="search"/>
  <input name="button2" type="button" onclick="loadXMLdoc('upode.php','blok','lodine')" value="UPLOAD"/>
  <input name="button6" type="button" onclick="loadXMLdoc('hackpanel.php','blok','lodine')" value="pl"/>
  <input name="button2" type="button" onclick="loadXMLdoc('reset.php','blok','lodine')" value="reset"/>
</p>
<p><a href="disco.php">DISCO MODE</a> - <a href="junk.php">JUNK MODE</a></p>
<div id="blok">
  <p>
    <?

include('test.php');
?>
  </p>
</div>

<p>
  <script type="text/javascript">

// alert('test'); (works)

</script> 
  <?php
if($_SESSION['admin']==1)
$bite='non'; else $bite='oui';
?>
</p>


</body>
</html>
