Erreur: impossible de communiquer avec la base de données.
Vérifiez les donnés du fichier data.php.
");
mysql_select_db("$dbdb");
//VERIFICATION DE L'EXISTENCE DES TABLES
$query="SELECT id FROM $table_agenda";
$result=mysql_query($query);
if (!$result)
{
die ("XLAgenda n'est pas encore installé.
Vous devez lancer l'installation automatique.
");
}
//INITALISATION DES VARIABLES
$texte="";
$request="";
//RECUPERATION DES DONNEES
$year=(isset($_REQUEST["year"])) ? $_REQUEST["year"] : Null;
$month=(isset($_REQUEST["month"])) ? $_REQUEST["month"] : Null;
$day=(isset($_REQUEST["day"])) ? $_REQUEST["day"] : Null;
$categorie=(isset($_REQUEST["categorie"])) ? $_REQUEST["categorie"] : Null;
$navigation=(isset($_REQUEST["navigation"])) ? $_REQUEST["navigation"] : Null;
$limit=(isset($_REQUEST["limit"])) ? $_REQUEST["limit"] : Null;
//PROTECTION POUR EVITER LES INJECTIONS SQL
$year=mysql_real_escape_string($year);
$month=mysql_real_escape_string($month);
$day=mysql_real_escape_string($day);
$categorie=mysql_real_escape_string($categorie);
$navigation=mysql_real_escape_string($navigation);
$limit=mysql_real_escape_string($limit);
//CONTROLE DE LA VALIDITE DES DONNEES
if (($year AND !is_numeric($year)) OR ($month AND !is_numeric($month)) OR ($day AND !is_numeric($day)) OR ($categorie AND !is_numeric($categorie)) OR ($navigation AND !is_numeric($navigation)) OR ($limit AND !is_numeric($limit)))
{
die ("Erreur : une variable possède une valeur interdite.
L'exécution est interrompue par mesure de sécurité.
");
}
//SI AUCUNE DATE N'A ETE SELECTIONNEE ON SELECTIONNE LA DATE DU JOUR
if (!$month)
{
$month = date("m");
//DANS CE CAS SEULS LES EVENEMENTS POSTERIEURS A LA DATE DU JOUR SERONT AFFICHES
$limit = "1";
}
if (!$year)
{
$year = date("Y");
}
//DETERMINATION DU NOM DU MOIS
if ($month == "1") $nom_mois="janvier";
if ($month == "2") $nom_mois="février";
if ($month == "3") $nom_mois="mars";
if ($month == "4") $nom_mois="avril";
if ($month == "5") $nom_mois="mai";
if ($month == "6") $nom_mois="juin";
if ($month == "7") $nom_mois="juillet";
if ($month == "8") $nom_mois="août";
if ($month == "9") $nom_mois="septembre";
if ($month == "10") $nom_mois="octobre";
if ($month == "11") $nom_mois="novembre";
if ($month == "12") $nom_mois="décembre";
//MEMORISATION DE LA DATE DU JOUR
$this_year = date("Y");
$this_month = date("m");
$this_day = date("d");
$this_date = date("Y-m-d");
//AFFICHAGE DE L'ENTETE
//include("header.php");
//CODE HTML DE LA PAGE
?>
|
|
| |
|
| |
|
| |
Siège CARE |
Cité Ain Allah Bt 414 C N° 04
Dély Brahim - Alger
Tél. 05 55 61 98 70
Tel/fax : 021 91 01 97
Site Web : www.care-dz.org |
|
|
| |
|
|
Contributions |
|
 |
|
What is the future of human resources and management in algeria? |
 |
|
What is the future of human resources and management in algeria? |
 |
|
Economy point de vue boukaila pdt care |
 |
|
la stratégie et les politiques
de relance et de développement industriel |
 |
|
Pour un patronat uni |
 |
|
L’Algérie et les investissements directs étrangers (ide) |
 |
|
Nouvelles mesures économiques : enjeux et scénarios |
 |

|
|
|
|
|
LE DEBAT DU MOIS |
| |
Quel est le rôle du privé dans la politique du gouvernement? |
| |
|
|
|
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Copyright
© 2009 www.care-dz.org All rights reserved.
Designed by |
|