equal
deleted
inserted
replaced
427 break; |
427 break; |
428 case 'aclmanager': |
428 case 'aclmanager': |
429 $data = ( isset($_POST['data']) ) ? $_POST['data'] : Array('mode' => 'listgroups'); |
429 $data = ( isset($_POST['data']) ) ? $_POST['data'] : Array('mode' => 'listgroups'); |
430 PageUtils::aclmanager($data); |
430 PageUtils::aclmanager($data); |
431 break; |
431 break; |
|
432 case 'sql_report': |
|
433 $rev_id = ( (isset($_GET['oldid'])) ? intval($_GET['oldid']) : 0 ); |
|
434 $page = new PageProcessor( $paths->cpage['urlname_nons'], $paths->namespace, $rev_id ); |
|
435 $page->send_headers = true; |
|
436 $pagepass = ( isset($_REQUEST['pagepass']) ) ? sha1($_REQUEST['pagepass']) : ''; |
|
437 $page->password = $pagepass; |
|
438 $page->send(true); |
|
439 ob_end_clean(); |
|
440 ob_start(); |
|
441 $db->sql_report(); |
|
442 break; |
432 } |
443 } |
433 |
444 |
434 // |
445 // |
435 // Optimize HTML by replacing newlines with spaces (excludes <pre>, <script>, and <style> blocks) |
446 // Optimize HTML by replacing newlines with spaces (excludes <pre>, <script>, and <style> blocks) |
436 // |
447 // |
437 if ($aggressive_optimize_html) |
448 if ($aggressive_optimize_html) |
438 { |
449 { |
439 // Load up the HTML |
450 // Load up the HTML |
440 $html = ob_get_contents(); |
451 $html = ob_get_contents(); |
441 ob_end_clean(); |
452 @ob_end_clean(); |
442 |
453 |
443 $html = aggressive_optimize_html($html); |
454 $html = aggressive_optimize_html($html); |
444 |
455 |
445 // Re-enable output buffering to allow the Gzip function (below) to work |
456 // Re-enable output buffering to allow the Gzip function (below) to work |
446 ob_start(); |
457 ob_start(); |