<?php

session_start();

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
 $buffer  = '<?xml version="1.0"?>';
   $buffer .= "<reponse><message>Bonjour de PHP &amp; d'XML</message></reponse>";

   header('Content-Type: text/xml');


require ('sistite/connexion.php');

$passing=$_SESSION['passing'];
 
 
 $total=mysql_fetch_assoc(requete('SELECT count(id) FROM log;'));
 $total=$total['count(id)'];




?>

<? 

$rep = "shit/";
$dir = opendir($rep); 
$dir2=opendir($rep); 
$n=0;
$random='enculemoi';

include('deralgo.php');

//echo $tune.'<br/';
echo '<br><a href="'.$rep.$dl2.'">now playing: '.$dl2.'</a>';
$dl=$rep.$dl2;
?>

<form name="form1" onSubmit="doPassVar(sendText);" action="#" >
  <input type="hidden" name="sendText" maxlength="45" value="<? echo $dl; ?>" onClick="doPassVar(this);" >
</form>
<? $_SESSION['passing']=$dl2; ?>

<script type="text/javascript">
doPassVar(document.form1.sendText);
// alert('test');

</script>
