Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

yep they even took down the whitehouse site lmao
"Ravi.K, post: 78058":
it didn't change for me i'm using v2.08 any help..?

What didnt change?
Welcome Back — 2012-01-03 14:59:32 in General Chat
lmao and wb
"thedarklord, post: 77006":
tbh if i was you i would use this [url="http://www.torrenttrader.org/index.php?showtopic=12259&hl="]http://www.torrenttrader.org/index.php?sho...c=12259&hl=[/url] also it saves on queries to the database


slightly updated...

function class_user($name)

{

global $site_config;

$a ="SELECT class, donated, warned FROM `users` WHERE username ='".$name."'";

$res = SQL_Query_exec($a);

$classy = mysql_fetch_row($res);

switch ($classy[0]) {

case 8: // SYS:

$col = "#15CFCD";

break;

case 7: // ADMINISTRATORSYS:

$col = "#ff0000";

break;

case 6: // Administrator

$col = "teal";

break;

case 5: // Super Moderator

$col = "#3300CC";

break;

case 4: // Moderator

$col = "#006600";

break;

case 3: // VIP

$col = "#FFFF00";

break;

case 2: // Uploader

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config["SITEURL"]."/images/star.gif' alt='donated' border='0' />";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config["SITEURL"]."/images/warn.gif' alt='warned' border='0' />";

}else{

$warn="";

}

return unesc("<span style='color:".$col.";'>".$name."</span>".$star."".$warn."");

}
"XIII, post: 76444":
tell the truth you went for a wank lol


lmfao  :)
sorry took so long got a blue screen of death damn windows lol

in shoutbox.php search...

if(!isset($_GET['history'])){ 

echo "</body></html>";

}else{

end_frame();

stdfoot();

}
replace with...


if(!isset($_GET['history'])){ 

echo "<script src='".$site_config["SITEURL"]."/scripts/anon.js' type='text/javascript'></script>

<script type='text/javascript'><!--

protected_links = '".$site_config["SITEURL"]."';



auto_anonymize();

//--></script></BODY></HTML>";

}else{

end_frame();

stdfoot();

}



first post updated.
"Noname12, post: 76439":
a small problemthe external links in shoutbox are without anonym to

Ok is only forum and torrent description


gimme 5 mins ill make a fix for that too.
"Noname12, post: 76437":
Cooly its perfectThank you very much   ;)  :)

No probs enjoy ;)
ok in backend/functions.php find..

	// Text

$s = preg_replace(

"/\[url=((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\]((\s|.)+?)\[\/url\]/i",

"<a href=http://kpaste.net/redir/\\1 target=_blank>\\3</a>", $s);



// http://www.example.com

$s = preg_replace(

"/\[url\]((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\[\/url\]/i",

"<a href=http://kpaste.net/redir/\\1 target=_blank>\\1</a>", $s);
replace with..




	// Text

$s = preg_replace(

"/\[url=((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\]((\s|.)+?)\[\/url\]/i",

"<a href='\\1' target='_blank'>\\3</a>", $s);



// http://www.example.com

$s = preg_replace(

"/\[url\]((http|ftp|https|ftps|irc):\/\/[^<>\s]+?)\[\/url\]/i",

"<a href='\\1' target='_blank'>\\1</a>", $s);





search...





function format_urls($s){

return preg_replace(

"/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^<>\s]+)/i",

"\\1<a href=http://kpaste.net/redir/\\2 target=_blank>\\2</a>", $s);

}





replace with...





function format_urls($s){

return preg_replace(

"/(\A|[^=\]'\"a-zA-Z0-9])((http|ftp|https|ftps|irc):\/\/[^<>\s]+)/i",

"\\1<a href='\\2' target='_blank'>\\2</a>", $s);

}







in each theme/footer.php find..



</BODY>

or

</body>





before that add..





<script src="<?php echo $site_config["SITEURL"];?>/scripts/anon.js" type="text/javascript"></script>

<script type="text/javascript"><!--

protected_links = "<?php echo $site_config["SITEURL"];?>";



