Beispiel #1
0
 $releases = new Releases(['Settings' => $page->settings]);
 $rc = new ReleaseComments();
 $re = new ReleaseExtra();
 $data = $releases->getByGuid($_GET["id"]);
 if (!$data) {
     $page->show404();
 }
 if ($page->isPostBack()) {
     $rc->addComment($data["id"], $data["gid"], $_POST["txtAddComment"], $page->users->currentUserId(), $_SERVER['REMOTE_ADDR']);
 }
 $nfo = $releases->getReleaseNfo($data["id"], false);
 $reVideo = $re->getVideo($data["id"]);
 $reAudio = $re->getAudio($data["id"]);
 $reSubs = $re->getSubs($data["id"]);
 $comments = $rc->getCommentsByGid($data["gid"]);
 $similars = $releases->searchSimilar($data['id'], $data['searchname'], 6, $page->userdata['categoryexclusions']);
 $rage = '';
 if ($data["rageid"] != '') {
     $tvrage = new TvRage();
     $rageinfo = $tvrage->getByRageID($data["rageid"]);
     if (count($rageinfo) > 0) {
         $seriesnames = $seriesdescription = $seriescountry = $seriesgenre = $seriesimg = $seriesid = [];
         foreach ($rageinfo as $r) {
             $seriesnames[] = $r['releasetitle'];
             if (!empty($r['description'])) {
                 $seriesdescription[] = $r['description'];
             }
             if (!empty($r['country'])) {
                 $seriescountry[] = $r['country'];
             }
             if (!empty($r['genre'])) {
Beispiel #2
0
 $re = new ReleaseExtra();
 $tvrage = new TvRage();
 $AniDB = new AniDB();
 $data = $releases->getByGuid($_GET["id"]);
 if (!$data) {
     $page->show404();
 }
 if ($page->isPostBack()) {
     $rc->addComment($data["ID"], $_POST["txtAddComment"], $users->currentUserId(), $_SERVER['REMOTE_ADDR']);
 }
 $nfo = $releases->getReleaseNfo($data["ID"], false);
 $reVideo = $re->getVideo($data["ID"]);
 $reAudio = $re->getAudio($data["ID"]);
 $reSubs = $re->getSubs($data["ID"]);
 $comments = $rc->getComments($data["ID"]);
 $similars = $releases->searchSimilar($data["ID"], $data["searchname"], 6, $page->userdata["categoryexclusions"]);
 $rage = '';
 if ($data["rageID"] != '') {
     $rageinfo = $tvrage->getByRageID($data["rageID"]);
     if (count($rageinfo) > 0) {
         $seriesnames = $seriesdescription = $seriescountry = $seriesgenre = $seriesimg = $seriesid = array();
         foreach ($rageinfo as $r) {
             $seriesnames[] = $r['releasetitle'];
             if (!empty($r['description'])) {
                 $seriesdescription[] = $r['description'];
             }
             if (!empty($r['country'])) {
                 $seriescountry[] = $r['country'];
             }
             if (!empty($r['genre'])) {
                 $seriesgenre[] = $r['genre'];