1
0

Add Status: 302 header for redirects, have fun, nitrox. :)

This commit is contained in:
Garvin Hicking
2008-08-27 19:20:23 +00:00
parent 80534cb91a
commit 9bfe2cec62
6 changed files with 11 additions and 0 deletions

@ -216,11 +216,13 @@ switch ($serendipity['GET']['step']) {
$curl = ($_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . ($_SERVER['HTTP_PORT'] != 80 ? ':' . $_SERVER['HTTP_PORT'] : '');
switch($serendipity['GET']['show']) {
case 'redirect':
header('Status: 302 Found');
header('Location: ' . $curl . $file['links']['imagelinkurl']);
exit;
break;
case 'redirectThumb':
header('Status: 302 Found');
header('Location: ' . $curl . $file['show_thumb']);
exit;
break;