Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 24th August 2009, 14:31
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Division by zero in
Code:
 Warning:  Division by zero in /home2/wolfmanb/public_html/index.php on line 98
index.php
PHP Code:
<?php
include("header.php");

function 
get_date_time($timestamp 0)
{
if (
$timestamp)
return 
date("Y-m-d H:i:s"$timestamp);
else
  
$idcookie $_COOKIE['uid'];
  return 
gmdate("Y-m-d H:i:s"time());
}
$player getuserid($btuser);
if(
$_GET["act"]=="Arcade")
{
  if(
$_POST['gname'] == "asteroids")
  {
 
$game 1;
 
$level 1;
 
$score $_POST['score'];
  }
  if(
$_POST['gname'] == "breakout")
  {
 
$game 2;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "hexxagon")
  {
 
$game 3;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "invaders")
  {
 
$game 4;
 
$level 1;
 
$score $_POST['score'];
  }
  if(
$_POST['gname'] == "moonlander")
  {
 
$game 5;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "pacman")
  {
 
$game 6;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "psol")
  {
 
$game 7;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "simon")
  {
 
$game 8;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "snake")
  {
 
$game 9;
 if(
$_POST['levelName'] == "LEVEL: SLUG")
 {
   
$level 1;
 }
 if(
$_POST['levelName'] == "LEVEL: WORM")
 {
   
$level 2;
 }
 if(
$_POST['levelName'] == "LEVEL: PYTHON")
 {
   
$level 3;
 }
 
$score $_POST['score'];
  }
  if(
$_POST['gname'] == "tetris")
  {
 
$game 10;
 
$level $_POST['level'];
 
$score $_POST['gscore'];
  }
$db->sql_query("INSERT INTO `".$db_prefix."_flashscores` ( `ID` , `game` , `user` , `level` , `score`, `date`) VALUES ( '', '".$game."', '".$player."', '".$level."', '".$score."', '" get_date_time() . "');") OR DIE(MySQL_ERROR());
$urlc="flashscores.php";
 print(
"<html><head><meta http-equiv=refresh content='0;url=$urlc'></head></html>\n");
 die; 
}
      if (
$user->user)  
      { 
          print(
"<table style=\"width: 100%;\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"bottom\"> 
<div align=\"center\"><font class=\"pmbtcopyright\">"
); 
           
            if (
$user->uploaded 0
            { 
                
$ratio number_format($user->uploaded $user->downloaded2); 
        if (
$user->downloaded == 0)  
                
$userratio "&infin;"
        elseif (
$ratio 0.1
                
$userratio "<font color=\"#ff0000\">" $ratio "</font>"
        elseif (
$ratio 0.2
                
$userratio "<font color=\"#ee0000\">" $ratio "</font>"
        elseif (
$ratio 0.3
                
$userratio "<font color=\"#dd0000\">" $ratio "</font>"
        elseif (
$ratio 0.4
                
$userratio "<font color=\"#cc0000\">" $ratio "</font>"
        elseif (
$ratio 0.5
                
$userratio "<font color=\"#bb0000\">" $ratio "</font>"
        elseif (
$ratio 0.6
                
$userratio "<font color=\"#aa0000\">" $ratio "</font>"
        elseif (
$ratio 0.7
                
$userratio "<font color=\"#990000\">" $ratio "</font>"
        elseif (
$ratio 0.8
                
$userratio "<font color=\"#880000\">" $ratio "</font>"
        elseif (
$ratio 0.9
                
$userratio "<font color=\"#770000\">" $ratio "</font>"
        elseif (
$ratio 1
                
$userratio "<font color=\"#660000\">" $ratio "</font>"
        else 
                
$userratio "<font color=\"#00FF00\">".  $ratio "</font>"
            } 
            else 
            { 
                if (
$user->downloaded 0
                
$userratio "Inf."
                else 
                
$userratio "NA"
            } 
             
            print(
_btwelcomebk.", <a href=\"user.php?op=profile&id=$user->id\">$user->name</a>".$usrclass); 
            if(
$user->invites == 0
                print(
", you have no invite&nbsp;&nbsp;&nbsp;"); 
            else 
                print(
", you have ".$user->invites." <a href=\"invite.php\">invites</a>&nbsp;&nbsp;&nbsp;"); 
          print(
"<img src=\"./themes/".$theme."/pics/download.gif\" border=\"0\" alt=\"Downloaded\" align=\"middle\" />&nbsp;<font color=\"red\">".mksize($user->downloaded)."</font>"); 
          print(
"&nbsp;&nbsp;<img src=\"./themes/".$theme."/pics/upload.gif\" border=\"0\" alt=\"Uploaded\" align=\"middle\" />&nbsp;<font color=\"green\">".mksize($user->uploaded)."</font>"); 
          print(
"&nbsp;&nbsp;<img src=\"./themes/".$theme."/pics/pic_ratio.gif\" border=\"0\" alt=\"Ratio\" align=\"middle\" />&nbsp;".$userratio."&nbsp;"); 
          print(
"</font></div></td></tr></table>\n"); 
      }
OpenTable(Rekl&#257;ma);
echo "<table width=\"100%\">";
include(
"reklama.txt");
echo 
"</table>";
CloseTable();
OpenTable(Jaunumi);
if (
$welcome_message != ""){
$welcome_message format_comment($welcome_message);
parse_smiles($welcome_message);
echo 
"<table width=\"100%\"><tr><td>".$welcome_message."</td></tr></table>";
}
CloseTable();
if (
$user->user ) {
if (
$btuser) include("poll.php");
include (
"torrents-needseed.php");
}
CloseTable();
echo 
"<a name=\"infotracker\"></a>";
OpenTable(_btinfotracker'728');

$sql "SELECT O.id AS id, O.page AS page, UNIX_TIMESTAMP(O.logged_in) AS logged_in, IF(U.name IS NULL, U.username, U.name) as name, U.warned AS warned, U.level AS level, U.Show_online AS Show_online, U.uploaded as uploaded, U.downloaded AS downloaded FROM ".$db_prefix."_online_users O LEFT JOIN ".$db_prefix."_users U ON O.id = U.id WHERE UNIX_TIMESTAMP(NOW()-last_action) < 600 AND U.Show_online = true;";
$res $db->sql_query($sql);
$tot $db->sql_numrows($res);
$i 1;
$simple "\n<p>";
$advanced "<table border=\"1\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
$advanced .= "<tr>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btusername."</strong></p>\n"
."</td>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btratio."</strong></p>\n"
."</td>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btpagename."</strong></p>\n"
."</td>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btloggedinfor."</strong></p>\n"
."</td>\n"
."</tr>\n";
if (
$db->sql_numrows($res) == 0$simple .= _btnouseronline."</p>";
else {
$simple .= "</p>";
$advanced .="\n";
        while (
$row $db->sql_fetchrow($res)) {

                
$simple .= "<a href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$simple .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$simple .= pic("icon_premium.gif",'','Premium');
                elseif (
$row["level"] == "uploader"$simple .= pic("icon_uploader.gif",'','Uploader');
                elseif (
$row["level"] == "moderator"$simple .= pic("icon_moderator.gif",'','Moderator');
                elseif (
$row["level"] == "admin"$simple .= pic("icon_admin.gif",'','Admin');
                if(
$row["warned"] == "1"$simple .= '<img src="images/warning.gif" alt="warned" />';
                
$semple .="\n";
                if (
$i $tot$simple .= ", ";
                
$i++;

                
$advanced .= "<tr>";
                
$advanced .= "<td><p><a href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$advanced .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$advanced .= pic("icon_premium.gif",'','holder');
                elseif (
$row["level"] == "moderator"$advanced .= pic("icon_moderator.gif",'','holder');
                elseif (
$row["level"] == "admin"$advanced .= pic("icon_admin.gif",'','holder');
                if(
$row["warned"] == "1"$advanced .= '<img src="images/warning.gif" alt="warned" />';
                
$advanced .= "</p></td>\n";

                if (
$row["uploaded"] == AND $row["downloaded"] == 0$ratio "---";
                elseif (
$row["downloaded"] == 0$ratio "&infin;";
                else {
                        
$ratio $row["uploaded"]/$row["downloaded"];

                        if (
$ratio 0.1$ratio "<font color=\"#ff0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.2$ratio "<font color=\"#ee0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.3$ratio "<font color=\"#dd0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.4$ratio "<font color=\"#cc0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.5$ratio "<font color=\"#bb0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.6$ratio "<font color=\"#aa0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.7$ratio "<font color=\"#990000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.8$ratio "<font color=\"#880000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.9$ratio "<font color=\"#770000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 1)   $ratio "<font color=\"#660000\">" number_format($ratio2) . "</font>";
                        else 
$ratio "<font color=\"#00FF00\">".  number_format($ratio2) . "</font>";
                }
                
$advanced .= "<td><p>".$ratio."</p></td>";
                
$advanced .= "<td><p>";
                if (
defined("_btpage_".$row["page"])) $advanced .= constant("_btpage_".$row["page"]);
                
$advanced .= "</p></td>";
                
$advanced .= "<td><p>".mkprettytime(time()-$row["logged_in"])."</p></td>";
                
$advanced .= "</tr>\n";    
        }
    
$simple .="<br /><br /><p>Legend: Admin <img src=\"themes/".$theme."/pics/icon_admin.gif\" alt=\"holder\" />, Moderator<img src=\"themes/".$theme."/pics/icon_moderator.gif\" alt=\"holder\" />, Premium<img src=\"themes/".$theme."/pics/icon_premium.gif\" alt=\"holder\" /> </p><div style='font-size: 8pt;' align=\"center\"><a href=\"javascript:advanced();\">"._btadvancedmode."</a></div>";
        
$simple .= "";
$advanced .= "\n";
}
$advanced .= "</table>\n";
$db->sql_freeresult($res);

//Simple mode
echo "<div id=\"users_simple\" class=\"show\">\n";
echo 
$simple;
echo 
"</div>\n";

//Advanced mode
echo "<div id=\"users_advanced\" class=\"hide\">\n";
echo 
$advanced;
echo 
"<br /><p>Legend: Admin <img src=\"themes/".$theme."/pics/icon_admin.gif\" alt=\"holder\" />, Moderator<img src=\"themes/".$theme."/pics/icon_moderator.gif\" alt=\"holder\" />, Premium<img src=\"themes/".$theme."/pics/icon_premium.gif\" alt=\"holder\" /> </p><div style='font-size: 8pt;' align=\"center\"><a href=\"javascript:simple();\">"._btsimplemode."</a></div>";
echo 
"</div>";

CloseTable();
?>
</center>
<?php
include("footer.php");
?>
trouble shooting lines
Code:
            $ratio = number_format($user->uploaded / $user->downloaded, 2); 
        if ($user->downloaded == 0)  
                $userratio = "&infin;";
Reply With Quote
  #2  
Old 24th August 2009, 15:10
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
PHP Code:
<?php
include("header.php");

function 
get_date_time($timestamp 0)
{
if (
$timestamp)
return 
date("Y-m-d H:i:s"$timestamp);
else
  
$idcookie $_COOKIE['uid'];
  return 
gmdate("Y-m-d H:i:s"time());
}
$player getuserid($btuser);
if(
$_GET["act"]=="Arcade")
{
  if(
$_POST['gname'] == "asteroids")
  {
 
$game 1;
 
$level 1;
 
$score $_POST['score'];
  }
  if(
$_POST['gname'] == "breakout")
  {
 
$game 2;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "hexxagon")
  {
 
$game 3;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "invaders")
  {
 
$game 4;
 
$level 1;
 
$score $_POST['score'];
  }
  if(
$_POST['gname'] == "moonlander")
  {
 
$game 5;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "pacman")
  {
 
$game 6;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "psol")
  {
 
$game 7;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "simon")
  {
 
$game 8;
 
$level 1;
 
$score $_POST['gscore'];
  }
  if(
$_POST['gname'] == "snake")
  {
 
$game 9;
 if(
$_POST['levelName'] == "LEVEL: SLUG")
 {
   
$level 1;
 }
 if(
$_POST['levelName'] == "LEVEL: WORM")
 {
   
$level 2;
 }
 if(
$_POST['levelName'] == "LEVEL: PYTHON")
 {
   
$level 3;
 }
 
$score $_POST['score'];
  }
  if(
$_POST['gname'] == "tetris")
  {
 
$game 10;
 
$level $_POST['level'];
 
$score $_POST['gscore'];
  }
$db->sql_query("INSERT INTO `".$db_prefix."_flashscores` ( `ID` , `game` , `user` , `level` , `score`, `date`) VALUES ( '', '".$game."', '".$player."', '".$level."', '".$score."', '" get_date_time() . "');") OR DIE(MySQL_ERROR());
$urlc="flashscores.php";
 print(
"<html><head><meta http-equiv=refresh content='0;url=$urlc'></head></html>\n");
 die; 
}
      if (
$user->user)  
      { 
          print(
"<table style=\"width: 100%;\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"bottom\"> 
<div align=\"center\"><font class=\"pmbtcopyright\">"
); 
           
                if (
$user->downloaded == 0$userratio "∞";
                else {
            if (
$user->uploaded 0)
            {
                
$ratio number_format($user->uploaded $user->downloaded2);
        if (
$user->downloaded == 0)
                
$userratio "8";
        elseif (
$ratio 0.1)
                
$userratio "<font color=\"#ff0000\">" $ratio "</font>";
        elseif (
$ratio 0.2)
                
$userratio "<font color=\"#ee0000\">" $ratio "</font>";
        elseif (
$ratio 0.3)
                
$userratio "<font color=\"#dd0000\">" $ratio "</font>";
        elseif (
$ratio 0.4)
                
$userratio "<font color=\"#cc0000\">" $ratio "</font>";
        elseif (
$ratio 0.5)
                
$userratio "<font color=\"#bb0000\">" $ratio "</font>";
        elseif (
$ratio 0.6)
                
$userratio "<font color=\"#aa0000\">" $ratio "</font>";
        elseif (
$ratio 0.7)
                
$userratio "<font color=\"#990000\">" $ratio "</font>";
        elseif (
$ratio 0.8)
                
$userratio "<font color=\"#880000\">" $ratio "</font>";
        elseif (
$ratio 0.9)
                
$userratio "<font color=\"#770000\">" $ratio "</font>";
        elseif (
$ratio 1)
                
$userratio "<font color=\"#660000\">" $ratio "</font>";
        else
                
$userratio "<font color=\"#00FF00\">".  $ratio "</font>";
            }
             
            print(
_btwelcomebk.", <a href=\"user.php?op=profile&id=$user->id\">$user->name</a>".$usrclass); 
            if(
$user->invites == 0
                print(
", you have no invite&nbsp;&nbsp;&nbsp;"); 
            else 
                print(
", you have ".$user->invites." <a href=\"invite.php\">invites</a>&nbsp;&nbsp;&nbsp;"); 
          print(
"<img src=\"./themes/".$theme."/pics/download.gif\" border=\"0\" alt=\"Downloaded\" align=\"middle\" />&nbsp;<font color=\"red\">".mksize($user->downloaded)."</font>"); 
          print(
"&nbsp;&nbsp;<img src=\"./themes/".$theme."/pics/upload.gif\" border=\"0\" alt=\"Uploaded\" align=\"middle\" />&nbsp;<font color=\"green\">".mksize($user->uploaded)."</font>"); 
          print(
"&nbsp;&nbsp;<img src=\"./themes/".$theme."/pics/pic_ratio.gif\" border=\"0\" alt=\"Ratio\" align=\"middle\" />&nbsp;".$userratio."&nbsp;"); 
          print(
"</font></div></td></tr></table>\n"); 
      }
OpenTable(Rekl&#257;ma);
echo "<table width=\"100%\">";
include(
"reklama.txt");
echo 
"</table>";
CloseTable();
OpenTable(Jaunumi);
if (
$welcome_message != ""){
$welcome_message format_comment($welcome_message);
parse_smiles($welcome_message);
echo 
"<table width=\"100%\"><tr><td>".$welcome_message."</td></tr></table>";
}
CloseTable();
if (
$user->user ) {
if (
$btuser) include("poll.php");
include (
"torrents-needseed.php");
}
CloseTable();
echo 
"<a name=\"infotracker\"></a>";
OpenTable(_btinfotracker'728');

$sql "SELECT O.id AS id, O.page AS page, UNIX_TIMESTAMP(O.logged_in) AS logged_in, IF(U.name IS NULL, U.username, U.name) as name, U.warned AS warned, U.level AS level, U.Show_online AS Show_online, U.uploaded as uploaded, U.downloaded AS downloaded FROM ".$db_prefix."_online_users O LEFT JOIN ".$db_prefix."_users U ON O.id = U.id WHERE UNIX_TIMESTAMP(NOW()-last_action) < 600 AND U.Show_online = true;";
$res $db->sql_query($sql);
$tot $db->sql_numrows($res);
$i 1;
$simple "\n<p>";
$advanced "<table border=\"1\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n";
$advanced .= "<tr>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btusername."</strong></p>\n"
."</td>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btratio."</strong></p>\n"
."</td>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btpagename."</strong></p>\n"
."</td>\n"
."<td>\n"
."<p align=\"center\"><strong>"._btloggedinfor."</strong></p>\n"
."</td>\n"
."</tr>\n";
if (
$db->sql_numrows($res) == 0$simple .= _btnouseronline."</p>";
else {
$simple .= "</p>";
$advanced .="\n";
        while (
$row $db->sql_fetchrow($res)) {

                
$simple .= "<a href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$simple .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$simple .= pic("icon_premium.gif",'','Premium');
                elseif (
$row["level"] == "uploader"$simple .= pic("icon_uploader.gif",'','Uploader');
                elseif (
$row["level"] == "moderator"$simple .= pic("icon_moderator.gif",'','Moderator');
                elseif (
$row["level"] == "admin"$simple .= pic("icon_admin.gif",'','Admin');
                if(
$row["warned"] == "1"$simple .= '<img src="images/warning.gif" alt="warned" />';
                
$semple .="\n";
                if (
$i $tot$simple .= ", ";
                
$i++;

                
$advanced .= "<tr>";
                
$advanced .= "<td><p><a href=\"user.php?op=profile&amp;id=".$row["id"]."\">";
                
$advanced .= htmlspecialchars($row["name"])."</a>";
                if (
$row["level"] == "premium"$advanced .= pic("icon_premium.gif",'','holder');
                elseif (
$row["level"] == "moderator"$advanced .= pic("icon_moderator.gif",'','holder');
                elseif (
$row["level"] == "admin"$advanced .= pic("icon_admin.gif",'','holder');
                if(
$row["warned"] == "1"$advanced .= '<img src="images/warning.gif" alt="warned" />';
                
$advanced .= "</p></td>\n";

                if (
$row["uploaded"] == AND $row["downloaded"] == 0$ratio "---";
                elseif (
$row["downloaded"] == 0$ratio "&infin;";
                else {
                        
$ratio $row["uploaded"]/$row["downloaded"];

                        if (
$ratio 0.1$ratio "<font color=\"#ff0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.2$ratio "<font color=\"#ee0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.3$ratio "<font color=\"#dd0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.4$ratio "<font color=\"#cc0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.5$ratio "<font color=\"#bb0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.6$ratio "<font color=\"#aa0000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.7$ratio "<font color=\"#990000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.8$ratio "<font color=\"#880000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 0.9$ratio "<font color=\"#770000\">" number_format($ratio2) . "</font>";
                        elseif (
$ratio 1)   $ratio "<font color=\"#660000\">" number_format($ratio2) . "</font>";
                        else 
$ratio "<font color=\"#00FF00\">".  number_format($ratio2) . "</font>";
                }
                
$advanced .= "<td><p>".$ratio."</p></td>";
                
$advanced .= "<td><p>";
                if (
defined("_btpage_".$row["page"])) $advanced .= constant("_btpage_".$row["page"]);
                
$advanced .= "</p></td>";
                
$advanced .= "<td><p>".mkprettytime(time()-$row["logged_in"])."</p></td>";
                
$advanced .= "</tr>\n";    
        }
    
$simple .="<br /><br /><p>Legend: Admin <img src=\"themes/".$theme."/pics/icon_admin.gif\" alt=\"holder\" />, Moderator<img src=\"themes/".$theme."/pics/icon_moderator.gif\" alt=\"holder\" />, Premium<img src=\"themes/".$theme."/pics/icon_premium.gif\" alt=\"holder\" /> </p><div style='font-size: 8pt;' align=\"center\"><a href=\"javascript:advanced();\">"._btadvancedmode."</a></div>";
        
$simple .= "";
$advanced .= "\n";
}
$advanced .= "</table>\n";
$db->sql_freeresult($res);

//Simple mode
echo "<div id=\"users_simple\" class=\"show\">\n";
echo 
$simple;
echo 
"</div>\n";

//Advanced mode
echo "<div id=\"users_advanced\" class=\"hide\">\n";
echo 
$advanced;
echo 
"<br /><p>Legend: Admin <img src=\"themes/".$theme."/pics/icon_admin.gif\" alt=\"holder\" />, Moderator<img src=\"themes/".$theme."/pics/icon_moderator.gif\" alt=\"holder\" />, Premium<img src=\"themes/".$theme."/pics/icon_premium.gif\" alt=\"holder\" /> </p><div style='font-size: 8pt;' align=\"center\"><a href=\"javascript:simple();\">"._btsimplemode."</a></div>";
echo 
"</div>";

CloseTable();
?>
</center>
<?php
include("footer.php");
?>
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 24th August 2009, 15:21
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
out liner file have 250 lines damn
Code:
Parse error:  syntax error, unexpected $end in /home2/wolfmanb/public_html/index.php on line 251
i think i fixed right code suppose to be ?
Code:
     if ($user->user)  
      { 
          print("<table style=\"width: 100%;\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"><tr><td class=\"bottom\"> 
<div align=\"center\"><font class=\"pmbtcopyright\">"); 
           
                if ($user->downloaded == 0) $userratio = "∞";
                else {
            if ($user->uploaded > 0)
            {
                $ratio = number_format($user->uploaded / $user->downloaded, 2);
        if ($user->downloaded == 0)
                $userratio = "8";
        elseif ($ratio < 0.1)
                $userratio = "<font color=\"#ff0000\">" . $ratio . "</font>";
        elseif ($ratio < 0.2)
                $userratio = "<font color=\"#ee0000\">" . $ratio . "</font>";
        elseif ($ratio < 0.3)
                $userratio = "<font color=\"#dd0000\">" . $ratio . "</font>";
        elseif ($ratio < 0.4)
                $userratio = "<font color=\"#cc0000\">" . $ratio . "</font>";
        elseif ($ratio < 0.5)
                $userratio = "<font color=\"#bb0000\">" . $ratio . "</font>";
        elseif ($ratio < 0.6)
                $userratio = "<font color=\"#aa0000\">" . $ratio . "</font>";
        elseif ($ratio < 0.7)
                $userratio = "<font color=\"#990000\">" . $ratio . "</font>";
        elseif ($ratio < 0.8)
                $userratio = "<font color=\"#880000\">" . $ratio . "</font>";
        elseif ($ratio < 0.9)
                $userratio = "<font color=\"#770000\">" . $ratio . "</font>";
        elseif ($ratio < 1)
                $userratio = "<font color=\"#660000\">" . $ratio . "</font>";
        else
                $userratio = "<font color=\"#00FF00\">".  $ratio . "</font>";
            }
             }
            print(_btwelcomebk.", <a href=\"user.php?op=profile&id=$user->id\">$user->name</a>".$usrclass); 
            if($user->invites == 0) 
                print(", you have no invite&nbsp;&nbsp;&nbsp;"); 
            else 
                print(", you have ".$user->invites." <a href=\"invite.php\">invites</a>&nbsp;&nbsp;&nbsp;"); 
          print("<img src=\"./themes/".$theme."/pics/download.gif\" border=\"0\" alt=\"Downloaded\" align=\"middle\" />&nbsp;<font color=\"red\">".mksize($user->downloaded)."</font>"); 
          print("&nbsp;&nbsp;<img src=\"./themes/".$theme."/pics/upload.gif\" border=\"0\" alt=\"Uploaded\" align=\"middle\" />&nbsp;<font color=\"green\">".mksize($user->uploaded)."</font>"); 
          print("&nbsp;&nbsp;<img src=\"./themes/".$theme."/pics/pic_ratio.gif\" border=\"0\" alt=\"Ratio\" align=\"middle\" />&nbsp;".$userratio."&nbsp;"); 
          print("</font></div></td></tr></table>\n"); 
      }

Last edited by wMan; 24th August 2009 at 16:07.
Reply With Quote
  #4  
Old 25th August 2009, 01:19
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
yes
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
division

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 10:56. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.