Add disable_registration setting
This commit is contained in:
parent
c46d82bc07
commit
717aee90db
@ -20,6 +20,24 @@ if (isset($_SESSION['familyid']) && $database->has('families', ['familyid' => $_
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="container mt-4">
|
<div class="container mt-4">
|
||||||
|
<?php
|
||||||
|
if (!empty($SETTINGS["disable_registration"]) && $SETTINGS["disable_registration"] == true) {
|
||||||
|
?>
|
||||||
|
<div class="card mb-4 bg-green text-light">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="d-flex flex-wrap justify-content-around">
|
||||||
|
<div class="ml-auto mr-auto pl-4 align-self-center text-center">
|
||||||
|
<h1>Day Camp Registration</h1>
|
||||||
|
|
||||||
|
<h3>Online registration for Day Camp is closed.</h3>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
<form action="actions/submit.php" method="post" id="registrationform">
|
<form action="actions/submit.php" method="post" id="registrationform">
|
||||||
<?php
|
<?php
|
||||||
// Add a hidden form element, to detect if the renewal session
|
// Add a hidden form element, to detect if the renewal session
|
||||||
@ -190,6 +208,9 @@ if (isset($_SESSION['familyid']) && $database->has('families', ['familyid' => $_
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="https://js.stripe.com/v3/"></script>
|
<script src="https://js.stripe.com/v3/"></script>
|
||||||
|
@ -27,6 +27,9 @@ $SETTINGS = [
|
|||||||
],
|
],
|
||||||
// Name of the app.
|
// Name of the app.
|
||||||
"site_title" => "Camp Portal",
|
"site_title" => "Camp Portal",
|
||||||
|
// Set to true to disable registration.
|
||||||
|
"disable_registration" => false,
|
||||||
|
// Stripe keys for payment processing
|
||||||
"stripe" => [
|
"stripe" => [
|
||||||
"pubkey" => "",
|
"pubkey" => "",
|
||||||
"seckey" => ""
|
"seckey" => ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user