|
From: <var...@us...> - 2021-08-04 14:20:59
|
Revision: 10428
http://sourceforge.net/p/phpwiki/code/10428
Author: vargenau
Date: 2021-08-04 14:20:52 +0000 (Wed, 04 Aug 2021)
Log Message:
-----------
configurator.php: always define variable $n
Modified Paths:
--------------
trunk/configurator.php
Modified: trunk/configurator.php
===================================================================
--- trunk/configurator.php 2021-08-04 13:24:48 UTC (rev 10427)
+++ trunk/configurator.php 2021-08-04 14:20:52 UTC (rev 10428)
@@ -1679,9 +1679,10 @@
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
- return "${n}" . $this->default_value;
+ return "$n" . $this->default_value;
}
function get_instructions($title)
@@ -1698,11 +1699,12 @@
{
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if (!$posted_value)
$posted_value = $this->default_value;
- return "${n}" . $this->_config_format($posted_value);
+ return "$n" . $this->_config_format($posted_value);
}
function _config_format($value)
@@ -1762,12 +1764,13 @@
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == '')
- return "${n};" . $this->_config_format("");
+ return "$n;" . $this->_config_format("");
else
- return "${n}" . $this->_config_format($posted_value);
+ return "$n" . $this->_config_format($posted_value);
}
function get_html()
@@ -1785,13 +1788,15 @@
{
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == $this->default_value)
- return "${n};" . $this->_config_format($posted_value);
+ return "$n;" . $this->_config_format($posted_value);
elseif ($posted_value == '')
- return "${n};" . $this->_config_format(""); else
- return "${n}" . $this->_config_format($posted_value);
+ return "$n;" . $this->_config_format("");
+ else
+ return "$n" . $this->_config_format($posted_value);
}
}
@@ -1843,12 +1848,13 @@
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == '')
- return "${n};" . $this->_config_format('0');
+ return "$n;" . $this->_config_format('0');
else
- return "${n}" . $this->_config_format($posted_value);
+ return "$n" . $this->_config_format($posted_value);
}
}
@@ -1862,13 +1868,15 @@
{
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == $this->default_value)
- return "${n};" . $this->_config_format($posted_value);
+ return "$n;" . $this->_config_format($posted_value);
elseif ($posted_value == '')
- return "${n};" . $this->_config_format('0'); else
- return "${n}" . $this->_config_format($posted_value);
+ return "$n;" . $this->_config_format('0');
+ else
+ return "$n" . $this->_config_format($posted_value);
}
}
@@ -1901,14 +1909,15 @@
{
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == $this->default_value)
- return "${n};" . $this->_config_format($posted_value);
+ return "$n;" . $this->_config_format($posted_value);
elseif ($posted_value == '')
- return "${n};" . $this->_config_format("");
+ return "$n;" . $this->_config_format("");
else
- return "${n}" . $this->_config_format($posted_value);
+ return "$n" . $this->_config_format($posted_value);
}
}
@@ -1926,10 +1935,11 @@
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == '') {
- $p = "${n};" . $this->_config_format("");
+ $p = "$n;" . $this->_config_format("");
$p .= "\n; If you used the passencrypt.php utility to encode the password";
$p .= "\n; then uncomment this line:";
$p .= "\n;ENCRYPTED_PASSWD = true";
@@ -1942,7 +1952,7 @@
16 * CRYPT_BLOWFISH);
// generate an encrypted password
$crypt_pass = crypt($posted_value, rand_ascii($salt_length));
- $p = "${n}" . $this->_config_format($crypt_pass);
+ $p = "$n" . $this->_config_format($crypt_pass);
return $p . "\nENCRYPTED_PASSWD = true";
}
}
@@ -1966,12 +1976,13 @@
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
if ($posted_value == '') {
- return "${n};" . $this->_config_format("");
+ return "$n;" . $this->_config_format("");
} else {
- return "${n}" . $this->_config_format($posted_value);
+ return "$n" . $this->_config_format($posted_value);
}
}
@@ -2153,9 +2164,10 @@
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
- return "${n}" . $this->_config_format($posted_value);
+ return "$n" . $this->_config_format($posted_value);
}
function _config_format($value)
@@ -2197,15 +2209,17 @@
{
function _get_config_line($posted_value)
{
+ $n = "";
if ($this->description)
$n = "\n";
$default_value = key($this->default_value);
next($this->default_value);
if ($posted_value == $default_value)
- return "${n};" . $this->_config_format($posted_value);
+ 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('false');
+ else
+ 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.
|