Browse Source

Add $validFormSubmitted

main
Miraty 6 months ago
parent
commit
d818822ade
  1. 6
      index.php

6
index.php

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

Loading…
Cancel
Save