auto_anonymize();

//--></script>





in shoutbox.php search...





if(!isset($_GET['history'])){ 

echo "</body></html>";

}else{

end_frame();

stdfoot();

}







replace with...



if(!isset($_GET['history'])){ 

echo "<script src='".$site_config["SITEURL"]."/scripts/anon.js' type='text/javascript'></script>

<script type='text/javascript'><!--

protected_links = '".$site_config["SITEURL"]."';



auto_anonymize();

//--></script></BODY></HTML>";

}else{

end_frame();

stdfoot();

}



create a folder called scripts and add the attached anon.js to it or change the above path to your own scripts directory.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5335"]anon.js[/url]
uploader app — 2011-11-04 15:16:25 in v2 Only Mods Complete
"ewerton_jp, post: 76311":
Thank sanitize.php but still with the white screen and standard?

check your error logs.
uploader app — 2011-11-03 19:10:35 in v2 Only Mods Complete
slight update but can still be improved add sanitize.php to backend and change $uploader_rank to match your own.

<?php

//Uploader application

require_once("backend/functions.php");

require_once("backend/sanitize.php");

dbconn(false);

$site_config["LEFTNAV"] = false;

$site_config["MIDDLENAV"] = false;

$site_config["RIGHTNAV"] = false;

$uploader_rank=5;

loggedinonly();

stdhead("Upload Application");

?>

<STYLE>

.popup

{

CURSOR: help;

TEXT-DECORATION: none

}

</STYLE><?php



if ($_POST["form"]=="") {

if($CURUSER["class"] < 5)

  $CURUSER["uploadpos"] == 'no'?0:2;

else

 $form=10;

} else

$form=$_POST["form"];

if($form==0) {

$res=mysql_query("SELECT * FROM uploadapp WHERE userid=".$CURUSER["id"]) or die (mysql_error());

if(mysql_num_rows($res)) {

 $row=mysql_fetch_array($res);

 $form=4;

}

}



$debug=0;

$upreq = 10;

$upreqn = $upreq * 1073741824;





if($debug) {

begin_frame("<font color=2fdceb>Debug Box</font>");

print("<table>");

print("<form action=\"uploadapp.php\" method=\"post\" enctype=\"multipart/form-data\" name=\"debug\" id=\"uploadapp\">");

tr("User Class","&nbsp;&nbsp;".get_user_class_name($CURUSER["class"]),1);

tr("Variables",

"form = " . $form. "<br>".

"user = " . $_POST["user"]. "<br>".

"groupacct = " . $_POST["groupacct"]. "<br>".

"grouname = " . unesc($_POST["groupname"]). "<br>".

"groupdes = " . unesc($_POST["groupdes"]). "<br>".

"joined = " . unesc($_POST["joined"]). "<br>".

"ratio = " . unesc($_POST["ratio"]). "<br>".

"upk =". unesc($_POST["upk"]). "<br>".

"rbseed = ".unesc($_POST["rbseed"]).

"<br>rbrelease = ".unesc($_POST["rbrelease"]).

"<br>rbstime = ".unesc($_POST["rbstime"]) . "<br>".

"<br>rbtrial = ".unesc($_POST["rbtrial"]) . "<br>".

"<br>rbneed = ".unesc($_POST["rbneed"]) . "<br>".

"<br>rbsteedbox = ".unesc($_POST["rbseedbox"]) . "<br>".

"plans =". unesc($_POST["plans"]). "<br>".

"comment =". unesc($_POST["comment"]). "<br>".

"speed =". unesc($_POST["speed"]). "<br>".

"screen =". unesc($_POST["screen"]). "<br>".

"",1);

tr("View forms","<input type=\"radio\" name=\"form\" value=\"0\" ". ($form==0?"checked":""). ">Upload App".

"<input name=\"form\" type=\"radio\" value=\"3\" ".($form==3?"checked":"").">Moderator+ Page".

"<input type=\"submit\" name=\"SubmitD\" value=\"Change Forms\">",1);

print("</table> </form>");



end_frame();

}

