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. |