1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
<?
function redirect($to){
@session_write_close();
if (!headers_sent()) {
header("Location: $to");
flush(); exit();
} else {
print "<html><head><META http-equiv='refresh' content='0;URL=$to'></head><body><a href='$to'>$to</a></body></html>";
flush(); exit();
}
}
?>
|