if($form>=10 && $CURUSER["class"]<5) {

show_error_msg("Error!","Invalid Request!",1);

} else if($form==0) {

begin_frame("");

?>

<Center><BR><b>Welcome <?php echo $CURUSER['username']?> to the <?php echo $site_config['SITENAME']?> uploader request form. </b><BR><BR /><b>Please use the application form below to apply for the right to upload content to <?php echo $site_config['SITENAME']?>. <br>Once you have submitted your application for approval please wait for our staff to review <BR>your application. You will receive a PM once staff have reviewed your application.<BR><BR></b></center>

<form action="uploadapp.php" method="post" enctype="multipart/form-data" name="uploadapp" id="uploadapp">

<center><table border=1 style='border-collapse: collapse' bordercolor=#646262 cellpadding=4>

<?php



if ($CURUSER["downloaded"] > 0)

$ratio = $CURUSER['uploaded'] / $CURUSER['downloaded'];

else if ($CURUSER["uploaded"] > 0)

$ratio = 1;

else

$ratio = 0;



tr("User","&nbsp;&nbsp;<input name=\"user\" type=\"hidden\" value=\"". $CURUSER['id']."\">".$CURUSER['username'],1);

tr("Joined Date","&nbsp;&nbsp;<input name=\"joined\" type=\"hidden\" value=\"".$CURUSER['added']."\">".$CURUSER['added'],1);

tr("My Ratio is at or above 1.0","&nbsp;&nbsp;<input name=\"ratio\" type=\"hidden\" value=\"".($ratio>=1?"ok":"not ok")."\">".($ratio>=1?"Yes":"No"),1);

$upreqm=$CURUSER['uploaded']>=$upreqn;

tr("I meet or exceed ". $upreq ."GB uploaded transfer","&nbsp;&nbsp;<input name=\"upk\" type=\"hidden\"

value=\"".($upreqm?"yes":"no")."\">".($upreqm?"Yes":"No"),1);

tr("What kind of content do you have to offer<br>to our community? <b>Games</b>,<b>Movies</b>,<b>Music</b><br> You will not be restricted to anything <br> that you put here.","<textarea name=\"plans\" cols=\"50\" rows=\"4\" wrap=\"VIRTUAL\"></textarea>",1);

tr("Why I should be given upload access.<br>Please do not say idk or why not etc. <br> your application will just get <br> <b>REJECTED.</b><br>","<textarea name=\"comment\" cols=\"50\" rows=\"4\" wrap=\"VIRTUAL\"></textarea>",1);

tr("Please also provide us with a link to a<br>speedtest result we recommend using <br>www.speedtest.net then copy and paste<br>the link to your result here.","<textarea name=\"speed\" cols=\"50\" rows=\"2\" wrap=\"VIRTUAL\"></textarea>",1);

tr("Please provide us with a screenshot of <br>your stats from another site.","<textarea name=\"screen\" cols=\"50\" rows=\"2\" wrap=\"VIRTUAL\"></textarea>",1);

?>

</table></center><center>

<p>Do you know how to seed and create torrents?.

<input type="radio" name="rbseed" value="1">

Yes

<input name="rbseed" type="radio" value="0" checked>

No</p>

<p>I understand that I am not allowed to upload banned releases, or other group releases that are officially not allowed on this tracker.

<input type="radio" name="rbrelease" value="1">

Yes

<input name="rbrelease" type="radio" value="0" checked>

No</p>

<p>I understand that I am to seed torrents for at least 48 hours, or at least until the torrent has two other seeders.

<input type="radio" name="rbstime" value="1">

Yes

<input name="rbstime" type="radio" value="0" checked>

No</p>

<input name="form" type="hidden" value="1">

<p>Do you use a seedbox to upload your torrents?.

<input type="radio" name="rbseedbox" value="1">

Yes

<input name="rbseedbox" type="radio" value="0" checked>

No</p>

<input name="form" type="hidden" value="1">

<p>I understand that i need to upload at least 3 torrents per week to remain a uploader.

<input type="radio" name="rbneed" value="1">

Yes

<input name="rbneed" type="radio" value="0" checked>

No</p>

<input name="form" type="hidden" value="1">

<p>I understand that if my application is accepted it will be on a trial basis.

<input type="radio" name="rbtrial" value="1">

Yes

<input name="rbtrial" type="radio" value="0" checked>

No</p>

<input name="form" type="hidden" value="1"></center>

<center><input type="submit" name="Submit" value="Send Application"><center>

</form><br><BR>

<?php

end_frame();



} else if ($form==1 && $_SERVER["REQUEST_METHOD"]=="POST") {

$user=isset($_POST["user"])?sanitize($_POST["user"],INT):$user=0;

if($user==0)

show_error_msg("Error","Guests Cannot Apply!",1);

$groupacct=isset($_POST["groupacct"])?sanitize($_POST["groupacct"],INT):$groupacct=0;

$groupdes=isset($_POST["groupdes"])?sanitize($_POST["groupdes"],HTML):$groupdes='';

$plans=isset($_POST["plans"])?sanitize($_POST["plans"],HTML):$plans='';

$comment=isset($_POST["comment"])?sanitize($_POST["comment"],HTML):$comment='';

$speed=isset($_POST["speed"])?sanitize($_POST["speed"],HTML):$speed='';

$screen=isset($_POST["screen"])?sanitize($_POST["screen"],HTML):$screen='';

$rbseed=isset($_POST["rbseed"])?sanitize($_POST["rbseed"],INT):$rbseed=0;

$rbrelease=isset($_POST["rbrelease"])?sanitize($_POST["rbrelease"],INT):$rbrelease=0;

$rbtrial=isset($_POST["rbtrial"])?sanitize($_POST["rbtrial"],HTML):$rbtrial=0;

$rbneed=isset($_POST["rbneed"])?sanitize($_POST["rbneed"],INT):$rbneed=0;

$rbseedbox=isset($_POST["rbseedbox"])?sanitize($_POST["rbseedbox"],INT):$rbseedbox=0;

$rbseedbox=isset($_POST["rbseedbox"])?sanitize($_POST["rbseedbox"],INT):$rbseedbox=0;

$rbstime=isset($_POST["rbstime"])?sanitize($_POST["rbstime"],INT):$rbstime=0;

begin_frame("<font color=2fdceb>Uploaders Application Request</font>");

$qry="INSERT INTO uploadapp (userid,applied,grpacct,grpname,grpdes,content,comment,speed,screen,seeding,o

thergrps,seedtime,need,seedbox,trial) ".

"VALUES (". $user.", ".

 implode(",",array_map("sqlesc",array(

get_date_time(),

  $groupacct,

  $groupname,

  $groupdes,

  $plans,

  $comment,

  $speed,

  $screen,

  $rbseed,

  $rbrelease,

  $rbtrial,

  $rbneed,

  $rbseedbox,

  $rbstime))).")";

$ret=mysql_query($qry);

//Start Staff PM

$dt = sqlesc(get_date_time());

$res = mysql_query("SELECT id FROM users LEFT JOIN groups ON users.class=groups.group_id WHERE groups.control_panel='yes'");

while($arr=mysql_fetch_row($res))

mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES(0, 0, $arr[0], $dt, 'A uploader application has been filled in please [url=".$site_config["SITEURL"]."/uploadapp.php]Click Here [/url] to view the application')") or die(mysql_error());

// End Staff PM

if (!$ret) {

 if (mysql_errno() == 1062)

  print("Application already on file<br>");

 else

 print("mysql puked: ".mysql_error());

} else

?>

<Center><BR><b>Thank you <?php echo $CURUSER['username']?><BR /><BR /> The staff at  <?php echo $site_config['SITENAME']?> have now received your application. </b><BR><b>If you have not heard anything or recieved a pm in the next 72 hours.</b><BR /><b>Please feel free to contact a member of staff </b><BR /><BR /><b>You can check back on your application progress at any time by following this link again.</b><BR><BR><BR><a href="../">Click Here To Go Back To The Main Site</a></center>

