aboutsummaryrefslogtreecommitdiffstats
path: root/mayor-orig/mayor-naplo
diff options
context:
space:
mode:
authorM.Gergo2020-06-25 08:00:03 +0200
committerM.Gergo2020-06-25 08:00:03 +0200
commit265f8940abc3ef714656167d9fd162d666ccc7da (patch)
tree91d730ea37d735ac6b3504871182567eaa3115bf /mayor-orig/mayor-naplo
parenta632d0dcaea1a45581df57bf4571d28e87ec7ebd (diff)
downloadmayor-265f8940abc3ef714656167d9fd162d666ccc7da.tar.gz
mayor-265f8940abc3ef714656167d9fd162d666ccc7da.zip
Rev: 4662rev4662
Diffstat (limited to 'mayor-orig/mayor-naplo')
-rw-r--r--mayor-orig/mayor-naplo/log/mayor-naplo.rev2
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug-pre.php28
-rw-r--r--mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php4
3 files changed, 21 insertions, 13 deletions
diff --git a/mayor-orig/mayor-naplo/log/mayor-naplo.rev b/mayor-orig/mayor-naplo/log/mayor-naplo.rev
index 11d5fb8a..77d471ad 100644
--- a/mayor-orig/mayor-naplo/log/mayor-naplo.rev
+++ b/mayor-orig/mayor-naplo/log/mayor-naplo.rev
@@ -1 +1 @@
-4661
+4662
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
index 898ad00d..1eed8cb9 100644
--- 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
@@ -1,22 +1,26 @@
<?php
- if (!__NAPLOADMIN) {
+if (__NAPLOADMIN!==true) {
$_SESSION['alert'][] = 'page:insufficient_access';
- } else {
+} 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']['apache version'] = $_SERVER['SERVER_SOFTWARE'];
+ $ADAT['debug_result']['php version'] = (function_exists('phpversion') ? phpversion() : '');
$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();
+ $ADAT['debug_result']['tex_cli'] = (function_exists('shell_exec') ? shell_exec('tex --version') : '');
+ $ADAT['debug_result']['xetex_cli'] = (function_exists('shell_exec') ? shell_exec('xetex --version'): '');
+ //security! $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');
+ ini_set('xdebug.var_display_max_depth', '3');
+ ini_set('xdebug.var_display_max_children', '4096');
+ ini_set('xdebug.var_display_max_data', '4096');
- }
+ $ADAT['debug_result']['config']['backend'] = $config['backend'];
+ $ADAT['debug_result']['config']['MYSQLI_ENABLED'] = MYSQLI_ENABLED;
+ $ADAT['debug_result']['config']['__PORTAL_CODE'] = __PORTAL_CODE;
+ $ADAT['debug_result']['config']['__EMAIL_ENABLED'] = __EMAIL_ENABLED;
+
+}
?> \ 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
index f20c3e5f..ff311cd5 100644
--- a/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php
+++ b/mayor-orig/mayor-naplo/www/policy/private/naplo/admin/debug.php
@@ -1,6 +1,10 @@
<?php
global $ADAT;
+ echo '<style type="text/css">
+/* div.mayorbody { color:white; background-color: #888; padding:10px;}*/
+ </style>';
+
if (is_array($ADAT)) {
foreach ($ADAT['debug_result'] as $key => $value) {
echo '<h1>'.$key.'</h1>';