Example #1
0
     <td><b>' . $_language->module['access_rights'] . '</b></td>
     <td>' . $_language->module['joinus_admin'] . ': ' . $join . '&nbsp; &nbsp; ' . $_language->module['fightus_admin'] . ': ' . $fight . '</td>
   </tr>';
     }
 }
 if (isnewsadmin($id)) {
     $news = '<input type="checkbox" name="newsadmin" value="1" onmouseover="showWMTT(\'id1\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $news = '<input type="checkbox" name="newsadmin" value="1" onmouseover="showWMTT(\'id1\')" onmouseout="hideWMTT()" />';
 }
 if (isnewswriter($id)) {
     $newswriter = '<input type="checkbox" name="newswriter" value="1" onmouseover="showWMTT(\'id2\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $newswriter = '<input type="checkbox" name="newswriter" onmouseover="showWMTT(\'id2\')" onmouseout="hideWMTT()" value="1" />';
 }
 if (ispollsadmin($id)) {
     $polls = '<input type="checkbox" name="pollsadmin" value="1" onmouseover="showWMTT(\'id3\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $polls = '<input type="checkbox" name="pollsadmin" value="1" onmouseover="showWMTT(\'id3\')" onmouseout="hideWMTT()" />';
 }
 if (isfeedbackadmin($id)) {
     $feedback = '<input type="checkbox" name="feedbackadmin" value="1" onmouseover="showWMTT(\'id4\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $feedback = '<input type="checkbox" name="feedbackadmin" value="1" onmouseover="showWMTT(\'id4\')" onmouseout="hideWMTT()" />';
 }
 if (isuseradmin($id)) {
     $useradmin = '<input type="checkbox" name="useradmin" value="1" onmouseover="showWMTT(\'id5\')" onmouseout="hideWMTT()" checked="checked" />';
 } else {
     $useradmin = '<input type="checkbox" name="useradmin" value="1" onmouseover="showWMTT(\'id5\')" onmouseout="hideWMTT()" />';
 }
 if (isclanwaradmin($id)) {
Example #2
0
     $isintern = '(' . $_language->module['intern'] . ')';
 } else {
     $isintern = '';
 }
 if ($ds['laufzeit'] < time() or $ds['aktiv'] == "0") {
     $timeleft = $_language->module['poll_ended'];
 } else {
     $timeleft = floor(($ds['laufzeit'] - time()) / (60 * 60 * 24)) . " " . $_language->module['days'] . " (" . date("d.m.Y H:i", $ds['laufzeit']) . ") <br /><a href='index.php?site=polls&amp;vote=" . $ds['pollID'] . "'>[" . $_language->module['vote_now'] . "]</a>";
 }
 for ($n = 1; $n <= 10; $n++) {
     if ($ds['o' . $n]) {
         $options[] = clearfromtags($ds['o' . $n]);
     }
 }
 $adminactions = '';
 if (ispollsadmin($userID)) {
     if ($ds['aktiv']) {
         $stop = ' <input type="button" onclick="MM_confirm(\'' . $_language->module['really_stop'] . '\', \'polls.php?end=true&amp;pollID=' . $ds['pollID'] . '\')" value="' . $_language->module['stop_poll'] . '" /> ';
     } else {
         $stop = ' <input type="button" onclick="MM_confirm(\'' . $_language->module['really_reopen'] . '\', \'polls.php?reopen=true&amp;pollID=' . $ds['pollID'] . '\')" value="' . $_language->module['reopen_poll'] . '" /> ';
     }
     $edit = ' <input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=polls&amp;action=edit&amp;pollID=' . $ds['pollID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" /> ';
     $adminactions = $edit . '<input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'polls.php?delete=true&amp;pollID=' . $ds['pollID'] . '\')" value="' . $_language->module['delete'] . '" />' . $stop;
 }
 $votes = safe_query("SELECT * FROM " . PREFIX . "poll_votes WHERE pollID='" . $ds['pollID'] . "'");
 $dv = mysql_fetch_array($votes);
 $gesamtstimmen = $dv['o1'] + $dv['o2'] + $dv['o3'] + $dv['o4'] + $dv['o5'] + $dv['o6'] + $dv['o7'] + $dv['o8'] + $dv['o9'] + $dv['o10'];
 $n = 1;
 eval("\$polls_head = \"" . gettemplate("polls_head") . "\";");
 echo $polls_head;
 foreach ($options as $option) {