21 lines
418 B
PHP
21 lines
418 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;
|
|
case "invalid_photo":
|
|
$alert["messageAlert"] = PHOTO_NOT_FOUND;
|
|
break;
|
|
default :
|
|
$alert['messageAlert'] = MESSAGE_ERREUR;
|
|
}
|
|
return $alert;
|
|
}
|