change settings
This commit is contained in:
commit
c5825ed43b
@ -77,9 +77,11 @@ $app->get('/registrarse', function (Request $request, Response $response, array
|
|||||||
if($this->settings["testing"]){
|
if($this->settings["testing"]){
|
||||||
$recapsitekey = $this->settings["recaptcha"]["sitekeytest"];
|
$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',
|
return $this->renderer->render($response, 'registration.html',
|
||||||
[
|
[
|
||||||
'closed' => $this->settings['close_registration'],
|
'closed' => $hoy>$fechaCierre,
|
||||||
'sitekey' => $recapsitekey
|
'sitekey' => $recapsitekey
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
@ -5,7 +5,7 @@ return [
|
|||||||
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
|
'addContentLengthHeader' => false, // Allow the web server to send the content-length header
|
||||||
'debug' => true,
|
'debug' => true,
|
||||||
'testing' => false,
|
'testing' => false,
|
||||||
'close_registration' => false,
|
'close_registration' => "2021-09-08T23:59:00-0300",
|
||||||
|
|
||||||
// Renderer settings
|
// Renderer settings
|
||||||
'renderer' => [
|
'renderer' => [
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
{% set disabled="disabled" %}
|
{% set disabled="disabled" %}
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<strong>Registration has been closed!</strong><br/>
|
<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>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
Loading…
Reference in New Issue
Block a user