$x && $sy>$y) { $sx=$x; $sy=$y; } $dst=@imagecreatetruecolor($sx,$sy); if($dst) { if(!$filename) { if(!is_dir("thumbs")) mkdir("thumbs"); $filename="thumbs/$file"; } imagecopyresampled($dst, $src, 0,0, 0,0, $sx,$sy, $x,$y); @imagejpeg($dst, $filename, 50); if(file_exists($filename)) { chmod($filename, 0666); return true; } } } } return false; } class thumbs { var $name,$orig,$thumb,$desc; var $x,$y,$dir,$tdir; var $nothumb,$make,$data,$force; function thumbs($dir=".") { $this->x=NULL; $this->y=NULL; $this->dir=trim($dir,".\\/"); $this->tdir=($this->dir?$this->dir.'/':"")."thumbs"; $this->nothumb=NULL; // file for pictures without thumb $this->make=function_exists("thumbnalize"); $this->data=glob("$dir/*.JPG"); $this->force=false; if(!is_dir($this->tdir)) mkdir($this->tdir); } function get() { if(!is_array($this->data)) return false; $f=array_shift($this->data); if(!$f) return false; $p=pathinfo($f); $dir=$this->dir?$this->dir."/":""; $this->name=basename($f,'.'.$p['extension']); $this->orig=$dir.$p['basename']; $this->thumb=$this->tdir.'/'.$p['basename']; $this->desc=implode("",(array)@file("$f.desc")); if($this->make && ($this->force || !file_exists($this->thumb))) { echo "Creo {$this->thumb}: "; if(thumbnalize($this->orig,$this->x,$this->y,$this->thumb)) { echo "ok"; } else { echo "failed"; $this->thumb=$this->nothumb; } echo "
"; } return true; } } $title=@file_get_contents("title.txt"); $dir=@$_GET['d']; ?>

">

 

 

get()) { ?>

 

"; echo $v; if(file_exists($v.".desc")) { echo " - "; readfile($v.".desc"); } echo "
"; } } } ?>  

Utenti connessi

 

L'amministratore si impegna ad eliminare nel minor tempo possibile le foto indesiderate, per farlo basta mandare una mail a questo indirizzo con il nome della foto.

| 2008 C|cC|o86 |