Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 10th December 2010, 15:49
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default [PMBT] Demonoid
this is a new theme I been working on a little at a time

with this you well also need to create a new file called usercp2.php and place it in blocks folder
This theme was originally created by Nikkbu

Click the image to open in full size.

inspired by nbdemon@nikkbu
Attached Files
File Type: rar NBdemon2.rar (583.7 KB, 273 views)
__________________
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/

Last edited by joeroberts; 22nd January 2012 at 19:27.
Reply With Quote
The Following 3 Users Say Thank You to joeroberts For This Useful Post:
Fynnon (11th March 2012), Giorgatzelos (4th September 2012), zacho56 (11th March 2012)
  #2  
Old 25th January 2011, 21:45
cladt's Avatar
cladt cladt is offline
Member
 
Join Date: May 2010
P2P
Posts: 14
Default theme change and right hand colum on BNdemon
i make a new usercp2.php and i put this in blocks but in footer.php don't find
HTML Code:
<td><p class="footer">
for ad above
HTML Code:
</td>
<td width=25 valign=top ></td>
<td width=170 valign=top >
<table border=0 width=100% cellspacing=0 cellpadding=0 align=right>
    <tr>
        <div align=right>
        <table border=0 cellpadding=5">
            <tr><td>
                <p><b><? include("blocks/usercp2.php"); ?></b></td><td>
        </table>
        </td></form>
    </tr>
    <tr>
    </table>
</td></tr>
</table>
</td>
</tr>
<tr>
any idea haw i make theme change and right colum on NBdemon theme?

!!sorry if i posted on wong area!!
Reply With Quote
  #3  
Old 25th January 2011, 23:17
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
huh?

ok, open main.php

find around line 434
Code:
echo "<tr><TBODY>\n";
add below
Code:
echo "<td width=\"180\" valign=\"top\">\n";
echo "<br>\n";

include("blocks/usercp2.php");

echo "</td>\n";
}
or use mine main.php attachted, i have theme changer in infobar and small minor changes ;)
Attached Files
File Type: php main.php (27.4 KB, 65 views)
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #4  
Old 27th January 2011, 21:31
cladt's Avatar
cladt cladt is offline
Member
 
Join Date: May 2010
P2P
Posts: 14
Default your main.php
if i use iour main.php facebook not apeer in torrent list
it look like dat :

Click the image to open in full size. Click the image to open in full size.

in torrent list name of uploader ,speed,facebook not apers animor!
i be grateful if you tel me wher y doo the mastake
Reply With Quote
  #5  
Old 28th January 2011, 01:38
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
if you check in main.php (mine) you will see i commented out the new bittorrent.php table. just remove the // before include and you will be useing the new bittorrent.php table. also, i have this as my main pmbt theme, you wil need to alter ALL pmbt theme name to NBdemon search and replace all pmbt to NB-Demon :D

ok wait i will edit this and repost it lmfao
try attachted bud if ok i wil update my original post.
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #6  
Old 28th January 2011, 23:23
cladt's Avatar
cladt cladt is offline
Member
 
Join Date: May 2010
P2P
Posts: 14
Default tanks dafy
y almost done,but i haw 2 search on top of torrent list,thame change not work ,and first of all in torrent list space its too big if you anderstend wat y seed

Click the image to open in full size.


i decided to use acidtech green but in explorer space inter torrents are bigist
Reply With Quote
  #7  
Old 29th January 2011, 13:03
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
message me on here when you are online, i will sign up to you and help you.
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #8  
Old 3rd February 2011, 19:39
dumorim dumorim is offline
Senior Member
 
Join Date: Dec 2010
P2P
Posts: 30
Default
error

Code:
Fatal error: Cannot redeclare imgdescr() (previously declared in /home/dumorim/public_html/teste/blocks/usercp.php:35) in /home/dumorim/public_html/teste/blocks/usercp2.php on line 38
Reply With Quote
  #9  
Old 3rd February 2011, 19:59
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
that is because i have mods in my usercp.php and usercp.php. show me your usercp and usercp2.php
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #10  
Old 3rd February 2011, 20:05
dumorim dumorim is offline
Senior Member
 
Join Date: Dec 2010
P2P
Posts: 30
Default
usercp2.php

PHP Code:
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-----------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program 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.                                    --*
*--                                                                          --*
*--   This program 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 this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/

