Changeset 136 for trunk/log.php
- Timestamp:
- Mar 1, 2009, 2:54:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/log.php
r127 r136 53 53 if(array_key_exists('type', $_GET)) $Where = ' WHERE type = "'.$_GET['type'].'"'; 54 54 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'; 56 56 57 ListPaging('?Page=', 'log', $Where, $Config['Web']['ItemsPerPage'], $_SESSION['Page']);57 ListPaging('?Page=', 'log', $Where, 100, $_SESSION['Page']); 58 58 $ID = $Database->SQLCommand($sql); 59 59 while($Line = mysql_fetch_assoc($ID))
Note:
See TracChangeset
for help on using the changeset viewer.