Forum » » Questions » » S'identifier sur deux sites en même temps
Posté : 12 oct. 2010 à 17:42
echo"<script>window.open('http://cyclos.descartes2.free.fr/docookie.php?info=$info&user_langue=$user_langue&user_cook_duration=$user_cook_duration','secours','menubar=no, status=no, scrollbars=no, menubar=no, width=50, height=50');</script>";
<?php
$info = $_GET['info'];
$user_langue = $_GET['user_langue'];
$user_cook_duration = $_GET['user_cook_duration'];
if ($user_cook_duration<=0) {$user_cook_duration=1;}
$timeX=time()+(3600*$user_cook_duration);
setcookie("user","$info",$timeX);
if ($user_langue!="") {
setcookie("user_language","$user_langue",$timeX);
}
?>
<html>
<head>
</head>
<body !onload!="window.setTimeout('self.close()',2000)">
</body>
</html>
Message édité par : PhilGuen / 12-10-2010 17:50
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=24946&forum=9