Changeset 136 for trunk/log.php


Ignore:
Timestamp:
Mar 1, 2009, 2:54:10 PM (16 years ago)
Author:
maron
Message:

V registraci možnost vstupu do teamu, zaznamenávání chyb do logu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/log.php

    r127 r136  
    5353  if(array_key_exists('type', $_GET)) $Where = ' WHERE type = "'.$_GET['type'].'"';
    5454    else $Where = '';
    55   $sql = 'SELECT *,(SELECT user.user FROM user WHERE user.id = log.user) as user FROM log '.$Where.'ORDER BY date DESC LIMIT '.($_SESSION['Page'] - 1) * $Config['Web']['ItemsPerPage'].','.$Config['Web']['ItemsPerPage'];
     55  $sql = 'SELECT *,(SELECT user.user FROM user WHERE user.id = log.user) as user FROM log '.$Where.'ORDER BY date DESC LIMIT '.(($_SESSION['Page'] - 1)*100).',100';
    5656   
    57   ListPaging('?Page=', 'log', $Where, $Config['Web']['ItemsPerPage'], $_SESSION['Page']);   
     57  ListPaging('?Page=', 'log', $Where, 100, $_SESSION['Page']);   
    5858  $ID = $Database->SQLCommand($sql);
    5959  while($Line = mysql_fetch_assoc($ID))
Note: See TracChangeset for help on using the changeset viewer.