Benutzerinformationen überspringen
Wohnort: Krefeld
Beruf: Schüler, (Eventuell Vermessungstechniker)
Renommeemodifikator: 4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 |
<?php session_start(); require_once ("connect/database.connect.ini.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php $wartung = mysql_fetch_assoc(mysql_query("SELECT status FROM wartung")); $seitentitel = $wartung['seitentitel']; $message = $wartung['message'] != "" ? $wartung['message'] : "<p><strong>- Diese Seite befindet sich zur Zeit im Wartungsmodus -</strong></p><p>Wir sind bald wieder für Sie da!</p>"; $page = $_GET["page"]; if ($page == "" OR $page == "news") { $page = 'News'; } $sitetitle = mysql_query("SELECT site_title FROM config"); $sitetitle = mysql_fetch_object($sitetitle); echo '<title>'. $sitetitle->site_title .' - '. $page .'</title>'; $stylesheet = mysql_query("SELECT style_url FROM style"); $row = mysql_fetch_object($stylesheet); ?> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <meta name="description" content=""> <meta name="author" content=""> <meta name="keywords" content=""> <link rel="stylesheet" type="text/css" href="<?php echo "$row->style_url"; ?>style.css" media="screen" /> </head> <body> <?php if ($wartung['status'] == "0") { ?> <div id="header"> <div id="logo"> <?php $logotype = mysql_query("SELECT site_logotype FROM style"); $logotype = mysql_fetch_object($logotype); if ($logotype->site_logotype == "img") { $logourl = mysql_query("SELECT site_logourl FROM style"); $logourl = mysql_fetch_object($logourl); echo '<h1><img src="'. $logourl->site_logourl .'"/></h1>'; } if ($logotype->site_logotype == "txt") { $title = mysql_query("SELECT site_title, site_subtitle FROM config"); $title = mysql_fetch_object($title); echo '<h1>'. $title->site_title .'</h1>'; if ($title->site_title != "") { echo '<h2>'. $title->site_subtitle .'</h2>'; } } ?> </div> <div id="search"> <form method="get" action=""> <fieldset> <input id="search-text" type="text" name="s" value="Search" size="15" /> <input type="submit" id="search-submit" value="Search" /> </fieldset> </form> </div> <!-- end #search --> </div> <!-- end #header --> <div id="menu"> <ul> <?php $navigation = mysql_query("SELECT title FROM sites WHERE visible='yes' ORDER BY id ASC"); while ($navi = mysql_fetch_object($navigation)) { echo '<li><a href="?page='. $navi->title .'">'. $navi->title .'</a></li>'; } ?> </ul> </div> <!-- end #menu --> <?php $page = $_GET["page"]; $id = $_GET["id"]; $p = $_GET["p"]; ?> <?php if ($page == "" OR $page == "news") { if(!isset($p)) { $p = 1; } if(!isset($id)) { $maxnews = 3; $begin_news = $p * $maxnews - $maxnews; $posts = mysql_query("SELECT * FROM posts ORDER BY id DESC LIMIT $begin_news, $maxnews"); while ($news = mysql_fetch_object($posts)) { $newsid = $news->id; $comnts = mysql_query("SELECT * FROM comments WHERE commentto='$newsid'"); $numbercomments = mysql_num_rows($comnts); if ($numbercomments == 0) { $numerus = "Kommentare"; $numbercomments = "(0)"; } else if ($numbercomments == 1) { $numerus = "Kommentare"; $numbercomments = "(1)"; } else { $numerus = "Kommentare"; $numbercomments = "(". $numbercomments .")"; } ?> <div id="page"> <div id="content"> <div class="post"> <h1 class="title"><?php echo '<a href="?page=news&id='. $news->id .'">'. $news->title .'</a>'; ?></h1> <p class="meta">Posted on <?php echo ''. $news->date .''; ?> • <?php echo '<a href="?page=news&id='. $news->id .'" class="comments">'. $numerus .' '. $numbercomments .'</a>'; ?></p> <div class="entry"> <p><?php echo ''. $news->content .''; } ?></p> </div> </div> <?php $numbernews = mysql_query("SELECT id FROM posts"); $numbernews = mysql_num_rows($numbernews); $getsites = $numbernews / $maxnews; ?> <?php echo '<center>Seite: '; for($a=0; $a < $getsites; $a++) { $b = $a + 1; if($p == $b) { echo ' <b>'. $b .'</b> '; } else { echo ' <a href="?p='. $b .'">'. $b .'</a></center> '; } } } else { $posts = mysql_query("SELECT * FROM posts WHERE id = '$id'"); $news = mysql_fetch_object($posts); ?> <?php include 'adm/functions/blogging/newscomments.php'; } } else { $sites = mysql_query("SELECT * FROM sites WHERE title='$page'"); $sites = mysql_fetch_object($sites); echo '<h2>'. $sites->title .'</h2>'. $sites->content .''; if ($sites->allowcomments == "yes") { include 'adm/functions/blogging/sitescomments.php'; } } ?> </div> <!-- end #content --> <div id="sidebar" style="none;"> <ul> <li> <h2>Aliquam tempus</h2> <p>Mauris vitae nisl nec metus placerat perdiet est. Phasellus dapibus semper urna ornare, orci in consectetuer hendrerit.</p> </li> <li id="calendar"> <h2>Calendar</h2> <div id="calendar_wrap"> <table summary="Calendar"> <caption> March 2008 </caption> <thead> <tr> <th abbr="Monday" scope="col" title="Monday">M</th> <th abbr="Tuesday" scope="col" title="Tuesday">T</th> <th abbr="Wednesday" scope="col" title="Wednesday">W</th> <th abbr="Thursday" scope="col" title="Thursday">T</th> <th abbr="Friday" scope="col" title="Friday">F</th> <th abbr="Saturday" scope="col" title="Saturday">S</th> <th abbr="Sunday" scope="col" title="Sunday">S</th> </tr> </thead> <tfoot> <tr> <td abbr="February" colspan="3" id="prev"><a href="#" title="">« Feb</a></td> <td class="pad"> </td> <td abbr="April" colspan="3" id="next"><a href="#" title="">Apr »</a></td> </tr> </tfoot> <tbody> <tr> <td colspan="5" class="pad"> </td> <td>1</td> <td>2</td> </tr> <tr> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> <td>8</td> <td>9</td> </tr> <tr> <td>10</td> <td id="today">11</td> <td>12</td> <td>13</td> <td>14</td> <td>15</td> <td>16</td> </tr> <tr> <td>17</td> <td>18</td> <td>19</td> <td>20</td> <td>21</td> <td>22</td> <td>23</td> </tr> <tr> <td>24</td> <td>25</td> <td>26</td> <td>27</td> <td>28</td> <td>29</td> <td>30</td> </tr> <tr> <td>31</td> <td class="pad" colspan="6"> </td> </tr> </tbody> </table> </div> </li> <li> <h2>Categories</h2> <ul> <li><a href="#">Uncategorized</a> (3) </li> <li><a href="#">Lorem Ipsum</a> (42) </li> <li><a href="#">Urna Congue Rutrum</a> (28) </li> <li><a href="#">Augue Praesent</a> (55) </li> <li><a href="#">Vivamus Fermentum</a> (13) </li> </ul> </li> <li> <h2>Archives</h2> <ul> <li><a href="#">December 2007</a> (29)</li> <li><a href="#">November 2007</a> (30)</li> <li><a href="#">October 2007</a> (31)</li> <li><a href="#">September 2007</a> (30)</li> </ul> </li> </ul> </div> <!-- end #sidebar --> <div style="clear: both;"> </div> </div> <!-- end #page --> <div id="footer"> <p>Copyright (c) 2008 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p> </div> <!-- end #footer --> <?php } if ($wartung['status'] == "1") { }?> </body> </html> |
Benutzerinformationen überspringen
Wohnort: Krefeld
Beruf: Schüler, (Eventuell Vermessungstechniker)
Renommeemodifikator: 4