View Single Post
  #3  
Old 12th February 2009, 15:48
torrentfreak torrentfreak is offline
Member
 
Join Date: Dec 2008
Default
Posts: 12
Default
Code:
<?

require_once("include/bittorrent.php");



loggedinorreturn();
parked();
stdhead("Upload");

if ($CURUSER["uploadpos"] == 'no' || (!ENA_UPLOAD_FOR_EVERYONE && $CURUSER['class'] < UC_UPLOADER))
{
stdmsg("Sorry...", "You are not authorized to upload torrents.  (Request <a href=\"phpbb2.php?page=viewtopic&t=9\">Here For Being A Torrent Uploader</a>)");
stdfoot();
exit;
}

?>

<div align="center">
<form enctype="multipart/form-data" action="takeupload.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="<?=$max_torrent_size?>" />
<p>The tracker's announce url is <b><?= $announce_urls[0] ?></b></p>
<p>
<p>
<b><a href="phpbb2.php?page=viewforum&f=3">Click Here To Learn How To Create and Seed a Torrent</a></b>
<p>
<b><a href="phpbb2.php?page=viewtopic&p=23#23">Click Here To View Torrent Upload Rules</a></b>
<p><b>Releasing any torrent in our site means that you accept the Torrent Upload Rules.</b></p>
</p>
</p>
</p>
<?
begin_frame("Upload",false,10,false);
begin_table(true);
tr("Torrent file", "<input type=\"file\" name=\"file\" size=\"80\" />\n", 1);
tr("Torrent name", "<input type=\"text\" name=\"name\" size=\"80\" /><br />(Taken from filename if not specified. <b>Please use descriptive names.</b>)\n", 1);
tr("Small Description", "<input type=\"text\" name=\"description\" size=\"80\" /><b></b><br>Small Description for the uploaded file (Example: A good movie!!!)<br>This Description is shown in browse.php under the Torrentname.", 1);
tr("Poster", "<input type=text name=poster size=80><br>(Direct link for a poster image to be shown on the details page)\n", 1);
tr("NFO file", "<input type=\"file\" name=\"nfo\" size=\"80\" /><br />(<b>Optional.</b> Can only be viewed by power users.)\n", 1);
tr("Description", "<textarea name=\"descr\" rows=\"10\" cols=\"80\"></textarea>" .
  "<br />(HTML/BB code is <b>not</b> allowed.)", 1);
//==== offer dropdown for offer mod  from code by S4NE
$res66 = mysql_query("SELECT id, name, allowed FROM offers WHERE userid = $CURUSER[id] ORDER BY name ASC") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res66) > 0) {
$offer = "<select name=offer><option value=0>Your Offers</option>";
while($row66 = mysql_fetch_array($res66)) {
if ($row66["allowed"] == 'allowed')
$offer .= "<option value=\"" . $row66["id"] . "\">" . htmlspecialchars($row66["name"]) . "</option>";
}
$offer .= "</select>";
tr("Offer", $offer."<br> If you are uploading one of your offers please select it here so the voters will be notified." , 1);
}
//===end
$s = "<select name=\"type\">\n<option value=\"0\">(choose one)</option>\n";

$cats = genrelist();
foreach ($cats as $row)
    $s .= "<option value=\"" . $row["id"] . "\">" . htmlspecialchars($row["name"]) . "</option>\n";

$s .= "</select>\n";
tr("Type", $s, 1);
?>
<tr><td align="center" class="row2" colspan="2"><input type="submit" class="btn" value="Do it!" /></td></tr>
<? end_table();
end_frame();
?>
</form>
</div>
<?

stdfoot();

?>
This is how my upload.php looks and i dont seem to find what u told me. Can u please edit it and post the codes. Moreover i use Torrentstrike fully modded v1
Reply With Quote