Add $validFormSubmitted
This commit is contained in:
parent
2a6a4ad056
commit
d818822ade
@ -13,6 +13,8 @@ $params = array(
|
|||||||
"mainColor" => DEFAULT_MAINCOLOR,
|
"mainColor" => DEFAULT_MAINCOLOR,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$validFormSubmitted = false;
|
||||||
|
|
||||||
if (
|
if (
|
||||||
isset($_POST['txt'])
|
isset($_POST['txt'])
|
||||||
AND isset($_POST['redondancy'])
|
AND isset($_POST['redondancy'])
|
||||||
@ -56,6 +58,8 @@ if (
|
|||||||
else
|
else
|
||||||
exit("Wrong value for mainColor");
|
exit("Wrong value for mainColor");
|
||||||
|
|
||||||
|
$validFormSubmitted = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@ -194,7 +198,7 @@ if (
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!empty($params['txt'])) {
|
if ($validFormSubmitted) {
|
||||||
|
|
||||||
$rgbBgColor = array(
|
$rgbBgColor = array(
|
||||||
'r' => hexdec(substr($params['bgColor'],0,2)),
|
'r' => hexdec(substr($params['bgColor'],0,2)),
|
||||||
|
Loading…
Reference in New Issue
Block a user