if (!defined('IN_PMBT')) die ("You can't access this file directly");


function 
imgdescr($file,$link,$descr) {
        global 
$theme$forumbase;
        return 
"<a href=\"".$link."\"><img title=\"".$descr."\" alt=\"".$descr."\" border=\"0\" src=\"themes/".$theme."/pics/menu/".$file."\" onmouseover=\"javascript:descriptor('".addslashes($descr)."');\" onmouseout=\"javascript:descriptor('&nbsp;')\" /></a>";
}

if (
$user->user) {
        
OpenTable(_btmenu);
        if (
is_dir("themes/$theme/pics/menu")) {
                
$pm_img = ($has_newpm) ? "newpm.png" "pm.png";
                echo 
"<p align=\"center\">\n";
                echo 
imgdescr("home.png","index.php",_btindex);
                echo 
imgdescr("upload.png","upload.php",_btupload);
                echo 
imgdescr("mytorrents.png","mytorrents.php",_btpersonal);
                echo 
"<span id=\"nopm_notif\">".imgdescr($pm_img,"pm.php",_btpm)."</span>"#Private messages are not available... yet
                
echo "<br />";
        echo 
imgdescr("profile.png","user.php?op=profile&id=".$user->id."",_btuserprofile);
                echo 
imgdescr("members.png","memberslist.php",_btmemlist);
                echo 
imgdescr("logout.png","user.php?op=logout",_btlogout);
                echo 
imgdescr("forum.png","phpBB.php?page=index""Forum");
                echo 
"<br />";
                echo 
imgdescr("arcade.png","games.php",_btgames);
                echo 
imgdescr("requests.png","viewrequests.php",_btviewrqst);
                echo 
imgdescr("faq.png","faq.php",_btfaqs);
                echo 
imgdescr("offers.png","offers.php",_bttorofferd);
                echo 
"<br />";
                if (
$user->admin) echo imgdescr("admin.png","admin.php",_btadmin);
                echo 
"</p>\n";
                echo 
"<p align=\"center\" id=\"descriptor\">&nbsp;</p>";
        } else {
                echo 
"<p><a href=\"index.php\">"._btindex."</a><br />\n";
                echo 
"<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
                echo 
"<a href=\"mytorrents.php\">"._btpersonal.htmlspecialchars($user->name)."</a><br />\n";                
                echo 
"<a href=\"pm.php\">"._btpm."</a><br />\n";
                if (
file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a><br />\n";
                if (
$user->admin) echo "<a href=\"admin.php\">"._btadmin."</a><br />\n";
                echo 
"<a href=\"user.php?op=logout\">"._btlogout."</a></p>\n";
        }
        echo 
"<p>&nbsp;</p>";
        
$sql "SELECT seedbonus, avatar, uploaded,  downloaded, invites, uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';";
        
$res $db->sql_query($sql);
        list (
$seedbonus$avatar$uploaded$downloaded$invites$ratio) = $db->sql_fetchrow($res);
        
$db->sql_freeresult($res);
        echo 
"<p>".pic("pic_uploaded.gif").mksize($uploaded)."<br>";
        echo 
pic("pic_downloaded.gif").mksize($downloaded)."<br>";
        echo 
pic("pic_ratio.gif");
        echo 
"&nbsp;";
        if (
$downloaded == 0)
                echo 
"&infin;";
        elseif (
$ratio 0.1)
                echo 
"<font color=\"#ff0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.2)
                echo 
"<font color=\"#ee0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.3)
                echo 
"<font color=\"#dd0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.4)
                echo 
"<font color=\"#cc0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.5)
                echo 
"<font color=\"#bb0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.6)
                echo 
"<font color=\"#aa0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.7)
                echo 
"<font color=\"#990000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.8)
                echo 
"<font color=\"#880000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.9)
                echo 
"<font color=\"#770000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 1)
                echo 
"<font color=\"#660000\">" number_format($ratio2) . "</font>";
        else
                echo 
"<font color=\"#00FF00\">".  number_format($ratio2) . "</font>";
        echo 
"<br />\n";
        
#Numer of seeding Torrents
        
$sql "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'yes' AND T.id = P.torrent;";
        
$res $db->sql_query($sql);
        
$cnt $db->sql_numrows($res);
        
$torrents = Array();
        while (
$tor $db->sql_fetchrow($res)) {
                
$torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." $tor["name"]);
        }
        if (
$cnt 0help(pic("upload.gif"),"<p>".implode($torrents,"<br />")."</p>",_btyoureseeding);
        else echo 
pic("upload.gif",null,_btyoureseeding);
        echo 
$cnt;
        
$db->sql_freeresult($sql);
        unset(
$sql$res$torrents$tor$cnt);
        
#Number of downloading Torrents
        
echo "<br />\n";
        
$sql "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'no' AND T.id = P.torrent;";
        
$res $db->sql_query($sql);
        
$cnt $db->sql_numrows($res);
        
$torrents = Array();
        while (
$tor $db->sql_fetchrow($res)) {
                
$torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." $tor["name"]);
        }
        if (
$cnt 0help(pic("download.gif"),"<p>".implode($torrents,"<br />")."</p>",_btyoureleeching);
        else echo 
pic("download.gif",null,_btyoureleeching);
        echo 
$cnt;
        
$db->sql_freeresult($sql);
        unset(
$sql$res$torrents$tor$cnt);
        echo 
"</p>";
        echo 
"<br />\n";
        echo 
"<br />\n";
        echo 
"<p align=\"center\"><b>"._btwelcomebk."</b></p>\n";
        echo 
"<p align=\"center\"><b>".$user->name."</b></p>\n";        
        echo 
"<b><img  src=\"avatars/".$avatar."\" alt=\"".$user->name."\"></b><br />";
        echo 
"<br />\n";
        print(
"<p>Seeding Bonus: <a href='mybonus.php'>".$seedbonus."</a></p>");

        
CloseTable();
} else {
        
OpenTable(_btumenu'144');
        if (
is_dir("themes/$theme/pics/menu")) {
                echo 
"<p align=\"center\">\n";
                echo 
imgdescr("home.png","index.php",_btindex);
                if (
$upload_level == "all") echo imgdescr("upload.png","upload.php",_btupload);
                if (
file_exists("include/irc.ini")) echo imgdescr("chat.png","chat.php",_btircchat);
                echo 
"</p>\n";
                echo 
"<p align=\"center\" id=\"descriptor\">&nbsp;</p>";
        } else {
                echo 
"<p><a href=\"index.php\">"._btindex."</a><br />\n";
                if (
$upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
                if (
file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a><br />\n";
                echo 
"</p>";
        }
        echo 
"<HR SIZE=1 NOSHADE>";
        echo 
"<p align=\"center\"><b>"._btlogin."</b></p>\n";
        echo 
"<p>&nbsp;</p>\n";
        echo 
"<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"login\" />\n";    
        echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td align=\"center\"><p>"._btusername."</p></td>\n</tr><tr><td align=\"center\"><input type=\"text\" name=\"username\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btpassword."</p></td></tr><tr><td align=\"center\"><input type=\"password\" name=\"password\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btremember."</p></td></tr><tr><td align=\"center\"><input type=\"checkbox\" name=\"remember\" value=\"yes\"></td></tr>";
        if (
$gfx_check) {
                
$rnd_code strtoupper(RandomAlpha(5));
                echo 
"<p align=\"center\">"._btsecuritycode."<br><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\"><br>\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">";
                echo 
"<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n";
        }
        echo 
"<tr><td><p align=\"center\"><input type=\"submit\" value=\""._btlogin."\"></p></td></tr></table></form>";
        echo 
"<p><a href=\"user.php?op=register\">"._btsignup."</a><br />\n\n";
        echo 
"<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n";
        
CloseTable();
}
?>


usercp.php
///
PHP Code:
<?php
/*
*----------------------------phpMyBitTorrent V 2.0-----------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program 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.                                    --*
*--                                                                          --*
*--   This program 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 this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*-----------------   Sunday, September 14, 2008 9:05 PM   ---------------------*
*/

if (!defined('IN_PMBT')) die ("You can't access this file directly");


function 
imgdescr($file,$link,$descr) {
        global 
$theme$forumbase;
        return 
"<a href=\"".$link."\"><img title=\"".$descr."\" alt=\"".$descr."\" border=\"0\" src=\"themes/".$theme."/pics/menu/".$file."\" onmouseover=\"javascript:descriptor('".addslashes($descr)."');\" onmouseout=\"javascript:descriptor('&nbsp;')\" /></a>";
}

if (
$user->user) {
        
OpenTable(_btmenu);
        if (
is_dir("themes/$theme/pics/menu")) {
                
$pm_img = ($has_newpm) ? "newpm.png" "pm.png";
                echo 
"<p align=\"center\">\n";
                echo 
imgdescr("home.png","index.php",_btindex);
                echo 
imgdescr("upload.png","upload.php",_btupload);
                echo 
imgdescr("mytorrents.png","mytorrents.php",_btpersonal);
                echo 
"<span id=\"nopm_notif\">".imgdescr($pm_img,"pm.php",_btpm)."</span>"#Private messages are not available... yet
                
echo "<br />";
        echo 
imgdescr("profile.png","user.php?op=profile&id=".$user->id."",_btuserprofile);
                echo 
imgdescr("members.png","memberslist.php",_btmemlist);
                echo 
imgdescr("logout.png","user.php?op=logout",_btlogout);
                echo 
imgdescr("forum.png","phpBB.php?page=index""Forum");
                echo 
"<br />";
                echo 
imgdescr("arcade.png","games.php",_btgames);
                echo 
imgdescr("requests.png","viewrequests.php",_btviewrqst);
                echo 
imgdescr("faq.png","faq.php",_btfaqs);
                echo 
imgdescr("offers.png","offers.php",_bttorofferd);
                echo 
"<br />";
                if (
$user->admin) echo imgdescr("admin.png","admin.php",_btadmin);
                echo 
"</p>\n";
                echo 
"<p align=\"center\" id=\"descriptor\">&nbsp;</p>";
        } else {
                echo 
"<p><a href=\"index.php\">"._btindex."</a><br />\n";
                echo 
"<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
                echo 
"<a href=\"mytorrents.php\">"._btpersonal.htmlspecialchars($user->name)."</a><br />\n";                
                echo 
"<a href=\"pm.php\">"._btpm."</a><br />\n";
                if (
file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a><br />\n";
                if (
$user->admin) echo "<a href=\"admin.php\">"._btadmin."</a><br />\n";
                echo 
"<a href=\"user.php?op=logout\">"._btlogout."</a></p>\n";
        }
        echo 
"<p>&nbsp;</p>";
        
$sql "SELECT seedbonus, avatar, uploaded,  downloaded, invites, uploaded/downloaded AS ratio FROM ".$db_prefix."_users WHERE id = '".$user->id."';";
        
$res $db->sql_query($sql);
        list (
$seedbonus$avatar$uploaded$downloaded$invites$ratio) = $db->sql_fetchrow($res);
        
$db->sql_freeresult($res);
        echo 
"<p>".pic("pic_uploaded.gif").mksize($uploaded)."<br>";
        echo 
pic("pic_downloaded.gif").mksize($downloaded)."<br>";
        echo 
pic("pic_ratio.gif");
        echo 
"&nbsp;";
        if (
$downloaded == 0)
                echo 
"&infin;";
        elseif (
$ratio 0.1)
                echo 
"<font color=\"#ff0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.2)
                echo 
"<font color=\"#ee0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.3)
                echo 
"<font color=\"#dd0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.4)
                echo 
"<font color=\"#cc0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.5)
                echo 
"<font color=\"#bb0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.6)
                echo 
"<font color=\"#aa0000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.7)
                echo 
"<font color=\"#990000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.8)
                echo 
"<font color=\"#880000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 0.9)
                echo 
"<font color=\"#770000\">" number_format($ratio2) . "</font>";
        elseif (
$ratio 1)
                echo 
"<font color=\"#660000\">" number_format($ratio2) . "</font>";
        else
                echo 
"<font color=\"#00FF00\">".  number_format($ratio2) . "</font>";
        echo 
"<br />\n";
        
#Numer of seeding Torrents
        
$sql "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'yes' AND T.id = P.torrent;";
        
$res $db->sql_query($sql);
        
$cnt $db->sql_numrows($res);
        
$torrents = Array();
        while (
$tor $db->sql_fetchrow($res)) {
                
$torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." $tor["name"]);
        }
        if (
$cnt 0help(pic("upload.gif"),"<p>".implode($torrents,"<br />")."</p>",_btyoureseeding);
        else echo 
pic("upload.gif",null,_btyoureseeding);
        echo 
$cnt;
        
$db->sql_freeresult($sql);
        unset(
$sql$res$torrents$tor$cnt);
        
#Number of downloading Torrents
        
echo "<br />\n";
        
$sql "SELECT P.torrent AS id, T.name as name FROM ".$db_prefix."_peers P, ".$db_prefix."_torrents T WHERE P.uid = '".$user->id."' AND P.seeder = 'no' AND T.id = P.torrent;";
        
$res $db->sql_query($sql);
        
$cnt $db->sql_numrows($res);
        
$torrents = Array();
        while (
$tor $db->sql_fetchrow($res)) {
                
$torrents[] = htmlspecialchars((strlen($tor["name"]) > 33) ? substr($tor["name"],0,30)."..." $tor["name"]);
        }
        if (
$cnt 0help(pic("download.gif"),"<p>".implode($torrents,"<br />")."</p>",_btyoureleeching);
        else echo 
pic("download.gif",null,_btyoureleeching);
        echo 
$cnt;
        
$db->sql_freeresult($sql);
        unset(
$sql$res$torrents$tor$cnt);
        echo 
"</p>";
        echo 
"<br />\n";
        echo 
"<br />\n";
        echo 
"<p align=\"center\"><b>"._btwelcomebk."</b></p>\n";
        echo 
"<p align=\"center\"><b>".$user->name."</b></p>\n";        
        echo 
"<b><img  src=\"avatars/".$avatar."\" alt=\"".$user->name."\"></b><br />";
        echo 
"<br />\n";
        print(
"<p>Seeding Bonus: <a href='mybonus.php'>".$seedbonus."</a></p>");

        
CloseTable();
} else {
        
OpenTable(_btumenu'144');
        if (
is_dir("themes/$theme/pics/menu")) {
                echo 
"<p align=\"center\">\n";
                echo 
imgdescr("home.png","index.php",_btindex);
                if (
$upload_level == "all") echo imgdescr("upload.png","upload.php",_btupload);
                if (
file_exists("include/irc.ini")) echo imgdescr("chat.png","chat.php",_btircchat);
                echo 
"</p>\n";
                echo 
"<p align=\"center\" id=\"descriptor\">&nbsp;</p>";
        } else {
                echo 
"<p><a href=\"index.php\">"._btindex."</a><br />\n";
                if (
$upload_level == "all") echo "<a href=\"upload.php\">"._bttorrentupload."</a><br />\n";
                if (
file_exists("include/irc.ini")) echo "<a href=\"chat.php\">"._btircchat."</a><br />\n";
                echo 
"</p>";
        }
        echo 
"<HR SIZE=1 NOSHADE>";
        echo 
"<p align=\"center\"><b>"._btlogin."</b></p>\n";
        echo 
"<p>&nbsp;</p>\n";
        echo 
"<form method=\"POST\" action=\"user.php\"><input type=\"hidden\" name=\"op\" value=\"login\" />\n";    
        echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr><td align=\"center\"><p>"._btusername."</p></td>\n</tr><tr><td align=\"center\"><input type=\"text\" name=\"username\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btpassword."</p></td></tr><tr><td align=\"center\"><input type=\"password\" name=\"password\" size=\"10\"></td></tr><tr><td align=\"center\"><p>"._btremember."</p></td></tr><tr><td align=\"center\"><input type=\"checkbox\" name=\"remember\" value=\"yes\"></td></tr>";
        if (
$gfx_check) {
                
$rnd_code strtoupper(RandomAlpha(5));
                echo 
"<p align=\"center\">"._btsecuritycode."<br><img src=\"gfxgen.php?code=".base64_encode($rnd_code)."\" alt=\"Security Code\"><br>\n<input type=\"text\" name=\"gfxcode\" size=\"10\" maxlength=\"6\">";
                echo 
"<input type=\"hidden\" name=\"gfxcheck\" value=\"".md5($rnd_code)."\">\n\n";
        }
        echo 
"<tr><td><p align=\"center\"><input type=\"submit\" value=\""._btlogin."\"></p></td></tr></table></form>";
        echo 
"<p><a href=\"user.php?op=register\">"._btsignup."</a><br />\n\n";
        echo 
"<a href=\"user.php?op=lostpassword\">"._btlostpassword."</a></p>\n\n";
        
CloseTable();
}
?>
Reply With Quote
Reply

Tags
demonoid , pmbt

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 18:58. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.