"chris-team, post: 89957":Big thanks ! ...a very good idea!
french
ajouter a la racine du site
english
add to the site root
torrents-Seedbox.php
<?php
//
//
//
require_once("backend/functions.php");
$thisurlforme = "";
dbconn(false);
//check permissions
if ($site_config["MEMBERSONLY"]){
loggedinonly();
if($CURUSER["view_torrents"]=="no")
show_error_msg("Error","You do not have permission to view torrents",1);
}
stdhead("Seedbox Torrents");
begin_frame("Torrents seedbox");
$catresult = SQL_Query_exec("SELECT id, name FROM categories ORDER BY sort_index");
while($cat = mysql_fetch_array($catresult))
{
$orderby = "ORDER BY torrents.id DESC"; //Order
$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";
$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, torrents.seedbox,categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent,users.username, users.privacy,IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1))AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where AND torrents.seedbox = 'yes' $orderby $limit";
$res = SQL_Query_exec($query) or die(mysql_error());
$numtor = mysql_num_rows($res);
if ($numtor != 0) {
echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";
list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT
torrenttable($res);
echo "<BR>";
}
}
end_frame();
stdfoot();
?>

"Movie-Torrentz, post: 87412":Hi folks
I am thinking of running our cinema system with new release movies through api similar to the imdb api the cinema will list all the movie info fully crossbrowers player with mobiles included.. im looking to see who would be intrested in running this
Price: £10 a month,
Includes updates and support..
|
<?php print("<a href=/mini/index-php.html target=wclose
onclick=window.open('index-php.html','wclose','width=370,height=230,toolbar=no,scrollbars=yes,location=no,directories=yes,status=yes,resizable=yes,left=25,top=80')><b>".T_("YOU_SPEED")."</b></a>");?><br />
"ArcticWolf, post: 89658":I had the same issue when I added this new function its cause navmenu() is now an static function and dont change per page. Simple way to fix it is rename the function in account to like navmenu2() and change its calls to that in that page, Overall this is an nice thing and saves alot of editing:) when adding new stuff:)
function verif_acces($i){
GLOBAL $CURUSER;
$res=SQL_Query_exec("SELECT classe FROM staffnavigate WHERE lien LIKE '$i'");
$num_rows = mysql_num_rows($res);
if($num_rows != '1'){
show_error_msg(T_("ERROR"),"". T_("ERROR_LINK") .": <font color='#ff0000'>$i</font> ",1);
}else{
$row=mysql_fetch_row($res);
if($CURUSER["class"] < $row[0])
die(show_error_msg(T_("ERROR"),T_("SORRY_NO_RIGHTS_TO_ACCESS"),1));
}
}
function navmenu(){
global $site_config,$CURUSER;
//Get Last Cleanup
$res = SQL_Query_exec("SELECT last_time FROM tasks WHERE task = 'cleanup'");
$row = mysql_fetch_array($res);
if (!$row){
$lastclean="never done...";
}else{
$row[0]=gmtime()-$row[0]; $days=intval($row[0] / 86400);$row[0]-=$days*86400;
$hours=intval($row[0] / 3600); $row[0]-=$hours*3600; $mins=intval($row[0] / 60);
$secs=$row[0]-($mins*60);
$lastclean = "$days days, $hours hrs, $mins minutes, $secs seconds ago.";
}
begin_frame(T_("MENU"));
print "Last cleanup performed: ".$lastclean." [<a href='admincp.php?action=forceclean'>".T_("FORCE_CLEAN")."</a>]<br /><br />";
if ($site_config["ttversion"] != "2-svn") {
$file = @file_get_contents('http://www.torrenttrader.org/tt2version.php');
if ($site_config['ttversion'] >= $file){
echo "<br /><center><b>".T_("YOU_HAVE_LATEST_VER_INSTALLED")." v$site_config[ttversion]</b></center>";
}else{
echo "<br /><center><b><font color='#ff0000'>".T_("NEW_VERSION_OF_TT_NOW_AVAIL").": v".$file." you have v".$site_config['ttversion']."<br /> Please visit <a href=http://www.torrenttrader.org>TorrentTrader.org</a> to upgrade.</font></b></center>";
}
}
$res = SQL_Query_exec("SELECT VERSION() AS mysql_version");
$row = mysql_fetch_array($res);
$mysqlver = $row['mysql_version'];
$pending = get_row_count("users", "WHERE status = 'pending' AND invited_by = '0'");
echo "<center><b>".T_("USERS_AWAITING_VALIDATION").":</b> <a href='admincp.php?action=confirmreg'>($pending)</a></center><br />";
echo "<center>".T_("VERSION_MYSQL").": <b>" . $mysqlver . "</b><br />".T_("VERSION_PHP").": <b>" . phpversion() . "</b></center>";
$affiche_menu = SQL_Query_exec("SELECT * FROM staff_categorie ORDER BY tri");
while($menu=mysql_fetch_array($affiche_menu)) {
$num_rows_class = get_row_count("staffnavigate", "WHERE categorie = $menu[id] AND $CURUSER[class] >= classe");
if ($num_rows_class != '0') {
print(" <fieldset><legend style='color:#f84f05;'>". T_("$menu[nom]") ."</legend>");
$affiche_sous_menu = SQL_Query_exec("SELECT * FROM staffnavigate WHERE categorie = $menu[id] AND $CURUSER[class] >= classe ORDER BY tri");
print("<table class='table_col2' border='0' width='100%' cellspacing='0' cellpadding='0'><tr>");
$i= 1;
while($sous_menu=mysql_fetch_assoc($affiche_sous_menu)) {
$classe = $sous_menu[classe];
switch($classe){//change case by your level for staff
case '5' : $icone= '<font color="#40E0D0" size="1">[M]</font>';break;//modo
case '6' : $icone= '<font color="#33FF33" size="1">[s]</font>';break;//smodo
case '7' : $icone= '<font color="#FF0000" size="1">[A]</font>';break;//admin
}
if ($CURUSER['class'] == "8")//if 7 is admin level
{
print("<td width='20%'><img src='images/admin/$sous_menu[image]' border='2' width='32' height='32' alt='' /><br /><a href=\"$sous_menu[lien]\">". T_("$sous_menu[nom]") ." $icone</a></td>");
}else{
print("<td width='20%'><img src='images/admin/$sous_menu[image]' border='0' width='32' height='32' alt='' /><br /><a href=\"$sous_menu[lien]\">". T_("$sous_menu[nom]") ." </a></td>");
}
if($i%5== 0){
print("</tr><tr>");
}
$i++;
}//while $sous_menu
print("</tr></table></fieldset><br/>");
}//$num_rows
}//while $menu
}
<td align="center"><a href="torrents_dead.php"><img src="images/admin/torrents-externe.png" border="0" width="32" height="32"><br /><?php echo T_("LIST_TORRENTS_EXTERNE"); ?></a><br /></td>
