Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   little problem whith netmaniac 1.6 (http://www.bvlist.com/showthread.php?t=675)

HIENA 20th July 2008 04:22

little problem whith netmaniac 1.6
 
little problem whith netmaniac 1.6

http://img516.imageshack.us/img516/1...4jl9vd3.th.jpg

can somebody help me please

Neptune 20th July 2008 17:15

Re: little problem whith netmaniac 1.6
 
what's your problem?

Fynnon 20th July 2008 18:53

Re: little problem whith netmaniac 1.6
 
The problem is in the picture but it was not rendered on the forum for a misterious reason...
Fixed now!

Kotafi 20th July 2008 21:50

Re: little problem whith netmaniac 1.6
 
seems like a problem with your lang mod, post your browse.php within code tags :smile:

HIENA 20th July 2008 22:39

Re: little problem whith netmaniac 1.6
 
Code:


ob_start("ob_gzhandler");

require_once("include/bittorrent.php");


dbconn(false);

loggedinorreturn();
parked();


$cats = genrelist();

$searchstr = unesc($_GET["search"]);
$cleansearchstr = searchfield($searchstr);
if (empty($cleansearchstr))
        unset($cleansearchstr);

$orderby = "ORDER BY torrents.id DESC";

$addparam = "";
$wherea = array();
$wherecatina = array();

if ($_GET["incldead"] == 1)
{
        $addparam .= "incldead=1&";
        if (!isset($CURUSER) || get_user_class() < UC_ADMINISTRATOR)
                $wherea[] = "banned != 'yes'";
}
elseif ($_GET["incldead"] == 2)
{
        $addparam .= "incldead=2&";
                $wherea[] = "visible = 'no'";
}
        else
                $wherea[] = "visible = 'yes'";

$category = (int)$_GET["cat"];

$all = $_GET["all"];

if (!$all)
        if (!$_GET && $CURUSER["notifs"])
        {
          $all = True;
          foreach ($cats as $cat)
          {
            $all &= $cat[id];
            if (strpos($CURUSER["notifs"], "[cat" . $cat[id] . "]") !== False)
            {
              $wherecatina[] = $cat[id];
              $addparam .= "c$cat[id]=1&";
            }
          }
        }
        elseif ($category)
        {
          if (!is_valid_id($category))
            stderr("Error", "Invalid category ID $category");
          $wherecatina[] = $category;
          $addparam .= "cat=$category&";
        }
        else
        {
          $all = True;
          foreach ($cats as $cat)
          {
            $all &= $_GET["c$cat[id]"];
            if ($_GET["c$cat[id]"])
            {
              $wherecatina[] = $cat[id];
              $addparam .= "c$cat[id]=1&";
            }
          }
        }

if ($all)
{
        $wherecatina = array();
  $addparam = "";
}

if (count($wherecatina) > 1)
        $wherecatin = implode(",",$wherecatina);
elseif (count($wherecatina) == 1)
        $wherea[] = "category = $wherecatina[0]";

$wherebase = $wherea;

if (isset($cleansearchstr))
{
        $wherea[] = "MATCH (search_text, ori_descr) AGAINST (" . sqlesc($searchstr) . ")";
        //$wherea[] = "0";
        $addparam .= "search=" . urlencode($searchstr) . "&";
        $orderby = "";
}

$where = implode(" AND ", $wherea);
if ($wherecatin)
        $where .= ($where ? " AND " : "") . "category IN(" . $wherecatin . ")";

if ($where != "")
        $where = "WHERE $where";

$res = mysql_query("SELECT COUNT(*) FROM torrents $where") or die(mysql_error());
$row = mysql_fetch_array($res);
$count = $row[0];

if (!$count && isset($cleansearchstr)) {
        $wherea = $wherebase;
        $orderby = "ORDER BY id DESC";
        $searcha = explode(" ", $cleansearchstr);
        $sc = 0;
        foreach ($searcha as $searchss) {
                if (strlen($searchss) <= 1)
                        continue;
                $sc++;
                if ($sc > 5)
                        break;
                $ssa = array();
                foreach (array("search_text", "ori_descr") as $sss)
                        $ssa[] = "$sss LIKE '%" . sqlwildcardesc($searchss) . "%'";
                $wherea[] = "(" . implode(" OR ", $ssa) . ")";
        }
        if ($sc) {
                $where = implode(" AND ", $wherea);
                if ($where != "")
                        $where = "WHERE $where";
                $res = mysql_query("SELECT COUNT(*) FROM torrents $where");
                $row = mysql_fetch_array($res);
                $count = $row[0];
        }
}

$torrentsperpage = $CURUSER["torrentsperpage"];
if (!$torrentsperpage)
        $torrentsperpage = 15;

if ($count)
{
        list($pagertop, $pagerbottom, $limit) = pager($torrentsperpage, $count, "browse.php?" . $addparam);
        $query = "SELECT torrents.id, torrents.category, torrents.leechers, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments,torrents.numfiles,torrents.filename,torrents.description,torrents.anonymous,torrents.owner,IF(torrents.nfo <> '', 1, 0) as nfoav," .
//        "IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, categories.name AS cat_name, categories.image AS cat_pic, users.username FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where $orderby $limit";
        "categories.name AS cat_name, categories.image AS cat_pic, users.username FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where $orderby $limit";
        $res = mysql_query($query) or die(mysql_error());
}
else
        unset($res);
if (isset($cleansearchstr))
        stdhead("Search results for \"$searchstr\"");
else
        stdhead("Browse Torrents");

?>











       
       

$i = 0;
foreach ($cats as $cat)
{
        $catsperrow = 7;
        print(($i && $i % $catsperrow == 0) ? "" : "");
        print("\n");
        $i++;
}

$alllink = "";

$ncats = count($cats);
$nrows = ceil($ncats/$catsperrow);
$lastrowcols = $ncats % $catsperrow;

if ($lastrowcols != 0)
{
        if ($catsperrow - $lastrowcols != 1)
                {
                        print("");
                }
        print("\n");
}
?>
       
       
" . htmlspecialchars($cat[name]) . " $alllink



       
               
if ($ncats % $catsperrow == 0)
        print("\n");
?>

 
 
         
 
 

                       
         
$alllink

         

                 
         

         












Search:

in
if ($_GET["incldead"])
$deadchkbox .= " checked=\"checked\"";
$deadchkbox .= " /> including dead torrents\n";

?>







Can't find what you want? Request it or check offers

if (isset($cleansearchstr))
print("

Search results for \"" . htmlspecialchars($searchstr) . "\"

\n");

if ($count) {
        print($pagertop);

        torrenttable($res);

        print($pagerbottom);
}
else {
        if (isset($cleansearchstr)) {
                print("

Nothing found!

\n");
                print("

Try again with a refined search string.

\n");
        }
        else {
                print("

Nothing here!

\n");
                print("

Sorry pal :(

\n");
        }
}

if ($CURUSER)
// Torrents Needing Seeds mod
$need = mysql_query("SELECT id, name, leechers FROM torrents WHERE seeders = 0 AND leechers > 0 ORDER BY leechers DESC") or sqlerr();
if(mysql_num_rows($need))
{
echo("

Torrents Needing Seeds: $num

");
while($res = mysql_fetch_assoc($need))
{
 echo("$res[name] - ($res[leechers] leecher" . ($res[leechers] > 1 ? "s" : "") . ")
");
}
echo("
");
}

?>


All torrents are private, this tracker is blocking Multi-tracker/DHT torrents

stdfoot();

mysql_query("UPDATE users SET last_browse=".gmtime()." where id=".$CURUSER['id']);

?>

pls help

djlee 21st July 2008 11:21

Re: little problem whith netmaniac 1.6
 
its actually the torrenttable() function from bitorrent you need to post .. also post your language file so we can use the correct constant name..

or if you wanna try yourself look in bitorrent for the torrenttable function and then look through for the table headers .. you should find the upped by in there .. you should see something like
Code:

".UPPED." ".BY."
Change this to
Code:

".UPPED_BY."
but thats only a guess .. if the constant name isnt UPPED_BY (spelt exactly like that) then it wont work and you will have to find out the correct constant name or post the language file here along with the torrenttable function

Kotafi 21st July 2008 11:51

Re: little problem whith netmaniac 1.6
 
lol, youre right djlee :whistle:

HIENA 22nd July 2008 20:58

Re: little problem whith netmaniac 1.6
 
thx work`s and a other problem
http://i159.photobucket.com/albums/t...6584jl9vd3.jpg


All times are GMT +2. The time now is 11:05.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.