|
From: <var...@us...> - 2021-08-09 08:25:50
|
Revision: 10458
http://sourceforge.net/p/phpwiki/code/10458
Author: vargenau
Date: 2021-08-09 08:25:48 +0000 (Mon, 09 Aug 2021)
Log Message:
-----------
configurator.php: avoid backslashes
Modified Paths:
--------------
trunk/configurator.php
Modified: trunk/configurator.php
===================================================================
--- trunk/configurator.php 2021-08-06 15:32:38 UTC (rev 10457)
+++ trunk/configurator.php 2021-08-09 08:25:48 UTC (rev 10458)
@@ -1658,7 +1658,7 @@
$size = strlen($this->default_value) > 45 ? 90 : 50;
return $this->get_config_item_header() .
"<input type=\"text\" size=\"$size\" name=\"" . $this->get_config_item_name()
- . "\" value=\"" . htmlspecialchars($this->default_value) . "\" " . $this->jscheck . " />"
+ . '" value="' . htmlspecialchars($this->default_value) . '" ' . $this->jscheck . " />"
. "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
}
}
@@ -1779,7 +1779,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>";
}
}
@@ -1823,7 +1823,7 @@
{
$s = $this->get_config_item_header()
. "<input type=\"text\" size=\"50\" name=\"" . $this->get_config_item_name()
- . "\" value=\"" . $this->default_value . "\" $this->jscheck />";
+ . '" value="' . $this->default_value . '" ' . $this->jscheck . " />";
if (empty($this->default_value))
return $s . "<p id=\"" . $this->get_config_item_id() . "\" class=\"red\">Cannot be empty.</p>";
else
@@ -1983,8 +1983,8 @@
$GLOBALS['properties']["Encrypted Passwords"]->value();
if (empty($value))
$encrypted = false;
- $s .= "<input type=\"" . ($encrypted ? "text" : "password") . "\" name=\"" . $this->get_config_item_name()
- . "\" value=\"" . $value . "\" $this->jscheck />";
+ $s .= '<input type="' . ($encrypted ? "text" : "password") . '" name="' . $this->get_config_item_name()
+ . '" value="' . $value . '" ' . $this->jscheck . " />";
return $s;
}
}
@@ -2015,8 +2015,8 @@
$GLOBALS['properties']["Encrypted Passwords"]->value();
if (empty($value))
$encrypted = false;
- $s .= "<input type=\"" . ($encrypted ? "text" : "password") . "\" name=\"" . $this->get_config_item_name()
- . "\" value=\"" . $value . "\" $this->jscheck />"
+ $s .= '<input type="' . ($encrypted ? "text" : "password") . '" name="' . $this->get_config_item_name()
+ . '" 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>";
@@ -2046,7 +2046,8 @@
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 .= '<textarea cols="18" rows="' . $rows . '" name="';
+ $ta .= $this->get_config_item_name() . '" ' . $this->jscheck . '>';
$ta .= $list_values . "</textarea>";
$ta .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
return $ta;
@@ -2085,7 +2086,8 @@
}
$rows = max(3, $count + 1);
$ta = $this->get_config_item_header();
- $ta .= "<textarea cols=\"18\" rows=\"" . $rows . "\" name=\"" . $this->get_config_item_name() . "\" $this->jscheck>";
+ $ta .= '<textarea cols="18" rows="' . $rows . '" name="';
+ $ta .= $this->get_config_item_name() . '" ' . $this->jscheck . '>';
$ta .= $list_values . "</textarea>";
$ta .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
return $ta;
@@ -2122,7 +2124,8 @@
$list_values = join(" : \n", $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>";
+ $ta .= '<textarea cols="18" rows="' . $rows . '" name="';
+ $ta .= $this->get_config_item_name() . '" ' . $this->jscheck . '>';
$ta .= $list_values . "</textarea>";
$ta .= "<p id=\"" . $this->get_config_item_id() . "\" class=\"green\">Input accepted.</p>";
return $ta;
@@ -2175,7 +2178,7 @@
{
$output = $this->get_config_item_header();
$name = $this->get_config_item_name();
- $output .= '<select name="' . $name . "\" $this->jscheck>\n";
+ $output .= '<select name="' . $name . '" ' . $this->jscheck . ">\n";
$values = $this->values;
$default_value = $this->default_value ? 'true' : 'false';
/* There can usually only be two options, there can be
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|