# HG changeset patch # User Dan # Date 1183316432 14400 # Node ID 425261984266bd58aaedd07818304ba048cc86fd # Parent efae425e9b98b583b1d00409d0183b1c9248ab48 Added "page hint" on search page; deprecated "www." on EnanoCMS.org links diff -r efae425e9b98 -r 425261984266 ajax.php --- a/ajax.php Sun Jul 01 14:51:33 2007 -0400 +++ b/ajax.php Sun Jul 01 15:00:32 2007 -0400 @@ -104,8 +104,8 @@ echo PageUtils::setpass($paths->cpage['urlname_nons'], $paths->namespace, $_POST['password']); break; case "wikihelp": - $html = file_get_contents('http://www.enanocms.org/ajax.php?title=Help:Wiki_formatting&_mode=getpage&nofooters'); - $html = str_replace('src="/Special', 'src="http://www.enanocms.org/Special', $html); + $html = file_get_contents('http://enanocms.org/ajax.php?title=Help:Wiki_formatting&_mode=getpage&nofooters'); + $html = str_replace('src="/Special', 'src="http://enanocms.org/Special', $html); echo '

Wiki formatting guide

'.$html.'
'; break; case "fillusername": diff -r efae425e9b98 -r 425261984266 includes/clientside/jsres.php --- a/includes/clientside/jsres.php Sun Jul 01 14:51:33 2007 -0400 +++ b/includes/clientside/jsres.php Sun Jul 01 15:00:32 2007 -0400 @@ -43,7 +43,7 @@ * Version 1.0 (Banshee) * [Aggressively compressed] Javascript client code * Copyright (C) 2006-2007 Dan Fuhry - * Enano is Free Software, licensed under the GNU General Public License; see http://www.enanocms.org/ for details. + * Enano is Free Software, licensed under the GNU General Public License; see http://enanocms.org/ for details. */ "; diff -r efae425e9b98 -r 425261984266 includes/search.php --- a/includes/search.php Sun Jul 01 14:51:33 2007 -0400 +++ b/includes/search.php Sun Jul 01 15:00:32 2007 -0400 @@ -39,7 +39,7 @@ * * @package Enano * @subpackage Page management frontend - * @license GNU General Public License http://www.enanocms.org/Special:GNU_General_Public_License + * @license GNU General Public License http://enanocms.org/Special:GNU_General_Public_License */ class Searcher diff -r efae425e9b98 -r 425261984266 includes/template.php --- a/includes/template.php Sun Jul 01 14:51:33 2007 -0400 +++ b/includes/template.php Sun Jul 01 15:00:32 2007 -0400 @@ -1369,7 +1369,7 @@ // SourceForge/W3C buttons $ob = Array(); $admintitle = ( $session->user_level >= USER_LEVEL_ADMIN ) ? 'title="You may disable this button in the admin panel under General Configuration."' : ''; - if(getConfig('powered_btn') =='1') $ob[] = 'Powered by Enano'; + if(getConfig('powered_btn') =='1') $ob[] = 'Powered by Enano'; if(getConfig('sflogo_enabled')=='1') { $ob[] = 'SourceForge.net Logo'; diff -r efae425e9b98 -r 425261984266 plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Sun Jul 01 14:51:33 2007 -0400 +++ b/plugins/SpecialAdmin.php Sun Jul 01 15:00:32 2007 -0400 @@ -333,7 +333,7 @@ diff -r efae425e9b98 -r 425261984266 plugins/SpecialGroups.php --- a/plugins/SpecialGroups.php Sun Jul 01 14:51:33 2007 -0400 +++ b/plugins/SpecialGroups.php Sun Jul 01 15:00:32 2007 -0400 @@ -1,11 +1,11 @@ - + Powered by Enano - Enano version: + Enano version: Web server: Server platform: PHP version: @@ -361,7 +361,7 @@ } else { - echo '

It appears that the file "GPL" is missing from your Enano installation. You may find a wiki-formatted copy of the GPL at: http://www.enanocms.org/GPL.

'; + echo '

It appears that the file "GPL" is missing from your Enano installation. You may find a wiki-formatted copy of the GPL at: http://enanocms.org/GPL.

'; } $template->footer(); } diff -r efae425e9b98 -r 425261984266 plugins/SpecialSearch.php --- a/plugins/SpecialSearch.php Sun Jul 01 14:51:33 2007 -0400 +++ b/plugins/SpecialSearch.php Sun Jul 01 15:00:32 2007 -0400 @@ -1,11 +1,11 @@ header(); if(!empty($q)) { + // See if any pages directly match the title + + for ( $i = 0; $i < count ( $paths->pages ) / 2; $i++ ) + { + $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) ) + { + echo '
Perhaps you were looking for ' . htmlspecialchars($pg['name']) . '?
'; + break; + } + } + switch(SEARCH_MODE) { @@ -499,7 +515,7 @@ if ( $num_results < 1 ) { - echo '
No pages that matched your search criteria could be found.
'; + echo '
No page text that matched your search criteria could be found.
'; return null; } diff -r efae425e9b98 -r 425261984266 plugins/SpecialUserPrefs.php --- a/plugins/SpecialUserPrefs.php Sun Jul 01 14:51:33 2007 -0400 +++ b/plugins/SpecialUserPrefs.php Sun Jul 01 15:00:32 2007 -0400 @@ -1,11 +1,11 @@