Changeset 250 for trunk/log.php
- Timestamp:
- Jul 15, 2009, 8:56:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/log.php
r222 r250 34 34 if(array_key_exists('Page', $_GET)) $_SESSION['Page'] = $_GET['Page']; 35 35 else if(!array_key_exists('Page', $_SESSION)) $_SESSION['Page'] = 1; 36 if(array_key_exists('group', $_GET)) $_SESSION['group'] = $_GET['group']; 36 37 37 38 if(array_key_exists('type', $_GET)) $_SESSION['type'] = $_GET['type']; … … 41 42 else { 42 43 $Type = ''; 43 unset($_SESSION['type'] );44 unset($_SESSION['type'],$_SESSION['group']); 44 45 } 45 46 … … 60 61 61 62 if(array_key_exists('type', $_SESSION)) $Where = ' WHERE type = "'.$_SESSION['type'].'"'; 62 else $Where = ''; 63 else 64 { 65 if(array_key_exists('group', $_SESSION)) $Where = ' WHERE text LIKE "%'.$TranslationTree[$_SESSION['group']]['Name'].'%"'; 66 else $Where = ''; 67 } 68 if(($Where != '') and (array_key_exists('group', $_SESSION))) $Where .= ' AND text LIKE "%'.$TranslationTree[$_SESSION['group']]['Name'].'%"'; 69 63 70 $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'; 64 71
Note:
See TracChangeset
for help on using the changeset viewer.