Example #1
0
                    return false;
                    exit;
                }
            }
        }
    }
    //Try and the get name, find the name upto the year (2014) and split it into an array Name and Year.  Lets avoid some stuff extra more 1080 and above values
    preg_match("/(.*).((!720p|!1080p|!480p|!580p)|[1-2][0-9][0-9][0-9])/", "{$fname}", $movie_info, null, 0);
    $url = IMDBSearch1::_movieRedirect("{$movie_info['1']}", "{$movie_info['2']}");
}
if (substr($url, -1) == '/') {
    $url = substr($url, 0, -1);
}
//if (!$url)
//stderr($lang['takeupload_failed'], 'No IMDB Found');
$imdb_info = get_imdb($url);
$genre = $imdb_info['gen'];
if (!empty($imdb_info['poster'])) {
    $poster = $imdb_info['poster'];
} else {
    $poster = strip_tags(isset($_POST['poster']) ? trim($_POST['poster']) : '');
}
//END IMDB
$ret = sql_query("INSERT INTO torrents (search_text, filename, owner, username, visible, vip, release_group, newgenre, poster, anonymous, allow_comments, info_hash, name, size, numfiles, type, offer, request, url, subs, descr, ori_descr, description, category, free, silver, save_as, youtube, tags, added, last_action, mtime, ctime, freetorrent, nfo, client_created_by) VALUES (" . implode(",", array_map("sqlesc", array(searchfield("{$shortfname} {$dname} {$torrent}"), $fname, $CURUSER["id"], $CURUSER["username"], $visible, $vip, $release_group, $genre, $poster, $anonymous, $allow_comments, $infohash, $torrent, $totallen, count($filelist), $type, $offer, $request, $url, $subs, $descr, $descr, $description, 0 + $_POST["type"], $free, $silver, $dname, $youtube, $tags))) . ", " . TIME_NOW . ", " . TIME_NOW . ", " . TIME_NOW . ", " . TIME_NOW . ", {$freetorrent}, {$nfo}, {$tmaker})");
if (!$ret) {
    if ((is_object($GLOBALS["___mysqli_ston"]) ? mysqli_errno($GLOBALS["___mysqli_ston"]) : (($___mysqli_res = mysqli_connect_errno()) ? $___mysqli_res : false)) == 1062) {
        stderr($lang['takeupload_failed'], $lang['takeupload_already']);
    }
    stderr($lang['takeupload_failed'], "mysql puked: " . (is_object($GLOBALS["___mysqli_ston"]) ? mysqli_error($GLOBALS["___mysqli_ston"]) : (($___mysqli_res = mysqli_connect_error()) ? $___mysqli_res : false)));
}
if (XBT_TRACKER == false) {
Example #2
0
    $HTMLOUT .= "<tr><td>No youtube data found</td></tr>";
}
$HTMLOUT .= "</table>\n        </div><!-- closing col md 12 -->\n     </div><!-- closing row -->";
$HTMLOUT .= "<div class='row'>\n<div class='col-md-12'>\n<table align='center' class='table table-bordered'>\n";
//== tvrage by pdq/putyn
if (in_array($torrents['category'], $INSTALLER09['tv_cats'])) {
    require_once INCL_DIR . 'tvrage_functions.php';
    $tvrage_info = tvrage($torrents);
    if ($tvrage_info) {
        $HTMLOUT .= tr($lang['details_tvrage'], $tvrage_info, 1);
    }
}
if (in_array($torrents['category'], $INSTALLER09['movie_cats']) && $torrents['url'] != '') {
    $imdb = '';
    $imdb_info['id'] = $imdb_info['title'] = $imdb_info['orig_title'] = $imdb_info['year'] = $imdb_info['rating'] = $imdb_info['votes'] = $imdb_info['gen'] = $imdb_info['runtime'] = $imdb_info['country'] = $imdb_info['lanuage'] = $imdb_info['director'] = $imdb_info['produce'] = $imdb_info['write'] = $imdb_info['compose'] = $imdb_info['plotoutline'] = $imdb_info['plot'] = $imdb_info['trailers'] = $imdb_info['comment'] = "";
    $imdb_info = get_imdb($torrents['url']);
    //<strong><font color=\"red\">Country: </font></strong>".$imdb_info['country']."
    $imdb .= "<div class='imdb'>\n<div class='imdb_info'>\n<strong><font color=\"red\">Year: </font></strong> " . $imdb_info['year'] . " \n<strong><font color=\"red\">Genre: </font></strong> " . $imdb_info['gen'] . "\n<strong><font color=\"red\">Runtime: </font></strong> " . $imdb_info['runtime'] . " Mins  \n  \n<strong><font color=\"red\">Rating: </font></strong>" . $imdb_info['rating'] . "  \n<br />\n<strong><font color=\"red\">Director: </font></strong>" . $imdb_info['director'] . " \n<strong><font color=\"red\">Producers: </font></strong> " . $imdb_info['produce'] . "  \n<br />\n<strong><font color=\"red\">Writters: </font></strong>" . $imdb_info['write'] . "  \n<strong><font color=\"red\">Music: </font></strong>" . $imdb_info['compose'] . " \n</div><!-- closing imdb info -->\n<br />";
    $imdb .= "\n<div class='imdb_summary'>\n<div style=\"background-color:transparent; border: none; width:100%;\"><div style=\"text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; color: red; font-weight: bold; display: block;\"><span onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Summary: </b><a href=\\'#\\' onclick=\\'return false;\\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Summary: </b><a href=\\'#\\' onclick=\\'return false;\\'>show</a>'; }\" ><font color='red'><b>Summary: </b></font><a href=\"#\" onclick=\"return false;\">show</a></span></div><div class=\"quotecontent\"><div style=\"display: none;\"><div style='background-color:transparent;width:100%;overflow: auto'>";
    $imdb .= "" . $imdb_info['plotoutline'] . "";
    $imdb .= "</div></div></div><!-- closing quote --></div></div><!-- closing imdb summary -->";
    $imdb .= "<div class='imdb_plot'>\n<div style=\"background-color:transparent; border: none; width:100%;\"><div style=\"text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; color: red; font-weight: bold; display: block;\"><span onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Plot: </b><a href=\\'#\\' onclick=\\'return false;\\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Plot: </b><a href=\\'#\\' onclick=\\'return false;\\'>show</a>'; }\" ><font color='red'><b>Plot: </b></font><a href=\"#\" onclick=\"return false;\">show</a></span></div><div class=\"quotecontent\"><div style=\"display: none;\"><div style='background-color:transparent;width:100%;overflow: auto'>";
    $imdb .= "" . strip_tags($imdb_info['plot']) . "";
    $imdb .= "</div></div></div></div></div><!-- closing plot -->";
    $imdb .= "<div class='imdb_trailers'>\n<div style=\"background-color:transparent; border: none; width:100%;\"><div style=\"text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; color: red; font-weight: bold; display: block;\"><span onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>trailers </b><a href=\\'#\\' onclick=\\'return false;\\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>trailers </b><a href=\\'#\\' onclick=\\'return false;\\'>show</a>'; }\" ><font color='red'><b>trailers </b></font><a href=\"#\" onclick=\"return false;\">show</a></span></div><div class=\"quotecontent\"><div style=\"display: none;\"><div style='background-color:transparent;width:100%;overflow: auto'>";
    $imdb .= "<a href=\"movietrailer.php?movie=" . $imdb_info['title'] . "&amp;year=" . $imdb_info['year'] . "\" onclick=\"return popitup('movietrailer.php?movie=" . $imdb_info['title'] . "&amp;year=" . $imdb_info['year'] . "')\"\t><span class='imdb_titles'>View Trailer</span></a>\n";
    $imdb .= "</div></div></div></div></div><!-- closing trailers -->";
    //Below was added here, but thought better in bittorrent.php where the IMDB function run.  Making sure variables are set right there seems much more sane
    //isset($imdb_info['comment']) ?: $imdb_info['comment'] = 'None Available';
    $imdb .= "<div class='imdb_comments'>\n<div style=\"background-color:transparent; border: none; width:100%;\"><div style=\"text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; color: red; font-weight: bold; display: block;\"><span onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Comments: </b><a href=\\'#\\' onclick=\\'return false;\\'>hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Comments: </b><a href=\\'#\\' onclick=\\'return false;\\'>show</a>'; }\" ><font color='red'><b>Comments: </b></font><a href=\"#\" onclick=\"return false;\">show</a></span></div><div class=\"quotecontent\"><div style=\"display: none;\"><div style='background-color:transparent;width:100%;overflow: auto'>";
    $imdb .= "" . strip_tags($imdb_info['comment']) . "";