Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Closed Thread
  #1  
Old 12th January 2010, 02:42
Genkai's Avatar
Genkai Genkai is offline
Senior Member
 
Join Date: Aug 2008
Portugal
Posts: 16
Default Ghost torrents
Hi. I'm using YSE v2.2 PRE7 by kp380lv. In my stats it says I'm downloading 3 torrents and uploading 14 torrents. But, in fact, I'm not doing anything. Does some1 knows how to fix this bug?
  #2  
Old 12th January 2010, 04:48
Moh.ElBaz's Avatar
Moh.ElBaz Moh.ElBaz is offline
Senior Member
 
Join Date: Jul 2008
Egypt
Posts: 145
Default
post this userdetails.php
__________________
$ Coding and Development
  #3  
Old 12th January 2010, 10:09
Genkai's Avatar
Genkai Genkai is offline
Senior Member
 
Join Date: Aug 2008
Portugal
Posts: 16
Default
PHP Code:
<?


require "include/bittorrent.php";
// +-------------BEGIN Language Hack By ANDiTKO ------------+
global $defaultlanguage, $tracker_lang, $rootpath;
if (file_exists($rootpath . 'languages/' . $lang . '/lang_userdetails.php'))
require_once($rootpath . 'languages/' . $lang . '/lang_userdetails.php');
else
require_once($rootpath . 'languages/' . $defaultlanguage . '/lang_userdetails.php');
// +-------------END Language Hack By ANDiTKO --------------+

dbconn(false);

loggedinorreturn();

function maketable($res)
{
  global $tracker_lang, $useoldtorrentstime, $oldtorrentstime;
  $ret = "<table class=main border=1 cellspacing=0 cellpadding=5>" .
    "<tr><td class=colhead align=left>".$tracker_lang['type']."</td><td class=colhead>".$tracker_lang['name']."</td>".($oldtorrentstime == "yes" ? "<td class=colhead align=center>".$tracker_lang['ttl']."</td>" : "")."<td class=colhead align=center>".$tracker_lang['size']."</td><td class=colhead align=right>".$tracker_lang['details_seeding']."</td><td class=colhead align=right>".$tracker_lang['details_leeching']."</td><td class=colhead align=center>".$tracker_lang['uploaded']."</td>\n" .
    "<td class=colhead align=center>".$tracker_lang['downloaded']."</td><td class=colhead align=center>".$tracker_lang['ratio']."</td></tr>\n";
  foreach ($res as $arr)
  {
    if ($arr["downloaded"] > 0)
    {
      $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
      $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
    }
    else
      if ($arr["uploaded"] > 0)
        $ratio = "Inf.";
      else
        $ratio = "---";
    $catid = $arr["catid"];
    $catimage = htmlspecialchars($arr["image"]);
    $catname = htmlspecialchars($arr["catname"]);
    $ttl = ($oldtorrentstime*24) - floor((gmtime() - $arr["added"]) / 3600);
    if ($ttl == 1) $ttl .= "&nbsp;Hora"; else $ttl .= "&nbsp;Horas";
    $size = mksize($arr["size"]);
    $uploaded = mksize($arr["uploaded"]);
    $downloaded = mksize($arr["downloaded"]);
    $seeders = number_format($arr["seeders"]);
    $leechers = number_format($arr["leechers"]);
    $ret .= "<tr><td style='padding: 0px'><a href=\"browse.php?cat=$catid\"><img src=\"pic/cats/$catimage\" alt=\"$catname\" border=\"0\" /></a></td>\n" .
        "<td><a href=details.php?id=$arr[torrent]&amp;hit=1><b>" . $arr["torrentname"] .
        "</b></a></td>".($oldtorrentstime == "yes" ? "<td align=center>$ttl</td>" : "")."<td align=center>$size</td><td align=right>$seeders</td><td align=right>$leechers</td><td align=center>$uploaded</td>\n" .
        "<td align=center>$downloaded</td><td align=center>$ratio</td></tr>\n";
  
}
  $ret .= "</table>\n";
  return $ret;
}

$id = 0 + $_GET["id"];

if (!is_valid_id($id))
  newerr($tracker_lang["error"], $tracker_lang['invalid_id'],true,true);

$r = @sql_query("SELECT * FROM ".TABLE_USERS." WHERE id = $id") or sqlerr(__FILE__, __LINE__);
$user = mysql_fetch_array($r) or newerr($tracker_lang["error"],"".$userdetails_lang['nouserid']." $id.",true,true);
//if ($user["status"] == 0) die;
$r = sql_query("SELECT t.id, t.name, t.seeders, t.added, t.leechers, t.anonymous, t.category, c.name AS catname, c.image AS catimage, c.id AS catid FROM ".TABLE_TORRENTS." AS t LEFT JOIN ".TABLE_CATEGORIES." AS c ON t.category = c.id WHERE t.owner = $id ORDER BY t.added DESC") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($r) > 0) {
  $torrents = "<table class=main border=1 cellspacing=0 cellpadding=5>\n" .
    "<tr><td class=colhead>".$tracker_lang['type']."</td><td class=colhead>".$tracker_lang['name']."</td>".($oldtorrentstime == "yes" ? "<td class=colhead align=center>".$tracker_lang['ttl']."</td>" : "")."<td class=colhead>".$tracker_lang['tracker_seeders']."</td><td class=colhead>".$tracker_lang['tracker_leechers']."</td></tr>\n";
  while ($a = mysql_fetch_assoc($r)) {

        if ($a['anonymous'] == 'yes' && $CURUSER['id'] != $a['owner'] && $CURUSER['class'] < UC_MODERATOR)
            continue;

    $ttl = ($oldtorrentstime*24) - floor((gmtime() - $a["added"]) / 3600);
    if ($ttl == 1) $ttl .= "&nbsp;Hour"; else $ttl .= "&nbsp;Hours";
        //$r2 = sql_query("SELECT name, image FROM categories WHERE id=$a[category]") or sqlerr(__FILE__, __LINE__);
        //$a2 = mysql_fetch_assoc($r2);
        $cat = "<a href=\"browse.php?cat=$a[catid]\"><img src=\"pic/cats/$a[catimage]\" alt=\"$a[catname]\" border=\"0\" /></a>";
      $torrents .= "<tr><td style='padding: 0px'>$cat</td><td><a href=\"details.php?id=" . $a["id"] . "&hit=1\"><b>" . $a["name"] . "</b></a></td>"
          .($oldtorrentstime == "yes" ? "<td align=center>$ttl</td>" : "")
        ."<td align=right>$a[seeders]</td><td align=right>$a[leechers]</td></tr>\n";
  }
  $torrents .= "</table>";
}


$it = sql_query("SELECT u.id, u.username, u.class, i.id AS invitedid, i.username AS invitedname, i.class AS invitedclass FROM ".TABLE_USERS." AS u LEFT JOIN ".TABLE_USERS." AS i ON i.id = u.invitedby WHERE u.invitedroot = $id OR u.invitedby = $id ORDER BY u.invitedby");
if (mysql_num_rows($it) >= 1) {
    $invitetree = "<table class=\"main\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\"><tr>".
        "<td class=\"colhead\">".$userdetails_lang['user']."</td><td class=\"colhead\">".$userdetails_lang['invby']."</td>";
    while ($inviter = mysql_fetch_array($it))
        $invitetree .= "<tr><td><a href=\"userdetails.php?id=$inviter[id]\">".get_user_class_color($inviter["class"], $inviter["username"])."</a></td><td><a href=\"userdetails.php?id=$inviter[invitedid]\">".get_user_class_color($inviter["invitedclass"], $inviter["invitedname"])."</a></td></tr>";
    $invitetree .= "</table>";
}

if ($user["ip"] && (get_user_class() >= UC_MODERATOR || $user["id"] == $CURUSER["id"])) {
  $ip = $user["ip"];
  $dom = gethostbyaddr($user["ip"]);
  if ($dom == $user["ip"] || gethostbyname($dom) != $user["ip"])
    $addr = $ip;
  else
  {
    $dom = strtoupper($dom);
    $domparts = explode(".", $dom);
    $domain = $domparts[count($domparts) - 2];
    if ($domain == "COM" || $domain == "CO" || $domain == "NET" || $domain == "NE" || $domain == "ORG" || $domain == "OR" )
      $l = 2;
    else
      $l = 1;
    $addr = "$ip ($dom)";
  }
}

$r = mysql_query("SELECT s.torrent AS id, s.uploaded, s.seeder, s.downloaded, s.startdat, s.completedat, s.last_action, c.name AS catname, c.image AS catimage, c.id AS catid, t.name, t.seeders, t.leechers FROM ".TABLE_SNATCHED." AS s JOIN ".TABLE_TORRENTS." AS t ON t.id = s.torrent JOIN ".TABLE_CATEGORIES." AS c ON t.category = c.id WHERE s.finished='yes' AND userid = $id ORDER BY torrent") or sqlerr(__FILE__,__LINE__);
if (mysql_num_rows($r) > 0) {
$completed = "<table class=\"main\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n" .
  "<tr><td class=\"colhead\">".$userdetails_lang['type']."</td><td class=\"colhead\">".$userdetails_lang['name']."</td><td class=\"colhead\">".$userdetails_lang['seed']."</td><td class=\"colhead\">".$userdetails_lang['leech']."</td><td class=\"colhead\">".$userdetails_lang['uploaded']."</td><td class=\"colhead\">".$userdetails_lang['downloaded']."</td><td class=\"colhead\">".$userdetails_lang['ratio']."</td><td class=\"colhead\">".$userdetails_lang['strfin']."</td><td class=\"colhead\">".$userdetails_lang['lstseen']."</td><td class=\"colhead\">".$userdetails_lang['seeded']."</td></tr>\n";
while ($a = mysql_fetch_array($r)) {
if ($a["downloaded"] > 0) {
      $ratio = number_format($a["uploaded"] / $a["downloaded"], 3);
      $ratio = "<font color=\"" . get_ratio_color($ratio) . "\">$ratio</font>";
   } else
    if ($a["uploaded"] > 0)
        $ratio = "Inf.";
    else
        $ratio = "---";
$uploaded = mksize($a["uploaded"]);
$downloaded = mksize($a["downloaded"]);
if ($a["seeder"] == 'yes')
    $seeder = "<font color=\"green\">".$tracker_lang['yes']."</font>";
else
    $seeder = "<font color=\"red\">".$tracker_lang['no']."</font>";
    $cat = "<a href=\"browse.php?cat=$a[catid]\"><img src=\"pic/cats/$a[catimage]\" alt=\"$a[catname]\" border=\"0\" /></a>";
    $completed .= "<tr><td style=\"padding: 0px\">$cat</td><td><nobr><a href=\"details.php?id=" . $a["id"] . "&amp;hit=1\"><b>" . $a["name"] . "</b></a></nobr></td>" .
      "<td align=\"right\">$a[seeders]</td><td align=\"right\">$a[leechers]</td><td align=\"right\"><nobr>$uploaded</nobr></td><td align=\"right\"><nobr>$downloaded</nobr></td><td align=\"center\">$ratio</td><td align=\"center\"><nobr>".get_date_time($a["startdat"])."<br />".get_date_time($a["completedat"])."</nobr></td><td align=\"center\"><nobr>".get_date_time($a["last_action"])."</nobr></td><td align=\"center\">$seeder</td>\n";
}
$completed .= "</table>";
}

if ($user["added"] == "0")
    $joindate = 'N/A';
else
    $joindate = get_date_time($user["added"]) . " (" . get_elapsed_time($user["added"]) . " ".$tracker_lang['ago'].")";

if ($user["last_access"] == 0)
    $lastseen = $tracker_lang['never'];
else {
    $lastseen = get_date_time($user["last_access"]) . " (" . get_elapsed_time($user["last_access"]) . " ".$tracker_lang['ago'].")";
}
  $res = sql_query("SELECT COUNT(*) FROM ".TABLE_COMMENTS." WHERE user = " . $user["id"]) or sqlerr(__FILE__, __LINE__);
  $arr3 = mysql_fetch_row($res);
  $torrentcomments = $arr3[0];

  $posts = get_row_count(TABLE_PREFIX."posts", "WHERE uid = " . $user["id"] . " AND visible = 1");

//if ($user['donated'] > 0)
//  $don = "<img src=pic/starbig.gif>";

$res = sql_query("SELECT name, flagpic FROM ".TABLE_COUNTRIES." WHERE id = " . $user["country"] . " LIMIT 1") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) == 1)
{
  $arr = mysql_fetch_assoc($res);
  $country = "<td class=\"embedded\"><img src=\"pic/flag/$arr[flagpic]\" alt=\"$arr[name]\" style=\"margin-left: 8pt\"></td>";
}

//if ($user["donor"] == "yes") $donor = "<td class=embedded><img src=pic/starbig.gif alt='Donor' style='margin-left: 4pt'></td>";
//if ($user["warned"] == "yes") $warned = "<td class=embedded><img src=pic/warnedbig.gif alt='Warned' style='margin-left: 4pt'></td>";

if ($user["gender"] == "1") $gender = "<img src=\"".$pic_base_url."male.gif\" alt=\"".$userdetails_lang['male']."\" title=\"".$userdetails_lang['male']."\">";
elseif ($user["gender"] == "2") $gender = "<img src=\"".$pic_base_url."female.gif\" alt=\"".$userdetails_lang['female']."\" title=\"".$userdetails_lang['female']."\">";
//elseif ($user["gender"] == "N/A") $gender = "<td class=embedded><img src=".$pic_base_url."na.gif alt='N/A' style='margin-left: 4pt'></td>";


$peers = sql_query("SELECT p.torrent, t.added, t.anonymous, s.uploaded, s.downloaded, t.name AS torrentname, c.name AS catname, c.id AS catid, t.size, c.image, t.category, t.seeders, t.leechers, p.seeder FROM ".TABLE_PEERS." AS p LEFT JOIN ".TABLE_TORRENTS." AS t ON p.torrent = t.id LEFT JOIN ".TABLE_SNATCHED." AS s ON (p.torrent = s.torrent AND p.userid = s.userid) LEFT JOIN ".TABLE_CATEGORIES." AS c ON t.category = c.id WHERE p.userid = $id") or sqlerr(__FILE__, __LINE__);
while ($peer = mysql_fetch_array($peers))
    if ($peer["seeder"] == "yes")
        $seeders[] = $peer;
    else
        $leechers[] = $peer;
mysql_free_result($peers);
if (count($leechers) > 0)
    $leeching = maketable($leechers);
if (count($seeders) > 0)
    $seeding = maketable($seeders);


///////////////// BIRTHDAY MOD /////////////////////
if ($user[birthday] != "0000-00-00")
{
        //$current = date("Y-m-d", time());
        $current = date("Y-m-d", time() + $CURUSER['tzoffset'] * 60);
        list($year2, $month2, $day2) = split('-', $current);
        $birthday = $user["birthday"];
        $birthday = date("Y-m-d", strtotime($birthday));
        list($year1, $month1, $day1) = split('-', $birthday);
        if($month2 < $month1)
        {
                $age = $year2 - $year1 - 1;
        }
        if($month2 == $month1)
        {
                if($day2 < $day1)
                {
                        $age = $year2 - $year1 - 1;
                }
                else
                {
                        $age = $year2 - $year1;
                }
        }
        if($month2 > $month1)
        {
                $age = $year2 - $year1;
        }

}
///////////////// BIRTHDAY MOD /////////////////////

stdhead("".$userdetails_lang['viewprof']." " . $user["username"]);
$enabled = $user["enabled"] == 'yes';
print("<p><table class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">".
"<tr><td class=\"embedded\"><h1 style=\"margin:0px\">$user[username]" . get_user_icons($user, true) . "</h1></td>$country</tr></table></p>\n");

if (!$enabled)
  print("<p><b>".$userdetails_lang['error1']."</b></p>\n");
