From: <var...@us...> - 2008-08-26 09:58:33
|
Revision: 6199 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6199&view=rev Author: vargenau Date: 2008-08-26 09:58:43 +0000 (Tue, 26 Aug 2008) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2008-08-26 09:14:36 UTC (rev 6198) +++ trunk/configurator.php 2008-08-26 09:58:43 UTC (rev 6199) @@ -266,7 +266,7 @@ <h1>Configuration for PhpWiki <?php echo $config_file ?></h1> <div class="hint"> - Using this configurator.php is experimental!<br> + Using this configurator.php is experimental!<br /> On any configuration problems, please edit the resulting config.ini manually. </div> @@ -1009,10 +1009,10 @@ Check to see if the supplied username/password pair is OK -Plaintext passwords: (DBAUTH_AUTH_CRYPT_METHOD = plain)<br> +Plaintext passwords: (DBAUTH_AUTH_CRYPT_METHOD = plain)<br /> ; DBAUTH_AUTH_CHECK = \"SELECT IF(passwd='\$password',1,0) AS ok FROM user WHERE userid='\$userid'\" -database-hashed passwords (more secure):<br> +database-hashed passwords (more secure):<br /> ; DBAUTH_AUTH_CHECK = \"SELECT IF(passwd=PASSWORD('\$password'),1,0) AS ok FROM user WHERE userid='\$userid'\""); $properties["Crypt Method"] = @@ -1024,7 +1024,7 @@ to get the password out of the database with a simple SELECT query, and specify DBAUTH_AUTH_USER_EXISTS and DBAUTH_AUTH_CRYPT_METHOD: -; DBAUTH_AUTH_CHECK = \"SELECT passwd FROM user where userid='\$userid'\" <br> +; DBAUTH_AUTH_CHECK = \"SELECT passwd FROM user where userid='\$userid'\" <br /> ; DBAUTH_AUTH_CRYPT_METHOD = crypt"); $properties["Update the user's authentication credential"] = @@ -1032,9 +1032,9 @@ If this is not defined but DBAUTH_AUTH_CHECK is, then the user will be unable to update their password. -Plaintext passwords:<br> - DBAUTH_AUTH_UPDATE = \"UPDATE user SET passwd='\$password' WHERE userid='\$userid'\"<br> -Database-hashed passwords:<br> +Plaintext passwords:<br /> + DBAUTH_AUTH_UPDATE = \"UPDATE user SET passwd='\$password' WHERE userid='\$userid'\"<br /> +Database-hashed passwords:<br /> DBAUTH_AUTH_UPDATE = \"UPDATE user SET passwd=PASSWORD('\$password') WHERE userid='\$userid'\""); $properties["Allow the user to create their own account"] = @@ -1072,14 +1072,14 @@ Sample configurations: -only one group per user (1:n):<br> - DBAUTH_IS_MEMBER = \"SELECT user FROM user WHERE user='\$userid' AND group='\$groupname'\"<br> - DBAUTH_GROUP_MEMBERS = \"SELECT user FROM user WHERE group='\$groupname'\"<br> - DBAUTH_USER_GROUPS = \"SELECT group FROM user WHERE user='\$userid'\"<br> -multiple groups per user (n:m):<br> - DBAUTH_IS_MEMBER = \"SELECT userid FROM member WHERE userid='\$userid' AND groupname='\$groupname'\"<br> - DBAUTH_GROUP_MEMBERS = \"SELECT DISTINCT userid FROM member WHERE groupname='\$groupname'\"<br> - DBAUTH_USER_GROUPS = \"SELECT groupname FROM member WHERE userid='\$userid'\"<br>"); +only one group per user (1:n):<br /> + DBAUTH_IS_MEMBER = \"SELECT user FROM user WHERE user='\$userid' AND group='\$groupname'\"<br /> + DBAUTH_GROUP_MEMBERS = \"SELECT user FROM user WHERE group='\$groupname'\"<br /> + DBAUTH_USER_GROUPS = \"SELECT group FROM user WHERE user='\$userid'\"<br /> +multiple groups per user (n:m):<br /> + DBAUTH_IS_MEMBER = \"SELECT userid FROM member WHERE userid='\$userid' AND groupname='\$groupname'\"<br /> + DBAUTH_GROUP_MEMBERS = \"SELECT DISTINCT userid FROM member WHERE groupname='\$groupname'\"<br /> + DBAUTH_USER_GROUPS = \"SELECT groupname FROM member WHERE userid='\$userid'\"<br />"); $properties["DBAUTH_GROUP_MEMBERS"] = new _define_optional('DBAUTH_GROUP_MEMBERS', "SELECT user FROM user WHERE group='\$groupname'", ""); $properties["DBAUTH_USER_GROUPS"] = This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-01-08 09:36:54
|
Revision: 6377 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6377&view=rev Author: rurban Date: 2009-01-08 09:36:49 +0000 (Thu, 08 Jan 2009) Log Message: ----------- Fix Warning: Missing argument 2 Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-01-07 18:52:15 UTC (rev 6376) +++ trunk/configurator.php 2009-01-08 09:36:49 UTC (rev 6377) @@ -1706,7 +1706,7 @@ var $prefix; var $jscheck; - function _variable($config_item_name, $default_value, $description = '', $jscheck = '') { + function _variable($config_item_name, $default_value='', $description = '', $jscheck = '') { $this->config_item_name = $config_item_name; if (!$description) $description = text_from_dist($config_item_name); @@ -1950,7 +1950,7 @@ class numeric_define extends _define { - function numeric_define($config_item_name, $default_value, $description = '', $jscheck = '') { + function numeric_define($config_item_name, $default_value='', $description = '', $jscheck = '') { $this->_define($config_item_name, $default_value, $description, $jscheck); if (!$jscheck) $this->jscheck = "onchange=\"validate_ereg('Sorry, \'%s\' is not an integer.', '^[-+]?[0-9]+$', '" . $this->get_config_item_name() . "', this);\""; @@ -2022,7 +2022,7 @@ class _define_password extends _define { - function _define_password($config_item_name, $default_value, $description = '', $jscheck = '') { + function _define_password($config_item_name, $default_value='', $description = '', $jscheck = '') { if ($config_item_name == $default_value) $default_value = ''; $this->_define($config_item_name, $default_value, $description, $jscheck); if (!$jscheck) @@ -2066,7 +2066,7 @@ class _define_password_optional extends _define_password { - function _define_password_optional($config_item_name, $default_value, $description = '', $jscheck = '') { + function _define_password_optional($config_item_name, $default_value='', $description = '', $jscheck = '') { if ($config_item_name == $default_value) $default_value = ''; if (!$jscheck) $this->jscheck = " "; $this->_define($config_item_name, $default_value, $description, $jscheck); @@ -2100,7 +2100,7 @@ class _variable_password extends _variable { - function _variable_password($config_item_name, $default_value, $description = '', $jscheck = '') { + function _variable_password($config_item_name, $default_value='', $description = '', $jscheck = '') { if ($config_item_name == $default_value) $default_value = ''; $this->_define($config_item_name, $default_value, $description, $jscheck); if (!$jscheck) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-01-08 09:40:30
|
Revision: 6378 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6378&view=rev Author: rurban Date: 2009-01-08 09:40:18 +0000 (Thu, 08 Jan 2009) Log Message: ----------- Protect against empty join warning Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-01-08 09:36:49 UTC (rev 6377) +++ trunk/configurator.php 2009-01-08 09:40:18 UTC (rev 6378) @@ -2139,7 +2139,8 @@ // split the phrase by any number of commas or space characters, // which include " ", \r, \t, \n and \f $list_values = preg_split("/[\s,]+/", $posted_value, -1, PREG_SPLIT_NO_EMPTY); - $list_values = join("|", $list_values); + if ($list_values) + $list_values = join("|", $list_values); return _variable::_get_config_line($list_values); } function get_html() { @@ -2158,13 +2159,15 @@ extends _define { function _get_config_line($posted_value) { $list_values = preg_split("/[\s,]+/", $posted_value, -1, PREG_SPLIT_NO_EMPTY); - $list_values = join("|", $list_values); + if ($list_values) + $list_values = join("|", $list_values); return _variable::_get_config_line($list_values); } function get_html() { $list_values = explode("|", $this->default_value); $rows = max(3, count($list_values) +1); - $list_values = join("\n", $list_values); + if ($list_values) + $list_values = join("\n", $list_values); $ta = $this->get_config_item_header(); $ta .= "<textarea cols=\"18\" rows=\"". $rows ."\" name=\"".$this->get_config_item_name()."\" {$this->jscheck}>"; $ta .= $list_values . "</textarea>"; @@ -2190,7 +2193,10 @@ return "\n;" . $this->_config_format(''); } function get_html() { - $list_values = join("\n", $this->default_value); + if (is_array($this->default_value)) + $list_values = join("\n", $this->default_value); + else + $list_values = $this->default_value; $rows = max(3, count($this->default_value) +1); $ta = $this->get_config_item_header(); $ta .= "<textarea cols=\"18\" rows=\"". $rows ."\" name=\"".$this->get_config_item_name()."\" {$this->jscheck}>"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2009-01-08 15:26:35
|
Revision: 6385 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6385&view=rev Author: rurban Date: 2009-01-08 15:26:25 +0000 (Thu, 08 Jan 2009) Log Message: ----------- typo in comment Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-01-08 13:32:57 UTC (rev 6384) +++ trunk/configurator.php 2009-01-08 15:26:25 UTC (rev 6385) @@ -348,7 +348,7 @@ $properties["PHP include_path"] = new _define('INCLUDE_PATH', $include_path); -// TODO: convert this a checkbox row as in tests/unit/test.pgp +// TODO: Convert this to a checkbox row as in tests/unit/test.php $properties["DEBUG"] = new numeric_define_optional('DEBUG', DEBUG); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-02-26 10:50:48
|
Revision: 6572 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6572&view=rev Author: vargenau Date: 2009-02-26 10:50:44 +0000 (Thu, 26 Feb 2009) Log Message: ----------- Add "jpeg" to INLINE_IMAGES Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-02-26 08:51:55 UTC (rev 6571) +++ trunk/configurator.php 2009-02-26 10:50:44 UTC (rev 6572) @@ -2,6 +2,7 @@ /* * Copyright 2002,2003,2005 $ThePhpWikiProgrammingTeam * Copyright 2002 Martin Geisler <gim...@gi...> + * Copyright 2008-2009 Marc-Etienne Vargenau, Alcatel-Lucent * * This file is part of PhpWiki. * Parts of this file were based on PHPWeather's configurator.php file. @@ -1368,7 +1369,7 @@ within a named link [name|uri] one more protocol is defined: phpwiki"); $properties["Inline Images"] = - new list_define('INLINE_IMAGES', 'png|jpg|gif'); + new list_define('INLINE_IMAGES', 'png|jpg|jpeg|gif'); $properties["WikiName Regexp"] = new _define('WIKI_NAME_REGEXP', "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])", " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-05 05:19:32
|
Revision: 7177 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7177&view=rev Author: vargenau Date: 2009-10-05 05:19:22 +0000 (Mon, 05 Oct 2009) Log Message: ----------- Valid XHTML code Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-10-02 16:06:19 UTC (rev 7176) +++ trunk/configurator.php 2009-10-05 05:19:22 UTC (rev 7177) @@ -524,42 +524,35 @@ headers (Expires: and Cache-Control:) Choose one of: - <dl> <dt>NO_CACHE</dt> <dd>This is roughly the old (pre 1.3.4) behaviour. PhpWiki will instruct proxies and browsers never to cache PhpWiki output.</dd> - <dt>STRICT</dt> <dd>Cached pages will be invalidated whenever the database global timestamp changes. This should behave just like NONE (modulo bugs in PhpWiki and your proxies and browsers), except that things will be slightly more efficient.</dd> - <dt>LOOSE</dt> <dd>Cached pages will be invalidated whenever they are edited, or, if the pages include plugins, when the plugin output could concievably have changed. - <p>Behavior should be much like STRICT, except that sometimes wikilinks will show up as undefined (with the question mark) when in fact they refer to (recently) created pages. (Hitting your browsers reload or perhaps shift-reload button should fix the problem.)</p></dd> - <dt>ALLOW_STALE</dt> <dd>Proxies and browsers will be allowed to used stale pages. (The timeout for stale pages is controlled by CACHE_CONTROL_MAX_AGE.) - <p>This setting will result in quirky behavior. When you edit a page your changes may not show up until you shift-reload the page, etc...</p> - <p>This setting is generally not advisable, however it may be useful in certain cases (e.g. if your wiki gets lots of page views, and few edits by knowledgable people who won't freak over the quirks.)</p> </dd> - +</dl> The default is currently LOOSE."); $properties["HTTP Cache Control Max Age"] = @@ -724,7 +717,7 @@ 'db2' => "DB2 - BerkeleyDB (Sleepycat) DB2", 'db3' => "DB3 - BerkeleyDB (Sleepycat) DB3. Default on Windows but not on every Linux", 'db4' => "DB4 - BerkeleyDB (Sleepycat) DB4."), " -Use 'gdbm', 'dbm', 'db2', 'db3' or 'db4' depending on your DBA handler methods supported: <br > " +Use 'gdbm', 'dbm', 'db2', 'db3' or 'db4' depending on your DBA handler methods supported: <br /> " . (function_exists("dba_handlers") ? join(", ",dba_handlers()) : "") . "\n\nBetter not use other hacks such as inifile, flatfile or cdb"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-05 08:24:16
|
Revision: 7178 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7178&view=rev Author: vargenau Date: 2009-10-05 08:24:07 +0000 (Mon, 05 Oct 2009) Log Message: ----------- Fix HomePage name in other languages (UTF-8) Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-10-05 05:19:22 UTC (rev 7177) +++ trunk/configurator.php 2009-10-05 08:24:07 UTC (rev 7178) @@ -1294,25 +1294,25 @@ new _define_selection_optional('DEFAULT_LANGUAGE', array('en' => "English", '' => "<empty> (user-specific)", - 'fr' => "Fran~is", + 'fr' => "Français", 'de' => "Deutsch", 'nl' => "Nederlands", - 'es' => "Espa~l", + 'es' => "Español", 'sv' => "Svenska", 'it' => "Italiano", 'ja' => "Japanese", 'zh' => "Chinese"), " Select your language/locale - default language is \"en\" for English. Other languages available:<pre> -English \"en\" (English - HomePage) -German \"de\" (Deutsch - StartSeite) -French \"fr\" (Fran~is - Accueil) -Dutch \"nl\" (Nederlands - ThuisPagina) -Spanish \"es\" (Espa~l - P~inaPrincipal) -Swedish \"sv\" (Svenska - Framsida) -Italian \"it\" (Italiano - PaginaPrincipale) -Japanese \"ja\" (Japanese - ~~~~~~) -Chinese \"zh\" (Chinese) +English \"en\" (English - HomePage) +German \"de\" (Deutsch - StartSeite) +French \"fr\" (Français - Accueil) +Dutch \"nl\" (Nederlands - ThuisPagina) +Spanish \"es\" (Español - PáginaPrincipal) +Swedish \"sv\" (Svenska - Framsida) +Italian \"it\" (Italiano - PaginaPrincipale) +Japanese \"ja\" (Japanese - ホームページ) +Chinese \"zh\" (Chinese - 首頁) </pre> If you set DEFAULT_LANGUAGE to the empty string, your systems default language (as determined by the applicable environment variables) will be This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-10-25 18:02:37
|
Revision: 7236 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7236&view=rev Author: vargenau Date: 2009-10-25 18:02:28 +0000 (Sun, 25 Oct 2009) Log Message: ----------- Add ENABLE_AUTH_OPENID Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2009-10-25 17:36:31 UTC (rev 7235) +++ trunk/configurator.php 2009-10-25 18:02:28 UTC (rev 7236) @@ -905,6 +905,9 @@ USER_AUTH_ORDER = 'BogoLogin : PersonalPage' </pre>"); +$properties["ENABLE_AUTH_OPENID"] = +new boolean_define('ENABLE_AUTH_OPENID'); + $properties["PASSWORD_LENGTH_MINIMUM"] = new numeric_define('PASSWORD_LENGTH_MINIMUM', PASSWORD_LENGTH_MINIMUM); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2010-06-08 12:04:47
|
Revision: 7498 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7498&view=rev Author: vargenau Date: 2010-06-08 12:04:40 +0000 (Tue, 08 Jun 2010) Log Message: ----------- Partial revert, some modifications from Sebastien Le Callonnec were overwritten Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2010-06-08 10:46:39 UTC (rev 7497) +++ trunk/configurator.php 2010-06-08 12:04:40 UTC (rev 7498) @@ -173,7 +173,7 @@ pre { font-size: 120%; } td { border: thin solid black } tr { border: none } -div.hint { border: thin solid red, background-color: #eeeeee; } +div.hint { background-color: #eeeeee; } tr.hidden { border: none; display: none; } td.part { background-color: #eeeeee; color: inherit; } td.instructions { background-color: #ffffee; width: <?php echo $tdwidth ?>px; color: inherit; } @@ -2512,7 +2512,7 @@ } if ($fp) { - fputs($fp, $config); + fputs($fp, utf8_encode($config)); fclose($fp); echo "<p>The configuration was written to <code><b>$config_file</b></code>.</p>\n"; if ($new_filename) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ru...@us...> - 2011-04-17 10:56:23
|
Revision: 8056 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8056&view=rev Author: rurban Date: 2011-04-17 10:56:17 +0000 (Sun, 17 Apr 2011) Log Message: ----------- #ID: 3288350 Typo in timestamp by user OnlineCop Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2011-04-14 14:26:30 UTC (rev 8055) +++ trunk/configurator.php 2011-04-17 10:56:17 UTC (rev 8056) @@ -2472,7 +2472,7 @@ ) { - $timestamp = date ('dS of F, Y H:i:s'); + $timestamp = date ('dS \of F, Y H:i:s'); $config = " ; This is a local configuration file for PhpWiki. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-09-28 11:29:29
|
Revision: 8288 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8288&view=rev Author: vargenau Date: 2012-09-28 11:29:20 +0000 (Fri, 28 Sep 2012) Log Message: ----------- No $Id Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2012-09-28 11:26:58 UTC (rev 8287) +++ trunk/configurator.php 2012-09-28 11:29:20 UTC (rev 8288) @@ -163,7 +163,6 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> -<!-- $Id: configurator.php 8281 2012-08-31 12:01:01Z vargenau $ --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Configuration tool for PhpWiki <?php echo $config_file ?></title> <style type="text/css" media="screen"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-10-11 12:05:42
|
Revision: 8412 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8412&view=rev Author: vargenau Date: 2012-10-11 12:05:36 +0000 (Thu, 11 Oct 2012) Log Message: ----------- Repair comment Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2012-10-11 11:52:26 UTC (rev 8411) +++ trunk/configurator.php 2012-10-11 12:05:36 UTC (rev 8412) @@ -222,8 +222,7 @@ --> </style> <script type="text/javascript"> - < - !-- + <!-- function update(accepted, error, value, output) { var msg = document.getElementById(output); if (accepted) { @@ -306,7 +305,7 @@ } } - -- > + // --> </script> </head> <body onload="do_init();"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-11-22 13:15:20
|
Revision: 8523 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8523&view=rev Author: vargenau Date: 2012-11-22 13:15:13 +0000 (Thu, 22 Nov 2012) Log Message: ----------- Valid HTML code Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2012-11-22 02:20:28 UTC (rev 8522) +++ trunk/configurator.php 2012-11-22 13:15:13 UTC (rev 8523) @@ -1000,7 +1000,7 @@ $properties["Group membership"] = new _define_selection("GROUP_METHOD", array('WIKIPAGE' => "WIKIPAGE - List at \"CategoryGroup\". (Slowest, but easiest to maintain)", - '"NONE"' => "NONE - Disable group membership (Fastest)", + 'NONE' => "NONE - Disable group membership (Fastest)", 'DB' => "DB - SQL Database, Optionally external. See USERS/GROUPS queries", 'FILE' => "Flatfile. See AUTH_GROUP_FILE below.", 'LDAP' => "LDAP - See \"LDAP authentication options\" above. (Experimental)"), " This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-10-03 15:25:31
|
Revision: 9185 http://sourceforge.net/p/phpwiki/code/9185 Author: vargenau Date: 2014-10-03 15:25:29 +0000 (Fri, 03 Oct 2014) Log Message: ----------- function is_a exists Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2014-10-03 15:22:58 UTC (rev 9184) +++ trunk/configurator.php 2014-10-03 15:25:29 UTC (rev 9185) @@ -142,7 +142,7 @@ _http_logout(); } // check password - if (ENCRYPTED_PASSWD and function_exists('crypt')) { + if (ENCRYPTED_PASSWD) { if (crypt($admin_pw, ADMIN_PASSWD) != ADMIN_PASSWD) _http_logout(); } elseif ($admin_pw != ADMIN_PASSWD) { @@ -2063,23 +2063,15 @@ $p .= "\n;ENCRYPTED_PASSWD = true"; return $p; } else { - if (function_exists('crypt')) { - $salt_length = max(CRYPT_SALT_LENGTH, - 2 * CRYPT_STD_DES, - 9 * CRYPT_EXT_DES, - 12 * CRYPT_MD5, - 16 * CRYPT_BLOWFISH); - // generate an encrypted password - $crypt_pass = crypt($posted_value, rand_ascii($salt_length)); - $p = "${n}" . $this->_config_format($crypt_pass); - return $p . "\nENCRYPTED_PASSWD = true"; - } else { - $p = "${n}" . $this->_config_format($posted_value); - $p .= "\n; Encrypted passwords cannot be used:"; - $p .= "\n; 'function crypt()' not available in this version of php"; - $p .= "\nENCRYPTED_PASSWD = false"; - return $p; - } + $salt_length = max(CRYPT_SALT_LENGTH, + 2 * CRYPT_STD_DES, + 9 * CRYPT_EXT_DES, + 12 * CRYPT_MD5, + 16 * CRYPT_BLOWFISH); + // generate an encrypted password + $crypt_pass = crypt($posted_value, rand_ascii($salt_length)); + $p = "${n}" . $this->_config_format($crypt_pass); + return $p . "\nENCRYPTED_PASSWD = true"; } } @@ -2539,14 +2531,6 @@ ///////////////////////////// // begin auto generation code -if (!function_exists('is_a')) { - function is_a($object, $class) - { - $class = strtolower($class); - return (get_class($object) == $class) or is_subclass_of($object, $class); - } -} - if (!empty($HTTP_POST_VARS['action']) and $HTTP_POST_VARS['action'] == 'make_config' and !empty($HTTP_POST_VARS['ADMIN_USER']) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-10-07 15:27:07
|
Revision: 9217 http://sourceforge.net/p/phpwiki/code/9217 Author: vargenau Date: 2014-10-07 15:27:04 +0000 (Tue, 07 Oct 2014) Log Message: ----------- Fix warnings Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2014-10-07 14:46:59 UTC (rev 9216) +++ trunk/configurator.php 2014-10-07 15:27:04 UTC (rev 9217) @@ -225,16 +225,18 @@ if (accepted) { /* MSIE 5.0 fails here */ if (msg && msg.innerHTML) { - msg.innerHTML = "<font color=\"green\">Input accepted.</font>"; + msg.innerHTML = "<span color=\"green\">Input accepted.</span>"; } } else { + var index; while ((index = error.indexOf("%s")) > -1) { error = error.substring(0, index) + value + error.substring(index + 2); } if (msg) { - msg.innerHTML = "<font color=\"red\">" + error + "</font>"; + msg.innerHTML = "<span color=\"red\">" + error + "</span>"; } } + var submit; if (submit = document.getElementById('submit')) submit.disabled = accepted ? false : true; } @@ -243,7 +245,7 @@ } function validate_ereg(error, ereg, output, field) { - regex = new RegExp(ereg); + var regex = new RegExp(ereg); update(regex.test(field.value), error, field.value, output); } @@ -264,16 +266,17 @@ } var rows = document.getElementsByTagName('tr'); - var i = 0; + var i; + var tr; for (i = 0; i < rows.length; i++) { - var tr = rows[i]; + tr = rows[i]; if (tr.className == 'header' && tr.id == id) { i++; break; } } for (; i < rows.length; i++) { - var tr = rows[i]; + tr = rows[i]; if (tr.className == 'header') break; tr.className = do_hide ? 'hidden' : 'nonhidden'; @@ -295,7 +298,7 @@ // Select text in textarea upon focus var area = document.getElementById('config-output'); if (area) { - listener = { handleEvent:function (e) { + var listener = { handleEvent:function (e) { area.select(); } }; area.addEventListener('focus', listener, false); @@ -2455,7 +2458,7 @@ } if ($var == '_MAGIC_CLOSE_FILE') { fclose($f); - return; + return ''; } // if all vars would be in natural order as in the config-dist this would not be needed. fseek($f, 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-02-05 17:39:12
|
Revision: 9511 http://sourceforge.net/p/phpwiki/code/9511 Author: vargenau Date: 2015-02-05 17:39:10 +0000 (Thu, 05 Feb 2015) Log Message: ----------- No need to translate /etc/groups Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2015-02-05 10:19:04 UTC (rev 9510) +++ trunk/configurator.php 2015-02-05 17:39:10 UTC (rev 9511) @@ -1024,7 +1024,7 @@ Page where all groups are listed."); $properties["AUTH_GROUP_FILE"] = - new _define_optional('AUTH_GROUP_FILE', _("/etc/groups"), " + new _define_optional('AUTH_GROUP_FILE', "/etc/groups", " For GROUP_METHOD = FILE, the file given below is referenced to obtain group membership information. It should be in the same format as the standard unix /etc/groups(5) file."); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-04-23 18:39:03
|
Revision: 9693 http://sourceforge.net/p/phpwiki/code/9693 Author: vargenau Date: 2015-04-23 18:39:01 +0000 (Thu, 23 Apr 2015) Log Message: ----------- Add semi-colon Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2015-04-21 15:58:02 UTC (rev 9692) +++ trunk/configurator.php 2015-04-23 18:39:01 UTC (rev 9693) @@ -177,11 +177,11 @@ } td { - border: thin solid black + border: thin solid black; } tr { - border: none + border: none; } div.hint { @@ -1782,7 +1782,7 @@ global $tdwidth; $i = "<h3>" . $title . "</h3>\n " . nl2p($this->_get_description()) . "\n"; // $i .= "<em>Not editable.</em><br />\n<pre>" . $this->default_value."</pre>"; - return '<tr><td style="width:100%" class="unchangeable-variable-top" colspan="2">' . "\n" . $i . "</td></tr>\n" + return '<tr><td style="width:100%;" class="unchangeable-variable-top" colspan="2">' . "\n" . $i . "</td></tr>\n" . '<tr style="border-top: none;"><td class="unchangeable-variable-left" width="' . $tdwidth . '"> </td>'; } } @@ -2404,7 +2404,7 @@ $id = preg_replace("/\W/", "", $this->config_item_name); $group_name = preg_replace("/\W/", "", $title); $i = '<tr class="header" id="'.$id.'">'."\n"; - $i .= '<td class="part" style="width:100%;background-color:#eee" colspan="2">'."\n"; + $i .= '<td class="part" style="width:100%;background-color:#eee;" colspan="2">'."\n"; $i .= "<h2>" . $title . "</h2>\n " . nl2p($this->_get_description()) . "\n"; $i .= "<p><a href=\"javascript:toggle_group('$id')\" id=\"{$id}_text\">Hide options.</a></p>"; return $i . "</td>\n"; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-04 13:06:55
|
Revision: 10426 http://sourceforge.net/p/phpwiki/code/10426 Author: vargenau Date: 2021-08-04 13:06:49 +0000 (Wed, 04 Aug 2021) Log Message: ----------- Remove unused code Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-04 11:19:57 UTC (rev 10425) +++ trunk/configurator.php 2021-08-04 13:06:49 UTC (rev 10426) @@ -1607,17 +1607,6 @@ function _config_format($value) { return ''; - /* - $v = $this->get_config_item_name(); - // handle arrays: a|b --> a['b'] - if (strpos($v, '|')) { - list($a, $b) = explode('|', $v); - $v = sprintf("%s['%s']", $a, $b); - } - if (preg_match("/[\"']/", $value)) - $value = '"' . $value . '"'; - return sprintf("%s = \"%s\"", $v, $value); - */ } function get_config_item_name() @@ -1721,14 +1710,6 @@ return sprintf("%s = \"%s\"", $this->get_config_item_name(), $value); } } -class unchangeable_ini_set - extends unchangeable_variable -{ - function _config_format($value) - { - return ""; - } -} class _variable_selection extends _variable @@ -1872,7 +1853,6 @@ function _config_format($value) { - //return sprintf("define('%s', %s);", $this->get_config_item_name(), $value); return sprintf("%s = %s", $this->get_config_item_name(), $value); } @@ -1946,7 +1926,8 @@ if ($posted_value == $this->default_value) return "${n};" . $this->_config_format($posted_value); elseif ($posted_value == '') - return "${n};" . $this->_config_format(""); else + return "${n};" . $this->_config_format(""); + else return "${n}" . $this->_config_format($posted_value); } } @@ -2196,29 +2177,6 @@ } } -/* -class _ini_set -extends _variable { - function value() { - global $HTTP_POST_VARS; - if ($v = $HTTP_POST_VARS[$this->config_item_name]) - return $v; - else { - return ini_get($this->get_config_item_name); - } - } - function _config_format($value) { - return sprintf("ini_set('%s', '%s');", $this->get_config_item_name(), $value); - } - function _get_config_line($posted_value) { - if ($posted_value && ! $posted_value == $this->default_value) - return "\n" . $this->_config_format($posted_value); - else - return "\n;" . $this->_config_format($this->default_value); - } -} -*/ - class boolean_define extends _define { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-04 13:24:51
|
Revision: 10427 http://sourceforge.net/p/phpwiki/code/10427 Author: vargenau Date: 2021-08-04 13:24:48 +0000 (Wed, 04 Aug 2021) Log Message: ----------- Remove unused classes _variable_commented, _variable_selection_optional, _define_password_commented_optional, list_variable Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-04 13:06:49 UTC (rev 10426) +++ trunk/configurator.php 2021-08-04 13:24:48 UTC (rev 10427) @@ -1825,21 +1825,6 @@ } } -class _variable_commented - extends _variable -{ - function _get_config_line($posted_value) - { - if ($this->description) - $n = "\n"; - if ($posted_value == $this->default_value) - return "${n};" . $this->_config_format($posted_value); - elseif ($posted_value == '') - return "${n};" . $this->_config_format(""); else - return "${n}" . $this->_config_format($posted_value); - } -} - class numeric_define extends _define { @@ -1911,11 +1896,6 @@ { } -class _variable_selection_optional - extends _variable_selection -{ -} - class _define_selection_optional_commented extends _define_selection_optional { @@ -2010,11 +1990,6 @@ } } -class _define_password_commented_optional - extends _define_password_optional -{ -} - class _variable_password extends _variable { @@ -2053,32 +2028,6 @@ } } -class list_variable - extends _variable -{ - function _get_config_line($posted_value) - { - // split the phrase by any number of commas or space characters, - // which include " ", \r, \t, \n and \f - $list_values = preg_split("/[\s,]+/", $posted_value, -1, PREG_SPLIT_NO_EMPTY); - if ($list_values) - $list_values = join("|", $list_values); - return _variable::_get_config_line($list_values); - } - - function get_html() - { - $list_values = explode("|", $this->default_value); - $rows = max(3, count($list_values) + 1); - $list_values = join("\n", $list_values); - $ta = $this->get_config_item_header(); - $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" {$this->jscheck}>"; - $ta .= $list_values . "</textarea>"; - $ta .= "<p id=\"" . $this->get_config_item_id() . "\" style=\"color: green\">Input accepted.</p>"; - return $ta; - } -} - class list_define extends _define { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-04 14:25:36
|
Revision: 10431 http://sourceforge.net/p/phpwiki/code/10431 Author: vargenau Date: 2021-08-04 14:25:33 +0000 (Wed, 04 Aug 2021) Log Message: ----------- configurator.php: check default_value is an array Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-08-04 14:23:13 UTC (rev 10430) +++ trunk/configurator.php 2021-08-04 14:25:33 UTC (rev 10431) @@ -2212,8 +2212,12 @@ $n = ""; if ($this->description) $n = "\n"; - $default_value = key($this->default_value); - next($this->default_value); + if (is_array($this->default_value)) { + $default_value = key($this->default_value); + next($this->default_value); + } else { + $default_value = $this->default_value; + } if ($posted_value == $default_value) return "$n;" . $this->_config_format($posted_value); elseif ($posted_value == '') @@ -2233,7 +2237,7 @@ { function value() { - return; + return ""; } function get_config($posted_value) @@ -2365,13 +2369,10 @@ $timestamp = date('dS \of F, Y H:i:s'); - $config = " -; This is a local configuration file for PhpWiki. -; It was automatically generated by the configurator script -; on the $timestamp. -; -; $preamble -"; + $config = "; This is a local configuration file for PhpWiki.\n" + . "; It was automatically generated by the configurator script\n" + . "; on the $timestamp.\n" + . $preamble; $posted = $GLOBALS['HTTP_POST_VARS']; @@ -2406,7 +2407,7 @@ } } else { echo "<p>The configuration file could <b>not</b> be written.<br />\n", - " You should copy the above configuration to a file, ", + "You should copy the above configuration to a file, ", "and manually save it as <code><b>config/config.ini</b></code>.</p>\n"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2023-02-27 14:05:51
|
Revision: 11036 http://sourceforge.net/p/phpwiki/code/11036 Author: vargenau Date: 2023-02-27 14:05:49 +0000 (Mon, 27 Feb 2023) Log Message: ----------- "Creative Commons License 2.0" --> "Creative Commons Attribution 2.0 Generic" Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2022-12-16 14:48:42 UTC (rev 11035) +++ trunk/configurator.php 2023-02-27 14:05:49 UTC (rev 11036) @@ -1391,7 +1391,7 @@ <pre> COPYRIGHTPAGE_TITLE = \"GNU Free Documentation License\" COPYRIGHTPAGE_URL = \"https://www.gnu.org/copyleft/fdl.html\" - COPYRIGHTPAGE_TITLE = \"Creative Commons License 2.0\" + COPYRIGHTPAGE_TITLE = \"Creative Commons Attribution 2.0 Generic\" COPYRIGHTPAGE_URL = \"https://creativecommons.org/licenses/by/2.0/\"</pre> See https://creativecommons.org/learn/licenses/ for variations"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-29 10:11:25
|
Revision: 10385 http://sourceforge.net/p/phpwiki/code/10385 Author: vargenau Date: 2021-07-29 10:11:22 +0000 (Thu, 29 Jul 2021) Log Message: ----------- configurator.php: use CSS Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-07-28 17:12:38 UTC (rev 10384) +++ trunk/configurator.php 2021-07-29 10:11:22 UTC (rev 10385) @@ -56,7 +56,7 @@ * subsequent requests will fail. (POST to save the INI) */ -global $HTTP_POST_VARS, $tdwidth; +global $HTTP_POST_VARS; if (empty($_SERVER)) $_SERVER =& $GLOBALS['HTTP_SERVER_VARS']; if (empty($_GET)) $_GET =& $GLOBALS['HTTP_GET_VARS']; if (empty($_ENV)) $_ENV =& $GLOBALS['HTTP_ENV_VARS']; @@ -74,7 +74,6 @@ $scriptname = str_replace('configurator.php', 'index.php', $_SERVER["PHP_SELF"]); } -$tdwidth = 700; $config_file = (substr(PHP_OS, 0, 3) == 'WIN') ? 'config\\config.ini' : 'config/config.ini'; $fs_config_file = dirname(__FILE__) . (substr(PHP_OS, 0, 3) == 'WIN' ? '\\' : '/') . $config_file; if (isset($_POST['create'])) header('Location: ' . $configurator . '?show=_part1&create=1#create'); @@ -169,7 +168,6 @@ <title>Configuration tool for PhpWiki <?php echo $config_file ?></title> <style type="text/css" media="screen"> <!-- - /* TABLE { border: thin solid black } */ body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 80%; @@ -179,8 +177,13 @@ font-size: 120%; } + table { + border-spacing: 0; + } + td { border: thin solid black; + padding: 4px; } tr { @@ -203,7 +206,7 @@ td.instructions { background-color: #ffffee; - width: <?php echo $tdwidth ?>px; + width: 700px; color: inherit; } @@ -216,6 +219,7 @@ td.unchangeable-variable-left { border-top: none; background-color: #ffffee; + width: 700px; color: inherit; } @@ -380,8 +384,7 @@ $properties["Part Zero"] = new part('_part0', $SEPARATOR . "\n", " -Part Zero: (optional) -Latest Development and Tricky Options"); +Part Zero: Latest Development and Tricky Options"); if (defined('INCLUDE_PATH')) $include_path = INCLUDE_PATH; @@ -1742,9 +1745,8 @@ function get_instructions($title) { - global $tdwidth; $i = "<h3>" . $title . "</h3>\n " . nl2p($this->_get_description()) . "\n"; - return "<tr>\n<td width=\"$tdwidth\" class=\"instructions\">\n" . $i . "</td>\n"; + return "<tr>\n<td class=\"instructions\">\n" . $i . "</td>\n"; } function get_html() @@ -1781,11 +1783,10 @@ function get_instructions($title) { - global $tdwidth; $i = "<h3>" . $title . "</h3>\n " . nl2p($this->_get_description()) . "\n"; // $i .= "<em>Not editable.</em><br />\n<pre>" . $this->default_value."</pre>"; return '<tr><td style="width:100%;" class="unchangeable-variable-top" colspan="2">' . "\n" . $i . "</td></tr>\n" - . '<tr style="border-top: none;"><td class="unchangeable-variable-left" width="' . $tdwidth . '"> </td>'; + . '<tr style="border-top: none;"><td class="unchangeable-variable-left"> </td>'; } } @@ -2377,7 +2378,7 @@ return "${n};" . $this->_config_format($posted_value); elseif ($posted_value == '') return "${n};" . $this->_config_format('false'); else - return "${n}" . $this->_config_format($posted_value); + return "${n}" . $this->_config_format($posted_value); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-29 10:12:59
|
Revision: 10386 http://sourceforge.net/p/phpwiki/code/10386 Author: vargenau Date: 2021-07-29 10:12:57 +0000 (Thu, 29 Jul 2021) Log Message: ----------- configurator.php: use CSS Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-07-29 10:11:22 UTC (rev 10385) +++ trunk/configurator.php 2021-07-29 10:12:57 UTC (rev 10386) @@ -2599,7 +2599,7 @@ echo ' <form action="', $configurator, '" method="post"> <input type="hidden" name="action" value="make_config" /> -<table cellpadding="4" cellspacing="0"> +<table> '; while (list($property, $obj) = each($properties)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-29 10:22:13
|
Revision: 10387 http://sourceforge.net/p/phpwiki/code/10387 Author: vargenau Date: 2021-07-29 10:22:09 +0000 (Thu, 29 Jul 2021) Log Message: ----------- configurator.php: remove target=_new Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-07-29 10:12:57 UTC (rev 10386) +++ trunk/configurator.php 2021-07-29 10:22:09 UTC (rev 10387) @@ -348,19 +348,19 @@ * - Descriptive text will be changed into comments (preceeded by ; ) * for the final output to config.ini. * - * - Only a limited set of html is allowed: pre, dl dt dd; it will be + * - Only a limited set of HTML is allowed: pre, dl dt dd; it will be * stripped from the final output. * * - Line breaks and spacing will be preserved for the final output. * * - Double line breaks are automatically converted to paragraphs - * for the html version of the descriptive text. + * for the HTML version of the descriptive text. * * - Double-quotes and dollar signs in the descriptive text must be * escaped: \" and \$. Instead of escaping double-quotes you can use * single (') quotes for the enclosing quotes. * - * - Special characters like < and > must use html entities, + * - Special characters like < and > must use HTML entities, * they will be converted back to characters for the final output. */ @@ -523,8 +523,8 @@ $properties["Allow RawHtml Plugin if safe HTML code"] = new boolean_define_commented_optional('ENABLE_RAW_HTML_SAFE', '', " -If this is set, all unsafe html code is stripped automatically (experimental!) -See <a href=\"http://chxo.com/scripts/safe_html-test.php\" target=\"_new\">chxo.com/scripts/safe_html-test.php</a> +If this is set, all unsafe HTML code is stripped automatically (experimental!) +See <a href=\"http://chxo.com/scripts/safe_html-test.php\">chxo.com/scripts/safe_html-test.php</a> "); $properties["Maximum Upload Size"] = @@ -1354,7 +1354,7 @@ Search term used for automatic page classification by keyword extraction. Any links on a page to pages whose names match this search -will be used keywords in the keywords html meta tag. This is an aid to +will be used keywords in the keywords HTML meta tag. This is an aid to classification by search engines. The value of the match is used as the keyword. @@ -1363,7 +1363,7 @@ $properties["Author and Copyright Site Navigation Links"] = new _define_commented_optional('COPYRIGHTPAGE_TITLE', "GNU General Public License", " -These will be inserted as <link rel> tags in the html header of +These will be inserted as <link rel> tags in the HTML header of every page, for search engines and for browsers like Mozilla which take advantage of link rel site navigation. @@ -2419,7 +2419,7 @@ } } -// html utility functions +// HTML utility functions function nl2p($text) { preg_match_all("@\s*(<pre>.*?</pre>|<dl>.*?</dl>|.*?(?=\n\n|<pre>|<dl>|$))@s", @@ -2480,7 +2480,7 @@ $d = str_replace("</dd>", "", $d); $d = str_replace("<p>", "", $d); $d = str_replace("</p>", "", $d); - //restore html entities into characters + //restore HTML entities into characters // https://www.php.net/manual/en/function.htmlentities.php $trans = get_html_translation_table(HTML_ENTITIES); $trans = array_flip($trans); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-07-29 10:23:48
|
Revision: 10388 http://sourceforge.net/p/phpwiki/code/10388 Author: vargenau Date: 2021-07-29 10:23:46 +0000 (Thu, 29 Jul 2021) Log Message: ----------- configurator.php: mysqli Modified Paths: -------------- trunk/configurator.php Modified: trunk/configurator.php =================================================================== --- trunk/configurator.php 2021-07-29 10:22:09 UTC (rev 10387) +++ trunk/configurator.php 2021-07-29 10:23:46 UTC (rev 10388) @@ -657,9 +657,9 @@ </pre> For a MySQL database, the following should work: <pre> - mysql://user:password@host/databasename + mysqli://user:password@host/databasename </pre> -To connect over a unix socket, use something like +To connect over a Unix socket, use something like <pre> mysql://user:password@unix(/path/to/socket)/databasename </pre> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |