Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Yuna Scatari Edition (YSE) (http://www.bvlist.com/forumdisplay.php?f=22)
-   -   Add Upload/download error (http://www.bvlist.com/showthread.php?t=4621)

mat22 4th March 2010 20:48

Add Upload/download error
 
I have function that allows administration add upload or download to user from userdetails page. but! When I made few modifications for it that function stopped to work. I have changed lines back to default but still same problem.

joeroberts 7th March 2010 15:07

would need to know what your code was to add up/down to users

mat22 8th March 2010 13:02

My userdetails.php:

[code]
/*
// +--------------------------------------------------------------------------+
// | Project: TBDevYSE - TBDev Yuna Scatari Edition |
// +--------------------------------------------------------------------------+
// | This file is part of TBDevYSE. TBDevYSE is based on TBDev, |
// | originally by RedBeard of TorrentBits, extensively modified by |
// | Gartenzwerg. |
// | |
// | TBDevYSE is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | TBDevYSE is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with TBDevYSE; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +--------------------------------------------------------------------------+
// | Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/

require "include/bittorrent.php";

dbconn(false);

loggedinorreturn();

function bark($msg) {
global $tracker_lang;
stdhead($tracker_lang['error']);
stdmsg($tracker_lang['error'], $msg);
stdfoot();
exit;
}

function maketable($res)
{
global $tracker_lang, $use_ttl, $ttl_days;
$ret = "" .
"".($use_ttl ? "" : "")."\n" .
"\n";
while ($arr = mysql_fetch_assoc($res))
{
if ($arr["downloaded"] > 0)
{
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
$ratio = "$ratio";
}
else
if ($arr["uploaded"] > 0)
$ratio = "Inf.";
else
$ratio = "---";
$catid = $arr["catid"];
$catimage = htmlspecialchars($arr["image"]);
$catname = htmlspecialchars($arr["catname"]);
$ttl = ($ttl_days*24) - floor((gmtime() - sql_timestamp_to_unix_timestamp($arr["added"])) / 3600);
if ($ttl == 1) $ttl .= " 
".$tracker_lang['type']."".$tracker_lang['name']."".$tracker_lang['ttl']."".$tracker_lang['size']."".$tracker_lang['details_seeding']."".$tracker_lang['details_leeching']."".$tracker_lang['uploaded']."".$tracker_lang['downloaded']."".$tracker_lang['ratio']."


All times are GMT +2. The time now is 13:53.

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