Changeset 479 for trunk/services
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- Location:
- trunk/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/services/admins.php
r468 r479 280 280 global $auth; 281 281 global $lock; 282 283 282 $app =& App::getInstance(); 283 $db =& DB::getInstance(); 284 284 285 285 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id); … … 339 339 global $lock; 340 340 global $cache; 341 342 341 $app =& App::getInstance(); 342 $db =& DB::getInstance(); 343 343 344 344 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $id); … … 385 385 global $auth; 386 386 global $cache; 387 388 387 $app =& App::getInstance(); 388 $db =& DB::getInstance(); 389 389 390 390 // Remove any stale cached list data. … … 428 428 global $lock; 429 429 global $cache; 430 431 430 $app =& App::getInstance(); 431 $db =& DB::getInstance(); 432 432 433 433 $lock->select($auth->getParam('db_table'), $auth->getParam('db_primary_key'), $frm['admin_id']); … … 474 474 global $cache; 475 475 global $auth; 476 476 $db =& DB::getInstance(); 477 477 478 478 $where_clause = ''; -
trunk/services/logs.php
r468 r479 159 159 function deleteLog($log_file) 160 160 { 161 161 $app =& App::getInstance(); 162 162 163 163 if (!file_exists($app->getParam('log_directory') . '/' . $log_file)) { … … 186 186 function clearLog($log_file) 187 187 { 188 188 $app =& App::getInstance(); 189 189 190 190 if (!$fp = fopen($app->getParam('log_directory') . '/' . $log_file, 'r+')) { … … 211 211 function archiveLog($log_file) 212 212 { 213 213 $app =& App::getInstance(); 214 214 215 215 $old_file_name = $log_file; … … 233 233 function printLog($log_file) 234 234 { 235 235 $app =& App::getInstance(); 236 236 237 237 if (!is_file($app->getParam('log_directory') . '/' . $log_file)) { … … 246 246 function &getLog($log_file, $search_query='') 247 247 { 248 248 $app =& App::getInstance(); 249 249 250 250 $log = array(); … … 271 271 { 272 272 global $valid_file_extensions; 273 273 $app =& App::getInstance(); 274 274 275 275 // Get a list of all files in the log directory.
Note: See TracChangeset
for help on using the changeset viewer.