Ejemplo n.º 1
0
     if ($returnto == "main") {
         header("Location: " . get_protocol_prefix() . "{$BASEURL}");
     } else {
         header("Location: " . get_protocol_prefix() . "{$BASEURL}/log.php?action=poll&deleted=1");
     }
     die;
 }
 $rows = sql_query("SELECT COUNT(*) FROM polls") or sqlerr();
 $row = mysql_fetch_row($rows);
 $pollcount = $row[0];
 if ($pollcount == 0) {
     stderr($lang_log['std_sorry'], $lang_log['std_no_polls']);
 }
 $polls = sql_query("SELECT * FROM polls ORDER BY id DESC LIMIT 1," . ($pollcount - 1)) or sqlerr();
 stdhead($lang_log['head_previous_polls']);
 logmenu("poll");
 print "<table border=1 cellspacing=0 width=940 cellpadding=5>\n";
 //print("<tr><td class=colhead align=center>".$lang_log['text_previous_polls']."</td></tr>\n");
 function srt($a, $b)
 {
     if ($a[0] > $b[0]) {
         return -1;
     }
     if ($a[0] < $b[0]) {
         return 1;
     }
     return 0;
 }
 while ($poll = mysql_fetch_assoc($polls)) {
     $o = array($poll["option0"], $poll["option1"], $poll["option2"], $poll["option3"], $poll["option4"], $poll["option5"], $poll["option6"], $poll["option7"], $poll["option8"], $poll["option9"], $poll["option10"], $poll["option11"], $poll["option12"], $poll["option13"], $poll["option14"], $poll["option15"], $poll["option16"], $poll["option17"], $poll["option18"], $poll["option19"]);
     print "<tr><td align=center>\n";
Ejemplo n.º 2
0
} else {
    stdhead($lang_torrents['head_music']);
}
print "<table width=\"940\" class=\"main\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td class=\"embedded\">";
if ($allsec != 1 || $enablespecial != 'yes') {
    //do not print searchbox if showing bookmarked torrents from all sections;
    if ($_GET["status"]) {
        if ($_GET["status"] == "candidate") {
            logmenu("candidate");
        } else {
            if ($_GET["status"] == "recycle") {
                logmenu("recycle");
            }
        }
    } else {
        logmenu("candidate");
    }
    ?>
<form method="get" name="searchbox" action="?">
<?php 
    $status = $_GET["status"] ? $_GET["status"] : "candidate";
    echo '<input type="hidden" name="status" value="' . $status . '">';
    ?>

	<table border="1" class="searchbox" cellspacing="0" cellpadding="5" width="100%">
		<tbody>
		<tr>
		<td class="colhead" align="center" colspan="2"><a href="javascript: klappe_news('searchboxmain')"><img class="plus" src="pic/trans.gif" id="picsearchboxmain" alt="Show/Hide" /><?php 
    echo $lang_torrents['text_search_box'];
    ?>
</a></td>