Unverified Commit fab455b9 authored by dmorley's avatar dmorley
Browse files

fix my mistakes

parent 563c63fb
...@@ -11,7 +11,7 @@ if (!($_domain = $_GET['domain'] ?? null)) { ...@@ -11,7 +11,7 @@ if (!($_domain = $_GET['domain'] ?? null)) {
$_email = $_GET['email'] ?? ''; $_email = $_GET['email'] ?? '';
$_podmin_statement = $_GET['podmin_statement'] ?? ''; $_podmin_statement = $_GET['podmin_statement'] ?? '';
$_podmin_notify = $_GET['podmin_notify'] ?? ''; $_podmin_notify = $_GET['podmin_notify'] ?? 0;
$_domain = strtolower($_domain); $_domain = strtolower($_domain);
if (!filter_var(gethostbyname($_domain), FILTER_VALIDATE_IP)) { if (!filter_var(gethostbyname($_domain), FILTER_VALIDATE_IP)) {
...@@ -75,7 +75,7 @@ if (stristr($outputssl, 'openRegistrations')) { ...@@ -75,7 +75,7 @@ if (stristr($outputssl, 'openRegistrations')) {
echo 'Your pod has ssl and is valid<br>'; echo 'Your pod has ssl and is valid<br>';
$publickey = md5(uniqid($domain, true)); $publickey = md5(uniqid($domain, true));
$sql = 'INSERT INTO pods (domain, email, podmin_statement, $podmin_notify, publickey) VALUES ($1, $2, $3, $4, $5)'; $sql = 'INSERT INTO pods (domain, email, podmin_statement, podmin_notify, publickey) VALUES ($1, $2, $3, $4, $5)';
$result = pg_query_params($dbh, $sql, [$_domain, $_email, $_podmin_statement, $_podmin_notify, $publickey]); $result = pg_query_params($dbh, $sql, [$_domain, $_email, $_podmin_statement, $_podmin_notify, $publickey]);
$result || die('Error in SQL query: ' . pg_last_error()); $result || die('Error in SQL query: ' . pg_last_error());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment