Add $validFormSubmitted

This commit is contained in:
Miraty 2021-12-06 20:56:56 +01:00
parent 2a6a4ad056
commit d818822ade
1 changed files with 5 additions and 1 deletions

View File

@ -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)),