|
|
|
|
| Re: Can't download a torrent ? [message #2197 is a reply to message #1870] |
Thu, 04 September 2008 09:21   |
Tareek  Messages: 10 Registered: September 2008 |
Leecher |
|
|
hi, i'm having the same/similar problem.
when i/users try to download they see only empty page.
i've setup with following config : only premium or above level users are allowed to downld/upld torrent file. password for each torrent. PMBT v1.2.2 Jul 10 2007.
i was having peoblem with passkey, but i found the location of passkey in database, and found out how to use that in the tracker list.
few spec of my srvr : hosting srvc acc . php 5.2.6 . PHP API: 20041225 . PHP Extension: 20060613 . CentOS . x86_64 . Zend . post_max_size : 8M . upload_max_filesize: 2M . DOM/XML: enabled . DOM/XML API Version: 20031129 . libxml Version: 2.6.32 . HTML Support: enabled . XPath Support: enabled . XPointer Support: enabled . Schema Support: enabled . RelaxNG Support: enabled . libXML support: active . libXML Version: 2.6.32 . hash . mhash . mcrypt. MySQL : 5.0.45 . SimpleXML support: enabled, rev: 1.151.2.22.2.39 . SourceGuardian . XML : XML Support: active . XML Namespace Support: active . EXPAT Version: expat_1.95.7 . XMLReader: enabled . xmlrpc : core library version: xmlrpc-epi v. 0.51 . php extension version: 0.51 . XMLWriter: enabled . XSL : enabled . libxslt Version: 1.1.24 . libxslt compiled against libxml Version: 2.6.32 . EXSLT: enabled . libexslt Version: 1.1.24 . zlib . ioncube . Apache/2.2.9 .
~Tareek.
[Updated on: Thu, 04 September 2008 09:48] Report message to a moderator
|
|
|
| Re: Can't download a torrent ? [message #2198 is a reply to message #2197] |
Thu, 04 September 2008 13:15   |
|
replace your include/class.mail.php with <?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- 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 -----------*
*------------------------------------------------------------------------------*
*/
if (eregi("class.email.php", $_SERVER['PHP_SELF'])) die ("You can't access this file directly...");
class eMail {
var $sender;
var $recipient = Array();
var $subject;
var $body;
function eMail() {
global $admin_email;
$this->sender = $admin_email;
}
function Send() {
//if (!isset($this->recipient,$this->subject,$this->body)) return false;
foreach ($this->recipient as $rec) {
mail($rec,$this->subject,$this->body,"From: ".$this->sender."\nX-Mailer: PHP/" . phpversion());
}
return true;
}
function Add($email) {
if (is_email($email)) $this->recipient[] = $email;
}
}
class MailingList {
var $mails = Array();
function Insert($mail) {
$this->mails[] = $mail;
}
function Sendmail() {
if (count($this->mails) <1 ) return;
foreach ($this->mails as $mail) {
$mail->Send();
}
}
}
?>
make sure you leave no blanks before <?php or after ?>
[Updated on: Thu, 04 September 2008 13:17] Report message to a moderator
|
|
|
|
|
|