Commit 5235b0af authored by Ayolo's avatar Ayolo
Browse files

bleh

parent 96c06ab4
......@@ -2,7 +2,7 @@
/* Copyright 2005,2006
* - Julien Etelain < julien at pmad dot net >
*
* Ce fichier fait partie du site de l'Association des Étudiants de
* Ce fichier fait partie du site de l'Association des Étudiants de
* l'UTBM, http://ae.utbm.fr.
*
* This program is free software; you can redistribute it and/or
......@@ -34,29 +34,29 @@ $site->start_page("none","Erreur 403");
if ( !$site->user->is_valid() )
{
$cts = new contents("Veuillez vous connecter pour accéder à  la page demandée");
$cts = new contents("Veuillez vous connecter pour accéder à  la page demandée");
if ( $_SESSION['session_redirect'] )
$cts->add_paragraph("Vous serez automatiquement redirigé vers la page que vous avez demandé.");
if ( $_SESSION['session_redirect'] )
$cts->add_paragraph("Vous serez automatiquement redirigé vers la page que vous avez demandé.");
$frm = new form("connect2","connect.php",true,"POST","Connexion");
$frm->add_select_field("domain","Connexion",array("utbm"=>"UTBM","assidu"=>"Assidu","id"=>"ID","autre"=>"Autre","alias"=>"Alias"));
$frm->add_text_field("username","Utilisateur","prenom.nom","",27);
$frm->add_password_field("password","Mot de passe","","",27);
$frm->add_submit("connectbtn2","Se connecter");
$frm = new form("connect2","connect.php",true,"POST","Connexion");
$frm->add_select_field("domain","Connexion",array("utbm"=>"UTBM","assidu"=>"Assidu","id"=>"ID","autre"=>"Autre","alias"=>"Alias"));
$frm->add_text_field("username","Utilisateur","prenom.nom","",27);
$frm->add_password_field("password","Mot de passe","","",27);
$frm->add_submit("connectbtn2","Se connecter");
$cts->add($frm,true);
$cts->add($frm,true);
$site->add_contents($cts);
$site->add_contents($cts);
}
else
{
/* TODO à traiter les reasons du 403 */
if ($_REQUEST['reason'] != "reserved" && $_REQUEST['reason'] != "reservedutbm")
$site->add_contents(new error("Accés refusé (403)",$_REQUEST['reason']));
else
$site->add_contents(new error("Accés refusé (403)","Vous n'avez pas les droits requis pour accéder à  cette page."));
/* TODO à traiter les reasons du 403 */
if ($_REQUEST['reason'] != "reserved" && $_REQUEST['reason'] != "reservedutbm")
$site->add_contents(new error("Accés refusé (403)",$_REQUEST['reason']));
else
$site->add_contents(new error("Accés refusé (403)","Vous n'avez pas les droits requis pour accéder à  cette page."));
}
$site->end_page();
......
......@@ -37,5 +37,4 @@ $site->start_page("none","Erreur 404");
$site->add_contents(new error("Page inconnue (404)","Merci de vérifier le lien que vous avez emprunté"));
$site->end_page();
?>
......@@ -48,15 +48,15 @@ if (date("m-d") < "02-15")
else
{
if (date("m-d") < "08-15")
{
$date1 = date("Y") . "-08-15";
$date2 = date("Y") + 1 . "-02-15";
}
{
$date1 = date("Y") . "-08-15";
$date2 = date("Y") + 1 . "-02-15";
}
else
{
$date1 = date("Y") + 1 . "-02-15";
$date2 = date("Y") + 1 . "-08-15";
}
{
$date1 = date("Y") + 1 . "-02-15";
$date2 = date("Y") + 1 . "-08-15";
}
}
$site->start_page ("none", "Gestion des cotisations");
......@@ -266,7 +266,7 @@ elseif ( $_REQUEST["action"] == "savecotiz" )
$user->droit_image = $_REQUEST["droit"]==true;
$user->sexe = $_REQUEST['sexe'];
$user->surnom = $_REQUEST['surnom'];
$user->date_naissance = $_REQUEST['date_naissance'];
$user->date_naissance = strtotime($_REQUEST['date_naissance']);
$user->addresse = $_REQUEST['addresse'];
$ville = new ville($site->db);
$pays = new pays($site->db);
......
......@@ -38,40 +38,40 @@ $asso = new asso($site->db,$site->dbrw);
if ( ($_REQUEST['action'] == "addasso") && $site->user->is_in_group("gestion_ae") )
{
$asso_parent = new asso($site->db);
if ( !$_REQUEST['nom'] || !$_REQUEST['nom_unix'] )
{
$Error = "Un ou plusieurs champs sont incomplets.";
}
else
{
if ( $_REQUEST['asso_parent'] )
{
$asso_parent->load_by_id($_REQUEST['asso_parent']);
if ( $asso_parent->id < 1 )
$asso_parent->id = null;
}
else
$asso_parent->id = null;
$asso_parent = new asso($site->db);
if ( !$_REQUEST['nom'] || !$_REQUEST['nom_unix'] )
{
$Error = "Un ou plusieurs champs sont incomplets.";
}
else
{
if ( $_REQUEST['asso_parent'] )
{
$asso_parent->load_by_id($_REQUEST['asso_parent']);
if ( $asso_parent->id < 1 )
$asso_parent->id = null;
}
else
$asso_parent->id = null;
if ( $GLOBALS["is_using_ssl"] )
$asso->add_asso($_REQUEST['nom'],$_REQUEST['nom_unix'],$asso_parent->id,$_REQUEST["adresse"],$_REQUEST['email'],$_REQUEST['siteweb'],$_REQUEST['login_email'],$_REQUEST['passwd_email'],isset($_REQUEST['distinct_benevole']));
$asso->add_asso($_REQUEST['nom'],$_REQUEST['nom_unix'],$asso_parent->id,$_REQUEST["adresse"],$_REQUEST['email'],$_REQUEST['siteweb'],$_REQUEST['login_email'],$_REQUEST['passwd_email'],isset($_REQUEST['distinct_benevole']));
else
$asso->add_asso($_REQUEST['nom'],$_REQUEST['nom_unix'],$asso_parent->id,$_REQUEST["adresse"],$_REQUEST['email'],$_REQUEST['siteweb'],null,null,isset($_REQUEST['distinct_benevole']));
}
$asso->add_asso($_REQUEST['nom'],$_REQUEST['nom_unix'],$asso_parent->id,$_REQUEST["adresse"],$_REQUEST['email'],$_REQUEST['siteweb'],null,null,isset($_REQUEST['distinct_benevole']));
}
}
else if ( isset($_REQUEST["id_asso"]) )
{
$asso_parent = new asso($site->db);
$asso->load_by_id($_REQUEST["id_asso"]);
if ( $asso->id < 1 )
{
$site->error_not_found();
exit();
}
// Correction du vocabulaire
$asso_parent = new asso($site->db);
$asso->load_by_id($_REQUEST["id_asso"]);
if ( $asso->id < 1 )
{
$site->error_not_found();
exit();
}
// Correction du vocabulaire
if ( !is_null($asso->id_parent) )
{
$GLOBALS['ROLEASSO'][ROLEASSO_PRESIDENT] = "Responsable";
......@@ -83,8 +83,8 @@ else if ( isset($_REQUEST["id_asso"]) )
$GLOBALS['ROLEASSO'][ROLEASSO_VICEPRESIDENT] = "Vice-président";
}
if ( $site->user->is_in_group("gestion_ae") || $asso->is_member_role( $site->user->id, ROLEASSO_VICEPRESIDENT ) )
{
if ( $site->user->is_in_group("gestion_ae") || $asso->is_member_role( $site->user->id, ROLEASSO_VICEPRESIDENT ) )
{
if ( $_REQUEST['action'] == "applyedit" )
{
......@@ -100,8 +100,8 @@ else if ( isset($_REQUEST["id_asso"]) )
}
else
{
if ( $site->user->is_in_group("gestion_ae") )
{
if ( $site->user->is_in_group("gestion_ae") )
{
$asso_parent->load_by_id($_REQUEST['asso_parent']);
if ( $GLOBALS["is_using_ssl"] )
......@@ -139,10 +139,10 @@ else if ( isset($_REQUEST["id_asso"]) )
$_REQUEST['page'] = "edit";
}
}
}
if ( ($_REQUEST['page'] == "edit" ) && ($site->user->is_in_group("gestion_ae") || $asso->is_member_role($site->user->id, ROLEASSO_VICEPRESIDENT)))
{
if ( ($_REQUEST['page'] == "edit" ) && ($site->user->is_in_group("gestion_ae") || $asso->is_member_role($site->user->id, ROLEASSO_VICEPRESIDENT)))
{
$site->start_page("presentation",$asso->nom);
$cts = new contents($asso->get_html_path());
$cts->add(new tabshead($asso->get_tabs($site->user),"info"));
......@@ -154,7 +154,7 @@ else if ( isset($_REQUEST["id_asso"]) )
$frm->error($Error);
if ( $site->user->is_in_group("gestion_ae") )
{
$frm->add_text_field("nom","Nom de l'association",$asso->nom,true);
$frm->add_text_field("nom","Nom de l'association",$asso->nom,true);
$frm->add_entity_select("asso_parent", "Association parent", $site->db, "asso",$asso->id_parent,true);
}
if ( $site->user->is_in_group("root") )
......@@ -163,7 +163,7 @@ else if ( isset($_REQUEST["id_asso"]) )
$frm->add_text_field("nom_unix","Nom 'unix' (lettres et chiffres sans espaces)",$asso->nom_unix,true);
}
$frm->add_text_area("adresse","Adresse postale",$asso->adresse_postale);
$frm->add_text_area("adresse","Adresse postale",$asso->adresse_postale);
$frm->add_text_field("email","Email",$asso->email);
$frm->add_text_field("siteweb","Site web",$asso->siteweb);
......@@ -196,15 +196,15 @@ else if ( isset($_REQUEST["id_asso"]) )
$site->add_contents($cts);
$site->end_page();
exit();
}
}
$site->add_css("css/doku.css");
$site->start_page("presentation",$asso->nom);
$site->start_page("presentation",$asso->nom);
$cts = new contents($asso->get_html_path());
if ( $site->user->is_in_group("moderateur_site") || $asso->is_member_role( $site->user->id, ROLEASSO_MEMBREBUREAU ) || $site->user->is_in_group("root") )
$cts->set_toolbox(new toolbox(array("article.php?page=edit&name=activites:".$asso->nom_unix=>"Editer Présentation","asso.php?page=edit&id_asso=".$asso->id=>"Editer")));
$cts = new contents($asso->get_html_path());
if ( $site->user->is_in_group("moderateur_site") || $asso->is_member_role( $site->user->id, ROLEASSO_MEMBREBUREAU ) || $site->user->is_in_group("root") )
$cts->set_toolbox(new toolbox(array("article.php?page=edit&name=activites:".$asso->nom_unix=>"Editer Présentation","asso.php?page=edit&id_asso=".$asso->id=>"Editer")));
$cts->add(new tabshead($asso->get_tabs($site->user),"info"));
$cts->add(new tabshead($asso->get_tabs($site->user),"info"));
if ( $_REQUEST["action"] == "selfenroll" && !is_null($asso->id_parent) )
......@@ -225,39 +225,39 @@ else if ( isset($_REQUEST["id_asso"]) )
}
/*$img = "/var/img/logos/".$asso->nom_unix.".small.png";
if ( file_exists("/var/www/ae/www/ae2".$img) )
$cts->add(new image($asso->nom, $img, "newsimg"));*/
/*$img = "/var/img/logos/".$asso->nom_unix.".small.png";
if ( file_exists("/var/www/ae/www/ae2".$img) )
$cts->add(new image($asso->nom, $img, "newsimg"));*/
$page = new page($site->db);
$page->load_by_pagename("activites:".$asso->nom_unix);
if ( $page->id > 0 )
{
$cts->add_title(2,"Pr&eacute;sentation");
$cts->add($page->get_contents());
$page = new page($site->db);
$page->load_by_pagename("activites:".$asso->nom_unix);
if ( $page->id > 0 )
{
$cts->add_title(2,"Pr&eacute;sentation");
$cts->add($page->get_contents());
}
elseif ( $site->user->is_in_group("moderateur_site") )
$cts->add_paragraph("<a href=\"article.php?page=edit&amp;name=activites:".$asso->nom_unix."\">Creer l'article de pr&eacute;sentation</a>");
}
elseif ( $site->user->is_in_group("moderateur_site") )
$cts->add_paragraph("<a href=\"article.php?page=edit&amp;name=activites:".$asso->nom_unix."\">Creer l'article de pr&eacute;sentation</a>");
$req = new requete($site->db,
"SELECT `id_asso`, `nom_asso`, `nom_unix_asso` " .
"FROM `asso` WHERE `id_asso_parent`='".$asso->id."' " .
"ORDER BY `nom_asso`");
if ( $req->lines > 0 )
{
$req = new requete($site->db,
"SELECT `id_asso`, `nom_asso`, `nom_unix_asso` " .
"FROM `asso` WHERE `id_asso_parent`='".$asso->id."' " .
"ORDER BY `nom_asso`");
if ( $req->lines > 0 )
{
require_once($topdir."include/cts/gallery.inc.php");
$site->add_css("css/asso.css");
$vocable = "Activités";
if ( $asso->id == 1 )
$vocable = "Pôles";
$vocable = "Activités";
if ( $asso->id == 1 )
$vocable = "Pôles";
$gal = new gallery($vocable,"clubsgal");
while ( $row = $req->get_row() )
{
$img = "/var/img/logos/".$row['nom_unix_asso'].".small.png";
$img = "/var/img/logos/".$row['nom_unix_asso'].".small.png";
if ( !file_exists("/var/www/ae/www/ae2".$img) )
{
......@@ -272,15 +272,15 @@ else if ( isset($_REQUEST["id_asso"]) )
}
$cts->add($gal,true);
}
}
$links = array();
if ( $asso->email )
$links[] = "<b>Contact</b> : <a href=\"mailto:".$asso->email."\">".$asso->email."</a>";
$links[] = "<b>Contact</b> : <a href=\"mailto:".$asso->email."\">".$asso->email."</a>";
if ( $asso->siteweb )
$links[] = "<b>Site web</b> : <a href=\"".$asso->siteweb."\">".$asso->siteweb."</a>";
$links[] = "<b>Site web</b> : <a href=\"".$asso->siteweb."\">".$asso->siteweb."</a>";
if ( is_null($asso->id_parent) )
$extracond .= "`asso_membre`.`role` > '".ROLEASSO_MEMBREACTIF."' ";
......@@ -288,28 +288,28 @@ else if ( isset($_REQUEST["id_asso"]) )
$extracond .= "`asso_membre`.`role` > '".ROLEASSO_TRESORIER."' ";
$req = new requete($site->db,
"SELECT COUNT(*) " .
"FROM `asso_membre` " .
"WHERE `asso_membre`.`date_fin` IS NULL " .
"AND `asso_membre`.`id_asso`='".$asso->id."' " .
"AND ".$extracond);
"SELECT COUNT(*) " .
"FROM `asso_membre` " .
"WHERE `asso_membre`.`date_fin` IS NULL " .
"AND `asso_membre`.`id_asso`='".$asso->id."' " .
"AND ".$extracond);
list($respcnt) = $req->get_row();
if ( $respcnt > 0 )
{
if ( is_null($asso->id_parent) )
$links[] = "<b>Bureau</b> : <a href=\"asso/membres.php?id_asso=".$asso->id."\">Voir les membres du bureau</a>";
else
$links[] = "<b>Responsable</b> : <a href=\"asso/membres.php?id_asso=".$asso->id."\">Voir le(s) responsable(s)</a>";
}
$links[] = "<b>Bureau</b> : <a href=\"asso/membres.php?id_asso=".$asso->id."\">Voir les membres du bureau</a>";
else
$links[] = "<b>Responsable</b> : <a href=\"asso/membres.php?id_asso=".$asso->id."\">Voir le(s) responsable(s)</a>";
}
$links[] = "<b>Historique</b> : <a href=\"asso/history.php?id_asso=".$asso->id."\">Voir résumé</a>";
$links[] = "<b>Historique</b> : <a href=\"asso/history.php?id_asso=".$asso->id."\">Voir résumé</a>";
if ( count($links) > 0)
$cts->add(new itemlist("",false,$links),true);
if ( count($links) > 0)
$cts->add(new itemlist("",false,$links),true);
$cts->puts("<div class=\"clearboth\"></div>");
$cts->puts("<div class=\"clearboth\"></div>");
if ( $asso->is_mailing_allowed() && !is_null($asso->id_parent) && (!$site->user->is_valid() || !$asso->is_member($site->user->id)) )
{
......@@ -320,9 +320,9 @@ else if ( isset($_REQUEST["id_asso"]) )
$cts->add(new taglist($asso),true);
$site->add_contents($cts);
$site->end_page();
exit();
$site->add_contents($cts);
$site->end_page();
exit();
}
require_once($topdir. "include/cts/tree.inc.php");
......@@ -330,12 +330,12 @@ require_once($topdir. "include/cts/tree.inc.php");
$site->start_page("presentation","Associations");
$req = new requete($site->db,
"SELECT " .
"`asso1`.*, " .
"`asso2`.`id_asso` as `id_asso_parent` " .
"FROM `asso` AS `asso1`" .
"LEFT JOIN `asso` AS `asso2` ON `asso1`.`id_asso_parent`=`asso2`.`id_asso`" .
"ORDER BY `asso2`.`id_asso`,`asso1`.`nom_asso` ");
"SELECT " .
"`asso1`.*, " .
"`asso2`.`id_asso` as `id_asso_parent` " .
"FROM `asso` AS `asso1`" .
"LEFT JOIN `asso` AS `asso2` ON `asso1`.`id_asso_parent`=`asso2`.`id_asso`" .
"ORDER BY `asso2`.`id_asso`,`asso1`.`nom_asso` ");
$site->add_contents(new treects ( "Associations", $req, 0, "id_asso", "id_asso_parent", "nom_asso" ));
......@@ -349,7 +349,7 @@ if ( $site->user->is_in_group("root") )
$frm->add_hidden("action","addasso");
$frm->add_text_field("nom","Nom de l'association","",true);
$frm->add_text_field("nom_unix","Nom 'unix' (lettres et chiffres sans espaces)","",true);
$frm->add_entity_select("asso_parent", "Association parent", $site->db, "asso",0,true);
$frm->add_entity_select("asso_parent", "Association parent", $site->db, "asso",0,true);
$frm->add_text_area("adresse","Adresse postale");
$frm->add_text_field("email","Email",$asso->email);
......
......@@ -46,7 +46,7 @@ $tabs = array(array('','forum2/admin/index.php','Accueil'),
$cts->add(new tabshead($tabs,$_REQUEST['view']));
$req = new requete($site->db,
'SELECT `forum1`.`id_forum`'.
'SELECT `forum1`.`id_forum` as idx_forum'.
', `forum1`.`titre_forum` as `admin_forum`'.
', `forum2`.`id_forum` as `id_forum_parent` '.
'FROM `frm_forum` as `forum1` '.
......@@ -56,7 +56,7 @@ $req = new requete($site->db,
$cts->add(new treects("Forums",
$req,
0,
"id_forum",
"idx_forum",
"id_forum_parent",
"admin_forum"
));
......
......@@ -48,13 +48,15 @@ $cts->add(new tabshead($tabs,$_REQUEST['view']));
$forum = new forum($site->db,$site->dbrw);
if(isset($_REQUEST['id_forum']))
if(isset($_REQUEST['idx_forum']))
$forum->load_by_id($_REQUEST["idx_forum"]);
elseif(isset($_REQUEST['id_forum']))
$forum->load_by_id($_REQUEST["id_forum"]);
if(!$forum->is_valid())
{
$req = new requete($site->db,
'SELECT `forum1`.`id_forum`'.
'SELECT `forum1`.`id_forum` as idx_forum'.
', `forum1`.`titre_forum` as `admin_forum`'.
', `forum2`.`id_forum` as `id_forum_parent` '.
'FROM `frm_forum` as `forum1` '.
......@@ -64,17 +66,37 @@ if(!$forum->is_valid())
$cts->add(new treects("Forums",
$req,
0,
"id_forum",
"idx_forum",
"id_forum_parent",
"admin_forum"
));
}
else
{
if(isset($_REQUEST['action']) && $_REQUEST['action']='update')
if(isset($_POST['action']) && $_POST['action']=='update')
{
$asso = new asso($site->db);
$asso->load_by_id($_POST['id_asso']);
$forum->update(mysql_real_escape_string($_POST['titre']),
mysql_real_escape_string($_POST['desc']),
mysql_real_escape_string($_POST['cat']),
intval($_POST['id_forum_parent']),
$asso->id,
intval($_POST['ordre']));
$forum->set_rights($site->user,$_POST['rights'],$_POST['rights_id_group'],$_POST['rights_id_group_admin'],false);
}
$frm=new form('updatefrm', '?', true, 'POST', 'Édition');
$frm->add_hidden("action","update");
$frm->add_hidden("idx_forum",$forum->id);
$frm->add_text_field("titre","Titre",$forum->titre,true);
$frm->add_text_area("desc","Description",$forum->description);
$frm->add_checbox("categorie","Catégorie",$forum->categorie);
$frm->add_entity_select("id_forum_parent","Forum Parent", $site->db, "forum", $forum->id_forum_parent,true);
$frm->add_entity_select("id_asso", "Association", $site->db, "asso",$forum->id_asso,true);
$frm->add_right_fields($forum,false,$forum->is_admin($site->user));
$frm->add_text_field("ordre","Ordre", $forum->ordre, true);
$frm->add_submit("applyedit","Enregistrer");
$cts->add($frm,true);
}
$site->add_contents($cts);
$site->end_page();
......
......@@ -81,7 +81,7 @@ $GLOBALS['entitiescatalog'] = array (
'dfolder' => array ('id_folder', 'titre_folder', 'folder.png', 'd.php',false,'folder.inc.php'),
// Forum
'admin_forum' => array ('id_forum', 'admin_forum', 'forum.png', 'forum2/admin/update_forum.php'),
'admin_forum' => array ('idx_forum', 'admin_forum', 'forum.png', 'forum2/admin/update_forum.php'),
'forum' => array ('id_forum', 'titre_forum', 'forum.png', 'forum2/'),
'sujet' => array ('id_sujet', 'titre_sujet', 'sujet.png', 'forum2/'),
'message' => array ('id_message', 'id_message', 'message.png', 'forum2/'),
......
......@@ -2371,6 +2371,8 @@ L'équipe info AE";
function gen_serviceident()
{
if(!$this->is_valid())
return;
$uid=gen_uid();
new update($this->dbrw,
"utilisateurs",
......@@ -2379,7 +2381,19 @@ L'équipe info AE";
$body = "Bonjour,
Votre identifiant de services est : $uid
L'équipe info AE";
Vous pouvez notament l'utiliser pour consulter les flux rss du forum :
http://ae.utbm.fr/forum2/rss.php?id_utilisateur=".$this->id."&serviceident=$uid
Vous ne devez en aucun cas communiquer cet identifiant à une tierce personne. Cet
identifiant est strictement personnel. En cas de perte, un nouvel idententifiant
peut être généré en retournant sur votre fiche utilisateur sur le site AE
Cordialement,
L'équipe info AE
--
http://ae.utbm.fr";
$ret = mail($this->email,
"[Site AE] Nouvel identifiant de services",
......@@ -2391,7 +2405,7 @@ L'équipe info AE";
{
$req = new requete($this->db,
'SELECT * FROM `utilisateurs` '.
'WHERE `id_utilisateur` = \''. mysql_real_escape_string($id).'\' '.
'WHERE `id_utilisateur` = \''. intval($id).'\' '.
'AND serviceident=\''.mysql_real_escape_string($key).'\' '.
'LIMIT 1');
......
......@@ -1299,7 +1299,7 @@ else
"<a href=\"user.php?see=email&amp;page=edit&amp;id_utilisateur=".$user->id."\">Adresses e-mail (personelle et utbm)</a>",
"<a href=\"user.php?see=passwd&amp;page=edit&amp;id_utilisateur=".$user->id."\">Mot de passe</a>",
"<a href=\"user.php?see=photos&amp;page=edit&amp;id_utilisateur=".$user->id."\">Photo d'identité, avatar et blouse</a>",
"<a href=\"user.php?action=serviceident&amp;id_utilisateur=".$user->id."\">Générer un identifiant de service</a>"
"<a href=\"user.php?action=serviceident&amp;id_utilisateur=".$user->id."\">Générer un identifiant de service (Utilisable pour les flux RSS par exemple)</a>"
)),true);
}
......
......@@ -41,7 +41,7 @@ if(isset($_REQUEST['id']))
else
{
list($id,$date,$title,$content,$statut)=$req->get_row();
$cts = new contents('<a href="weekmail.php">Weekmails</a> / [Weekmail] '.$title);
$cts = new contents('<a href="weekmail.php">Weekmails</a> / [Weekmail AE] '.$title);
list($annee, $mois, $jour) = explode("-", $date);
$date=$jour."/".$mois."/".$annee;
$cts->add_paragraph('Envoyé le '. $date);
......@@ -53,7 +53,7 @@ if(isset($_REQUEST['id']))
}
$sql = 'SELECT id'.
',CONCAT(\'[Weekmail] \',title) as title'.
',CONCAT(\'[Weekmail AE] \',title) as title'.
',CONCAT(RIGHT(CONCAT(\'00\',DAY(date)),2),\'/\',RIGHT(CONCAT(\'00\',MONTH(date)),2),\'/\',YEAR(date)) as date '.
'FROM weekmail '.
'WHERE statut=1 '.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment