Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/index.tpl =================================================================== diff -u -r6928 -r7021 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/index.tpl (.../index.tpl) (revision 6928) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/index.tpl (.../index.tpl) (revision 7021) @@ -27,7 +27,7 @@ - " name="head" scrolling="no" noresize> + " name="head" scrolling="no" noresize="noresize"> " name="menu" target="main" noresize scrolling="auto" marginwidth="0" marginheight="0"> Index: branches/unlabeled/unlabeled-1.63.4/core/kernel/utility/debugger.php =================================================================== diff -u -r7008 -r7021 --- branches/unlabeled/unlabeled-1.63.4/core/kernel/utility/debugger.php (.../debugger.php) (revision 7008) +++ branches/unlabeled/unlabeled-1.63.4/core/kernel/utility/debugger.php (.../debugger.php) (revision 7021) @@ -70,15 +70,15 @@ * @var string */ var $baseURL = ''; - + function Debugger() { global $start, $dbg_options; // check if user haven't defined DEBUG_MODE contant directly if (defined('DEBUG_MODE') && DEBUG_MODE) { die('error: contant DEBUG_MODE defined directly, please use $dbg_options array instead'); } - + // check IP before enabling debug mode $ip_match = false; $ip_addresses = isset($dbg_options['DBG_IP']) ? explode(';', $dbg_options['DBG_IP']) : Array (); @@ -88,12 +88,12 @@ break; } } - + if (!$ip_match) { define('DEBUG_MODE', 0); return ; } - + // debug is allowed for user, continue initialization $this->InitDebugger(); $this->profileStart('kernel4_startup', 'Startup and Initialization of kernel4', $start); @@ -105,15 +105,15 @@ $this->scrollbarWidth = $this->isGecko() ? 22 : 25; // vertical scrollbar width differs in Firefox and other browsers $this->appendRequest(); } - + /** * Set's default values to constants debugger uses * */ function InitDebugger() { global $dbg_options; - + unset($_REQUEST['debug_host'], $_REQUEST['debug_fastfile'], $dbg_options['DBG_IP']); // this var messed up whole detection stuff :( // Detect fact, that this session beeing debugged by Zend Studio @@ -123,7 +123,7 @@ break; } } - + $this->safeDefine('DBG_ZEND_PRESENT', 0); // set this constant value to 0 (zero) to debug debugger using Zend Studio // set default values for debugger constants @@ -146,7 +146,7 @@ // user defined options override debugger defaults $dbg_constMap = $this->array_merge_recursive2($dbg_constMap, $dbg_options); - + foreach ($dbg_constMap as $dbg_constName => $dbg_constValue) { $this->safeDefine($dbg_constName, $dbg_constValue); } @@ -165,17 +165,17 @@ function array_merge_recursive2($paArray1, $paArray2) { - if (!is_array($paArray1) or !is_array($paArray2)) { + if (!is_array($paArray1) or !is_array($paArray2)) { return $paArray2; } - + foreach ($paArray2 AS $sKey2 => $sValue2) { $paArray1[$sKey2] = isset($paArray1[$sKey2]) ? array_merge_recursive2($paArray1[$sKey2], $sValue2) : $sValue2; } - + return $paArray1; } - + function netMatch($network, $ip) { $network = trim($network); @@ -212,7 +212,7 @@ return ($ip >= $from && $ip <= $to); } } - + function InitReport() { if (!class_exists('kApplication')) return false; @@ -388,7 +388,8 @@ if (is_null($array)) { return 'NULL'; - }elseif (!is_array($array)) { + } + elseif (!is_array($array)) { if ($cut_min_length != -1 && strlen($array) > $cut_min_length) { $array = substr($array, 0, $cut_first).' ...'; } Index: branches/unlabeled/unlabeled-1.65.4/core/kernel/processors/main_processor.php =================================================================== diff -u -r6881 -r7021 --- branches/unlabeled/unlabeled-1.65.4/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 6881) +++ branches/unlabeled/unlabeled-1.65.4/core/kernel/processors/main_processor.php (.../main_processor.php) (revision 7021) @@ -69,6 +69,12 @@ return $this->Application->BaseURL(); } + //for compatability with K3 tags + function Base() + { + return $this->TemplatesBase().'/'; + } + function ProjectBase($params) { return $this->Application->BaseURL(); Index: branches/unlabeled/unlabeled-1.2.2/core/admin_templates/head.tpl =================================================================== diff -u -r6899 -r7021 --- branches/unlabeled/unlabeled-1.2.2/core/admin_templates/head.tpl (.../head.tpl) (revision 6899) +++ branches/unlabeled/unlabeled-1.2.2/core/admin_templates/head.tpl (.../head.tpl) (revision 7021) @@ -6,7 +6,7 @@ $popup_manager = new AjaxPopupManager(''); - + Index: branches/unlabeled/unlabeled-1.9.18/core/kernel/utility/debugger/debugger.js =================================================================== diff -u -r6912 -r7021 --- branches/unlabeled/unlabeled-1.9.18/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 6912) +++ branches/unlabeled/unlabeled-1.9.18/core/kernel/utility/debugger/debugger.js (.../debugger.js) (revision 7021) @@ -64,18 +64,37 @@ this.DebuggerTable = document.getElementById('debug_table'); this.RowCount = 0; this.busyRequest = false; - + // window.$Debugger = this; // this should be uncommented in case if debugger variable is not $Debugger this.AddEvent(window, 'scroll', function (ev) { window.$Debugger.Resize(ev); }); this.AddEvent(window, 'resize', function (ev) { window.$Debugger.Resize(ev); }); // this.AddEvent(window, 'keydown', function (ev) { window.$Debugger.KeyDown(ev); }); // don't work in IE document.onkeydown = function(ev) { window.$Debugger.KeyDown(ev); } } +Debugger.prototype.SetOpacity = function(opacity) +{ + this.DebuggerToolbar.style.opacity = (opacity / 100); + this.DebuggerToolbar.style.MozOpacity = (opacity / 100); + this.DebuggerToolbar.style.KhtmlOpacity = (opacity / 100); + this.DebuggerToolbar.style.filter = "alpha(opacity=" + opacity + ")"; +} + Debugger.prototype.AddToolbar = function($var_name) { var $span = document.createElement('SPAN'); + $span.style.position = 'absolute'; + $span.innerHTML = '

