Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 3rd July 2010, 19:43
wxlg1117's Avatar
wxlg1117 wxlg1117 is offline
Senior Member
 
Join Date: Aug 2009
China
Posts: 16
Default some *.php can't find in server
use Yuna Pre7 RC v02.2 - kp380lv ,
where is editforums.php,status.php,findnotconnectable.php and agentban.php ?
or how to build those file?
Click the image to open in full size.

anyone can help me?
Reply With Quote
  #2  
Old 3rd July 2010, 20:06
Timisoreanul's Avatar
Timisoreanul Timisoreanul is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 210
Default
Hi, most those files are not in the box, but here there are posted.
Ps: forummanage.php is Edit forums ,


Edit : just found the findnotconnectable but there is a but, is it in russian language, so you have to translate end you need the sql to add in database . Let my now if it works.
Code:
-- 
-- Table structure for table `notconnectablepmlog`
-- 

CREATE TABLE `notconnectablepmlog` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `user` int(10) unsigned NOT NULL default '0',
  `date` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- Dumping data for table `notconnectablepmlog`
--
Attached Files
File Type: php forummanage.php (10.5 KB, 19 views)
File Type: php agentban.php (4.0 KB, 10 views)
File Type: php status.php (11.3 KB, 10 views)
File Type: php findnotconnectable.php (7.7 KB, 9 views)
__________________
only me

Last edited by Timisoreanul; 3rd July 2010 at 20:48. Reason: Added the findconect.
Reply With Quote
The Following User Says Thank You to Timisoreanul For This Useful Post:
wxlg1117 (3rd July 2010)
  #3  
Old 3rd July 2010, 20:52
wxlg1117's Avatar
wxlg1117 wxlg1117 is offline
Senior Member
 
Join Date: Aug 2009
China
Posts: 16
Default
Quote:
Originally Posted by Timisoreanul View Post
Hi, most those files are not in the box, but here there are posted.
Ps: forummanage.php is Edit forums , end findnotconnectable i'm still looking for him.

first thanks Timisoreanul ;

and i rename forummanage.php to editforums.php,it works but have a bug (Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/admin/pt.virsrv.com/editforums.php on line 79),then i fix it ,the page view good ,but it dosn't work

status.php and agentban.php work perfect,but how to add Client Agent into

Click the image to open in full size.

list? like this UT1772 ? where can i get USER AGENT list ?
Reply With Quote
  #4  
