File Manager

Current Path : /webspace/www.alexishaulot.be/html/
Upload File :
Current File : /webspace/www.alexishaulot.be/html/inside.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
	require_once("config.php");
	settype($_REQUEST['id'],'integer');
	$q = "select keywords from reportage where id=".$_REQUEST['id'];
	$r = mysql_query($q,$link);
	$rr = mysql_fetch_assoc($r);
?>

<head>
<title>Alexis Haulot Photoreporter</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="alexis.css" rel="stylesheet" type="text/css">
<?php
	echo "<meta name=\"keywords\" content=\"".$rr['keywords']."\">";
?>
<style type="text/css">
<!--
body {
	background-color: #000000;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.appleLinks a {color:#FF6600; text-decoration: none;}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}
//-->
</script>
</head>
<?php
	$toload = "";
	settype($_REQUEST['id'],'integer');
	$photo = "select p.id,p.titre,p.legende,p.image, r.titre as rtitre, r.date, r.texte from photo p, reportage r where r.id=".$_REQUEST['id']." and p.reportage_id=r.id order by id";
	$res = mysql_query($photo,$link) or die("Erreur SQL");
	$rec = mysql_fetch_assoc($res);
	$photo_list = "select image from photo where reportage_id=".$_REQUEST['id'];
	$rs2 = mysql_query($photo_list,$link) or die("Erreur SQL");
	while ($rc2 = mysql_fetch_assoc($rs2)) {
		$toload .= "'".preg_replace("/\.\.\//","",$rc2['image'])."',";
	}
?>
<body onLoad="MM_preloadImages(<?php echo $toload ?>'images/retour_1.gif','images/Alexis_Haulot_baseline_1.gif')">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" id="master">
  <tr>
    <td height="159" align="center" valign="top" background="images/inside_bg.gif"><table width="740" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/spacer.gif" width="70" height="15"></td>
        <td><img src="images/spacer.gif" width="600" height="9"></td>
        <td><img src="images/spacer.gif" width="70" height="8"></td>
      </tr>
      <tr>
        <td colspan="2"><a href="javascript:history.back()" onMouseOver="MM_swapImage('retour','','images/retour_1.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/retour_0.gif" alt="RETOUR ACCUEIL" name="retour" width="134" height="16" border="0" id="retour"></a></td>
        <td rowspan="2" align="center" valign="top"><a href="index.php"><img src="images/alexis_v.gif" width="47" height="282" border="0"></a></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td width="740" height="540" align="center" valign="middle">
            	<?php echo "<img src=\"".preg_replace("/\.\.\//","",$rec['image'])."\" name=\"bigphoto\" id=\"bigphoto\">"; ?></td>
	    </td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" bgcolor="#000000">
    	<?php echo "<span class=\"phototitre\" id=\"titre\">".$rec['titre']."</span><span class=\"phototitre\"> - </span><span class=\"phototexte\" id=\"legende\">".$rec['legende']."</span>"; ?>
    </td>
  </tr>
  <tr>
    <td bgcolor="#000000"><span class="footer"><img src="images/spacer.gif" width="1" height="12"></span></td>
  </tr>
  <?php
  	settype($_REQUEST['id'],'integer');
	$photos = "select r.titre as rtitre,r.texte,r.date,p.id,p.titre as ptitre,p.legende,p.image,p.thumb from photo p,reportage r where r.id=".$_REQUEST['id']." and p.reportage_id=r.id order by id";
	$res2 = mysql_query($photos,$link) or die("Erreur SQL");
  ?>
  <tr>
    <td align="center" bgcolor="#000000"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
      <?php while ($rec2 = mysql_fetch_assoc($res2)){ ?>
        <?php 
        	$image = preg_replace("/\.\.\//","",$rec2['image']);			
        ?>
        <td><table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/dot.gif" width="5" height="5"></td>
            <td><img src="images/spacer.gif" width="1" height="1"></td>
            <td><img src="images/dot.gif" width="5" height="5"></td>
          </tr>
          <tr>
            <td><img src="images/spacer.gif" width="1" height="1"></td>
            <td>
		<?php echo " <a href=\"#\" onMouseDown=\"document.getElementById('bigphoto').src='". $image. "';document.getElementById('legende').innerHTML='". addslashes($rec2['legende'])."';document.getElementById('titre').innerHTML='".addslashes($rec2['ptitre'])."'\"><img src=\"". preg_replace("/\.\.\//","",$rec2['thumb'])."\" alt=\"".$rec2['ptitre']."\" name=\"small1\" width=\"60\" height=\"60\" border=\"0\" id=\"small1\"></a>"; ?>
	    </td>
            <td><img src="images/spacer.gif" width="1" height="1"></td>
          </tr>
          <tr>
            <td><img src="images/dot.gif" width="5" height="5"></td>
            <td><img src="images/spacer.gif" width="1" height="1"></td>
            <td><img src="images/dot.gif" width="5" height="5"></td>
          </tr>
        </table></td>
       <?php } ?>
        
      </tr>
    </table></td>
  </tr>
  <tr>
    <td bgcolor="#000000"><img src="images/spacer.gif" width="1" height="12"></td>
  </tr>
  <tr>
<td colspan="3" align="center" bgcolor="#000000"><span class="phototexte">Alexis Haulot&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp; gsm : <span class="appleLinks">+32/495/454.453</span>&nbsp;&nbsp;  |&nbsp;&nbsp; <a href="mailto:alexis@alexishaulot.be" class="phototexte">Email</a></span></td>
  </tr>
  <tr>
    <td bgcolor="#000000"><a href="copyright.htm" onMouseOver="MM_swapImage('baseline','','images/Alexis_Haulot_baseline_1.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/Alexis_Haulot_baseline_0.gif" alt="Haulot, photo, photographie, photography, pictures, reportage, Russie, Photoreporter, Portrait, Bruxelles" name="baseline" width="760" height="53" border="0" id="baseline"></a></td>
  </tr>
</table>
</body>
</html>

File Manager Version 1.0, Coded By Lucas
Email: hehe@yahoo.com