From: poltawski Date: Wed, 9 May 2007 00:50:29 +0000 (+0000) Subject: MDL-9742 Converting tabs to spaces X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e9e928b68d4dd35c5297d56430de6759aae8bcf1;p=moodle.git MDL-9742 Converting tabs to spaces --- diff --git a/auth/cas/config.html b/auth/cas/config.html index 8ce11b4b7a..4cba729821 100644 --- a/auth/cas/config.html +++ b/auth/cas/config.html @@ -1,187 +1,434 @@ -hostname)) { - $config->hostname = ''; - } - if (!isset ($config->port)) { - $config->port = ''; - } - if (!isset ($config->casversion)) { - $config->casversion = ''; - } - if (!isset ($config->baseuri)) { - $config->baseuri = ''; - } - if (!isset ($config->language)) { - $config->language = ''; - } - if (!isset ($config->use_cas)) { - $config->use_cas = ''; - } - if (!isset ($config->auth_user_create)) { - $config->auth_user_create = '0'; - } - if (!isset ($config->create_user)) { - $config->create_user = '0'; - } - if (!isset($config->changepasswordurl)) { - $config->changepasswordurl = ''; - } - -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

-
: - use_cas, get_string('no'), '', ''); - - ?> -
: - - -
: - - -
: - - -
: - - -
: - language, ''); - - ?> -
: - auth_user_create, ''); - if (isset($err['auth_user_create'])) { - formerr($err['auth_user_create']); - } - - ?> - - -
: - create_user, ''); - - ?> -
: - - -
- -config_form(get_config('auth/ldap'), $err); - -?> +hostname)) + $config->hostname = ''; + if (!isset ($config->port)) + $config->port = ''; + if (!isset ($config->casversion)) + $config->casversion = ''; + if (!isset ($config->baseuri)) + $config->baseuri = ''; + if (!isset ($config->language)) + $config->language = ''; + if (!isset ($config->use_cas)) + $config->use_cas = ''; + if (!isset ($config->proxycas)) + $config->proxycas = ''; + if (!isset ($config->logoutcas)) + $config->logoutcas = ''; + if (!isset ($config->multiauth)) + $config->multiauth = ''; + // set to defaults if undefined (LDAP) + if (!isset($config->host_url)) + { $config->host_url = ''; } + if (empty($config->ldapencoding)) + { $config->ldapencoding = 'utf-8'; } + if (!isset($config->contexts)) + { $config->contexts = ''; } + if (!isset($config->user_type)) + { $config->user_type = 'default'; } + if (!isset($config->user_attribute)) + { $config->user_attribute = ''; } + if (!isset($config->search_sub)) + { $config->search_sub = ''; } + if (!isset($config->opt_deref)) + { $config->opt_deref = LDAP_DEREF_NEVER; } + if (!isset($config->bind_dn)) + {$config->bind_dn = ''; } + if (!isset($config->bind_pw)) + {$config->bind_pw = ''; } + if (!isset($config->version)) + {$config->version = '2'; } + if (!isset($config->objectclass)) + {$config->objectclass = ''; } + if (!isset($config->memberattribute)) + {$config->memberattribute = ''; } + if (!isset($config->memberattribute_isdn)) + {$config->memberattribute_isdn = ''; } + if (!isset($config->groupecreators)) + {$config->groupecreators = ''; } + if (!isset($config->attrcreators)) + {$config->attrcreators = ''; } + if (!isset($config->removeuser)) + {$config->removeuser = 0; } + + $yesno = array( get_string('no'), get_string('yes') ); + +if (!function_exists('ldap_connect')) { // Is php4-ldap really there? + notify(get_string('auth_ldap_noextension','auth')); +} + + +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+
: + use_cas, get_string('no'), '', ''); + + ?> +
: + + +
: + + +
: + + +
: + + +
: + language, ''); + + ?> +
: + proxycas, get_string('no'), '', ''); + ?> +
: + logoutcas, get_string('no'), '', ''); + ?> +
: + multiauth, get_string('no'), '', ''); + ?> +
+

+
+ + + + +
+ version, ''); + if (isset($err['version'])) formerr($err['version']); + ?> + + +
+ + +
+

+
+ + + + +
+ + + + +
+

+
+ ldap_suppported_usertypes(), 'user_type', $config->user_type, ''); ?> + + + +
+ + + + +
+ search_sub, ''); ?> + + +
+ opt_deref, LDAP_DEREF_NEVER, ''); + if (isset($err['opt_deref'])) formerr($err['opt_deref']); + ?> + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + +
+

+
+ + + + +
+ + + + +
+

+
+ removeuser, ''); + ?> + + +
+ +'; +$help .= get_string('auth_updateremote_ldap','auth'); + +print_auth_lock_options('cas', $user_fields, $help, true, true); + +?> diff --git a/auth/fc/config.html b/auth/fc/config.html index 3bf9457b9f..9f7e9f691a 100644 --- a/auth/fc/config.html +++ b/auth/fc/config.html @@ -27,10 +27,10 @@ - + - + - + - + - +
:: - + @@ -38,10 +38,10 @@
:: - + @@ -49,20 +49,20 @@
:: - +
:: - + @@ -70,10 +70,10 @@
:: - + diff --git a/mod/wiki/db/postgres7.php b/mod/wiki/db/postgres7.php index babb6edac8..ffd05088ff 100644 --- a/mod/wiki/db/postgres7.php +++ b/mod/wiki/db/postgres7.php @@ -178,15 +178,15 @@ CREATE TABLE prefix_wiki_locks if($oldversion < 2006092602) { /* - // This used to be a BYTEA type for no apparent reason, which caused various queries to fail. The new - // install.xml uses TEXT so I figure it's safe to change it in upgrade too. This one broke the links page... - modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN refs DROP DEFAULT;"); - modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN refs TYPE TEXT USING ENCODE(refs,'escape');"); - modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN refs SET DEFAULT '';"); - // ...and this one broke the search page. - modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN content DROP DEFAULT;"); - modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN content TYPE TEXT USING ENCODE(content,'escape');"); - modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN content SET DEFAULT '';"); + // This used to be a BYTEA type for no apparent reason, which caused various queries to fail. The new + // install.xml uses TEXT so I figure it's safe to change it in upgrade too. This one broke the links page... + modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN refs DROP DEFAULT;"); +modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN refs TYPE TEXT USING ENCODE(refs,'escape');"); +modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN refs SET DEFAULT '';"); +// ...and this one broke the search page. +modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN content DROP DEFAULT;"); +modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN content TYPE TEXT USING ENCODE(content,'escape');"); +modify_database('',"ALTER TABLE prefix_wiki_pages ALTER COLUMN content SET DEFAULT '';"); */ // following code should be compatible with both pg 8.x and 7.4 table_column('wiki_pages', '', 'tempcontent', 'TEXT', '', '', '', '');