Thread: X-FILES
View Single Post
  #16  
Old 9th February 2013, 10:35
Pirat4you Pirat4you is offline
Member
 
Join Date: Nov 2012
Sweden
Posts: 3
Default Help
i only get this after install i use xampp

Code:
15) { stdhead(); stdmsg("FUCK OFF...", "STOP CHEATING MOTHER FUCKER"); stdfoot(); exit; } loggedinorreturn(); maxsysop(); if ($_SERVER["REQUEST_METHOD"] == "POST") { $choice = $_POST["choice"]; if ($CURUSER && $choice != "" && $choice < 256 && $choice == floor($choice)) { $res = mysql_query("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(); $arr = mysql_fetch_assoc($res) or die("No poll"); $pollid = $arr["id"]; $userid = $CURUSER["id"]; mysql_query("UPDATE users SET seedbonus = seedbonus+1.0 WHERE id = $CURUSER[id]") or sqlerr(__FILE__, __LINE__); $res = mysql_query("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or sqlerr(); $arr = mysql_fetch_assoc($res); if ($arr) die("Dupe vote"); mysql_query("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or sqlerr(); if (mysql_affected_rows() != 1) stderr("Error", "An error occured. Your vote has not been counted."); header("Location: $BASEURL/"); die; } else stderr("Error", "Please select an option."); } $a = @mysql_fetch_assoc(@mysql_query("SELECT id,username FROM users WHERE status='confirmed' ORDER BY id DESC LIMIT 1")) or die(mysql_error()); if ($CURUSER) $latestuser = "" . $a["username"] . ""; else $latestuser = $a['username']; $male = number_format(get_row_count("users", "WHERE gender='Male'")); $female = number_format(get_row_count("users", "WHERE gender='Female'")); $nobody = number_format(get_row_count("users", "WHERE gender='N/A'")); $invites = number_format(get_row_count("users", "WHERE invited_by>'0'")); //$rated = number_format(get_row_count("torrents", "WHERE numratings>'0'")); //$extern = number_format(get_row_count("torrents", "WHERE extern='yes'")); $topics = number_format(get_row_count("topics")); $posts = number_format(get_row_count("posts")); $registered = number_format(get_row_count("users")); $todayreg = get_row_count('users', 'WHERE added > DATE_SUB(NOW(), INTERVAL 1 DAY)'); $unverified = number_format(get_row_count("users", "WHERE status='pending'")); $torrents = number_format(get_row_count("torrents")); $dead = number_format(get_row_count("torrents", "WHERE visible='no'")); $warnedu = number_format(get_row_count("users", "WHERE warned='yes'")); $disabled = number_format(get_row_count("users", "WHERE enabled='no'")); $NAT = number_format(get_row_count("peers", "WHERE connectable='no'")); $r = mysql_query("SELECT value_u FROM avps WHERE arg='seeders'") or sqlerr(__FILE__, __LINE__); $a = mysql_fetch_row($r); $seeders = $a[0]; $r = mysql_query("SELECT value_u FROM avps WHERE arg='leechers'") or sqlerr(__FILE__, __LINE__); $a = mysql_fetch_row($r); $leechers = $a[0]; $seeders = (get_row_count("peers", "WHERE seeder='yes'")); $leechers = (get_row_count("peers", "WHERE seeder='no'")); $peers = ($seeders + $leechers); $uniqpeer = (get_row_count("peers", "WHERE connectable='yes'")*3); if ($leechers == 0) $tratio = 0; else $tratio = round(($seeders / $leechers), 2); if ($leechers == 0) $sratio = 0; //$sratio = round(($seeders / $leechers) * 100); $sratio = round((($seeders + 1) / ($leechers + 1)) * 100); $result = mysql_query("SELECT SUM(downloaded) AS totaldl, SUM(uploaded) AS totalul FROM users") or sqlerr(__FILE__, __LINE__); $row = mysql_fetch_assoc($result); $totaldownloaded = $row["totaldl"]; $totaluploaded = $row["totalul"]; $totaldata = $totaldownloaded+$totaluploaded; $dt = gmtime() - 3600; $dt = sqlesc(get_date_time($dt)); $result = mysql_query("SELECT SUM(last_access >= $dt) AS totalol FROM users") or sqlerr(__FILE__, __LINE__); while ($row = mysql_fetch_array ($result)) { $totalonline = $row["totalol"]; $rec = @mysql_fetch_array(@mysql_query("SELECT * FROM onlinerec LIMIT 1")); if ($rec[users] < $totalonline) mysql_query("UPDATE onlinerec SET users=$totalonline, date='".get_date_time()."' WHERE users=$rec[users]"); } if (get_user_class() >= UC_UPLOADER) { $activeuser_class = 15; } else { $activeuser_class = 7; } $dt = gmtime() - 3600; $dt = sqlesc(get_date_time($dt)); $res = mysql_query("SELECT id, username, class, uploaded, downloaded, avatar, added, donor, warned FROM users WHERE class <= $activeuser_class AND last_access >= $dt ORDER BY class DESC,username") or sqlerr(__FILE__, __LINE__); while ($arr = mysql_fetch_assoc($res)) { if ($activeusers) $activeusers .= ",\n"; $res2 = mysql_query("SELECT COUNT(*) FROM peers WHERE userid=" . htmlspecialchars($arr["id"]) . " AND seeder='yes'") or print(mysql_error()); $row = mysql_fetch_row($res2); $activeseed = "$row[0]"; $res2 = mysql_query("SELECT COUNT(*) FROM peers WHERE userid=" . htmlspecialchars($arr["id"]) . " AND seeder='no'") or print(mysql_error()); $row = mysql_fetch_row($res2); $activeleech = "$row[0]"; if ($arr[added] == "0000-00-00 00:00:00") $joindate = 'N/A'; else $joindate = "Jn: " . get_elapsed_time(sql_timestamp_to_unix_timestamp($arr["added"])) . " ago"; if ($arr["downloaded"] > 0) { $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3); $ratio = "$ratio"; } else if ($arr["uploaded"] > 0) $ratio = "Inf."; else $ratio = "---"; $uploaded = mksize($arr["uploaded"]); $downloaded = mksize($arr["downloaded"]); $username = "" . htmlspecialchars($arr['username']) . ""; //$username = $arr["username"]; $usrclass = "".get_user_class_name($arr['class']).""; if ($arr["avatar"]) $avatarover = "" . htmlspecialchars($arr['avatar']) . ""; //$avatarover = $arr["avatar"]; elseif (!$arr["avatar"]) $avatarover = "/pic/default_avatar.png"; switch ($arr["class"]) { case UC_OWNER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_SVISOR: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_SYSOP: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_ELITE_ADMINISTRATOR: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_ADMINISTRATOR: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_MASTER_MODERATOR: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_MODERATOR: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_PREMIUM_UPLOADER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_UPLOADER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_VIP: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_LEGEND_USER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_EXTREME_USER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_ELITE_USER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_POWER_USER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; case UC_USER: $arr["username"] = "
$joindate
Cl: $usrclass

UP: $uploaded
DL: $downloaded
', CAPTION, '
R:$ratio  $activeseed  $activeleech
');\" onmouseout=\"return nd();\"> " . htmlspecialchars($arr["username"]) . ""; break; } $donator = $arr["donor"] === "yes"; if ($donator) $activeusers .= ""; $warned = $arr["warned"] === "yes"; if ($warned) $activeusers .= ""; if ($CURUSER) $activeusers .= "{$arr["username"]}"; else $activeusers .= "{$arr["username"]}"; if ($donator) $activeusers .= ""; if ($warned) $activeusers .= ""; } if (!$activeusers) $activeusers = "There have been no active users in the last 15 minutes."; stdhead("Home"); echo "Bun venit noului membru : $latestuser\n"; // Extra //print("


\n"); //print("
 // // // //

\n"); // End Extra begin_main_frame (); print("
"); if (get_user_class() >= UC_SVISOR){ print("
Noutatii [New Item]"); print("
\n"); } else{ print("
Tracker News
"); } $res = mysql_query("SELECT * FROM news WHERE ADDDATE(added, INTERVAL 365 DAY) > NOW() ORDER BY added DESC LIMIT 5") or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($res) > 0) { print("
\n
"); $news_flag = 0; while($array = mysql_fetch_array($res)) { $user = mysql_fetch_assoc(mysql_query("SELECT username FROM users WHERE id = $array[userid]")) or sqlerr(); if ($news_flag == 0) { print("
 " . gmdate("M-d-y",strtotime($array['added'])) . " - " ."". $array['title'] . " "); if (get_user_class() >= UC_MODERATOR) { print("   [E]"); print(" [D]"); } print("
".format_comment($array["body"],0)."

"); $news_flag = 1; } else { print("
 " . gmdate("M-d-y",strtotime($array['added'])) . " - " ."". $array['title'] . " "); if (get_user_class() >= UC_MODERATOR) { print("   [E]"); print(" [D]"); } print("
".format_comment($array["body"],0)."

"); } print("
".str_replace(array("n", " "), array("n", " "), $array["body"])."
"); print(""); } print("
\n"); } //print("

\n"); //print("
Partenerul si sursa noastra zilnica de jocuri bune!

\n"); //print("

\n"); ?> "); $query = "SELECT * FROM banners WHERE 1=1"; $sql = mysql_query($query); while ($row = mysql_fetch_array($sql)) { $link = $row['link']; $banner = $row['banner']; print("

"); } print("
"); ////////////////////////////////////////////////////////////////////////////////////// ?>
Recent Poll"); if (get_user_class() >= UC_SYSOP) { print(""); print(" - [New]\n"); if($pollok) { print(" - [Edit]\n"); // print(" - [Delete]"); } print(""); } print("

\n"); if($pollok) { print("
\n"); print("
"); print("
$question

\n"); $voted = $arr2; if ($voted) { // display results if ($arr["selection"]) $uservote = $arr["selection"]; else $uservote = -1; // we reserve 255 for blank vote. $res = mysql_query("SELECT selection FROM pollanswers WHERE pollid=$pollid AND selection < 20") or sqlerr(); $tvotes = mysql_num_rows($res); $vs = array(); // array of $os = array(); // Count votes while ($arr2 = mysql_fetch_row($res)) $vs[$arr2[0]] += 1; reset($o); for ($i = 0; $i < count($o); ++$i) if ($o[$i]) $os[$i] = array($vs[$i], $o[$i]); function srt($a,$b) { if ($a[0] > $b[0]) return -1; if ($a[0] < $b[0]) return 1; return 0; } // now os is an array like this: array(array(123, "Option 1"), array(45, "Option 2")) if ($arr["sort"] == "yes") usort($os, srt); print("\n"); $i = 0; while ($a = $os[$i]) { if ($i == $uservote) $a[1] .= " *"; if ($tvotes == 0) $p = 0; else $p = round($a[0] / $tvotes * 100); if ($i % 2) $c = ""; else $c = ""; print("\n"); ++$i; } print("
" . $a[1] . "      " . " $p%
\n"); $tvotes = number_format($tvotes); print("
Votes: $tvotes

\n"); } else { print("
\n"); $i = 0; while ($a = $o[$i]) { print("$a
\n"); ++$i; } print("
"); print("Blank vote (a.k.a. \" Vreau doar sa vad rezultatele ! \")
\n"); print("


"); } ?>
Anterioare | Sugestii
\n"); ?>
\n"; echo "
"; echo"
No Active Polls

\n"; echo "
"; } } ?> = UC_USER) { ?> "; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
                            
"; } ?> 
X-FILES Shoutbox

= UC_USER) { ?> 
Useri Activi: 
Notice: Undefined variable: totalonline in C:\xampp\htdocs\pirat4you\index.php on line 670


  
More Smilies


                    

Notice: Undefined variable: activeusers in C:\xampp\htdocs\pirat4you\index.php on line 675
= UC_VIP) { ?> 
Tracker Statistics
 Maximum Users     
Notice: Undefined variable: maxusers in C:\xampp\htdocs\pirat4you\index.php on line 687
 Registered Users     
Notice: Undefined variable: registered in C:\xampp\htdocs\pirat4you\index.php on line 689
 Today registered     
Notice: Undefined variable: todayreg in C:\xampp\htdocs\pirat4you\index.php on line 691
 Invited Users     
Notice: Undefined variable: invites in C:\xampp\htdocs\pirat4you\index.php on line 693
 Unconfirmed Users     
Notice: Undefined variable: unverified in C:\xampp\htdocs\pirat4you\index.php on line 695
 Online Users     
Notice: Undefined variable: totalonline in C:\xampp\htdocs\pirat4you\index.php on line 697
 Unconnectable Peers     
Notice: Undefined variable: NAT in C:\xampp\htdocs\pirat4you\index.php on line 699
 Male Users     
Notice: Undefined variable: male in C:\xampp\htdocs\pirat4you\index.php on line 705
 Female Users     
Notice: Undefined variable: female in C:\xampp\htdocs\pirat4you\index.php on line 707
 Undecided Users     
Notice: Undefined variable: nobody in C:\xampp\htdocs\pirat4you\index.php on line 709
 Warned Users     
Notice: Undefined variable: warnedu in C:\xampp\htdocs\pirat4you\index.php on line 711
 Disabled Users     
Notice: Undefined variable: disabled in C:\xampp\htdocs\pirat4you\index.php on line 713
 Forum Topics     
Notice: Undefined variable: topics in C:\xampp\htdocs\pirat4you\index.php on line 715
 Forum Posts     
Notice: Undefined variable: posts in C:\xampp\htdocs\pirat4you\index.php on line 717
 Total Torrents     
Notice: Undefined variable: torrents in C:\xampp\htdocs\pirat4you\index.php on line 723
 Inactive Torrents     
Notice: Undefined variable: dead in C:\xampp\htdocs\pirat4you\index.php on line 725
 Total Trafic     
Fatal error: Call to undefined function mksize() in C:\xampp\htdocs\pirat4you\index.php on line 727
Reply With Quote