Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #61  
Old 27th November 2009, 23:16
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
open admin.php fined
PHP Code:
OpenTable("load");
if (
strtoupper(substr(PHP_OS03)) == "WIN") {
if (
class_exists("COM")) {
    function 
mkprettytime2($s){
        foreach (array(
"60:sec","60:min","24:hour","1:day") as $x) {
            
$y explode(":"$x);
            if (
$y[0] > 1) {
                
$v $s $y[0];
                
$s floor($s $y[0]);
            }
            else
                
$v $s;
            
$t[$y[1]] = $v;
        }

        if (
$t['week'] > || $t['week'] == 0$wk " weeks";
        else 
$wk " week";
        if (
$t['day'] > || $t['day'] == 0$day " days";
        else 
$day " day";
        if (
$t['hour'] > || $t['hour'] == 0$hr " hrs";
        else 
$hr " hr";
        if (
$t['min'] > || $t['min'] == 0$min " mins";
        else 
$min " min";
        if (
$t['sec'] > || $t['sec'] == 0$sec " secs";
        else 
$sec " sec";

        if (
$t["month"])
            return 
"{$t['month']}$mth {$t['week']}$wk {$t['day']}$day ".sprintf("%d$hr %02d$min %02d$sec"$t["hour"], $t["min"], $t["sec"], $f["month"]);
        if (
$t["week"])
            return 
"{$t['week']}$wk {$t['day']}$day ".sprintf("%d$hr %02d$min %02d$sec"$t["hour"], $t["min"], $t["sec"], $f["month"]);
        if (
$t["day"])
            return 
"{$t['day']}$day ".sprintf("%d$hr %02d$min %02d$sec"$t["hour"], $t["min"], $t["sec"]);
        if (
$t["hour"])
            return 
sprintf("%d$hr %02d$min %02d$sec"$t["hour"], $t["min"], $t["sec"]);
        if (
$t["min"])
            return 
sprintf("%d$min %02d$sec"$t["min"], $t["sec"]);
        return 
$t["sec"].$sec;
    }
    
$wmi = new COM("Winmgmts://");
    
$cpus $wmi->InstancesOf("Win32_Processor");
    
$os $wmi->InstancesOf("Win32_OperatingSystem");
    
$os $os->Next();
    
$os $os->Caption." - ".$os->CSDVersion." ".$os->Version;
    
$system $wmi->InstancesOf("Win32_ComputerSystem");
    
$system $system->Next();
    
$cpucount $system->NumberOfProcessors;
    
    
$ram $wmi->InstancesOf("Win32_LogicalMemoryConfiguration");
    
$ram $ram->Next();
    
$ramtotal $ram->TotalPhysicalMemory*1024;
    
    
$ram $wmi->InstancesOf("Win32_PerfRawData_PerfOS_Memory");
    
$ram $ram->Next();
    
$ramused $ramtotal-$ram->AvailableBytes;
    
$ramused mksize($ramused);
    
$ramtotal mksize($ramtotal);
    
    
$uptime $wmi->InstancesOf("Win32_PerfFormattedData_PerfOS_System");
    
$uptime $uptime->Next();
    
$uptime mkprettytime2($uptime->SystemUpTime);

    while (
$cpu $cpus->Next()) {
        
$cpus1[] = $cpu->LoadPercentage;
        
$totalusage += $cpu->LoadPercentage;
    }
    
    
$totalusage round($totalusage/$cpucount2);    

    echo 
"<b>OS:</b> $os<BR>";
    echo 
"<b>Number of CPUs:</b> $cpucount<BR>";
    for (
$i=0;$i<count($cpus1);$i++)
        echo 
"<b>CPU$i Usage:</b> $cpus1[$i]%<BR>";
    echo 
"<b>Total CPU Usage:</b> $totalusage%<BR>";
    echo 
"<B>RAM Usage:</b> $ramused/$ramtotal<BR>";
    echo 
"<b>Uptime:</b> $uptime";
}
}else{
// Users and load information
$reguptime trim(exec("uptime"));
if (
$reguptime) {
  if (
preg_match("/, *(\d) (users?), .*: (.*), (.*), (.*)/"$reguptime$uptime)) {
    
$users[0] = $uptime[1];
    
$users[1] = $uptime[2];
    
$loadnow $uptime[3];
    
$load15 $uptime[4];
    
$load30 $uptime[5];
  }
} else {
  
$users[0] = "NA";
  
$users[1] = "--";
  
$loadnow "NA";
  
$load15 "--";
  
$load30 "--";
}

$percent min(100round(exec('ps ax | grep -c apache') / 256 30 ));
echo 
"<B>Tracker Load:</B> ($percent%)<br>";

echo(
"<b>Current Users:</b> $users[0]<br>");
echo(
"<b>Current Load:</b> $loadnow<br><b>Load 15 mins ago:</b> $load15<br><b>Load 30 mins ago:</b> $load30<br><hr>");

// Operating system
$fp = @fopen("/proc/version""r");
if (
$fp) {
  
$temp = @fgets($fp);
  
fclose($fp);

  if (
preg_match("/version (.*?) /"$temp$osarray)) {
    
$kernel $osarray[1];
    
preg_match("/[0-9]{5,} (\((.* *)\)\))/"$temp$osarray);
    
$flavour $osarray[2];
    
$operatingsystem $flavour." (".PHP_OS." ".$kernel.")";
    if (
preg_match("/SMP/"$buf)) {
      
$operatingsystem .= " (SMP)";
    }
  } else {
    
$result "(N/A)";
  }
} else {
  
$result "(N/A)";
}

echo(
"<b>Operating System:</b><br>$operatingsystem");
}
CloseTable(); 
and remove it
__________________
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
  #62  
Old 27th December 2009, 10:10
get_fire's Avatar
get_fire get_fire is offline
Member
 
Join Date: Aug 2009
Russia
Posts: 10
Default
Error Executing SQL Query
Attached Thumbnails
??????????.PNG  
Reply With Quote
  #63  
Old 27th December 2009, 16:49
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
open upload/taketorrent.php and fine
Code:
if (isset($exeem)) $torrentvalues[] = "'".$exeem."'";
and replace with
Code:
if (isset($exeem) AND $exeem != "") $torrentvalues[] = "'".$exeem."'";
__________________
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
  #64  
Old 7th February 2010, 19:18
cop1976's Avatar
cop1976 cop1976 is offline
Senior Member
 
Join Date: May 2009
United Kingdom
Posts: 30
Default
This is a very good code, after few modification the best code for private torrent site.
Keep up the good work.
__________________
http://bvlist.com/images/avatars/signaturepics/sigpic5839_1.gif
Reply With Quote
  #65  
Old 27th June 2010, 08:08
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Smile going
going to give this ago will report back with bigs and i hope there is some themes for it and i do not like the blue one

Code:
Stage #3
/phpBB3/install/index.php
so why white screen ?

Code:
HTTP  404 Error - Not FoundA 404 HTTP Error  Occurred while Processing Your Request.
The Requested Page Does Not Exist.
Please check the URL in your Browser carefully, and correct it if  needed.
Contact  if you're having problems.

Last edited by wMan; 27th June 2010 at 09:05.
Reply With Quote
  #66  
Old 27th June 2010, 12:52
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
index.php from install folder of phpBB3:

search for:
PHP Code:
$user = new user(); 
replace with:
PHP Code:
$user =new userbb(); 
__________________
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
  #67  
Old 27th June 2010, 13:16
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Quote:
Originally Posted by joeroberts View Post
index.php from install folder of phpBB3:

search for:
PHP Code:
$user = new user(); 
replace with:
PHP Code:
$user =new userbb(); 
ok lets see what gose down here and i hope no white screen

WOULD LIKE theme for this code and a forum would be nice for it
Reply With Quote
  #68  
Old 24th October 2010, 22:43
PersGiG PersGiG is offline
Senior Member
 
Join Date: Oct 2010
P2P
Posts: 16
Default invalid announce url
hi all
i done the setting and changes every thing was mentioned in this thread

after all i had the announce url error
it says it is wrong and should be edited
i went true all settings and could not find it
Upload Failed!Invalid Announce URL. Must be http://www.naamzad.com


can you please tell me what should i do thanks
Reply With Quote
  #69  
Old 25th October 2010, 08:58
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
what is the announce url of the torrent you are uploading?
__________________
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
  #70  
Old 25th October 2010, 18:52
PersGiG PersGiG is offline
Senior Member
 
Join Date: Oct 2010
P2P
Posts: 16
Default hi
i dont know
i did not set it up
i thought it should be by default
in error message it says this
Upload Failed!Invalid Announce URL. Must be http://www.naamzad.com
i found this line in config_lite.php
$announce_url = $siteurl."/announce.php";

shall i edite this line and also is the . correct at the end of siteurl
also i saw rsa keygen in utility
what is rsa do i need to install it
if so how

would you be kind for me and have a look
thanks

Last edited by PersGiG; 25th October 2010 at 21:02.
Reply With Quote
Reply

Tags
gold , phpmybittorrent , release

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best release AT THE MOMENT ? fen7azy Yuna Scatari Edition (YSE) 5 5th February 2010 21:09
[xBTiT]HACK - Gold silver torrents by Losmi bewithuu2 xBTiT 0 31st January 2010 12:28
New Release but not version joeroberts BT.Manager (phpMyBitTorrent) 5 9th January 2010 22:44
Release bad torrentID The Analyzer Yuna Scatari Edition (YSE) 2 29th November 2008 16:40
Final release? icecore Yuna Scatari Edition (YSE) 2 16th August 2008 17:54



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