Merge pull request #7 from allerta-vvf/patch-custom_image
Custom access denied image
This commit is contained in:
commit
5e1e069818
|
@ -37,4 +37,7 @@ define( 'TECHNICAL_SUPPORT_KEY', '' );
|
||||||
define( 'DISTACCAMENTO', 'Distaccamento' );
|
define( 'DISTACCAMENTO', 'Distaccamento' );
|
||||||
|
|
||||||
/* Do you want to use a custom error message? (filename: custom-error.mp3) */
|
/* Do you want to use a custom error message? (filename: custom-error.mp3) */
|
||||||
define( 'USE_CUSTOM_ERROR_SOUND', false );
|
define( 'USE_CUSTOM_ERROR_SOUND', false );
|
||||||
|
|
||||||
|
/* Do you want to use a custom error message? (filename: custom-error.gif) */
|
||||||
|
define( 'USE_CUSTOM_ERROR_IMAGE', false );
|
Binary file not shown.
After Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 68 KiB |
|
@ -16,7 +16,7 @@ var sound = new Howl({
|
||||||
sound.play();
|
sound.play();
|
||||||
</script>
|
</script>
|
||||||
Possibile attività di hacking del software rilevata
|
Possibile attività di hacking del software rilevata
|
||||||
<img src='{{ urlsoftware }}/risorse/images/nonono.gif'></img>
|
<img src='{{ urlsoftware }}/risorse/images/{{ error_image }}'></img>
|
||||||
</div>
|
</div>
|
||||||
<h1>Abbiamo rilevato un' attività sospetta provenire dal tuo dispositivo o dalla tua rete.<br>Se non stavi facendo niente di brutto, e ritieni che questo sia un errore, la<br>preghiamo di contattare l'assistenza.</h1>
|
<h1>Abbiamo rilevato un' attività sospetta provenire dal tuo dispositivo o dalla tua rete.<br>Se non stavi facendo niente di brutto, e ritieni che questo sia un errore, la<br>preghiamo di contattare l'assistenza.</h1>
|
||||||
</body>
|
</body>
|
|
@ -16,18 +16,17 @@ var sound = new Howl({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
sound.play();
|
sound.play();
|
||||||
//var myVar = setInterval(function(){ sound.play(); }, 10000);
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
$("#err").delay(5000).fadeOut(300);
|
$("#err").delay(5000).fadeOut(300);
|
||||||
</script>
|
</script>
|
||||||
{{ errore.spiegazione }}
|
{{ errore.spiegazione }}
|
||||||
<img src='{{ urlsoftware }}/risorse/images/nonono.gif'></img>
|
<img src='{{ urlsoftware }}/risorse/images/{{ error_image }}'></img>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="container text-center" id="modulogin">
|
<div class="container text-center" id="modulogin">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<img alt="VVF" src="{{ urlsoftware }}/risorse/images/logo.jpg" class="img-resposive"><br><br><br>
|
<img alt="VVF" src="{{ urlsoftware }}/risorse/images/{{ error_image }}" class="img-resposive"><br><br><br>
|
||||||
<input type="text" name="nome" placeholder="Nome" required autocomplete="username" autofocus><br><br>
|
<input type="text" name="nome" placeholder="Nome" required autocomplete="username" autofocus><br><br>
|
||||||
<input type="password" name="password" placeholder="Password" required autocomplete="current-password"><br><br>
|
<input type="password" name="password" placeholder="Password" required autocomplete="current-password"><br><br>
|
||||||
<input type="checkbox" name="connesso" value='1' id="connesso" hidden checked><label hidden for='connesso'>Rimani Connesso</label><br>
|
<input type="checkbox" name="connesso" value='1' id="connesso" hidden checked><label hidden for='connesso'>Rimani Connesso</label><br>
|
||||||
|
|
|
@ -27,6 +27,11 @@ function loadtemplate($templatename, $data, $richiedilogin=true){
|
||||||
} else {
|
} else {
|
||||||
$data['error_sound'] = "error.mp3";
|
$data['error_sound'] = "error.mp3";
|
||||||
}
|
}
|
||||||
|
if(USE_CUSTOM_ERROR_IMAGE){
|
||||||
|
$data['error_image'] = "custom-error.gif";
|
||||||
|
} else {
|
||||||
|
$data['error_image'] = "error.gif";
|
||||||
|
}
|
||||||
$template = $twig->load($templatename);
|
$template = $twig->load($templatename);
|
||||||
echo $template->render($data);
|
echo $template->render($data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue