19 lines
332 B
PHP
19 lines
332 B
PHP
<?php
|
|
|
|
function choixAlert($message)
|
|
{
|
|
$alert = array();
|
|
switch($message)
|
|
{
|
|
case 'query' :
|
|
$alert['messageAlert'] = ERREUR_QUERY;
|
|
break;
|
|
case 'url_non_valide' :
|
|
$alert['messageAlert'] = TEXTE_PAGE_404;
|
|
break;
|
|
default :
|
|
$alert['messageAlert'] = MESSAGE_ERREUR;
|
|
}
|
|
return $alert;
|
|
}
|
|
|