Created
August 1, 2014 14:58
-
-
Save nicoknoll/8655c140070441b79dde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if($_GET['ende']) { | |
$end = (int)$_GET['ende']; | |
setcookie('wochenendende', $end, 9999999999, '/'); | |
} else { | |
$end = (($_COOKIE['wochenendende']) ? (int)$_COOKIE['wochenendende'] : 17); | |
} | |
// Die Ausgabe | |
echo $end; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment