Hírek");
if (get_user_class() >= UC_ADMINISTRATOR)
print(" - [Új hír]");
print("
\n");
$res = mysql_query("SELECT * FROM news WHERE ADDDATE(added, INTERVAL 61 DAY) > NOW() ORDER BY added DESC LIMIT 10") or sqlerr(__FILE__, __LINE__);
if (mysql_num_rows($res) > 0)
{
print("
\n
");
while($array = mysql_fetch_array($res))
{
$fn = mysql_query("SELECT `username` FROM `users` WHERE `id`=$array[userid]") or sqlerr(__FILE__,__LINE__);
$fhn = mysql_fetch_array($fn);
print("
".$inf["pollerTitle"].""; // Output poller title
$resOptions = mysql_query("select * from poller_option where pollerID=" . sqlesc($pollerId) . " order by pollerOrder") or die(mysql_error()); // Find poll options, i.e. radio buttons
while($infOptions = mysql_fetch_array($resOptions)){
if($infOptions["defaultChecked"])$checked=" checked"; else $checked = "";
echo "";
}
}
?>
Szavazatok feldolgozása folyamatban...
$utso = mysql_fetch_array(mysql_query("SELECT ID FROM poller ORDER BY ID DESC LIMIT 1"));
$szavaz = mysql_query("SELECT userID FROM poller_vote WHERE userID = " . sqlesc($CURUSER["id"]) . " AND pollerID = " . $utso[ID] . " ORDER BY pollerID DESC LIMIT 1") or sqlerr(__FILE__,__LINE__);
if(mysql_num_rows($szavaz)==0)
$szavazz = "igen";
else
$szavazz = "nem"?>
";?>
// teljes sebesség
$r = mysql_query("SELECT SUM(downspeed) FROM xbt_files_users") or sqlerr(__FILE__, __LINE__);
$a = mysql_fetch_row($r);
$tmpSpeed = 0 + $a[0];
?>