|
From: <var...@us...> - 2021-08-04 16:57:11
|
Revision: 10435
http://sourceforge.net/p/phpwiki/code/10435
Author: vargenau
Date: 2021-08-04 16:57:05 +0000 (Wed, 04 Aug 2021)
Log Message:
-----------
configurator.php: remove unnecessary braces; use size
Modified Paths:
--------------
trunk/configurator.php
Modified: trunk/configurator.php
===================================================================
--- trunk/configurator.php 2021-08-04 16:36:04 UTC (rev 10434)
+++ trunk/configurator.php 2021-08-04 16:57:05 UTC (rev 10435)
@@ -1663,8 +1663,9 @@
{
$size = strlen($this->default_value) > 45 ? 90 : 50;
return $this->get_config_item_header() .
- "<input type=\"text\" size=\"50\" name=\"" . $this->get_config_item_name() . "\" value=\"" . htmlspecialchars($this->default_value) . "\" " .
- $this->jscheck . " />" . "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
+ "<input type=\"text\" size=\"$size\" name=\"" . $this->get_config_item_name()
+ . "\" value=\"" . htmlspecialchars($this->default_value) . "\" " . $this->jscheck . " />"
+ . "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
}
}
@@ -1784,7 +1785,7 @@
$size = strlen($this->default_value) > 45 ? 90 : 50;
return $this->get_config_item_header()
. "<input type=\"text\" size=\"$size\" name=\"" . htmlentities($this->get_config_item_name())
- . "\" value=\"" . htmlentities($this->default_value) . "\" {$this->jscheck} />"
+ . "\" value=\"" . htmlentities($this->default_value) . "\" $this->jscheck />"
. "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
}
}
@@ -2027,7 +2028,7 @@
$this->default_value = $new_password;
$s .= "Created password: <strong>$new_password</strong><br /> <br />";
}
- // dont re-encrypt already encrypted passwords
+ // do not re-encrypt already encrypted passwords
$value = $this->value();
$encrypted = !empty($GLOBALS['properties']["Encrypted Passwords"]) and
$GLOBALS['properties']["Encrypted Passwords"]->value();
@@ -2034,7 +2035,7 @@
if (empty($value))
$encrypted = false;
$s .= "<input type=\"" . ($encrypted ? "text" : "password") . "\" name=\"" . $this->get_config_item_name()
- . "\" value=\"" . $value . "\" {$this->jscheck} />"
+ . "\" value=\"" . $value . "\" $this->jscheck />"
. " <input type=\"submit\" name=\"create\" value=\"Create Random Password\" />";
if (empty($value))
$s .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"red\">Cannot be empty.</p>";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|