# HG changeset patch # User Dan # Date 1191718282 14400 # Node ID 632db5fb4d098c6d6162d0c5c4775df48da3f2cc # Parent f637ebcafbf587ea28acfcb44340fee1bd8d161f# Parent 250aeb408ed794b17ee7c5bef72eba8a384326d3 Let's hope it worked this time. diff -r f637ebcafbf5 -r 632db5fb4d09 includes/clientside/static/ajax.js --- a/includes/clientside/static/ajax.js Sat Oct 06 20:50:25 2007 -0400 +++ b/includes/clientside/static/ajax.js Sat Oct 06 20:51:22 2007 -0400 @@ -1142,7 +1142,6 @@ keepalive_interval = setInterval('ajaxPingServer();', 600000); var span = document.getElementById('keepalivestat'); span.firstChild.nodeValue = 'Turn off keep-alive'; - ajaxPingServer(); } else { @@ -1155,6 +1154,6 @@ function aboutKeepAlive() { - new messagebox(MB_OK|MB_ICONINFORMATION, 'About the keep-alive feature', 'Keep-alive is a new Enano feature that keeps your administrative session from timing out while you are using the administration panel. This feature can be useful if you are editing a large page or doing something in the administration interface that will take longer than 15 minutes.

For security reasons, Enano mandates that high-privilege logins last only 15 minutes, with the time being reset each time a page is loaded (or, more specifically, each time the session API is started). The consequence of this is that if you are performing an action in the administration panel that takes more than 15 minutes, your session may be terminated. The keep-alive feature attempts to relieve this by sending a "ping" to the server every 10 minutes.

Please note that keep-alive state is determined by a cookie. Thus, if you log out and then back in as a different administrator, keep-alive will use the same setting that was used when you were logged in as the first administrative user. In the same way, if you log into the administration panel under your account from another computer, keep-alive will be set to "off".'); + new messagebox(MB_OK|MB_ICONINFORMATION, 'About the keep-alive feature', 'Keep-alive is a new Enano feature that keeps your administrative session from timing out while you are using the administration panel. This feature can be useful if you are editing a large page or doing something in the administration interface that will take longer than 15 minutes.

For security reasons, Enano mandates that high-privilege logins last only 15 minutes, with the time being reset each time a page is loaded (or, more specifically, each time the session API is started). The consequence of this is that if you are performing an action in the administration panel that takes more than 15 minutes, your session may be terminated. The keep-alive feature attempts to relieve this by sending a "ping" to the server every 10 minutes.

Please note that keep-alive state is determined by a cookie. Thus, if you log out and then back in as a different administrator, keep-alive will use the same setting that was used when you were logged in as the first administrative user. In the same way, if you log into the administration panel under your account from another computer, keep-alive will be set to "off".

For more information:
Overview of Enano'+"'"+'s security model'); } diff -r f637ebcafbf5 -r 632db5fb4d09 index.php diff -r f637ebcafbf5 -r 632db5fb4d09 plugins/SpecialSearch.php --- a/plugins/SpecialSearch.php Sat Oct 06 20:50:25 2007 -0400 +++ b/plugins/SpecialSearch.php Sat Oct 06 20:51:22 2007 -0400 @@ -100,18 +100,21 @@ if(!empty($q)) { // See if any pages directly match the title - - for ( $i = 0; $i < count ( $paths->pages ) / 2; $i++ ) + + if ( strlen($q) >= 4 ) { - $pg =& $paths->pages[$i]; - $q_lc = strtolower( str_replace(' ', '_', $q) ); - $q_tl = strtolower( str_replace('_', ' ', $q) ); - $p_lc = strtolower($pg['urlname']); - $p_tl = strtolower($pg['name']); - if ( strstr($p_tl, $q_tl) || strstr($p_lc, $q_lc) && $pg['visible'] == 1 ) + for ( $i = 0; $i < count ( $paths->pages ) / 2; $i++ ) { - echo '
Perhaps you were looking for ' . htmlspecialchars($pg['name']) . '?
'; - break; + $pg =& $paths->pages[$i]; + $q_lc = strtolower( str_replace(' ', '_', $q) ); + $q_tl = strtolower( str_replace('_', ' ', $q) ); + $p_lc = strtolower($pg['urlname']); + $p_tl = strtolower($pg['name']); + if ( strstr($p_tl, $q_tl) || strstr($p_lc, $q_lc) && $pg['visible'] == 1 ) + { + echo '
Perhaps you were looking for ' . htmlspecialchars($pg['name']) . '?
'; + break; + } } }