<?php
error_reporting(0);

  include("../artzone/connect.php");

if ($_GET['t']) {
$t = $_GET['t'];

 $body="<body onLoad=\"window.opener.location.href='../forum/topic.php?t=".$t."'\">";
 echo $body;

?>
<script language="JavaScript">
setTimeout("window.location='../forum/close.html'",0000); // delai en millisecondes
</script>
<?php


} elseif ($_GET['f']) {
$f = $_GET['f'];


$body="<body onLoad=\"window.opener.location.href='../forum/cat.php?idcat=".$f."'\">";

echo $body;

?>
<script language="JavaScript">
setTimeout("window.location='../forum/close.html'",0000); // delai en millisecondes
</script>
<?php


} elseif ($_GET['p']) {
$p = $_GET['p'];

  $requet50="select topic_id from ".$extension2."posts where post_id ='$p'";
  $result50=mysql_query($requet50, $link);
  $iddutopic=mysql_fetch_object($result50);

$body="<body onLoad=\"window.opener.location.href='../forum/topic.php?t=".$iddutopic->topic_id."&p=$p#$p'\">";

echo $body;

?>
<script language="JavaScript">
setTimeout("window.location='../forum/close.html'",0000); // delai en millisecondes
</script>
<?php


} else {

$body="<body onLoad=\"window.opener.location.href='../forum/'\">";

echo $body;

?>
<script language="JavaScript">
setTimeout("window.location='../forum/close.html'",0000); // delai en millisecondes
</script>
<?php

}


?>