<?php





end_frame();

} else if($form==2) {

begin_frame("");

print("<h2>You already have upload capabilities</h2>");

end_frame();

} else if($form==4) {

begin_frame("</font>");

 $votesyes=$votesno==0;

  if($row["votes"]!="") {

$votes=explode(" ",$row["votes"]);

for($i=0;$i<count($votes);$i++)

{

$votei=explode(":",$votes[$i]);

$votei[1]?$votesyes++:$votesno++;

}

  }

  ?>

<Center><b>Welcome back <?php echo $CURUSER['username']?></b></a></center><BR />

<?php

  print("Upload Application Is Still Under Review:<br><BR><b>Current Voting status:</b> Yes = ".$votesyes." &nbsp;&nbsp; No = ".$votesno);

  print("<br>The Polls are ".($row["active"]=="0"?"Closed":"Open").".");

end_frame();

} else if($form>=10) {

begin_frame("");

?>

<Center><b>Welcome <?php echo $site_config['SITENAME']?> Staff Member <?php echo $CURUSER['username']?> to the uploaders voting booth</b></a><BR /><BR /><b>Instructions</b><BR><BR><b>1. Please make sure you leave a comment in the mod comment box.</b><BR>

<b>2. Please make sure you also vote as it takes 5 votes to be able to close a application.</b><br><b>3. If you are unsure please ask a member of staff who is a higher rank than yourself.</b><br><br><br></center>

<?php

//adminmenu();

if($form==11) {

$res=mysql_query("SELECT * FROM uploadapp WHERE id=".$_POST["pollid"]) or die (mysql_error());

$row=mysql_fetch_array($res);

 $votesyes=$votesno=$voted=0;

  if($row["votes"]!="") {

$votes=explode(" ",$row["votes"]);

for($i=0;$i<count($votes);$i++)

{

$votei=explode(":",$votes[$i]);

if($CURUSER["id"]==$votei[0]) $voted++;

$votei[1]?$votesyes++:$votesno++;

}

  }

if($_POST["ballet"] && $voted==0) {

 $votes=($row["votes"]!=""?$row["votes"]." ":"").implode(":",array($CURUSER["id"],$_POST["ballet"]=="Yes"?1:0));

 mysql_query("UPDATE uploadapp SET votes='".$votes."' WHERE id=".$_POST["pollid"]);

 print("Vote for ".$_POST["pollid"]." recieved (".$_POST["ballet"].")<br>");

} else if($_POST["closepoll"]) {

  print("Request to close Polling for ".$_POST["pollid"]." recieved<br>");

  if(count($votes)<5) {

print("Request denied, requires 5 votes to close");

  } else {

mysql_query("UPDATE uploadapp SET active='0' WHERE id=".$_POST["pollid"]);

$tvotes=$votesyes+$votesno;

$votea=$votesyes>$votesno;

$modcomment = gmdate("Y-m-d") . " - Upload Application: ".($votea?"Accepted":"Denied")." (Yes = ".$votesyes." No = ".$votesno." (".

number_format((($votea?$votesyes:$votesno)/$tvotes)*100,3)."%)";

print($modcomment."<br>");

if($votea) {

$mq="UPDATE users SET class=".$uploader_rank.",modcomment=CONCAT(modcomment,".sqlesc($modcomment."\n").") WHERE id=".$row["userid"];

mysql_query($mq);

print("Updating User Records...<br>");

$dt = sqlesc(get_date_time());

$msg = sqlesc("Congratulations, Your application has been successful and you have been automatically promoted to uploader. The upload page can be found  [url=".$site_config["SITEURL"]."/torrents-upload.php]Here[/url] welcome to the team.\n");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, ".$row["userid"].", $dt, $msg, 0)") or die (mysql_error());

} else {

$mq="UPDATE users SET modcomment=CONCAT(modcomment,".sqlesc($modcomment."\n").") WHERE id=".$row["userid"];

mysql_query($mq);

$dt = sqlesc(get_date_time());

$msg = sqlesc("Sorry, On this occasion your application to become a uploader was unsuccessful. If you require any further assistance please contact a member of the staff team.\n");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, ".$row["userid"].", $dt, $msg, 0)") or die (mysql_error());

}

 }

} else if($_POST["removepoll"]) {

 mysql_query("DELETE FROM uploadapp where id=".$_POST["pollid"]);

 print("Poll ".$_POST["pollid"]." removed from database");

} else if($_POST["addcomment"]) {

 print ("Comment: ".sqlesc($_POST["newcomments"])."<br>");

  if(($_POST["newcomments"])) {

$un=sqlesc($CURUSER["username"].": ".$_POST["newcomments"]."\n");

  $mq="UPDATE uploadapp SET modcomments=CONCAT(modcomments,".$un.") WHERE id=".$_POST["pollid"];

  mysql_query($mq);

  print("Added coment to poll ".$_POST["pollid"]);

 }

}

 

}

