if ($anzcomments = getanzcwcomments($ds['cwID'])) { $details = '<a href="index.php?site=clanwars_details&cwID=' . $ds['cwID'] . '"><img src="images/icons/foldericons/newhotfolder.gif" alt="' . $_language->module['details'] . '" border="0" /> (' . $anzcomments . ')</a>'; } else { $details = '<a href="index.php?site=clanwars_details&cwID=' . $ds['cwID'] . '"><img src="images/icons/foldericons/folder.gif" alt="' . $_language->module['details'] . '" border="0" /> (0)</a>'; } $multiple = ''; $admdel = ''; if (isclanwaradmin($userID)) { $multiple = '<input class="input" type="checkbox" name="cwID[]" value="' . $ds['cwID'] . '" />'; } eval("\$clanwars_content = \"" . gettemplate("clanwars_content") . "\";"); echo $clanwars_content; unset($result, $anzcomments); $n++; } if (isclanwaradmin($userID)) { $admdel = '<table width="100%" border="0" cellspacing="0" cellpadding="4"> <tr> <td><input class="input" type="checkbox" name="ALL" value="ALL" onclick="SelectAll(this.form);" /> ' . $_language->module['select_all'] . '</td> <td align="right"><select name="quickactiontype"> <option value="delete">' . $_language->module['delete_selected'] . '</option> </select> <input type="submit" name="quickaction" value="' . $_language->module['go'] . '" /></td> </tr> </table>'; } eval("\$clanwars_foot = \"" . gettemplate("clanwars_foot") . "\";"); echo $clanwars_foot; } else { echo $_language->module['no_entries']; }
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)) { $cwadmin = '<input type="checkbox" name="cwadmin" value="1" onmouseover="showWMTT(\'id6\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $cwadmin = '<input type="checkbox" name="cwadmin" value="1" onmouseover="showWMTT(\'id6\')" onmouseout="hideWMTT()" />'; } if (isforumadmin($id)) { $board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" />'; } if (isanymoderator($id)) { $mod = '<input type="checkbox" name="moderator" value="1" onmouseover="showWMTT(\'id8\')" onmouseout="hideWMTT()" checked="checked" />'; } else { $mod = '<input type="checkbox" name="moderator" value="1" onmouseover="showWMTT(\'id8\')" onmouseout="hideWMTT()" />'; } if (ispageadmin($id)) {
function print_termine($tag, $month, $year) { global $wincolor; global $loosecolor; global $drawcolor; global $userID; global $_language; $_language->read_module('calendar'); $pagebg = PAGEBG; $border = BORDER; $bghead = BGHEAD; $bgcat = BGCAT; $start_date = mktime(0, 0, 0, $month, $tag, $year); $end_date = mktime(23, 59, 59, $month, $tag, $year); unset($termin); $ergebnis = safe_query("SELECT * FROM " . PREFIX . "upcoming"); $anz = mysql_num_rows($ergebnis); if ($anz) { while ($ds = mysql_fetch_array($ergebnis)) { if ($ds['type'] == "c") { if ($ds['date'] >= $start_date && $ds['date'] <= $end_date) { $date = date("d.m.Y", $ds['date']); $time = date("H:i", $ds['date']); $squad = getsquadname($ds['squad']); $oppcountry = "[flag]" . $ds['oppcountry'] . "[/flag]"; $oppcountry = flags($oppcountry); $opponent = $oppcountry . ' <a href="' . $ds['opphp'] . '" target="_blank">' . clearfromtags($ds['opptag']) . ' / ' . clearfromtags($ds['opponent']) . '</a>'; $maps = clearfromtags($ds['maps']); $server = clearfromtags($ds['server']); $league = '<a href="' . $ds['leaguehp'] . '" target="_blank">' . clearfromtags($ds['league']) . '</a>'; if (isclanmember($userID)) { $warinfo = cleartext($ds['warinfo']); } else { $warinfo = $_language->module['you_have_to_be_clanmember']; } $players = ""; $announce = ""; $adminaction = ''; if (isclanmember($userID) or isanyadmin($userID)) { $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'"); if (mysql_num_rows($anmeldung)) { $i = 1; while ($da = mysql_fetch_array($anmeldung)) { if ($da['status'] == "y") { $fontcolor = $wincolor; } elseif ($da['status'] == "n") { $fontcolor = $loosecolor; } else { $fontcolor = $drawcolor; } if ($i > 1) { $players .= ', <a href="index.php?site=profile&id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>'; } else { $players .= '<a href="index.php?site=profile&id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>'; } $i++; } } else { $players = $_language->module['no_announced']; } if (issquadmember($userID, $ds['squad']) and $ds['date'] > time()) { $announce = '• <a href="index.php?site=calendar&action=announce&upID=' . $ds['upID'] . '">' . $_language->module['announce_here'] . '</a>'; } else { $announce = ""; } if (isclanwaradmin($userID)) { $adminaction = '<div align="right"> <input type="button" onclick="MM_openBrWindow(\'clanwars.php?action=new&upID=' . $ds['upID'] . '\',\'Clanwars\',\'toolbar=no,status=no,scrollbars=yes,width=800,height=490\')" value="' . $_language->module['add_clanwars'] . '" /> <input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=calendar&action=editwar&upID=' . $ds['upID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" /> <input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'calendar.php?action=delete&upID=' . $ds['upID'] . '\')" value="' . $_language->module['delete'] . '" /></div>'; } else { $adminaction = ''; } } else { $players = $_language->module['access_member']; } $bg1 = BG_1; $bg2 = BG_2; $bg3 = BG_3; $bg4 = BG_4; eval("\$upcoming_war_details = \"" . gettemplate("upcoming_war_details") . "\";"); echo $upcoming_war_details; } } else { if ($start_date <= $ds['date'] && $end_date >= $ds['date'] || $start_date >= $ds['date'] && $end_date <= $ds['enddate'] || $start_date <= $ds['enddate'] && $end_date >= $ds['enddate']) { $date = date("d.m.Y", $ds['date']); $time = date("H:i", $ds['date']); $enddate = date("d.m.Y", $ds['enddate']); $endtime = date("H:i", $ds['enddate']); $title = clearfromtags($ds['title']); $location = '<a href="' . $ds['locationhp'] . '" target="_blank">' . clearfromtags($ds['location']) . '</a>'; $dateinfo = cleartext($ds['dateinfo']); $dateinfo = toggle($dateinfo, $ds['upID']); $country = "[flag]" . $ds['country'] . "[/flag]"; $country = flags($country); $players = ""; if (isclanmember($userID)) { $anmeldung = safe_query("SELECT * FROM " . PREFIX . "upcoming_announce WHERE upID='" . $ds['upID'] . "'"); if (mysql_num_rows($anmeldung)) { $i = 1; while ($da = mysql_fetch_array($anmeldung)) { if ($da['status'] == "y") { $fontcolor = $wincolor; } elseif ($da['status'] == "n") { $fontcolor = $loosecolor; } else { $fontcolor = $drawcolor; } if ($i > 1) { $players .= ', <a href="index.php?site=profile&id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>'; } else { $players .= '<a href="index.php?site=profile&id=' . $da['userID'] . '"><font color="' . $fontcolor . '">' . getnickname($da['userID']) . '</font></a>'; } $i++; } } else { $players = $_language->module['no_announced']; } if (isclanmember($userID) and $ds['date'] > time()) { $announce = '• <a href="index.php?site=calendar&action=announce&upID=' . $ds['upID'] . '">' . $_language->module['announce_here'] . '</a>'; } else { $announce = ''; } if (isclanwaradmin($userID)) { $adminaction = '<div align="right"><input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=calendar&action=editdate&upID=' . $ds['upID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" /><input type="button" onclick="MM_confirm(\'' . $_language->module['really_delete'] . '\', \'calendar.php?action=delete&upID=' . $ds['upID'] . '\')" value="' . $_language->module['delete'] . '" /></div>'; } else { $adminaction = ''; } } else { $players = $_language->module['access_member']; $announce = ''; $adminaction = ''; } $bg1 = BG_1; $bg2 = BG_2; $bg3 = BG_3; $bg4 = BG_4; eval("\$upcoming_date_details = \"" . gettemplate("upcoming_date_details") . "\";"); echo $upcoming_date_details; } } } } else { echo $_language->module['no_entries']; } }
echo $awards_head; $n = 1; while ($ds = mysql_fetch_array($ergebnis)) { if ($n % 2) { $bg1 = BG_1; $bg2 = BG_2; } else { $bg1 = BG_3; $bg2 = BG_4; } $date = date("d.m.Y", $ds['date']); $squad = '<a href="index.php?site=members&action=showsquad&squadID=' . $ds['squadID'] . '&page=' . $page . '&sort=' . $sort . '&type=' . $type . '">' . getsquadname($ds['squadID']) . '</a>'; $award = cleartext($ds['award']); $homepage = $ds['homepage']; $rang = $ds['rang']; if (isclanwaradmin($userID) || isnewsadmin($userID)) { $adminaction = '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=awards&action=edit&awardID=' . $ds['awardID'] . '\');return document.MM_returnValue" value="' . $_language->module['edit'] . '" /> <input type="button" onclick="MM_confirm(\'really delete this award?\',\'index.php?site=awards&delete=true&awardID=' . $ds['awardID'] . '\')" value="' . $_language->module['delete'] . '" />'; } else { $adminaction = ''; } eval("\$awards_content = \"" . gettemplate("awards_content") . "\";"); echo $awards_content; $n++; } eval("\$awards_foot = \"" . gettemplate("awards_foot") . "\";"); echo $awards_foot; } else { echo $_language->module['no_entries']; } }