Old 3rd July 2010, 21:23
Timisoreanul's Avatar
Timisoreanul Timisoreanul is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 210
Default
For agent problem, if found this: look in to your database tracker at banned_agent end you will see the baned agents , end also in include/functions_announce.php at this line[code] {
if ($agent == "BitTorrent/ABC-2.6.9" && $_SERVER["SERVER_PROTOCOL"] == "HTTP/1.1")
err($SITENAME.' has banned this client. Please use
__________________
only me
Reply With Quote
  #5  
Old 3rd July 2010, 22:01
wxlg1117's Avatar
wxlg1117 wxlg1117 is offline
Senior Member
 
Join Date: Aug 2009
China
Posts: 16
Default
I refer to this :http://my-trac.assembla.com/freetosu...le.php?rev=115,

then i find this by google :http://www.koders.com/php/fid4C12125...7.aspx?s=image

By contrast, found that the code is almost, but the English version;
then i fix it and upload this file to my server, it working;

Click the image to open in full size.

list Unconnectable Users
normal ,and send PM normal ,but i can't understand ,the Date all was zero? elapsed was 2113 week ago?

Click the image to open in full size.

first add in this sql to
database:
Code:
-- 
-- Table structure for table `notconnectablepmlog`
-- 

CREATE TABLE `notconnectablepmlog` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `user` int(10) unsigned NOT NULL default '0',
  `date` datetime default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- 
-- Dumping data for table `notconnectablepmlog`
--
then upload findnotconnectable.php to your WWW root ,

findnotconnectable.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_once("include/bittorrent.php");
dbconn(false);

loggedinorreturn();

if (get_user_class() < UC_UPLOADER)
    stderr($tracker_lang['error'], $tracker_lang['access_denied']);

if ($_GET['action'] == "list") {

$res2 = sql_query("SELECT userid, seeder, torrent, agent FROM peers WHERE connectable='no' ORDER BY userid DESC") or sqlerr(__FILE__, __LINE__);

stdhead("Peers that are unconnectable");
print("<a href=findnotconnectable.php?action=sendpm><h3>Послать всем несоединябельным пирам массовое ПМ</h3></a>");
print("<a href=findnotconnectable.php><h3>Просмотреть лог (Проверьте это прежде чем отправлять ЛС пользователям)</h3></a>");
print("<h1>Пиры с которыми нельзя соединиться</h1>");
print("Это только те пользователи которые сейчас активны на торрентах.");

print("<br /><font color=red>*</font> означает что пользователь сидирует.<p>");
$result = sql_query("SELECT DISTINCT userid FROM peers WHERE connectable = 'no'");
$count = mysql_num_rows($result);
print ("$count уникальных пиров с которыми нельзя соединиться.");
@mysql_free_result($result);

if (mysql_num_rows($res2) == 0)
print("<p align=center><b>Со всеми пирами можно соединится!</b></p>\n");
else
{
print("<table border=1 cellspacing=0 cellpadding=5>\n");
print("<tr><td class=colhead>Пользователь</td><td class=colhead>Торрент</td><td class=colhead>Клиент</td></tr>\n");
while($arr2 = mysql_fetch_assoc($res2))
{
$r2 = sql_query("SELECT username FROM users WHERE id=$arr2[userid]") or sqlerr(__FILE__, __LINE__);
$a2 = mysql_fetch_assoc($r2);
print("<tr><td><a href=userdetails.php?id=$arr2[userid]>$a2[username]</a></td><td align=left><a href=details.php?id=$arr2[torrent]&dllist=1#seeders>$arr2[torrent]");
if ($arr2[seeder] == 'yes')
print("<font color=red>*</font>");
print("</a></td><td align=left>$arr2[agent]</td></tr>\n");
}
print("</table>\n");
}
}

if ($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST"){
$dt = sqlesc(get_date_time());
$msg = $_POST['msg'];
if (!$msg)
stderr($tracker_lang['error'],"Введите текст сообщения");

$query = sql_query("SELECT distinct userid FROM peers WHERE connectable='no'");
while($dat=mysql_fetch_assoc($query)){
$subject = sqlesc("Трекер определил вас несоединябельного");
send_pm(0, $dat['userid'], get_date_time(), $subject, $msg);
//sql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES (0,$dat[userid] , '" . get_date_time() . "', " . sqlesc($msg) . ", " . $subject .")") or sqlerr(__FILE__,__LINE__);
}
sql_query("INSERT INTO notconnectablepmlog ( user , date ) VALUES ( $CURUSER[id], $dt)") or sqlerr(__FILE__,__LINE__);
header("Refresh: 0; url=findnotconnectable.php");


}

if ($_GET['action'] == "sendpm") {
stdhead("Пиры с которыми нельзя соединиться");
?>
<table class=main width=750 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded>
<div align=center>
<h1>Общее сообщение для пользователей с которыми нельзя соединиться</a></h1>
<form method=post action=findnotconnectable.php>
<?

if ($_GET["returnto"] || $_SERVER["HTTP_REFERER"])
{
?>
<input type=hidden name=returnto value=<?=$_GET["returnto"] ? $_GET["returnto"] : $_SERVER["HTTP_REFERER"]?>>
<?
}
//default message
$body = "The tracker has determined that you are firewalled or NATed and cannot accept incoming connections. \n\nThis means that other peers in the swarm will be unable to connect to you, only you to them. Even worse, if two peers are both in this state they will not be able to connect at all. This has obviously a detrimental effect on the overall speed. \n\nThe way to solve the problem involves opening the ports used for incoming connections (the same range you defined in your client) on the firewall and/or configuring your NAT server to use a basic form of NAT for that range instead of NAPT (the actual process differs widely between different router models. Check your router documentation and/or support forum. You will also find lots of information on the subject at PortForward). \n\nAlso if you need help please come into our IRC chat room or post in the forums your problems. We are always glad to help out.\n\nThank You";
?>
<table cellspacing=0 cellpadding=5>
<tr>
<td>Send Mass Messege To All Non Connectable Users<br />
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="border: 0">&nbsp;</td>
<td style="border: 0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td><textarea name=msg cols=120 rows=15><?=$body?></textarea></td></tr>
<tr>
<tr><td colspan=2 align=center><input type=submit value="Отправить" class=btn></td></tr>
</table>
<input type=hidden name=receiver value=<?=$receiver?>>
</form>

</div></td></tr></table>
<?
}
if ($_GET['action'] == ""){
stdhead("Лог общих сообщений для файрволеных");
$getlog = sql_query("SELECT * FROM `notconnectablepmlog` LIMIT 10");
print("<h1>Лог общих сообщений для файрволеных</h1>");
print("<a href=findnotconnectable.php?action=sendpm><h3>Послать общее сообщение для пользователей с которыми нельзя соединиться</h3></a>");
print("<a href=findnotconnectable.php?action=list><h3>Показать пользователей с которыми нельзя соединиться</h3></a>");
print("<br />Пожалуста не отправляйте ЛС слишком часто. Мы не хотим спамить пользователей, только дадим знать что с ними нельзя соединиться.<p>");
print("<br />Каждую неделю будет нормально.<p>");
print("<table border=1 cellspacing=0 cellpadding=5>\n");
print("<tr><td class=colhead>Пользователь</td><td class=colhead>Дата</td><td class=colhead>Прошло</td></tr>");
while($arr2 = mysql_fetch_assoc($getlog)){
$r2 = sql_query("SELECT username FROM users WHERE id=$arr2[user]") or sqlerr(__FILE__, __LINE__);
$a2 = mysql_fetch_assoc($r2);
$elapsed = get_elapsed_time(sql_timestamp_to_unix_timestamp($arr2[date]));
print("<tr><td class=colhead><a href=userdetails.php?id=$arr2[user]>$a2[username]</a></td><td class=colhead>$arr2[date]</td><td>$elapsed назад</td></tr>");
}
print("</table>");

}

stdfoot();

?>
What is the meaning of the phrase in Russian ?I can not translation it into english
Code:
$subject = sqlesc("Трекер определил вас несоединябельного");
Attached Files
File Type: php findnotconnectable.php (5.5 KB, 6 views)

Last edited by wxlg1117; 3rd July 2010 at 23:30.
Reply With Quote
Reply

Tags
agentbanphp , findnotconnectablephp

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
about agentban.php wxlg1117 Yuna Scatari Edition (YSE) 2 21st April 2015 02:26



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