<?php
require("mysql.php");
$titel = 'Zufällige Fotos - Fotos';
$inhalt .= '
<div class="photo">
<div class="noh1"></div>
<div class="pg">
<div class="box">
<div class="hd">
<div class="tl"></div>

<div class="tr"></div>
<div class="tm"></div>
<div class="m"><div class="mi">
<div class="bbutton random"><a href="photo?random"><div class="bttl corner"></div><div class="bttr corner"></div><div class="bttm"></div><div class="btm"><img src="sf/m/buttons/bt-nm.png" id="button-1630008739-img" class="jsFixHeight" style="" height="22" width="" /><div class="btmi"><span class="text">Mehr zufällige Fotos</span></div></div><div class="btbl corner"></div><div class="btbr corner"></div><div class="btbm"></div></a></div>
<div class="h h2"><div class="hbegin"></div><h2>Zufällige Fotos</h2></div>
</div></div>
</div>
<div class="bd fade bd-fade">
<div class="m">
<div class="mi"><center><table><tr>';
$zahl = 0;
$db = mysql_query("select photo, name from accounts where photo != '' and name != 'James' order by rand() limit 12");
while($p = @mysql_fetch_array($db)) {
if($zahl != 0) {
$inhalt .= '<td width="35">&nbsp;</td>';
}
$inhalt .= '<td valign="top" align="center"><div class="centerInFourthWidth">
<a href="photos-profile.php?id='.$p[name].'" class="nodecoration">
<img src="pics/photos/m/'.$p[photo].'.jpg" class="userimage large" />
</a>

<br/>
<a href="photos-profile.php?id='.$p[name].'" class="nodecoration">'.$p[name].'</a>
</div>
</td>';
if($zahl == 3 || $zahl == 7) {
$inhalt .= '</tr></table><br><br><table><tr>';
}
$zahl++;
}
$inhalt .= '
</tr></table><div class="clear"></div><br>

<br><div style="width:200px;"><div class="bbutton jsregtrigger" id="hdbtregister"><a href="photos-random" id="hdbtregister-a"><div class="bttl corner"></div><div class="bttr corner"></div><div class="bttm"></div><div class="btm"><img src="sf/m/buttons/bt-nm.png" id="hdbtregister-img" class="jsFixHeight" style="" height="22" width="" /><div class="btmi"><span class="text">Mehr zufällige Fotos</span></div></div><div class="btbl corner"></div><div class="btbr corner"></div><div class="btbm"></div></a></div></div>
</center></div></div>
';
$inhalt .= '
          
          <div class="bl"></div>
          <div class="br"></div>
          <div class="bm"></div>

         
        </div></div></div></div></div>
       ';
$styles = '<link href="/sf/f/registration/registration.css" rel="stylesheet" type="text/css">
<link href="/sf/m/buttons/buttons.css" rel="stylesheet" type="text/css"><link href="/sf/f/index/index.css" rel="stylesheet" type="text/css"><link href="/sf/m/boxes/boxes.css" rel="stylesheet" type="text/css"><link href="/sf/m/forms/forms.css" rel="stylesheet" type="text/css"><link href="/sf/f/photos/photos.css" rel="stylesheet" type="text/css"><link href="/sf/m/tables/tables.css" rel="stylesheet" type="text/css"><link href="/sf/m/uploader/uploader.css" rel="stylesheet" type="text/css"><link href="/sf/f/photos/photos-rate.css" rel="stylesheet" type="text/css">
';
echo str_replace(array('<?url?>','<?inhalt?>', '<?titel?>', '<?fotonavi?>', '<?registrieren?>', '<?styles?>', '<?fotos?>'),array($_SERVER[SERVER_NAME], $inhalt, $titel, $fotonavi, $registrieren, $styles, $fotos),implode("",file("sf/b/style.tpl")));
?>    