<?php if (!$page->users->isLoggedIn()) { $page->show403(); } if (isset($_GET["id"])) { $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"]); $rage = ''; if ($data["rageid"] != '') { $tvrage = new TvAnger(); $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'];
<?php if (!$page->users->isLoggedIn()) { $page->show403(); } if (isset($_GET['id'])) { $releases = new Releases(['Settings' => $page->settings]); $data = $releases->getByGuid($_GET['id']); if (!$data) { $page->show404(); } $rc = new ReleaseComments($page->settings); if ($page->isPostBack()) { $rc->addComment($data['id'], $_POST['txtAddComment'], $page->users->currentUserId(), $_SERVER['REMOTE_ADDR']); } $nfo = $releases->getReleaseNfo($data['id'], false); $re = new ReleaseExtra($page->settings); $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 = $ani = $mov = $mus = $con = $game = $xxx = $boo = ''; if ($data['rageid'] != '') { $tvrage = new TvRage(['Settings' => $page->settings]); $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'])) {
// add comment // // // add comment // case "ca": if (!isset($_GET["id"])) { showApiError(200); } if (!isset($_GET["text"])) { showApiError(200); } $users->addApiRequest($uid, $_SERVER['REQUEST_URI'], $hosthash); $reldata = $releases->getByGuid($_GET["id"]); if ($reldata) { $ret = $rc->addComment($reldata["ID"], $reldata["gid"], $_GET["text"], $uid, $_SERVER['REMOTE_ADDR']); $content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; $content .= "<commentadd id=\"" . $ret . "\" />\n"; if ($outputtype == "xml") { header("Content-type: text/xml"); echo $content; } else { header('Content-type: application/json'); echo json_encode(responseXmlToObject($content)); } } else { showApiError(300); } break; // // get user
require_once WWW_DIR . "/lib/anidb.php"; if (!$users->isLoggedIn()) { $page->show403(); } if (isset($_GET["id"])) { $releases = new Releases(); $rc = new ReleaseComments(); $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'])) {