All pastes #709082 Raw Edit

Stuff

public text v1 · immutable
#709082 ·published 2007-09-24 11:03 UTC
rendered paste body
<?
// SeedBonus Mod by CobraCRK   -   original ideea by TvRecall...
//cobracrk@yahoo.com
//www.extremeshare.org

require_once ("include/functions.php");
require_once ("include/config.php");

dbconn();

standardheader('Seed Bonus');

if ($CURUSER["view_torrents"]=="no")
   {
       err_msg(ERROR,NOT_AUTH_VIEW_NEWS);
       stdfoot();
       exit;
}
else
    {

block_begin("Seed Bonus");

?>
<style type="text/css">
<!--
.style1 {
	color: #000000;
	font-size: x-large;
}
.style2 {font-size: x-large}
-->
</style>

<p align="center"><?php
$r=mysql_query("SELECT seedbonus FROM users WHERE id=$CURUSER[uid]");
$cc=mysql_result($r,0,"seedbonus");
echo "<br><center><h1>".BONUS_INFO1."$cc ).<br>".BONUS_INFO2."</h1></center>";

?></p>
<p>&nbsp;</p>
<table width="474" border="1" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td width="26"><?php echo OPTION; ?></td>
    <td width="319"><?php echo WHAT_ABOUT; ?></td>
    <td width="41"><?php echo POINTS; ?></td>
    <td width="62"><?php echo EXCHANGE; ?> </td>
  </tr>
  <?php
  $uid=$CURUSER['uid'];
  $r=mysql_query("SELECT * from users where id=$uid");
  $c=mysql_result($r,0,"seedbonus");
  $r=mysql_query("SELECT * FROM bonus");
  while($row = mysql_fetch_array($r)){  
  if($c<$row['points']) { $enb="disabled"; }
  echo "<form action=seedbonus_exchange.php?id=".$row['id']." method=post><tr>
    <td><b>".$row['name']."</b></td>
    <td><b>".$row['gb']." GB Upload</b></td>
    <td>".$row['points']."</td>
    <td><input type=submit style=\"BORDER-RIGHT: #2d2d2d 1px solid; BORDER-TOP: #2d2d2d 1px solid; FONT-WEIGHT: normal; BORDER-LEFT: #2d2d2d 1px solid; BORDER-BOTTOM: #2d2d2d 1px solid; BACKGROUND-COLOR: #1d1d1d; font-weight:bold; color:#00FF00;\" name=submit value=\"".EXCHANGE."!\" $enb></td>
  </tr></form>";

}

//Custom title hack start

  

$id = $CURUSER["uid"];
$res=mysql_query("SELECT users.custom_title, users.id,users.username FROM users WHERE id=$CURUSER[uid]");
$row=mysql_fetch_array($res);
if($c>899) {  
   print("<tr>\n<td align=center colspan=5><b>Change Custom Title (Cost: 900 points)</b></td></tr>\n");
  
 //Custom Title System Hack Start
if (!$row["custom_title"])
        $title = "<i>".NO_CUSTOM_TITLE."</i>";
else
        $title = unesc($row["custom_title"]);
print("<tr>\n<td>".CUSTOM_TITLE."</td>\n<td colspan=5>".$title."</td></tr>\n");
//Custom Title System Hack Stop
  


   if (!$row["custom_title"])
        $custom = "";
   else
        $custom = $row["custom_title"];
        
   print("<tr>\n<td><b>".CUSTOM_TITLE."</b></td>\n<td colspan=1>");
   print("<form method=post action=title2.php?action=changetitle&uid=".unesc($id)."&returnto=seedbonus.php?id=".unesc($id).">");
   print("<input type=text name=title size=36 maxlength=50 value=\"".unesc($custom)."\"><input type=hidden name=username size=4 value=\"".$row["username"]."\" readonly></td>");
   print("<td align=center colspan=3><input type=\"submit\" value=\"".FRM_CONFIRM."\">&nbsp;&nbsp;<input type=\"reset\" value=\"".FRM_RESET."\">");
   print("</form>");
   print("</td></tr>\n");


}
if($c<899) {  
print("<tr>\n<td align=center colspan=5><b>Change Custom Title (Cost: 900 points)</b></td></tr>\n");
print("<tr>\n<td align=center colspan=5><b>[Must have more points]</b></td></tr>\n");
}

//Custom title hack end
if (!$row["custom_title"])
        $title = "<i>".NO_CUSTOM_TITLE."</i>";
else
        $title = unesc($row["custom_title"]);
print("<tr>\n<td>".CUSTOM_TITLE."</td>\n<td colspan=5>".$title."</td></tr>\n");
//Custom Title System Hack Stop
  


   if (!$row["custom_title"])
        $custom = "";
   else
        $custom = $row["custom_title"];
        
   print("<tr>\n<td><b>".CUSTOM_TITLE."</b></td>\n<td colspan=1>");
   print("<form method=post action=title2.php?action=changetitle&uid=".unesc($id)."&returnto=seedbonus.php?id=".unesc($id).">");
   print("<input type=text name=title size=36 maxlength=50 value=\"".unesc($custom)."\"><input type=hidden name=username size=4 value=\"".$row["username"]."\" readonly></td>");
   print("<td align=center colspan=3><input type=\"submit\" value=\"".FRM_CONFIRM."\">&nbsp;&nbsp;<input type=\"reset\" value=\"".FRM_RESET."\">");
   print("</form>");
   print("</td></tr>\n");


}
if($c<899) {  
print("<tr>\n<td align=center colspan=5><b>Change Custom Title (Cost: 900 points)</b></td></tr>\n");
print("<tr>\n<td align=center colspan=5><b>[Must have more points]</b></td></tr>\n");
}

//Custom title hack end

if (!$row["custom_title"])
        $title = "<i>".NO_CUSTOM_TITLE."</i>";
else
        $title = unesc($row["custom_title"]);
print("<tr>\n<td class=header>".CUSTOM_TITLE."</td>\n<td class=lista$colspan>".$title."</td></tr>\n");
//Custom Title System Hack Stop
  


   if (!$row["custom_title"])
        $custom = "";
   else
        $custom = $row["custom_title"];
        
   print("<tr>\n<td class=header><b>".CUSTOM_TITLE."</b></td>\n<td class=lista colspan=1>");
   print("<form method=post action=title.php?action=changetitle&uid=".unesc($id)."&returnto=seedbonus.php?id=".unesc($id).">");
   print("<input type=text name=title size=36 maxlength=50 value=\"".unesc($custom)."\"><input type=hidden name=username size=4 value=\"".$row["username"]."\" readonly></td>");
   print("<td class=lista align=center><input type=\"submit\" value=\"".FRM_CONFIRM."\">&nbsp;&nbsp;<input type=\"reset\" value=\"".FRM_RESET."\">");
   print("</form>");
   print("</td></tr>\n");


}
if($c<74) {  
print("<tr>\n<td class=header align=center colspan=3><b>Change Custom Title (Cost: 75 points)</b></td></tr>\n");
print("<tr>\n<td class=header align=center colspan=3><b>[Must have more points]</b></td></tr>\n");
}

//Custom title hack end

if($c<250) { $anc="disabled"; }
?>
  </form><form action=seedbonus_exchange.php?id=invite method=post><tr>
    <td><b>4</b></td>
	<td><b>1 Invite</b></td>
    <td>250.0</td>
    <td><input type=submit style="BORDER-RIGHT: #2d2d2d 1px solid; BORDER-TOP: #2d2d2d 1px solid; FONT-WEIGHT: normal; BORDER-LEFT: #2d2d2d 1px solid; BORDER-BOTTOM: #2d2d2d 1px solid; BACKGROUND-COLOR: #1d1d1d; font-weight:bold; color:#00FF00;" name=submit value="Exchange!" <?php echo $anc; ?> ></td>
  </tr></form> 
  <?php
  if($c<250) { $anc="disabled"; }
?>
  </form><form action=seedbonus_exchange.php?id=vip method=post><tr>
    <td><b>5</b></td>
	<td><b>30days VIP</b></td>
    <td>750.0</td>
    <td><input type=submit style="BORDER-RIGHT: #2d2d2d 1px solid; BORDER-TOP: #2d2d2d 1px solid; FONT-WEIGHT: normal; BORDER-LEFT: #2d2d2d 1px solid; BORDER-BOTTOM: #2d2d2d 1px solid; BACKGROUND-COLOR: #1d1d1d; font-weight:bold; color:#00FF00;" name=submit value="Exchange!" <?php echo $anc; ?> ></td>
  </tr></form>

</table>
<p align="center" class="style1">&nbsp;</p>
<p class="style2"><?
echo $row['points'];
echo "<center><h1>".BONUS_INFO3."</h1></center>";
block_end();
}





stdfoot();
?>
</p>