Add Script of the site
This commit is contained in:
23
Scripts/Cookie.php
Normal file
23
Scripts/Cookie.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/*
|
||||
*********************************************************************
|
||||
File : $RCSfile: Cookie.php,v $
|
||||
Version : $Revision: 1.2 $
|
||||
Modified by : $Author: jb $ ($Date: 2002/12/14 19:59:27 $)
|
||||
*********************************************************************
|
||||
*/
|
||||
|
||||
if ( $page == "Pose") {
|
||||
$maintenant=getdate(time());
|
||||
$jour = $maintenant["mday"];
|
||||
$mois = $maintenant["mon"];
|
||||
$annee = $maintenant["year"]+10;
|
||||
$dateUnix = mktime (0,0,0,$mois, $jour, $annee);
|
||||
}
|
||||
else {
|
||||
$dateUnix = time() - 3600;
|
||||
}
|
||||
//echo "<html> <br> $jour / $mois / $annee <br> $dateUnix";
|
||||
setcookie("adminCOO", "oui", $dateUnix);
|
||||
header("Location:homeAdmin.php?id=$id");
|
||||
?>
|
||||
Reference in New Issue
Block a user