Esempio n. 1
0
 function getimage()
 {
     $ok = false;
     if ($this->check()) {
         $fname = $this->getfname();
         if (!file_exists($fname)) {
             $this->createsid();
         }
         if (file_exists($fname)) {
             $this->send($fname);
             return true;
         }
     }
     if ($this->id3v2) {
         id3v2image($this->sid, true, true);
     } else {
         createimg($this->sid, true, $this->w, $this->h);
     }
 }
Esempio n. 2
0
 function senddata()
 {
     if ($this->dirimageid != -1) {
         if ($this->scale) {
             createimg($this->dirimageid, false);
         } else {
             $f2 = new file2($this->dirimageid);
             if ($f2->ifexists()) {
                 readfile($f2->fullpath);
             }
         }
     } else {
         if ($this->id3v2imageid != -1) {
             id3v2image($this->id3v2imageid, true, false);
         }
     }
 }