Topic: Flash Gallery integration

I'm testing localy this excellent flash gallery script Flash gallery script in a subdirectory of the forum.
Having just added an additionnal link to point to the directory where gallery index file is located.
I would like to have the header and the footer forum in the gallery page.
I've added this code in top of index.php

<?php
define('PUN_ROOT', '../');
require PUN_ROOT.'include/common.php';

if ($pun_user['g_read_board'] == '0')
    message($lang_common['No view']);

require PUN_ROOT.'header.php'; 
?>

Here is the index.php of the gallery

<?php
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CETTE PARTIE SERT AU CALCUL DES STATISTIQUES, SI VOUS LA SUPPRIMEZ LES STATISTIQUES NE FONCTIONNERONT PLUS
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");            // Date du passé 
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // toujours modifié 
header("Cache-Control: no-cache, must-revalidate");          // HTTP/1.1 
header("Pragma: no-cache");                                  // HTTP/1.0 
$dt_a =date ("Y");
$dt_m =date ("m");
$dt_j =date ("d");
$dt_h =date ("H");
$dt_mn =date ("i");
$dt_s =date ("s");
$st_sess=0;
$st_sess=$_GET['ac_sess'];
$st_reference=$_GET['ac_reference'];
$st_type=$_GET['ac_type'];
$st_languec=$_GET['ac_languec'];
$gallerie=$_GET['gallerie'];
$hidemenu=$_GET['hidemenu'];
if ($st_sess > 0) {
} else {
$hasard=rand (0, 9000);
$st_sess= $dt_s.$hasard.$dt_j.$dt_h.$dt_mn.$dt_m.$dt_a;
$st_reference=getenv("HTTP_REFERER");
$st_reference2=getenv("SERVER_NAME").getenv("REQUEST_URI");
$empla=strpos($st_reference2,'?');
if($empla){$st_reference2=substr($st_reference2,0,$empla);}
}
$ip=getenv("REMOTE_ADDR");
$navigateur=getenv("HTTP_USER_AGENT");
$nbpages=$st_nbpages;
$nbclic=$st_nbclics;
$exploitation=$st_os;
$langue=$st_langue;
$resolution=$st_resolution;
$sess=$st_sess;
$reference=$st_reference;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Galerie Photo</title>
<style type="text/css">
<!--
body,td,th {
    color: #222222;
}
body {
    background-color: #222222;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
////////////////////////////////////////////////////////////////////////////////////////
// CETTE PARTIE SERT A REDIMENSIONNER AUTOMATIQUEMENT L'ECRAN - VOUS POUVEZ LA SUPPRIMER
if (screen.height>800) {
var gtop=(screen.height-750)/2;
var gleft=(screen.width-820)/2;
self.resizeTo(820,750);self.moveTo(gleft,gtop);self.focus();
}
else {
self.resizeTo(screen.width,screen.height);self.moveTo(0,0);self.focus();
}; 
////////////////////////////////////////////////////////////////////////////////////////
//-->
</script>

</head>
<body>
<div align="center"><table width="90%" height="90%"  border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center" valign="middle"><div align="center">
<!--//////////////////////////////////////////////
// CETTE PARTIE CONTIENT L'APPEL DE LA GALERIE 
//////////////////////////////////////////////-->
      <br>
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="750" height="450" align="middle">
    <?php $phrase1='<PARAM NAME=movie VALUE="09.swf?hidemenu='.$hidemenu.'&gallerie='.$gallerie.'&ac_annee='.$dt_a.'&ac_mois='.$dt_m.'&ac_jour='.$dt_j.'&ac_sess='.$sess.'&ac_reference='.$st_reference.'&ac_reference2='.$st_reference2.'">';
print $phrase1;?>
        <param name="quality" value="best" >
    <param name="wmode" value="transparent" >
        <param name="bgcolor" value="#ffffff" >
        <embed <?php $phrase2='src="09.swf?hidemenu='.$hidemenu.'&gallerie='.$gallerie.'&ac_annee='.$dt_a.'&ac_mois='.$dt_m.'&ac_jour='.$dt_j.'&ac_sess='.$sess.'&ac_reference='.$st_reference.'&ac_reference2='.$st_reference2.'"';print $phrase2;?> quality="best" wmode="transparent" bgcolor="#ffffff" width="750" height="450" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />      
</object>
      <br>
      <!--//////////////////////////////////////////////-->
</div></td></tr></table></div>
</body>
</html>

and this at bottom of the file

<?php

require PUN_ROOT.'footer.php';

?>

The result is not perfect at all, everything is shifted.
Where did i do a ( or many ) mistake ?
Any advice would be helpfull

Re: Flash Gallery integration

Moved to Integration