//if(!$page)
{
$addr=$REMOTE_ADDR;
$agent=$HTTP_USER_AGENT;
$lang=$HTTP_ACCEPT_LANGUAGE;
$from=$HTTP_REFERER;
$host_name=gethostbyaddr($addr);
$fp = fopen("stats.txt", "a");
//@fputs($fp, date("d/m/Y H:i")." ".$from."\n");
@fputs($fp, date("d/m/Y H:i")." browser=".$agent." language=".$lang." hostname=".$host_name."(".$addr.") referrer=".$from."\n");
fclose($fp);
}
?>
print"$gallery"; ?> :: 2stylish.de
$basedir = "http://www.moises.de/2stylish/gallery/";
$opendir = "/home/moisesm/moises.de/2stylish/gallery/" . $gallery;
$handle=opendir($opendir);
$i=0;
while ($file = readdir($handle)) {
if((strpos($file,".JPG")&&(strpos($file,".JPGjdo")==0))>0){
$i++;
$thumbarray[$i]=$file;
}
}
array_multisort ($thumbarray, SORT_ASC);
closedir($handle);
if($page=='') {
$page=0;
}
$max = sprintf("%03d",($i));
$p=($page*24);
if ($p < 0) {
$p=0;
}
$t=1;
for ($r=$p; $r<($p+24) && $r<$i; $r++) {
$thumbarray[$r] = substr($thumbarray[$r], 0,-4);
$alt=$r+1;
print "\n";
if (($t%6)==0) {
print "\n
\n";
}
$t++;
}
if (($p+24)>$i){
for ($r=($p+24)-$i; $r>0; $r--) {
print "\n";
if (($t%6)==0) {
print "\n\n
";
}
$t++;
}
}
?>
">
|