print("");

$res=mysql_query("SELECT * FROM uploadapp ORDER BY applied DESC") or die (mysql_error());

if(!mysql_num_rows($res)) print("<h1>There currently are no uploader applications.");

else {

?>

<table border=1 style='border-collapse: collapse' bordercolor=blue>

<tr><td>App #</td>

<td>Username</td>

<td><span title=" Application Date &amp; Join Date " class="popup">App date</span></td>

<td><span title=" Group Affiliated Application " class="popup">Group</span></td>

<td><span title=" Content user plans to upload and share" class="popup">Content</span></td>

<td><span title=" Comments user has left as to why they should be considered" class="popup">Comments</span></td>

<td><span title=" This is a link to the users speedtest" class="popup">SpeedTest</span></td>

<td><span title=" This is a link to the users stats from another site" class="popup">Extra<br>Stats</span></td>

<td><span title=" Does user pass ratio requirement?" class="popup">Ratio</span></td>

<td><span title=" Does user pass the minimum 10GB requirement?" class="popup"><?php echo $upreq;?>GB+</span></td>

<td><span title=" Does User know how to seed torrents and create torrents?" class="popup">Seeding</span></td>

<td><span title=" Does User acknowledge other groups right to only upload their titles?" class="popup">Groups</span></td>

<td><span title=" Does User acknowledge minimum seeding times?" class=popup">Seeder<br>Time</span></td>

<td><span title=" Does User upload with a seedbox?" class=popup">Seedbox</span></td>

<td><span title=" Does User accept that it is on a trial basis?" class=popup">Trial</span></td>

<td><span title=" Does User accept that they must upload 3 or more torrents per week?" class=popup">3 uploads<br>a week</span></td>

<td>Voting Poll</td>

</tr>

<?php

while($row=mysql_fetch_array($res))

{

  $resu=mysql_query("SELECT * FROM users where id = ".$row["userid"]) or die (mysql_error());

  $rowu=mysql_fetch_array($resu);

  $voted=$tvotes=$votesyes=$votesno=0;

  if($row["votes"]!="") {

$votes=explode(" ",$row["votes"]);

for($i=0;$i<count($votes);$i++)

{

$votei=explode(":",$votes[$i]);

if($CURUSER["id"]==$votei[0]) $voted++;

$votei[1]?$votesyes++:$votesno++;

$tvotes++;

}

  }

if ($rowu["downloaded"] > 0)

 $ratio = $rowu['uploaded'] / $rowu['downloaded'];

else if ($rowu["uploaded"] > 0)

 $ratio = 1;

else

 $ratio = 0;

?>

<tr>

  <form action="uploadapp.php" method="post" enctype="multipart/form-data" name="poll<?php echo $row["id"]?>" id="uploadapp">

  <input name="form" type="hidden" value="11">

<input name="pollid" type="hidden" value="<?php echo $row["id"]?>">

<td><?php echo $row["id"]?></td>

<td><a href=account-details.php?id=<?php echo $row["userid"]?>><?php echo $rowu["username"]?></a></td>

<td><?php echo$row["applied"]?></td>

<td <?php echo($row["grpacct"]?"bgcolor=\"#FFFF00\">(".unesc($row["grpdes"]).")&nbsp;".unesc($row["grpname"]):">N/A")?></td>

<td><?php echo$row["content"]?></td>

<td><?php echo$row["comment"]?></td>

<td><?php echo$row["speed"]?></td>

<td><?php echo$row["screen"]?></td>

<td bgcolor="<?php echo($ratio>=1?"#00FF00":"#FF0000")?>"></td>

<td bgcolor="<?php echo($rowu["uploaded"]>=$upreqn?"#00FF00":"#FF0000")?>"></td>

<td bgcolor="<?php echo($row["seeding"]?"#00FF00":"#FF0000")?>"></td>

<td bgcolor="<?php echo($row["othergrps"]?"#00FF00":"#FF0000")?>"></td>

 <td bgcolor="<?php echo($row["seedtime"]?"#00FF00":"#FF0000")?>"></td>

<td bgcolor="<?php echo($row["seedbox"]?"#00FF00":"#FF0000")?>"></td>

<td bgcolor="<?php echo($row["trial"]?"#00FF00":"#FF0000")?>"></td>

<td bgcolor="<?php echo($row["need"]?"#00FF00":"#FF0000")?>"></td>

 <td rowspan="2"><?php echo($voted||!$row["active"]?$votesyes." Yes<br>".$votesno." No"

 :"Votes: ".$tvotes."<br>".

 "<input name=\"ballet\" type=\"submit\" value=\"Yes\">".

"<input name=\"ballet\" type=\"submit\" value=\"No\">").

(($CURUSER["control_panel"]="yes"&&$row["active"])?"<input name=\"closepoll\" type=\"submit\" value=\"Close Poll\">":

 "<br>".($row["active"]?"<br><font color=#00FF00>Poll Open</font>":"<br><font color=#FF0000>Poll Closed</font>")).

($CURUSER["control_panel"]="yes"?"<br><input name=\"removepoll\" type=\"submit\" value=\"Remove Poll\">":"")

?></td></tr>  </form><tr>

  <form action="uploadapp.php" method="post" enctype="multipart/form-data" name="poll<?php echo $row["id"]?>" id="uploadapp">

  <input name="form" type="hidden" value="11">

<input name="pollid" type="hidden" value="<?php  echo$row["id"]?>">

<td>&nbsp</td>

<td>Comments from Mods</td>

<td colspan="4"><textarea name="modcomments" rows="5" cols="50"><?php echo $row["modcomments"]?></textarea></td>

<td colspan="5"><input name="newcomments" type="text" value="" maxlength="80"><br><input type="submit" name="addcomment" value="Add Comment"></td>

  </form>

</tr>

<?php

 }

 print("</table>");

}

