Changeset 53
- Timestamp:
- Feb 20, 2015, 9:38:00 AM (10 years ago)
- Location:
- branches/old
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/old/database.php
r51 r53 7 7 { 8 8 var $Prefix = ''; 9 10 function query($Query) 11 { 12 //echo($Query."<br/>\n"); 13 return(parent::query($Query)); 14 } 9 15 10 16 function select($Table, $What = '*', $Condition = 1) -
branches/old/index.php
r52 r53 157 157 $Output .= '<br>'; 158 158 159 $Result = $Database->select('measure', ' id', '(Enabled=1) AND ((PermissionView="all") OR (PermissionView="'.gethostbyaddr($_SERVER['REMOTE_ADDR']).'")) WHERE Id='.$_SESSION['Measure']);159 $Result = $Database->select('measure', 'Id', '(Enabled=1) AND (PermissionView="all") OR (PermissionView="'.gethostbyaddr($_SERVER['REMOTE_ADDR']).'") AND (Id='.$_SESSION['Measure'].')'); 160 160 if($Result->num_rows == 0) $_SESSION['Measure'] = $Config['DefaultVariables']['Measure']; 161 161
Note:
See TracChangeset
for help on using the changeset viewer.