Changeset 694 for trunk/alert/index.php


Ignore:
Timestamp:
Mar 20, 2010, 8:49:48 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Zobrazování novinek z webu ve hře.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/alert/index.php

    r690 r694  
    1010
    1111echo('SERVERALERT:'."\n");
    12 $DbResult = $db->query('SELECT * FROM Article WHERE Time > DATE_SUB(NOW(), INTERVAL 7 DAY) ORDER BY Time DESC LIMIT 5');
     12$DbResult = $db->query('SELECT * FROM Article WHERE Time > DATE_SUB(NOW(), INTERVAL 30 DAY) ORDER BY Time DESC LIMIT 5');
    1313while($Article = $DbResult->fetch_assoc())
    1414{
    15   echo('>'.$Html->HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Content'])."\n\n");
     15  echo('> '.$Html->HumanDate($Article['Time']).' '.$Article['Title']."\n".strip_tags($Article['Content'])."\n\n");
    1616}
    1717
Note: See TracChangeset for help on using the changeset viewer.