Changeset 240 for quests/log.php
- Timestamp:
- Jan 17, 2008, 2:02:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quests/log.php
r238 r240 11 11 12 12 13 echo ' Formát: datum: text zprávy (u¾ivatel )<br /><br />';13 echo ' Formát: datum: text zprávy (u¾ivatel, IP)<br /><br />'; 14 14 15 15 if (array_key_exists('type', $_GET)) { 16 16 $sql = "SELECT *,(SELECT user.user FROM user WHERE user.id = log.user) as user 17 FROM log WHERE type = '".$_GET['type']."' ORDER BY date DESC ";17 FROM log WHERE type = '".$_GET['type']."' ORDER BY date DESC LIMIT 100"; 18 18 // if ($_GET['type'] == $LogItem[0]) { } 19 19 } else $sql = "SELECT *,(SELECT user.user FROM user WHERE user.id = log.user) as user 20 FROM log ORDER BY date DESC ";20 FROM log ORDER BY date DESC LIMIT 100"; 21 21 22 22 … … 27 27 if ($Line['type'] == $LogItem[0]) { $color = $LogItem[2]; } 28 28 } 29 echo $Line['date'].': <span style="color:'.$color.'">'.$Line['text'].'</span> ('.$Line['user'].' )<br />';29 echo $Line['date'].': <span style="color:'.$color.'">'.$Line['text'].'</span> ('.$Line['user'].', '.$Line['IP'].')<br />'; 30 30 } 31 31
Note:
See TracChangeset
for help on using the changeset viewer.