1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
PHP_TP3/lib/foncBase.php

28 lines
586 B
PHP
Raw Permalink Normal View History

2020-10-16 08:16:09 +02:00
<?php
function choixAlert($message)
{
$alert = array();
switch($message)
{
case 'connexion':
$alert['messageAlert'] = ERREUR_CONNECT_BDD;
break;
case 'login' :
$alert['messageAlert'] = ERREUR_INSCRIPTION;
break;
2020-10-16 09:55:16 +02:00
case "register":
$alert['messageAlert'] = ERREUR_REGISTER;
break;
2020-10-16 08:16:09 +02:00
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;
}