|
Last change
on this file was 888, checked in by chronos, 3 years ago |
- Modified: Updated Common package to latest version.
- Modified: Fixes related to PHP 8.x.
|
|
File size:
744 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | $InitSystem = true;
|
|---|
| 4 | include_once('includes/Global.php');
|
|---|
| 5 |
|
|---|
| 6 | class PageAlert extends Page
|
|---|
| 7 | {
|
|---|
| 8 | function Show(): string
|
|---|
| 9 | {
|
|---|
| 10 | $this->RawPage = true;
|
|---|
| 11 | $Output = 'SERVERALERT:'."\n";
|
|---|
| 12 |
|
|---|
| 13 | $Output .= 'Toto jsou aktuality z projektu wowpreklad.zdechov.net:'."\n"."\n";
|
|---|
| 14 |
|
|---|
| 15 | $DbResult = $this->Database->query('SELECT `News`.`Time`, `News`.`Text`, `News`.`Title`, '.
|
|---|
| 16 | '`User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC ');
|
|---|
| 17 | while ($Article = $DbResult->fetch_assoc())
|
|---|
| 18 | {
|
|---|
| 19 | $Output .= ('> '.HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Text'])."\n\n");
|
|---|
| 20 | }
|
|---|
| 21 | return $Output;
|
|---|
| 22 | }
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | $Page = new PageAlert($System);
|
|---|
| 26 | ShowPageClass($Page);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.