Пример #1
0
 function sendlink2($sid)
 {
     $f2 = new file2($sid, true);
     if ($f2->ifexists()) {
         $fd = new filedesc($f2->fname);
         if ($fd->found && $fd->m3u) {
             $title = $f2->gentitle();
             if (db_guinfo('extm3u')) {
                 $this->setdata($this->mkextinf2($title, $f2->getlengths()));
             }
             $this->checkcrlf();
             $this->setdata(httpstreamheader3($fd->fid, $sid, $f2, true));
             $this->addcrlf = true;
         }
     }
 }