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">
|
||||
<?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">
|
||||
<?php
|
||||
// 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>
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<script src="https://js.stripe.com/v3/"></script>
|
||||
|
@ -27,6 +27,9 @@ $SETTINGS = [
|
||||
],
|
||||
// Name of the app.
|
||||
"site_title" => "Camp Portal",
|
||||
// Set to true to disable registration.
|
||||
"disable_registration" => false,
|
||||
// Stripe keys for payment processing
|
||||
"stripe" => [
|
||||
"pubkey" => "",
|
||||
"seckey" => ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user