Index: branches/unlabeled/unlabeled-1.52.2/core/kernel/startup.php =================================================================== diff -u -r7398 -r7725 --- branches/unlabeled/unlabeled-1.52.2/core/kernel/startup.php (.../startup.php) (revision 7398) +++ branches/unlabeled/unlabeled-1.52.2/core/kernel/startup.php (.../startup.php) (revision 7725) @@ -31,8 +31,8 @@ $vars = parse_portal_ini(FULL_PATH.'/config.php'); - define('APPLICATION_CLASS', isset($vars['ApplicationClass']) ? $vars['ApplicationClass'] : 'kApplication'); - define('APPLICATION_PATH', isset($vars['ApplicationPath']) ? $vars['ApplicationPath'] : '/core/kernel/application.php'); + safeDefine('APPLICATION_CLASS', isset($vars['ApplicationClass']) ? $vars['ApplicationClass'] : 'kApplication'); + safeDefine('APPLICATION_PATH', isset($vars['ApplicationPath']) ? $vars['ApplicationPath'] : '/core/kernel/application.php'); if (isset($vars['WriteablePath'])) { define('WRITEABLE', FULL_PATH.$vars['WriteablePath']); @@ -85,8 +85,8 @@ include_once(KERNEL_PATH.'/utility/debugger.php'); $debugger_end = getmicrotime(); if (isset($debugger) && constOn('DBG_PROFILE_INCLUDES')) { -// $debugger->profileStart('inc_globals', KERNEL_PATH.'/globals.php', $globals_start); -// $debugger->profileFinish('inc_globals', KERNEL_PATH.'/globals.php', $globals_end); + $debugger->profileStart('inc_globals', KERNEL_PATH.'/globals.php', $globals_start); + $debugger->profileFinish('inc_globals', KERNEL_PATH.'/globals.php', $globals_end); $debugger->profilerAddTotal('includes', 'inc_globals'); $debugger->profileStart('inc_debugger', KERNEL_PATH.'/utility/debugger.php', $debugger_start); Index: branches/unlabeled/unlabeled-1.65.2/core/kernel/utility/debugger.php =================================================================== diff -u -r7724 -r7725 --- branches/unlabeled/unlabeled-1.65.2/core/kernel/utility/debugger.php (.../debugger.php) (revision 7724) +++ branches/unlabeled/unlabeled-1.65.2/core/kernel/utility/debugger.php (.../debugger.php) (revision 7725) @@ -834,7 +834,7 @@ } return 0; } - + /** * Generates report * @@ -884,13 +884,13 @@ $this->appendHTML('Memory used by Objects: '.round($this->ProfilerTotals['objects'] / 1024, 2).'Kb'); } - /*if ($this->constOn('DBG_INCLUDED_FILES')) { + if ($this->constOn('DBG_INCLUDED_FILES')) { $files = get_included_files(); $this->appendHTML('Included files:'); foreach ($files as $file) { $this->appendHTML($this->getFileLink($this->getLocalFile($file)).' ('.round(filesize($file) / 1024, 2).'Kb)'); } - }*/ + } /*if ($this->constOn('DBG_PROFILE_INCLUDES')) { $this->appendHTML('Included files statistics:'.( $this->constOn('DBG_SORT_INCLUDES_MEM') ? ' (sorted by memory usage)':'')); @@ -959,7 +959,7 @@ $Debugger.DOMViewerURL = ''; $Debugger.EditorPath = ''; $Debugger.DebugURL = 'baseURL.'/debugger_responce.php?sid='.$this->rowSeparator.'&path='.urlencode($dbg_path); ?>'; - + IsFatalError || DBG_RAISE_ON_WARNINGS) { echo '$Debugger.Toggle();'; Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/incs/footer.tpl =================================================================== diff -u -r7701 -r7725 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/incs/footer.tpl (.../footer.tpl) (revision 7701) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/incs/footer.tpl (.../footer.tpl) (revision 7725) @@ -3,58 +3,13 @@ var o = ''; var el = document.getElementById('scroll_container'); if (el) { - document.body.style.overflow = 'hidden'; document.body.style.height = '100%'; + document.body.style.overflow = 'hidden'; document.body.scroll = 'no' - o += '
'; - o += el.innerHTML + '
'; - el.innerHTML = o; - execJS(el) - MakeHeight100(); - addEvent(window, 'resize', function() {MakeHeight100()}) - } - function MakeHeight100(id) - { - if (!id) id = 'scroll_container'; - AdjustTextAreas(true); // reseting textareas to minimal size - var el = document.getElementById(id); - var h = (document.all ? window.document.body.offsetHeight : window.innerHeight) - el.offsetTop + 'px'; - var w = (document.all ? window.document.body.offsetWidth : window.innerWidth) - el.offsetLeft + 'px'; -// alert('h: '+h) - el.style.height = h; -// el.style.width=w; - AdjustTextAreas(); // adjusting textarea height + addLoadEvent(function() {Form.Init('scroll_container')}); } - function AdjustTextAreas(reset) - { - var tmp; - var sizes = new Array(); - if (isset(textareas100)) { - // we need separate cycle to get heights, because if we set the height in the same cycle - // it will recursively affect heights of other textareas - for (var i in textareas100) { - tmp = document.getElementById(textareas100[i]); - sizes[tmp.name] = tmp.parentNode.offsetHeight; - } - for (var i in textareas100) { - tmp = document.getElementById(textareas100[i]); - tmp.style.height = reset ? '70px' : (sizes[tmp.name] - 18) + 'px'; - } - } - } - - if (isset(first_error)) { - for (var i in first_error) { - if (first_error[i] != false) { -// show_form_error(i, first_error[i][0]); - document.getElementById(first_error[i][1]).focus(); -// alert('focused on '+first_error[i][1]) - } - } - } - Index: branches/unlabeled/unlabeled-1.3.2/core/admin_templates/incs/header.tpl =================================================================== diff -u -r7648 -r7725 --- branches/unlabeled/unlabeled-1.3.2/core/admin_templates/incs/header.tpl (.../header.tpl) (revision 7648) +++ branches/unlabeled/unlabeled-1.3.2/core/admin_templates/incs/header.tpl (.../header.tpl) (revision 7725) @@ -23,6 +23,7 @@ +