try this index.php
and give me bittorrent.php
PHP Code:
<?
require "include/bittorrent.php";
gzip();
dbconn(true);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$choice = $_POST["choice"];
if ($CURUSER && $choice != "" && $choice < 256 && $choice == floor($choice)) {
$res = sql_query("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(__FILE__, __LINE__);
$arr = mysql_fetch_assoc($res) or die("No pools");
$pollid = $arr["id"];
$userid = $CURUSER["id"];
$res = sql_query("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or sqlerr(__FILE__, __LINE__);
$arr = mysql_fetch_assoc($res);
if ($arr) die("Double vote");
sql_query("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or sqlerr(__FILE__, __LINE__);
if (mysql_affected_rows() != 1)
stderr($tracker_lang['error'], "Error.Your vote has not been accepted.");
header("Location: $DEFAULTBASEURL/");
die;
} else
stderr($tracker_lang['error'], "Please select option.");
}
stdhead($tracker_lang['homepage']);
//print("<table width=\"100%\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"embedded\">");
//// Shoutbox
print("<h2>Shoutbox:.");
print("<table width='100%' border='1' cellspacing='0' cellpadding='1'><tr><td class=text>\n");
print("<iframe src='shoutbox.php' width='100%' height='80' frameborder='0' name='sbox' marginwidth='0' marginheight='0'></iframe>
\n");
print("<form action='shoutbox.php' method='get' rel='nofollow' target='sbox' name='shbox' onSubmit=\"mySubmit()\">\n");
print("<center>Message: <input type='text' maxlength=140 name='shbox_text' size='100'> <input type='submit' value='Post it'> <input type='hidden' name='sent' value='yes'>\n");
print("</td></tr></table></form>");
////
?>
<div align="center"><font class="small"><img src="./themes/<?=$ss_uri;?>/images/en.gif" width="20" height="15"></font></div>
<p align="justify"><font class="small" style="font-weight: normal;">No files you see here are hosted on the server. Links available are provided by site users and administation is not responsible for them. It is strictly prohibited to upload any copyrighted material without explicit permission from copyright holders. If you find that some content is abusing you feel free to contact administation.</font></p>
<!--</td></tr></table>-->
<?
stdfoot();
?>