Exemplo n.º 1
0
		
		if ($ds [comments]) {
			if ($ds [cwID]) {
				$anzcomments = getanzcomments ( $ds [cwID], 'cw' );
				if ($anzcomments == "1")
					$comments = '<a href="index.php?site=clanwars_details&cwID=' . $ds [cwID] . '">[' . $anzcomments . '] Kommentar</a> <br>letzter ' . getlastcommentposter ( $ds [cwID], 'cw' ) . ', am ' . date ( "d.m.y, H:i", getlastcommentdate ( $ds [cwID], 'cw' ) );
				elseif ($anzcomments > "1")
					$comments = '<a href="index.php?site=clanwars_details&cwID=' . $ds [cwID] . '">[' . $anzcomments . '] Kommentare</a> <br>letzter ' . getlastcommentposter ( $ds [cwID], 'cw' ) . ', am ' . date ( "d.m.y, H:i", getlastcommentdate ( $ds [cwID], 'cw' ) );
				else
					$comments = '<a href="index.php?site=clanwars_details&cwID=' . $ds [cwID] . '">Keine Kommentare</a>';
			} else {
				$anzcomments = getanzcomments ( $ds [newsID], 'ne' );
				if ($anzcomments == "1")
					$comments = '<a href="index.php?site=news_comments&newsID=' . $ds [newsID] . '">[' . $anzcomments . '] Kommentar</a> <br>letzter ' . getlastcommentposter ( $ds [newsID], 'ne' ) . ', am ' . date ( "d.m.y, H:i", getlastcommentdate ( $ds [newsID], 'ne' ) );
				elseif ($anzcomments > "1")
					$comments = '<a href="index.php?site=news_comments&newsID=' . $ds [newsID] . '">[' . $anzcomments . '] Kommentare</a> <br>letzter ' . getlastcommentposter ( $ds [newsID], 'ne' ) . ', am ' . date ( "d.m.y, H:i", getlastcommentdate ( $ds [newsID], 'ne' ) );
				else
					$comments = '<a href="index.php?site=news_comments&newsID=' . $ds [newsID] . '">Keine Kommentare</a>';
			}
		} else
			$comments = '';
		
		if (isnewsadmin ( $userID ))
			$adminaction = '<a href="?site=news&action=edit&newsID=' . $ds [newsID] . '">Edit</a>
                                                       <a href="?site=news&action=delete&id=' . $ds [newsID] . '">Delete</a>';
		else
			$adminaction = '';
		
		eval ( "\$news = \"" . gettemplate ( "news" ) . "\";" );
		echo $news;
		
Exemplo n.º 2
0
         $vars = array($anzcomments, 'index.php?site=clanwars_details&amp;cwID=' . $ds['cwID'], clearfromtags(getlastcommentposter($ds['cwID'], 'cw')), date('d.m.Y - H:i', getlastcommentdate($ds['cwID'], 'cw')));
         switch ($anzcomments) {
             case 0:
                 $comments = str_replace($replace, $vars, $_language->module['no_comment']);
                 break;
             case 1:
                 $comments = str_replace($replace, $vars, $_language->module['comment']);
                 break;
             default:
                 $comments = str_replace($replace, $vars, $_language->module['comments']);
                 break;
         }
     } else {
         $anzcomments = getanzcomments($ds['newsID'], 'ne');
         $replace = array('$anzcomments', '$url', '$lastposter', '$lastdate');
         $vars = array($anzcomments, 'index.php?site=news_comments&amp;newsID=' . $ds['newsID'], clearfromtags(html_entity_decode(getlastcommentposter($ds['newsID'], 'ne'))), date('d.m.Y - H:i', getlastcommentdate($ds['newsID'], 'ne')));
         switch ($anzcomments) {
             case 0:
                 $comments = str_replace($replace, $vars, '0');
                 break;
             case 1:
                 $comments = str_replace($replace, $vars, '1');
                 break;
             default:
                 $comments = str_replace($replace, $vars, '$anzcomments');
                 break;
         }
     }
 } else {
     $comments = 'Closed';
 }
Exemplo n.º 3
0
                 $perc = $stimmen / $gesamtstimmen * 10000;
                 settype($perc, "integer");
                 $perc = $perc / 100;
             } else {
                 $perc = 0;
             }
             $picwidth = $perc;
             settype($picwidth, "integer");
             $pic = '<table width="104" cellspacing="1" cellpadding="1" bgcolor="' . BORDER . '">
       <tr bgcolor="' . BG_2 . '">
         <td style="background-image: url(images/icons/poll_bg.gif);"><img src="images/icons/poll.gif" width="' . $picwidth . '" height="5" alt="" /></td>
       </tr>
     </table>';
             $anzcomments = getanzcomments($ds['pollID'], 'po');
             if ($anzcomments) {
                 $comments = '<a href="index.php?site=polls&amp;pollID=' . $ds['pollID'] . '">[' . $anzcomments . '] ' . $_language->module['comments'] . '</a> ' . $_language->module['latest_by'] . ' ' . getlastcommentposter($ds['pollID'], 'po') . ' - ' . date("d.m.Y - H:i", getlastcommentdate($ds['pollID'], 'po'));
             } else {
                 $comments = '<a href="index.php?site=polls&amp;pollID=' . $ds['pollID'] . '">[0] ' . $_language->module['comments'] . '</a>';
             }
             eval("\$polls_content = \"" . gettemplate("polls_content") . "\";");
             echo $polls_content;
             $n++;
         }
         eval("\$polls_foot = \"" . gettemplate("polls_foot") . "\";");
         echo $polls_foot;
         $i++;
         unset($options);
     }
 } else {
     echo $_language->module['no_entries'];
 }