/ Published in: Other
Expand |
Embed | Plain Text
/Add before <html> tags //Script if ($_COOKIE[\'head\'] != \"\") { $ausgabe = $_COOKIE[\'head\']; } else { $bilder = array(\"bild1\", \"bild2\", \"bild3\"); $ausgabe = $bilder[rand(0,2)]; setcookie (\"head\", $ausgabe, time()+1000); } //Output $sufix = \".jpg\"; $dir = \"http://localhost/weblog/covers/\"; if (isset($_COOKIE[head])) { echo \'<img src=\"\'.$dir.$ausgabe.$sufix.\'\" alt=\"Cover\" />\'; } else { echo \'<img src=\"http://localhost/weblog/alt.jpg\" />\'; }
You need to login to post a comment.