elseif ($CURUSER["id"] <> $user["id"]) {
  $r = sql_query("SELECT id FROM ".TABLE_FRIENDS." WHERE userid=$CURUSER[id] AND friendid = $id") or sqlerr(__FILE__, __LINE__);
  $friend = mysql_num_rows($r);
  $r = sql_query("SELECT id FROM ".TABLE_BLOCKS." WHERE userid=$CURUSER[id] AND blockid = $id") or sqlerr(__FILE__, __LINE__);
  $block = mysql_num_rows($r);


  if ($friend)
    print("<p>(<a href=\"friends.php?action=delete&type=friend&targetid=$id\">".$userdetails_lang['rmfriends']."</a>)</p>\n");
  elseif($block)
    print("<p>(<a href=\"friends.php?action=delete&type=block&targetid=$id\">".$userdetails_lang['rmblocks']."</a>)</p>\n");
  else
  {
    print("<p>(<a href=\"friends.php?action=add&type=friend&targetid=$id\">".$userdetails_lang['addfriends']."</a>)");
    print(" - (<a href=\"friends.php?action=add&type=block&targetid=$id\">".$userdetails_lang['addblocks']."</a>)</p>\n");
  }
}

begin_main_frame();
?>
<table width=100% border=1 cellspacing=0 cellpadding=5>
<?

if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)) 
print("<tr><td class=rowhead width=1%>$userdetails_lang[joindate]</td><td align=left width=99%>$joindate</td></tr>");
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)) 
print("<tr><td class=rowhead>$userdetails_lang[lstseen]</td><td align=left>$lastseen</td></tr>");

if (get_user_class() >= UC_MODERATOR)
    print("<tr><td class=\"rowhead\">E-mail</td><td align=\"left\"><a href=\"mailto:$user[email]\">$user[email]</a></td></tr>\n");
if ($addr)
    print("<tr><td class=\"rowhead\">IP</td><td align=\"left\">$addr</td></tr>\n");

//  if ($user["id"] == $CURUSER["id"] || get_user_class() >= UC_MODERATOR)
//    {

if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)) 
print("<tr><td class=rowhead>$userdetails_lang[uploaded]</td><td align=left>".mksize($user['uploaded'])."</td></tr>");
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)) 
print("<tr><td class=rowhead>$userdetails_lang[downloaded]</td><td align=left>".mksize($user['downloaded'])."</td></tr>");

if (get_user_class() >= UC_MODERATOR)
    print("<tr><td class=\"rowhead\">".$userdetails_lang['inv']."</td><td align=left><a href=\"invite.php?id=$id\">".$user["invites"]."</a></td></tr>");
if ($user["invitedby"] != 0) {
    $inviter = mysql_fetch_assoc(sql_query("SELECT username FROM ".TABLE_USERS." WHERE id = ".sqlesc($user["invitedby"])));
    print("<tr><td class=\"rowhead\">".$userdetails_lang['invby']."</td><td align=\"left\"><a href=\"userdetails.php?id=$user[invitedby]\">$inviter[username]</a></td></tr>");
}
if ($user["downloaded"] > 0) {
  $sr = $user["uploaded"] / $user["downloaded"];
  if ($sr >= 4)
    $s = "w00t";
  else if ($sr >= 2)
    $s = "grin";
  else if ($sr >= 1)
    $s = "smile1";
  else if ($sr >= 0.5)
    $s = "noexpression";
  else if ($sr >= 0.25)
    $s = "sad";
  else
    $s = "cry";
  $sr = floor($sr * 1000) / 1000;
  $sr = "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"embedded\"><font color=\"" . get_ratio_color($sr) . "\">" . number_format($sr, 3) . "</font></td><td class=\"embedded\">&nbsp;&nbsp;<img src=\"pic/smilies/$s.gif\"></td></tr></table>";
  print("<tr><td class=\"rowhead\" style=\"vertical-align: middle\">Ratio</td><td align=\"left\" valign=\"center\" style=\"padding-top: 1px; padding-bottom: 0px\">$sr</td></tr>\n");
}
//}
if ($user["icq"] || $user["msn"] || $user["aim"] || $user["yahoo"] || $user["skype"])
{
?>
<tr>
<td class=rowhead><b><?=$userdetails_lang['contact'];?></b></td><td align=left>
<?
if ($user["icq"])
    print("<img src=\"http://web.icq.com/whitepages/online?icq=$user[icq]&amp;img=5\" alt=\"icq\" border=\"0\" /> $user[icq] <br />\n");
if ($user["msn"])
    print("<img src=\"pic/contact/msn.gif\" alt=\"msn\" border=\"0\" /> $user[msn]<br />\n");
if ($user["aim"])
    print("<img src=\"pic/contact/aim.gif\" alt=\"aim\" border=\"0\" /> $user[aim]<br />\n");
if ($user["yahoo"])
    print("<img src=\"pic/contact/yahoo.gif\" alt=\"yahoo\" border=\"0\" /> $user[yahoo]<br />\n");
if ($user["skype"])
    print("<img src=\"pic/contact/skype.gif\" alt=\"skype\" border=\"0\" /> $user[skype]<br />\n");
if ($user["mirc"])
    print("<img src=\"pic/contact/mirc.gif\" alt=\"mirc\" border=\"0\" /> $user[mirc]\n");
?> 
</td>
</tr>
<?
}
if ($user["website"])
    print("<tr><td class=\"rowhead\">".$userdetails_lang['site']."</td><td align=\"left\"><a href=\"$user[website]\" target=\"_blank\">$user[website]</a></td></tr>\n");
