Changeset 240 for quests/log.php


Ignore:
Timestamp:
Jan 17, 2008, 2:02:18 PM (17 years ago)
Author:
maron
Message:

Mrtě oprav

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/log.php

    r238 r240  
    1111
    1212
    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 />';
    1414
    1515  if (array_key_exists('type', $_GET)) {
    1616      $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";
    1818    //  if ($_GET['type'] == $LogItem[0]) { }
    1919  } 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";
    2121       
    2222       
     
    2727          if ($Line['type'] == $LogItem[0]) { $color = $LogItem[2]; }
    2828        }
    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 />';
    3030      }     
    3131         
Note: See TracChangeset for help on using the changeset viewer.