(\s+|\s$)/', ' => ', $var_dump); $var_dump = htmlspecialchars($var_dump); $var_dump = preg_replace('/(=>)/', '$1', $var_dump); ob_end_clean(); if (! empty($name)) { $fn_name = explode(',', $name[1]); $fn_name = array_shift($fn_name); } else $fn_name = 'EVAL'; if ($_bg) $bg = 'style="background: #' . $_bg . ';"'; else $bg = ''; $var_dump = '
' . $var_dump . '
' . $var_dump . '
' . $var_export . '
' . htmlentities($var_dump, ENT_QUOTES) . '
' . $var_dump . '
' . $var_dump . '
'. $stat .''; ob_end_clean(); return $stat; } public static function getDocumentInfo () { global $AVE_Template; $_arr = [ 'DOC' => '/admin/index.php?do=docs&action=edit&Id=', 'RUBRIC' => '/admin/index.php?do=rubs&action=edit&Id=', 'BLOCKS' => '/admin/index.php?do=blocks&action=edit&id=', 'SYSBLOCK' => '/admin/index.php?do=sysblocks&action=edit&id=', 'REQUESTS' => '/admin/index.php?do=request&action=edit&Id=', 'NAVIAGTIONS' => '/admin/index.php?do=navigation&action=templates&navigation_id=' ]; $doc = get_document($_REQUEST['id']); $_edit = []; $_edit['DOC'][$doc['Id']] = $_arr['DOC'] . $doc['Id']; $_edit['RUBRIC'][$doc['rubric_id']] = $_arr['RUBRIC'] . $doc['rubric_id']; foreach ($GLOBALS['block_generate'] AS $k => $v) { if (! in_array($k, array_keys($_arr))) { continue; } foreach ($v as $key => $value) { $_edit[$k][$key] = $_arr[$k] . $key; } } $AVE_Template->assign('edit', $_edit); $AVE_Template->assign('session', session_id()); $return = $AVE_Template->fetch(BASE_DIR . '/lib/debug/debug.tpl'); return $return; } /** * @return string */ public static function displayInfo (): string { global $AVE_DB; $out = PHP_EOL; $out .= ''; $out .= PHP_EOL; $out .= ''; $out .= PHP_EOL; $out .= ''; $out .= PHP_EOL; $out .= ''; $out .= PHP_EOL; $out .= '