change settings

This commit is contained in:
Administrador de Red 2021-09-03 16:13:02 -03:00
commit c5825ed43b
3 changed files with 5 additions and 3 deletions

View File

@ -77,9 +77,11 @@ $app->get('/registrarse', function (Request $request, Response $response, array
if($this->settings["testing"]){
$recapsitekey = $this->settings["recaptcha"]["sitekeytest"];
}
$hoy=strtotime(date("Y-m-d H:i:s"));
$fechaCierre = strtotime($this->settings['close_registration']);
return $this->renderer->render($response, 'registration.html',
[
'closed' => $this->settings['close_registration'],
'closed' => $hoy>$fechaCierre,
'sitekey' => $recapsitekey
]);
});

View File

@ -5,7 +5,7 @@ return [
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
'debug' => true,
'testing' => false,
'close_registration' => false,
'close_registration' => "2021-09-08T23:59:00-0300",
// Renderer settings
'renderer' => [

View File

@ -10,7 +10,7 @@
{% set disabled="disabled" %}
<div class="alert alert-danger">
<strong>Registration has been closed!</strong><br/>
For any further questions, please contact: <a class="alert-link" href="mailto:ggdworkshop@cmat.edu.uy">ggdworkshop@cmat.edu.uy</a>
For any further questions, please contact: <a class="alert-link" href="mailto:clam2021@fing.edu.uy">clam2021@fing.edu.uy</a>
</div>
{% endif %}
<div class="row">