diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 10:11:16 +1000 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-09-23 10:11:16 +1000 |
| commit | 39be89ba4945238f6311454283a66930b94577be (patch) | |
| tree | 3e7998109bdfbeac8bb589b0c74e2c8ac3514667 /inc/mod/pages.php | |
| parent | ff4352d914f7fbedbbfd7068c4df5407b3ce1648 (diff) | |
?/debug/apc
Diffstat (limited to 'inc/mod/pages.php')
| -rw-r--r-- | inc/mod/pages.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php index bae00a0f..4346cf94 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2354,3 +2354,16 @@ function mod_debug_sql() { mod_page(_('Debug: SQL'), 'mod/debug/sql.html', $args); } +function mod_debug_apc() { + global $config; + + if (!hasPermission($config['mod']['debug_apc'])) + error($config['error']['noaccess']); + + if ($config['cache']['enabled'] != 'apc') + error('APC is not enabled.'); + + $cached_vars = new APCIterator('user', '/^' . $config['cache']['prefix'] . '/'); + + mod_page(_('Debug: APC'), 'mod/debug/apc.html', array('cached_vars' => $cached_vars)); +} |
