global $thumb, $max, $datafile;
$thumb = $HTTP_GET_VARS["thumb"];
$max = $HTTP_GET_VARS["max"];
$data_file = "pics/bilder.txt";
function Speichern($b){
if ($b=='1IMG.jpg'){
$file = fopen("pics/bilder.txt","w");
fwrite($file,"");}
else{
$file = fopen("pics/bilder.txt","a");}
fwrite($file,$b."\n");
fclose($file);
}
$content = file("pics/texts.txt");
$txt_auswahl = array();
for ($i=(count($content)-1);$i>=0;$i--)
{
list($pic, $txt) = explode("|", $content[$i]);
$txt_auswahl[$pic]=$txt;
}
?>
Back ilm - Pics
|
.. contact ..
.. home .. |
 |
if ($thumb!=''){
echo "".$txt_auswahl[$thumb]." | ";
}?>
|
| .. Stellas Geburtstag [32] |
if ($thumb) {
if (!strcmp($thumb, "schwerin")){
if ($logged_in){
?>
for ($i=1;$i<($max+1);$i++)
Speichern($i."IMG.jpg");
$photos = file($data_file);
for ($i=1;$i<$max+1;$i=$i+4){
echo "";
for ($n=0;$n<4;$n++){
$num = ($i+$n);
if ($num<($max+1)){
if($num<10){
$photos[$num-1] = "0".$photos[$num-1];
}
$photos[$num-1] = trim($photos[$num-1]);
$thumbnail = "pics/".$thumb."/".$photos[$num-1];
list($width, $height, $type, $attr) = getimagesize($thumbnail);
$nu = $num-1;
if($width>450){
echo "";
echo "
 | ";
} // if w==500
else{
echo "
 | ";
} // else, if (w==5oo)
} // if !";
} // for i
//echo " ";
} // logged in
else{echo " |