Add $validFormSubmitted

This commit is contained in:
Miraty 2021-12-06 20:56:56 +01:00
parent 2a6a4ad056
commit d818822ade

View File

@ -13,6 +13,8 @@ $params = array(
"mainColor" => DEFAULT_MAINCOLOR,
);
$validFormSubmitted = false;
if (
isset($_POST['txt'])
AND isset($_POST['redondancy'])
@ -56,6 +58,8 @@ if (
else
exit("Wrong value for mainColor");
$validFormSubmitted = true;
}
?>
@ -194,7 +198,7 @@ if (
<?php
if (!empty($params['txt'])) {
if ($validFormSubmitted) {
$rgbBgColor = array(
'r' => hexdec(substr($params['bgColor'],0,2)),