diff options
author | M.Gergo | 2020-06-24 16:05:03 +0200 |
---|---|---|
committer | M.Gergo | 2020-06-24 16:05:03 +0200 |
commit | 9071d0579197c0e79d6c74230c1bab850a5306a5 (patch) | |
tree | c1fed3cace8be2ffa36ae58a5790b8a2b3f451a7 /mayor-orig/mayor-naplo/www/policy/private | |
parent | 3f797e7e6a2378f665ef2b7e3b414c48a0671375 (diff) | |
download | mayor-9071d0579197c0e79d6c74230c1bab850a5306a5.tar.gz mayor-9071d0579197c0e79d6c74230c1bab850a5306a5.zip |
Rev: 4660rev4660
Diffstat (limited to 'mayor-orig/mayor-naplo/www/policy/private')
-rw-r--r-- | mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug-pre.php | 22 | ||||
-rw-r--r-- | mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php | 11 |
2 files changed, 33 insertions, 0 deletions
diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug-pre.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug-pre.php new file mode 100644 index 00000000..de0924bd --- /dev/null +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug-pre.php @@ -0,0 +1,22 @@ +<?php + + if (!__NAPLOADMIN) { + $_SESSION['alert'][] = 'page:insufficient_access'; + } else { + + $ADAT['debug_result']['mayor rev'] = _MAYORREV; + $ADAT['debug_result']['apache version'] = @apache_get_version(); + $ADAT['debug_result']['php version'] = @phpversion(); +// $ADAT['debug_result']['php info'] = get_loaded_extensions(); + $ADAT['debug_result']['sql_server']['sql_mode']=db_query('SHOW GLOBAL variables like "%sql_%"',array('modul'=>'naplo','fb'=>'debug',result=>'indexed')); + $ADAT['debug_result']['sql_server']['sql_version']=db_query('SELECT VERSION()',array('modul'=>'naplo','fb'=>'debug',result=>'indexed')); + $ADAT['debug_result']['tex_cli'] = @shell_exec('tex --version'); + $ADAT['debug_result']['xetex_cli'] = @shell_exec('xetex --version'); + $ADAT['debug_result']['constants'] = @get_defined_constants(); + + @ini_set('xdebug.var_display_max_depth', '3'); + @ini_set('xdebug.var_display_max_children', '4096'); + @ini_set('xdebug.var_display_max_data', '4096'); + + } +?>
\ No newline at end of file diff --git a/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php b/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php new file mode 100644 index 00000000..f20c3e5f --- /dev/null +++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php @@ -0,0 +1,11 @@ +<?php +global $ADAT; + + if (is_array($ADAT)) { + foreach ($ADAT['debug_result'] as $key => $value) { + echo '<h1>'.$key.'</h1>'; + dump($value); + } + } + +?>
\ No newline at end of file |