//if ($user['donated'] > 0 && (get_user_class() >= UC_MODERATOR || $CURUSER["id"] == $user["id"]))
//  print("<tr><td class=rowhead>Donated</td><td align=left>$$user[donated]</td></tr>\n");
if ($user["avatar"])
    print("<tr><td class=\"rowhead\">".$userdetails_lang['avatar']."</td><td align=left><img src=\"" . htmlspecialchars($user["avatar"]) . "\"></td></tr>\n");
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
print("<tr><td class=\"rowhead\">".$userdetails_lang['rank']."</td><td align=\"left\"><b>" . get_user_class_color($user["class"], get_user_class_name($user["class"])) . ($user["title"] != "" ? " / <span style=\"color: purple;\">{$user["title"]}</span>" : "") . "</b></td></tr>\n");}
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
print("<tr><td class=\"rowhead\">".$userdetails_lang['warn']."</td><td align=\"left\">" . ( get_user_class() >= UC_MODERATOR && $CURUSER["id"] != $id ? "<a href=\"modtask.php?action=warn&amp;warn=minus&amp;id=" . $id . "\">-</a> " . warn_panel($user["warnedtimes"]) . " <a href=\"modtask.php?action=warn&amp;warn=plus&amp;id=" . $id . "\">+</a>" : warn_panel($user["warnedtimes"]) ) . "</td></tr>");}
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
print("<tr><td class=\"rowhead\">".$userdetails_lang['gender']."</td><td align=\"left\">$gender</td></tr>\n");}
if($user["birthday"]!='0000-00-00') {
        print("<tr><td class=\"rowhead\">".$userdetails_lang['age']."</td><td align=\"left\">$age</td></tr>\n");
        $birthday = date("d.m.Y", strtotime($birthday));
        print("<tr><td class=\"rowhead\">".$userdetails_lang['bdate']."</td><td align=\"left\">$birthday</td></tr>\n");

$month_of_birth = substr($user["birthday"], 5, 2);
        $day_of_birth = substr($user["birthday"], 8, 2);
        for($i = 0; $i < count($zodiac); $i++) {
                if (($month_of_birth == substr($zodiac[$i][2], 3, 2)))  {
                        if ($day_of_birth >= substr($zodiac[$i][2], 0, 2)) {
                                $zodiac_img = $zodiac[$i][1];
                                $zodiac_name = $zodiac[$i][0];
                        }
                        else {
                                if ($i == 11) {
                                        $zodiac_img = $zodiac[0][1];
                                        $zodiac_name = $zodiac[0][0];
                                }
                                else {
                                        $zodiac_img = $zodiac[$i+1][1];
                                        $zodiac_name = $zodiac[$i+1][0];
                                }
                        }
                }

        }

print("<tr><td class=\"rowhead\">".$userdetails_lang['zodiac']."</td><td align=\"left\"><img src=\"pic/zodiac/" . $zodiac_img . "\" alt=\"" . $zodiac_name . "\" title=\"" . $zodiac_name . "\"></td></tr>\n");

}

if ($user['simpaty'] != 0) {
        if ((get_user_class() >= UC_MODERATOR && $user['class'] < get_user_class()) || $user['id'] == $CURUSER['id']) {
                $simpaty = ($user['simpaty'] > 0?'<img src="pic/thum_good.gif" border="0">&nbsp;<a href="mysimpaty.php?id=' . $user['id'] . '">' . $user['simpaty'] . '</a>':'<img src="pic/thum_bad.gif" border="0">&nbsp;<a href="mysimpaty.php?id=' . $user['id'] . '">' . $user['simpaty'] . '</a>');
        }
        else {
                $simpaty = ($user['simpaty'] > 0?'<img src="pic/thum_good.gif">&nbsp;' . $user['simpaty']:'<img src="pic/thum_bad.gif">&nbsp;' . $user['simpaty']);
        }


if ($user['simpaty'] != 0) {
print("<tr><td class=\"rowhead\">".$userdetails_lang['karma']."</td><td align=\"left\">$simpaty</td></tr>\n");
};

print("<tr><td class=\"rowhead\">".$userdetails_lang['tcomments']."</td>");
if ($torrentcomments && (($user["class"] >= UC_POWER_USER && $user["id"] == $CURUSER["id"]) || get_user_class() >= UC_MODERATOR))
    print("<td align=\"left\"><a href=\"userhistory.php?action=viewcomments&id=$id\">$torrentcomments</a></td></tr>\n");
else
    print("<td align=\"left\">$torrentcomments</td></tr>\n");

if ($posts > 0 && (($user["class"] >= UC_POWER_USER && $user["id"] == $CURUSER["id"]) || get_user_class() >= UC_MODERATOR))
    print("<tr><td class=\"rowhead\">".$userdetails_lang['fpost']."</td><td align=\"left\"><a href=\"forum/search.php?action=finduser&uid=$user[id]\">$posts</a></td></tr>\n");
else
    print("<tr><td class=\"rowhead\">".$userdetails_lang['fpost']."</td><td align=\"left\">0</td></tr>\n");

?><script language="javascript" type="text/javascript" src="js/show_hide.js"></script><?

if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
if ($torrents)
 print("<tr valign=\"top\"><td class=\"rowhead\">".$userdetails_lang['uptorr']."</td><td align=\"left\"><a href=\"javascript: show_hide('s1')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pics1\" title=\"Show/Hide\"></a><div id=\"ss1\" style=\"display: none;\">$torrents</div></td></tr>\n");}
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
if ($seeding)
 print("<tr valign=\"top\"><td class=\"rowhead\">".$tracker_lang['seeding']."</td><td align=\"left\"><a href=\"javascript: show_hide('s2')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pics2\" title=\"Show/Hide\"></a><div id=\"ss2\" style=\"display: none;\">$seeding</div></td></tr>\n");}
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
if ($leeching)
 print("<tr valign=\"top\"><td class=\"rowhead\">".$tracker_lang['leeching']."</td><td align=\"left\"><a href=\"javascript: show_hide('s3')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pics3\" title=\"Show/Hide\"></a><div id=\"ss3\" style=\"display: none;\">$leeching</div></td></tr>\n");}
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
if ($completed)
 print("<tr valign=\"top\"><td class=\"rowhead\">".$userdetails_lang['cmptorr']."</td><td align=\"left\"><a href=\"javascript: show_hide('s4')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pics4\"></a><div id=\"ss4\" style=\"display: none;\">$completed</div></td></tr>\n");}