end_frame();

}

//end_frame();

stdfoot();

?>


[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5318"]sanitize.php[/url]
"Noname12, post: 75597":
in the line

$where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]);
i have

 
 $where = where ($_SERVER["SCRIPT_FILENAME"], $row["id"], 0);

mysql_query("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $row["id"]) or die(mysql_error());




yeh should work but today i don't have much time some real life things to do will look over it all tomorrow ;)
"Noname12, post: 75595":
Powered by TorrentTrader v2.07


well it must not be able to find the function for now change to mysql_query and ill look at what is wrong tomorrow.
"Noname12, post: 75593":
my mistake
if ($update)

SQL_Query_exec("UPDATE users SET last_access='" . get_date_time() . "', ip=".sqlesc($ip).", page=".sqlesc($where)." WHERE id=" . $userid);


if you are not on 2.07 change SQL_Query_exec to mysql_query
"Noname12, post: 75589":
Fatal error: Call to undefined function SQL_Query_exec() in /home/content/xxxxxx/html/xxx/backend/functions.php on line 1249
on line 1249

elseif (preg_match("/torrents-upload/i", $scriptname))


that cant be the right line its complaining about about attach your functions file.
"djhowarth, post: 72530":
u should be able to use onclick or something to redirect to the location.

its only grabbing the filename though not the url you would have to fiddle with it more.

something along the lines of...

<?php



require("backend/functions.php");



dbconn(false);

//loggedinorreturn();



if (strlen($_GET['q']) > 3) {

$q = str_replace(" ",".",sqlesc("%".$_GET['q']."%"));

$q2 = str_replace("."," ",sqlesc("%".$_GET['q']."%"));

$result = mysql_query("SELECT torrents.id, torrents.name FROM torrents WHERE torrents.name LIKE {$q} OR torrents.name LIKE {$q2} ORDER BY id DESC LIMIT 0,10;");

if (mysql_numrows($result) > 0) {

for ($i = 0; $i < mysql_numrows($result); $i++) {

$name = mysql_result($result,$i,"name");

$name = trim(str_replace("\t","",$name));

$id=mysql_result($result,$i,"id");

$tid=(int)$id;

print" <a href='torrents-details.php?id=".$tid."'>".$name."</a>";

if ($i != mysql_numrows($result)-1) {

print "\r\n";

}

}

}

}



?>
Uploader Rank — 2010-12-11 19:25:09 in v2 Only Mods Complete
"BigW, post: 68518":
I tried several options within torrent-details, but unfortunately nothing happens, but I must say that I'm a real NOOB, and to scared to screw up the script.
I don't get the uploaders rank behind the name
:huh:


maybe somebody can point me to the right directions, where I put what to get uploaders rank right after the uploaders name in torrent-details.



Thanks,


if you are using the class_user function then.

	print("<tr><td align=left><b>" . ADDED_BY . ":</b></td><td><a href=account-details.php?id=" . $row["owner"] . ">" . $row["username"] . "</a></td></tr>");





would become





	print("<tr><td align=left><b>" . ADDED_BY . ":</b></td><td><a href=account-details.php?id=" . $row["owner"] . ">" . class_user($row["username"]) . "</a></td></tr>");
Uploader Rank — 2010-12-11 13:34:45 in v2 Only Mods Complete
try this not tested..

function class_user($name)

{

global $site_config;

$a ="SELECT u.class, u.donated, u.warned, u.rangclass, r.name, r.rangpic FROM `users` `u` INNER JOIN `rangclass` `r` ON u.rangclass=r.id WHERE username ='".$name."'";

$res = mysql_query($a);

$classy = @mysql_fetch_row($res);

switch ($classy[0]) {

case 8: // SYS:

$col = "#15CFCD";

break;

case 7: // ADMINISTRATORSYS:

$col = "#ff0000";

break;

case 6: // Administrator

$col = "teal";

break;

case 5: // Super Moderator

$col = "#3300CC";

break;

case 4: // Moderator

$col = "#006600";

break;

case 3: // VIP

$col = "#FFFF00";

break;

case 2: // Uploader

$col = "#33FF33";

break;

default: // User

$name = $name;

}

if ($classy[1]>0){

$star="<img src='".$site_config[SITEURL]."/images/star.gif' alt='donated' border='0'>";

}else{

$star="";

}

if($classy[2]=="yes"){

$warn="<img src='".$site_config[SITEURL]."/images/warn.gif' alt='warned' border='0'>";

}else{

$warn="";

}

if($classy[3]>0){

$rang="<img src='".$site_config[SITEURL]."/images/".$classy[5]."' alt='".$classy[4]."' border='0'>";

}else{

$rang="";

}

return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$rang."</font>");

 

}
here this should do a similar job.

$find=array("@<a[^>]*?>.*?</a>@si","@<A[^>]*?>.*?</a>@si","@<?php[^>]*?>@si","@<?[^>]*?>@si","@<script[^>]*?>@si");

$replace = array("","","","","");

$text=preg_replace($find,$replace,$text);
"bolzen, post: 67659":
preg_match issn
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728