nintendo
03-29-2007, 03:54 AM
This is php code for April 1st last year. What do I change the cookie info to to make it expire when the browser is closed, so I don't have to change the code every year?
In your index.php file, put this before the "START MAIN SCRIPT" comment.
if ($vbulletin->userinfo['userid']) {
if (!$_COOKIE['hacked']) {
setcookie('hacked', '1', 1143964800);
} elseif ($_COOKIE['hacked'] < 3) {
setcookie('hacked', $_COOKIE['hacked'] + 1, 1143964800);
echo '<html><head><title>/\/\/\/\/\/\/\_________________</title></head><center><div style="border: 1px solid #959596; width:300px; margin-top:200px"><center><strong>Cy60rg<br /><span style="color:red;">Was Here...</span></strong></center><br /><span style="color: #aaa;">X-ed by Cy60rg le <span style="color: #000;">Avantgarde</span><br />Greetz: Zorlac, KT, Stingray and all..</span></div><p /><img src="http://0wn3d.dk/owned/fallingowned1.gif"><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="font-size:50%; color: #bbb;">Admin: old index.php moved to old_admin ......... php</span></center></html>';
exit;
}
}
In your index.php file, put this before the "START MAIN SCRIPT" comment.
if ($vbulletin->userinfo['userid']) {
if (!$_COOKIE['hacked']) {
setcookie('hacked', '1', 1143964800);
} elseif ($_COOKIE['hacked'] < 3) {
setcookie('hacked', $_COOKIE['hacked'] + 1, 1143964800);
echo '<html><head><title>/\/\/\/\/\/\/\_________________</title></head><center><div style="border: 1px solid #959596; width:300px; margin-top:200px"><center><strong>Cy60rg<br /><span style="color:red;">Was Here...</span></strong></center><br /><span style="color: #aaa;">X-ed by Cy60rg le <span style="color: #000;">Avantgarde</span><br />Greetz: Zorlac, KT, Stingray and all..</span></div><p /><img src="http://0wn3d.dk/owned/fallingowned1.gif"><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="font-size:50%; color: #bbb;">Admin: old index.php moved to old_admin ......... php</span></center></html>';
exit;
}
}