25 lines
504 B
PHP
25 lines
504 B
PHP
|
<?php
|
||
|
|
||
|
function choixAlert($message)
|
||
|
{
|
||
|
$alert = array();
|
||
|
switch($message)
|
||
|
{
|
||
|
case 'connexion':
|
||
|
$alert['messageAlert'] = ERREUR_CONNECT_BDD;
|
||
|
break;
|
||
|
case 'login' :
|
||
|
$alert['messageAlert'] = ERREUR_INSCRIPTION;
|
||
|
break;
|
||
|
case 'query' :
|
||
|
$alert['messageAlert'] = ERREUR_QUERY_BDD;
|
||
|
break;
|
||
|
case 'url_non_valide' :
|
||
|
$alert['messageAlert'] = TEXTE_PAGE_404;
|
||
|
break;
|
||
|
default :
|
||
|
$alert['messageAlert'] = MESSAGE_ERREUR;
|
||
|
}
|
||
|
return $alert;
|
||
|
}
|