if (($user["privacy"] != "strong") OR (get_user_class() >= UC_MODERATOR)){
if ($invitetree)
 print("<tr valign=\"top\"><td class=\"rowhead\">".$userdetails_lang['invby']."</td><td align=\"left\"><a href=\"javascript: show_hide('s5')\"><img border=\"0\" src=\"pic/plus.gif\" id=\"pics5\"></a><div id=\"ss5\" style=\"display: none;\">$invitetree</div></td></tr>\n");}

if ($user["info"])
 print("<tr valign=\"top\"><td align=\"left\" colspan=\"2\" class=\"text\" bgcolor=\"#F4F4F0\">" . format_comment($user["info"]) . "</td></tr>\n");

if ($CURUSER["id"] != $user["id"])
    if (get_user_class() >= UC_MODERATOR)
      $showpmbutton = 1;
    elseif ($user["acceptpms"] == "yes")
    {
        $r = sql_query("SELECT id FROM blocks WHERE userid = $user[id] AND blockid = $CURUSER[id]") or sqlerr(__FILE__,__LINE__);
        $showpmbutton = (mysql_num_rows($r) == 1 ? 0 : 1);
    }
    elseif ($user["acceptpms"] == "friends")
    {
        $r = sql_query("SELECT id FROM friends WHERE userid = $user[id] AND friendid = $CURUSER[id]") or sqlerr(__FILE__,__LINE__);
        $showpmbutton = (mysql_num_rows($r) == 1 ? 1 : 0);
    }
if ($showpmbutton)
    print("<tr><td colspan=2 align=center><form method=\"get\" action=\"message.php\"> 
        <input type=\"hidden\" name=\"receiver\" value=" .$user["id"] . "> 
        <input type=\"hidden\" name=\"action\" value=\"sendmessage\"> 
        <input type=submit value=\"".$userdetails_lang['sendpm']."\" style=\"height: 23px\"> 
        </form></td></tr>");

print("</table>\n");

if (get_user_class() >= UC_MODERATOR && $user["class"] < get_user_class()) {
  begin_frame("".$userdetails_lang['edituser']."", true);
  print("<form method=\"post\" action=\"modtask.php\">\n");
  print("<input type=\"hidden\" name=\"action\" value=\"edituser\">\n");
  print("<input type=\"hidden\" name=\"userid\" value=\"$id\">\n");
  print("<input type=\"hidden\" name=\"returnto\" value=\"userdetails.php?id=$id\">\n");
  print("<table class=\"main\" border=\"0\"  width=\"100%\" cellspacing=\"0\" cellpadding=\"5\">\n");
  print("<tr><td class=\"rowhead\">".$userdetails_lang['ctitle']."</td><td colspan=\"2\" align=\"left\"><input type=\"text\" size=\"60\" name=\"title\" value=\"" . htmlspecialchars($user[title]) . "\"></tr>\n");
    $avatar = htmlspecialchars($user["avatar"]);
  print("<tr><td class=\"rowhead\">".$tracker_lang['avatar']."</td><td colspan=\"2\" align=\"left\"><input type=\"text\" size=\"60\" name=\"avatar\" value=\"$avatar\"></tr>\n");
    // we do not want mods to be able to change user classes or amount donated...
    if (get_user_class() < UC_ADMINISTRATOR)
      print("<input type=\"hidden\" name=\"donor\" value=\"$user[donor]\">\n");
    else {
      print("<tr><td class=\"rowhead\">".$userdetails_lang['donor']."</td><td colspan=\"2\" align=\"left\"><input type=\"radio\" name=\"donor\" value=\"yes\"" .($user["donor"] == "yes" ? " checked" : "").">".$tracker_lang['yes']." <input type=\"radio\" name=\"donor\" value=\"no\"" .($user["donor"] == "no" ? " checked" : "").">".$tracker_lang['no']."</td></tr>\n");
    }

    if (get_user_class() == UC_MODERATOR && $user["class"] > UC_VIP)
      printf("<input type=\"hidden\" name=\"class\" value=\"$user[class]\"\n");
    else
    {
      print("<tr><td class=\"rowhead\">".$userdetails_lang['rank']."</td><td colspan=\"2\" align=\"left\"><select name=\"class\">\n");
      if (get_user_class() == UC_SYSOP)
          $maxclass = UC_SYSOP;
      elseif (get_user_class() == UC_MODERATOR)
        $maxclass = UC_VIP;
      else
        $maxclass = get_user_class() - 1;
      for ($i = 0; $i <= $maxclass; ++$i)
        print("<option value=\"$i\"" . ($user["class"] == $i ? " selected" : "") . ">$prefix" . get_user_class_name($i) . "\n");
      print("</select></td></tr>\n");
    }
    print("<tr><td class=\"rowhead\">".$userdetails_lang['resetbday']."</td><td colspan=\"2\" align=\"left\"><input type=\"radio\" name=\"resetb\" value=\"yes\">".$tracker_lang['yes']."<input type=\"radio\" name=\"resetb\" value=\"no\" checked>".$tracker_lang['no']."</td></tr>\n");
    $modcomment = htmlspecialchars($user["modcomment"]);
    $supportfor = htmlspecialchars($user["supportfor"]);
    print("<tr><td class=rowhead>".$userdetails_lang['support']."</td><td colspan=2 align=left><input type=radio name=support value=yes" .($user["support"] == "yes" ? " checked" : "").">".$tracker_lang['yes']." <input type=radio name=support value=no" .($user["support"] == "no" ? " checked" : "").">".$tracker_lang['no']."</td></tr>\n");
    print("<tr><td class=rowhead>".$userdetails_lang['support4']."</td><td colspan=2 align=left><textarea cols=60 rows=6 name=supportfor>$supportfor</textarea></td></tr>\n");
    print("<tr><td class=rowhead>".$userdetails_lang['usrhistory']."</td><td colspan=2 align=left><textarea cols=60 rows=6".(get_user_class() < UC_SYSOP ? " readonly" : " name=modcomment").">$modcomment</textarea></td></tr>\n");
    print("<tr><td class=rowhead>".$userdetails_lang['addnote']."</td><td colspan=2 align=left><textarea cols=60 rows=3 name=modcomm></textarea></td></tr>\n");
    $warned = $user["warned"] == "yes";

     print("<tr><td class=\"rowhead\"" . (!$warned ? " rowspan=\"2\"": "") . ">".$userdetails_lang['warn']."</td>
     <td align=\"left\" width=\"20%\">" .
  ( $warned
  ? "<input name=\"warned\" value=\"yes\" type=\"radio\" checked>".$tracker_lang['yes']."<input name=\"warned\" value=\"no\" type=\"radio\">".$tracker_lang['no'].""
     : "".$tracker_lang['no']."" ) ."</td>");

    if ($warned) {
        $warneduntil = $user['warneduntil'];
        if ($warneduntil == '0')
            print("<td align=\"center\">".$userdetails_lang['warn4ever']."</td></tr>\n");
        else {
            print("<td align=\"center\">".$userdetails_lang['warnuntil']." ".get_date_time($warneduntil));
            print(" (" . mkprettytime($warneduntil - TIMENOW) . " ".$userdetails_lang['warnleft'].")</td></tr>\n");
         }
  } else {
    print("<td>".$userdetails_lang['warn4']." <select name=\"warnlength\">\n");
    print("<option value=\"0\">------</option>\n");
    print("<option value=\"1\">1 ".$userdetails_lang['warnweek']."</option>\n");
    print("<option value=\"2\">2 ".$userdetails_lang['warnweeks']."</option>\n");
    print("<option value=\"4\">4 ".$userdetails_lang['warnweeks']."</option>\n");
    print("<option value=\"8\">8 ".$userdetails_lang['warnweeks']."</option>\n");
    print("<option value=\"255\">".$userdetails_lang['warn4ever']."</option>\n");
    print("</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td></tr>\n");
    print("<tr><td colspan=\"2\" align=\"left\">".$userdetails_lang['warnpm']."<br><input type=\"text\" size=\"60\" name=\"warnpm\"></td></tr>");
  }
    print("<tr><td class=\"rowhead\" rowspan=\"2\">".$userdetails_lang['usrenabled']."</td><td colspan=\"2\" align=\"left\"><input name=\"enabled\" value=\"yes\" type=\"radio\"" . ($enabled ? " checked" : "") . ">".$tracker_lang['yes']." <input name=\"enabled\" value=\"no\" type=\"radio\"" . (!$enabled ? " checked" : "") . ">".$tracker_lang['no']."</td></tr>\n");
    if ($enabled)
        print("<tr><td colspan=\"2\" align=\"left\">".$userdetails_lang['disablereason']."&nbsp;<br><input type=\"text\" name=\"disreason\" size=\"60\" /></td></tr>");
    else
        print("<tr><td colspan=\"2\" align=\"left\">".$userdetails_lang['enablereason']."&nbsp;<input type=\"text\" name=\"enareason\" size=\"60\" /></td></tr>");
?>
<script type="text/javascript">

function togglepic(bu, picid, formid)
{
    var pic = document.getElementById(picid);
    var form = document.getElementById(formid);
    
    if(pic.src == bu + "/pic/plus.gif")
    {
        pic.src = bu + "/pic/minus.gif";
        form.value = "minus";
    }else{
        pic.src = bu + "/pic/plus.gif";
        form.value = "plus";
    }
}

</script>
<?
  print("<tr><td class=\"rowhead\">".$userdetails_lang['chngup']."</td><td align=\"left\"><img src=\"pic/plus.gif\" id=\"uppic\" onClick=\"togglepic('$DEFAULTBASEURL','uppic','upchange')\" style=\"cursor: pointer;\">&nbsp;<input type=\"text\" name=\"amountup\" size=\"10\" /><td>\n<select name=\"formatup\">\n<option value=\"mb\">MB</option>\n<option value=\"gb\">GB</option></select></td></tr>");
  print("<tr><td class=\"rowhead\">".$userdetails_lang['chngdown']."</td><td align=\"left\"><img src=\"pic/plus.gif\" id=\"downpic\" onClick=\"togglepic('$DEFAULTBASEURL','downpic','downchange')\" style=\"cursor: pointer;\">&nbsp;<input type=\"text\" name=\"amountdown\" size=\"10\" /><td>\n<select name=\"formatdown\">\n<option value=\"mb\">MB</option>\n<option value=\"gb\">GB</option></select></td></tr>");
  print("<tr><td class=\"rowhead\">".$userdetails_lang['restpasskey']."</td><td colspan=\"2\" align=\"left\"><input name=\"resetkey\" value=\"1\" type=\"checkbox\"></td></tr>\n");
  print("<tr><td class=\"rowhead\">Chat</td><td colspan=2 align=left><input type=radio name=chatpost value=yes" .($user["chatpost"] === "yes" ? " checked" : "").">Yes <input type=radio name=chatpost value=no" .($user["chatpost"] === "no" ? " checked" : "").">No</td></tr>\n"); 
 if ($CURUSER["class"] < UC_ADMINISTRATOR)
      print("<input type=\"hidden\" name=\"deluser\">");
  else
      print("<tr><td class=\"rowhead\">".$userdetails_lang['deleteuser']."</td><td colspan=\"2\" align=\"left\"><input type=\"checkbox\" name=\"deluser\"></td></tr>");
  print("</td></tr>");
  print("<tr><td colspan=\"3\" align=\"center\"><input type=\"submit\" class=\"btn\" value=\"".$userdetails_lang['ok']."\"></td></tr>\n");
  print("</table>\n");
  print("<input type=\"hidden\" id=\"upchange\" name=\"upchange\" value=\"plus\"><input type=\"hidden\" id=\"downchange\" name=\"downchange\" value=\"plus\">\n");
  
  print("</form>\n");
  end_frame();
}
end_main_frame();
stdfoot();
  #4  
Old 12th January 2010, 10:35
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
I do not support that PRE7 It's total crap.

Better use this version - http://bvlist.com/yuna-scatari/4217-...r-support.html

It's faster,safer and better..
  #5  
Old 12th January 2010, 13:45
Genkai's Avatar
Genkai Genkai is offline
Senior Member
 
Join Date: Aug 2008
Portugal
Posts: 16
Default
Yeah... but I'm now using this one. And I use it since two months ago and I dunno what to do.
  #6  
Old 12th January 2010, 19:06
GuruOfPC's Avatar
GuruOfPC GuruOfPC is offline
Senior Member
 
Join Date: Jan 2009
Lithuania
Posts: 42
Default
YSE v2.2 PRE7 by kp380lv not crap, but kp380lv you don't want to work...or i suppose you just can't fix it.

I'm working on it. And i think soon i will post fixed version with new theme like nehalem, working invites, fixed announce, updated a little bit theme with PM getting like in Template Shares, updated blocks system (added ads block in header), donate system and so on...
  #7  
Old 14th January 2010, 00:36
Genkai's Avatar
Genkai Genkai is offline
Senior Member
 
Join Date: Aug 2008
Portugal
Posts: 16
Default
So... nobody helps?
  #8  
Old 14th January 2010, 00:58
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
Quote:
Originally Posted by frayer View Post
YSE v2.2 PRE7 by kp380lv not crap, but kp380lv you don't want to work...or i suppose you just can't fix it.

I'm working on it. And i think soon i will post fixed version with new theme like nehalem, working invites, fixed announce, updated a little bit theme with PM getting like in Template Shares, updated blocks system (added ads block in header), donate system and so on...
Woow stop,stop!Who said that i want work!? I working everyday in real job it's logical that i'm tired after work and i don't want work for this source code.

I prefer use pre 6 version. But if you wanna we can make a fighting duel.

You work for YSE PRE 7 i work for my release - after that we see which will be stablest and fastest,safest,release with stable mods...
  #9  
Old 14th January 2010, 12:37
BoLaMN's Avatar
BoLaMN BoLaMN is offline
****** God!
 
Join Date: Jan 2008
Australia
Posts: 93
Default
again another person has got it wrong yuna created this beta code and i heavily modded it all kp380lv did to this code was change about 4 lines in different files (if u dont believe be run a compare test on my version against his version) and rename it to his own.

the code isnt crap the code is actually pretty good it just doesnt have a team developing this code and testing this code out as for my self i dont have time to do it but would be good to see pre 7 get out of release candidate stage.
  #10  
Old 14th January 2010, 13:28
kp380lv's Avatar
kp380lv kp380lv is offline
Senior Member
 
Join Date: May 2008
Latvia
Posts: 388
Default
Bolamn wrong! I secure some php files because there was XSS holes. But if you want you can take your source. I work for my own...
Closed Thread

Tags
ghost , torrents

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
[FIX] FTS 1.1 white page on flush ghost torrents benjaminbih Free Torrent Source 2 15th April 2012 09:55
TS v1.3.9 by Xam Last 10 Torrents nako75018 Template Shares 5 1st January 2009 22:55
What.cd has over 200,000 torrents Fynnon Community Cafe 0 14th July 2008 15:54
Top 3 Torrents jora33 Yuna Scatari Edition (YSE) 0 3rd July 2008 10:57



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