-
Notifications
You must be signed in to change notification settings - Fork 29
/
index.php
66 lines (57 loc) · 4.34 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
/*
// +--------------------------------------------------------------------------+
// | Project: TBDevYSE - TBDev Yuna Scatari Edition |
// +--------------------------------------------------------------------------+
// | This file is part of TBDevYSE. TBDevYSE is based on TBDev, |
// | originally by RedBeard of TorrentBits, extensively modified by |
// | Gartenzwerg. |
// | |
// | TBDevYSE is free software; you can redistribute it and/or modify |
// | it under the terms of the GNU General Public License as published by |
// | the Free Software Foundation; either version 2 of the License, or |
// | (at your option) any later version. |
// | |
// | TBDevYSE is distributed in the hope that it will be useful, |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// | GNU General Public License for more details. |
// | |
// | You should have received a copy of the GNU General Public License |
// | along with TBDevYSE; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +--------------------------------------------------------------------------+
// | Do not remove above lines! |
// +--------------------------------------------------------------------------+
*/
require_once("include/bittorrent.php");
dbconn(true);
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$choice = (int) $_POST["choice"];
if ($CURUSER && $choice >= 0 && $choice < 256) {
$res = sql_query("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(__FILE__, __LINE__);
$arr = mysql_fetch_assoc($res) or die("Íåò îïðîñà");
$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("Äâîéíîé ãîëîñ");
sql_query("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or sqlerr(__FILE__, __LINE__);
if (mysql_affected_rows() != 1)
stderr($tracker_lang['error'], "Ïðîèçîøëà îøèáêà. Âàø ãîëîñ íå áûë ïðèíÿò.");
header("Location: $DEFAULTBASEURL/");
die;
} else
stderr($tracker_lang['error'], "Ïîæàëóéñòà, âûáåðèòå âàðèàíò îòâåòà.");
}
stdhead($tracker_lang['homepage']);
//print("<table width=\"100%\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"embedded\">");
?>
<div align="center"><font class="small"><img src="./themes/<?=$ss_uri;?>/images/ru.gif" width="20" height="15"></font></div>
<p align="justify"><font class="small" style="font-weight: normal;">Ïðåäóïðåæäåíèå! Èíôîðìàöèÿ, ðàñïîëîæåííàÿ íà äàííîì ñåðâåðå, ïðåäíàçíà÷åíà èñêëþ÷èòåëüíî äëÿ ÷àñòíîãî èñïîëüçîâàíèÿ â îáðàçîâàòåëüíûõ öåëÿõ è íå ìîæåò áûòü çàãðóæåíà/ïåðåíåñåíà íà äðóãîé êîìïüþòåð. Íè âëàäåëåö ñàéòà, íè õîñòèíã-ïðîâàéäåð, íè ëþáûå äðóãèå ôèçè÷åñêèå èëè þðèäè÷åñêèå ëèöà íå ìîãóò íåñòè íèêàêîé îòâåñòâåííîñòè çà ëþáîå èñïîëüçîâàíèå ìàòåðèàëîâ äàííîãî ñàéòà. Âõîäÿ íà ñàéò, Âû, êàê ïîëüçîâàòåëü, òåì ñàìûì ïîäòâåðæäàåòå ïîëíîå è áåçîãîâîðî÷íîå ñîãëàñèå ñî âñåìè óñëîâèÿìè èñïîëüçîâàíèÿ. Àâòîðû ïðîåêòà îòíîñÿòñÿ îñîáî íåãàòèâíî ê íåëåãàëüíîìó èñïîëüçîâàíèþ èíôîðìàöèè, ïîëó÷åííîé íà ñàéòå.</font></p>
<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>-->
<?php
stdfoot();
?>