Last change
on this file was 694, checked in by george, 15 years ago |
- Opraveno: Zobrazování novinek z webu ve hře.
|
File size:
538 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | include_once('../inc/html.php');
|
---|
4 | include_once('../inc/config.php');
|
---|
5 | include_once('../inc/database.php');
|
---|
6 | include_once('../inc/system.php');
|
---|
7 | $System = new System($Config);
|
---|
8 | $db = $System->Database;
|
---|
9 | $Html = new Html();
|
---|
10 |
|
---|
11 | echo('SERVERALERT:'."\n");
|
---|
12 | $DbResult = $db->query('SELECT * FROM Article WHERE Time > DATE_SUB(NOW(), INTERVAL 30 DAY) ORDER BY Time DESC LIMIT 5');
|
---|
13 | while($Article = $DbResult->fetch_assoc())
|
---|
14 | {
|
---|
15 | echo('> '.$Html->HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Content'])."\n\n");
|
---|
16 | }
|
---|
17 |
|
---|
18 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.