'; - + + this.DebuggerToolbar = $span; + this.SetOpacity(20); + $span.onmouseover = function() { + $Debugger.SetOpacity(100); + } + $span.onmouseout = function() { + $Debugger.SetOpacity(20); + } + var $body = document.getElementsByTagName('BODY')[0]; $body.insertBefore($span, $body.firstChild); } @@ -99,7 +118,7 @@ Debugger.prototype.Clear = function() { if (!this.IsQueried) return false; - + this.IsQueried = false; while (this.DebuggerTable.rows.length) { this.RemoveRow(0); @@ -155,7 +174,7 @@ Debugger.prototype.successCallback = function(p_req, p_pass, p_object) { var contents = p_req.responseText; - + contents = contents.split(p_object.RowSeparator); if (contents.length == 1) { alert('error: '+p_req.responseText); @@ -166,7 +185,7 @@ for (var $i = 0; $i < contents.length - 1; $i++) { p_object.AppendRow(contents[$i]); } - + p_object.Refresh(); } Index: branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/grid_scroller.js =================================================================== diff -u -r6938 -r7021 --- branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/grid_scroller.js (.../grid_scroller.js) (revision 6938) +++ branches/unlabeled/unlabeled-1.1.2/core/admin_templates/js/grid_scroller.js (.../grid_scroller.js) (revision 7021) @@ -43,6 +43,8 @@ var result = new Object(); result.innerHeight = obj.clientHeight - padding[0] - padding[2]; result.innerWidth = obj.clientWidth - padding[1] - padding[3]; + result.padding = padding; + result.borders = border; return result; } @@ -56,7 +58,7 @@ this.LeftCells = 0; this.LeftWidth = 0; - this.BottomOffset = 5; + this.BottomOffset = 0; this.Width = w; this.Height = h; @@ -93,6 +95,13 @@ this.TheGrid.style.visibility = 'visible' this.MainScroller.style.visibility = 'visible' + + var the_grid = this; + if (document.all) { + $status = window.attachEvent('onresize', function(ev) { the_grid.AutoResize() }); + } else { + $status = window.addEventListener('resize', function(ev) { the_grid.AutoResize() }, true); + } } GridScroller.prototype.SetReferences = function() { @@ -170,7 +179,7 @@ { // target = Math.max( Math.max(header_widths[i], data_widths[i]), footer_widths[i]); var sum = header_widths[i]*header_cf*count + data_widths[i]*data_cf*count; -// alert('sum = '+header_widths[i]+' * '+header_cf+' * '+count+' + '+data_widths[i]+' * '+data_cf+' * '+count+' = '+sum) +// alert('sum ('+i+') = '+header_widths[i]+' * '+header_cf+' * '+count+' + '+data_widths[i]+' * '+data_cf+' * '+count+' = '+sum) if (this.HasFooter()) { sum += footer_widths[i]*footer_cf*count; // alert('sum + '+footer_widths[i]+' * '+footer_cf+' * '+count+' = '+sum) @@ -181,7 +190,7 @@ total += target; } this.MinDataWidth = total; - this.SetRowWidths('header_'+this.GridId, widths, total); + this.SetWidths('header_'+this.GridId, widths, total); this.SetWidths('data_'+this.GridId, widths, total); if (this.LeftCells != 0) { @@ -248,6 +257,7 @@ for (var col=0; col' + table.rows[row].cells[col].innerHTML + '' +// alert('setting '+widths[col]+' for col '+col) table.rows[row].cells[col].style.width = widths[col]+'px'; // alert('set ('+col+')'+table.rows[0].cells[col].innerHTML+' to '+widths[col]) } @@ -302,7 +312,7 @@ for (var col=0; col

', 100, 100, 'main_'+this.GridId, false, 1 ); + o += this.CreateScroller( '


', 100, 100, 'main_'+this.GridId, false, 1 ); - o += '