# HG changeset patch # User Dan # Date 1188924743 14400 # Node ID 261f367623afe92088118f38de20df0560bef1ba # Parent 47393c6619ea53ec9e5ea51b2059b4473addbc5a Fixed the obnoxious issue with forms using GET and index.php?title=Foo URL scheme (this works a whole lot better than MediaWiki now diff -r 47393c6619ea -r 261f367623af includes/pageutils.php --- a/includes/pageutils.php Tue Sep 04 08:25:48 2007 -0400 +++ b/includes/pageutils.php Tue Sep 04 12:52:23 2007 -0400 @@ -509,6 +509,9 @@ echo '
+ ' . ( urlSeparator == '&' ? '' : '' ) . ' + ' . ( $session->sid_super ? '' : '') . ' +
 
diff -r 47393c6619ea -r 261f367623af includes/template.php --- a/includes/template.php Tue Sep 04 08:25:48 2007 -0400 +++ b/includes/template.php Tue Sep 04 12:52:23 2007 -0400 @@ -741,6 +741,9 @@ 'LOGOUT_LINK'=>$logout_link, 'ADMIN_LINK'=>$admin_link, 'THEME_LINK'=>$theme_link, + 'SEARCH_ACTION'=>makeUrlNS('Special', 'Search'), + 'INPUT_TITLE'=>( urlSeparator == '&' ? '' : ''), + 'INPUT_AUTH'=>( $session->sid_super ? '' : ''), 'TEMPLATE_DIR'=>scriptPath.'/themes/'.$this->theme, 'THEME_ID'=>$this->theme, 'STYLE_ID'=>$this->style, diff -r 47393c6619ea -r 261f367623af plugins/SpecialSearch.php --- a/plugins/SpecialSearch.php Tue Sep 04 08:25:48 2007 -0400 +++ b/plugins/SpecialSearch.php Tue Sep 04 12:52:23 2007 -0400 @@ -71,7 +71,7 @@ { $not[$i] = '-' . $not[$i]; } - $q .= implode(' ', $not); + $q .= implode(' ', $not) . ' '; } if(!empty($_GET['require_words'])) { @@ -80,7 +80,7 @@ { $req[$i] = '+' . $req[$i]; } - $q .= implode(' ', $req); + $q .= implode(' ', $req) . ' '; } } $q = trim($q); @@ -244,6 +244,9 @@ sid_super ): ?> + + + Advanced Search

@@ -254,6 +257,9 @@ ?>
+ + +
diff -r 47393c6619ea -r 261f367623af plugins/SpecialUserFuncs.php --- a/plugins/SpecialUserFuncs.php Tue Sep 04 08:25:48 2007 -0400 +++ b/plugins/SpecialUserFuncs.php Tue Sep 04 12:52:23 2007 -0400 @@ -1224,6 +1224,8 @@ ' . '
' + . ( urlSeparator == '&' ? '' : '' ) + . ( $session->sid_super ? '' : '') . '

Find a member: ' . $template->username_field('finduser') . '
You may use the following wildcards: * to match multiple characters, ? to match a single character.

' . '
' // Footer (printed after rows) diff -r 47393c6619ea -r 261f367623af upgrade.sql --- a/upgrade.sql Tue Sep 04 08:25:48 2007 -0400 +++ b/upgrade.sql Tue Sep 04 12:52:23 2007 -0400 @@ -5,6 +5,8 @@ DELETE FROM {{TABLE_PREFIX}}config WHERE config_name='enano_version' OR config_name='enano_beta_version' OR config_name='enano_alpha_version' OR config_name='enano_rc_version'; INSERT INTO {{TABLE_PREFIX}}config (config_name, config_value) VALUES( 'enano_version', '1.0.1' ); ---BEGIN 1.0--- +-- Fix for obnoxious $_GET issue +UPDATE {{TABLE_PREFIX}}sidebar SET block_content='

$INPUT_AUTH$

' WHERE block_name='Search' AND item_id=4; -- Added on advice from Neal INSERT INTO {{TABLE_PREFIX}}acl(target_type,target_id,page_id,namespace,rules) VALUES(2,1,'Memberlist','Special','read=1;mod_misc=1;upload_files=1;upload_new_version=1;create_page=1;edit_acl=1;'); -- Bugfix for MySQL 5.0.45, see http://forum.enanocms.org/viewtopic.php?f=5&t=8
Advanced Search