Commit c5bf7955 authored by Seblu's avatar Seblu

multiple modifications

change home page
remove database access to contact page
parent 06159671
......@@ -72,7 +72,6 @@ img {
background: #303030;
border-left: 1px solid #646464;
border-right: 1px solid #646464;
width: 901px;
margin: 0 auto;
}
......@@ -171,7 +170,6 @@ img {
*/
div#newsbox {
/*width: 530px;*/
margin: 0px 15px 20px 15px;
}
......@@ -194,6 +192,76 @@ div#newsbox h1 {
border-bottom: 1px solid #303030;
}
div#lastnewsbox {
width: 530px;
margin: 0px 15px 20px 15px;
}
div#lastnewsbox ul {
background: #1D1D1D;
padding: 15px;
}
div#lastnewsbox li {
display: block;
}
div#lastnewsbox h1 {
height: 26px;
font-size: 14px;
font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
padding: 10px;
background: #1D1D1D;
color: #B8B8B8;
border-bottom: 1px solid #303030;
}
div#memberbox {
/*width: 530px;*/
margin: 0px 15px 20px 15px;
}
div#memberbox ul {
background: #1D1D1D;
padding: 15px;
}
div#memberbox li {
display: block;
}
div#memberbox h1 {
height: 26px;
font-size: 14px;
font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
padding: 10px;
background: #1D1D1D;
color: #B8B8B8;
border-bottom: 1px solid #303030;
}
div#editobox {
margin: 0px 15px 20px 15px;
}
div#editobox table {
background: #1D1D1D;
font-size: 12px;
padding: 5px;
}
div#editobox h1 {
height: 26px;
font-size: 20px;
font-family: Tahoma,'Trebuchet MS',Verdana,Arial,"Lucida-Grande",Sans-serif;
padding: 10px;
background: #1D1D1D;
color: #B8B8B8;
border-bottom: 1px solid #303030;
}
.rightbox a {
text-decoration: none;
color: #cccccc;
......@@ -238,6 +306,7 @@ div.rightbox h1 {
padding: 0px;
margin: 0px;
background: #303030;
width: 901px;
}
#left_side {
......@@ -298,33 +367,6 @@ div#menu
height: 130px;
}
/*
#right_side li a:hover {
color: #cfc5ab;
height: 26px;
font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif;
text-decoration: none;
}
#right_side li {
display: block;
list-style-type: none;
padding: 0;
margin: 0;
}
#right_side ul {
margin: 0px 0px 0px 10px;
}
#right_side li a,span{
color: #aaa28b;
height: 26px;
font: 10px Verdana, "Lucida Grande", Tahoma, Helvetica, Sans-Serif;
text-decoration: none;
}
*/
#right_side h2 {
color: #aaa28b;
margin: 10px 0px 0px 0px;
......
<?
function dispAdminHome() {
include_once "include/admin_tables.php";
......@@ -7,15 +6,13 @@ include_once "include/admin_menu.php";
include_once "include/admin_videos.php";
include_once "include/admin_news.php";
include_once "include/admin_edito.php";
include_once "include/admin_links.php";
include_once "include/admin_members.php";
include_once "include/admin_users.php";
include_once "include/admin_blacklist.php";
include_once "include/postfix.php";
if ($_SESSION["user_right"] >= $GLOBALS["REPORTER"] )
{
$str = '<div id="all_side">';
$str .= '<table width="100%">
if ($_SESSION["user_right"] >= $GLOBALS["MEMBRE"]) {
$str = '<div id="all_side">';
$str .= '<table width="100%">
<tr>
<td height="589" valign="top">
......@@ -40,9 +37,8 @@ if ($_SESSION["user_right"] >= $GLOBALS["REPORTER"] )
<td bgcolor="#303030">
<table width="100%" cellpadding="2" cellspacing="2" align="center">';
$str .= dispAdminMenu();
$str .= '
$str .= dispAdminMenu();
$str .= '
</table>
</td>
</tr>
......@@ -55,15 +51,12 @@ $str .= '
<td width="85%" valign="top" align="center">
';
if ($_GET['section_admin']) {
$section_admin= $_GET['section_admin'];
$str .= $tab_section_admin[$section_admin]();
}
else
{
if ($_GET['section_admin']) {
$section_admin= $_GET['section_admin'];
$str .= $tab_section_admin[$section_admin]();
}
else {
$total_size_videos = 0;
$nb_videos_publics = 0;
$nb_videos_tendus = 0;
......
<?php
function dispAdminMembers () {
if ($_SESSION["user_right"] < $GLOBALS["EPTV"] )
return("T'es ouf");
if ($_SESSION["user_right"] < $GLOBALS["EPTV"] )
{
return("T'es ouf");
}
get_time();
get_time();
$result = getAllMembers();
$result = getAllMembers();
$str = '
$str = '
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
......@@ -228,6 +224,9 @@ function dispAdminAddMember() {
<TD> <INPUT TYPE="text" NAME="member_get_mail" VALUE="" SIZE="30" MAXLENGTH="30"> </TD>
</TR>
<TR><TD> Alias: </TD>
<TD> <INPUT TYPE="text" NAME="member_get_alias" VALUE="" SIZE="30" MAXLENGTH="30">@eptv.fr </TD>
</TR>
<TR><TD> Num&eacute;ro de t&eacute;l&eacute;phone: </TD>
<TD> <INPUT TYPE="text" NAME="member_get_tel" VALUE="" SIZE="10" MAXLENGTH="10"> </TD>
......@@ -301,7 +300,7 @@ function dispAdminAddMember() {
</TR>
<TR>
<TD>Ajouter la mailing</TD>
<TD>Ajouter la mailing< list staff</TD>
<TD>
<INPUT TYPE="checkbox" NAME="auto_mailing_member" VALUE = 1 checked> Oui
</TD>
......@@ -393,6 +392,10 @@ $str = '
<TD> <INPUT TYPE="text" NAME="member_get_mail" VALUE="'.$user["user_mail"].'" SIZE="50" MAXLENGTH="50"> </TD>
</TR>
<TR><TD> Alias: </TD>
<TD> <INPUT TYPE="text" NAME="member_get_mail" VALUE="'.$user["user_alias"].'" SIZE="50" MAXLENGTH="50">@eptv.fr</TD>
</TR>
<TR><TD> Tel: </TD>
<TD> <INPUT TYPE="text" NAME="member_get_tel" VALUE="'.$user["user_tel"].'" SIZE="10" MAXLENGTH="10"> </TD>
</TR>
......
......@@ -13,6 +13,7 @@ function dispAdminMenu() {
$str .= '<div><a href="index.php?html=AdminHome&section_admin=AdminBlacklist" class="texte_link">Blacklist</a></div>';
$str .= '<div><a href="munin/" target="_blank" class="texte_link">Munin</a></div>';
$str .= '<div><a href="phpmyadmin/" target="_blank" class="texte_link">PHPMyAdmin</a></div>';
$str .= '<div><a href="mailman/admin/" target="_blank" class="texte_link">Mailman</a></div>';
}
return $str;
}
\ No newline at end of file
<?php
$tab_section_admin = array();
$tab_section_admin[AdminVideos] = dispAdminVideos;
......@@ -77,6 +76,4 @@ $tab_section_admin[ModifBlacksite] = adminModifBlacksite; // sql modif site
$tab_section_admin[AdminDelBlacksite] = dispAdminDelBlacksite; // disp admin del site for a blacklisted
$tab_section_admin[DelBlacksite] = adminDelBlacksite; // sql del site forxs a blacklisted
?>
\ No newline at end of file
......@@ -12,12 +12,12 @@ function auth_init() {
auth_disconnect();
// Process auth if asked
if ($_POST['connect']) {
if (!auth_connect(stripslashes($_POST['user_login']),
stripslashes($_POST['user_pass'])))
redirect('/?html=Connection&fail='.stripslashes($_POST['user_login']));
}
//Process disconnect if asked
if ($_POST['disconnect'])
auth_disconnect();
......@@ -28,12 +28,11 @@ function auth_connect($login, $pass) {
$result = getOneUserByLogin($login);
if (mysql_num_rows($result) > 0) {
$user = mysql_fetch_array($result);
if ($user["user_login"] == $login && $user["user_pass"] == $md5_pass)
if (!auth_blacklisted($login)) {
$_SESSION["user_right"] = $user["user_right"];
$_SESSION["user_id"] = $user["user_id"];
return true;
}
if ($user["user_login"] == $login && $user["user_pass"] == $md5_pass) {
$_SESSION["user_right"] = $user["user_right"];
$_SESSION["user_id"] = $user["user_id"];
return true;
}
}
return false;
}
......@@ -43,10 +42,4 @@ function auth_disconnect() {
$_SESSION["user_right"] = 0;
}
function auth_blacklisted($login) {
$result = getOneBlacklistByLogin($login);
return mysql_num_rows($result) > 0;
}
?>
\ No newline at end of file
<?php
function dispContacts() {
$str = '<!-- main body -->
<div id="left_side">
<div id="newsbox">
<h1><img alt="" src="images/puce.png" /> <strong>Liens</strong></h1>
<ul><li></li>';
/////// BEGIN TABLE DOWN ///////
$str .= dispTableBegin("l i e n s", "95", 1);
$str .= '
<TR valign=top>';
$str .= dispContactsLinks();
$str .= '
</TR>
';
$str .= dispTableEnd();
$str .= ' </ul>
</div>
</div>
<div id="right_side">
<div class="rightbox">
<h1><img alt="" src="images/puce.png" /> <strong>Contactez nous</strong></h1>
<ul>
<li>';
/////// BEGIN TABLE UP ///////
$str .= dispTableBegin("c o n t a c t", "90", 1);
$str .= '
<tr>
<td>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
';
$str .= dispContactsAssoInfos();
$str .= '
</table>
</td>
</tr>
';
$str .= dispTableEnd();
$str .= '</li></ul></div></div>';
echo $str;
}
function dispContactsAssoInfos() {
$str = '';
$result = getAssoInfos();
if (mysql_num_rows($result)){
$asso = mysql_fetch_array($result);
////// NAME //////
if ($asso["asso_name"]) {
$str .= '<tr>
<td align="center">
<B><BIG>
'.$asso["asso_name"].'
</BIG></B>
</td>
</tr>
';
}
////// ADDRESS //////
if ($asso["asso_address"]) {
$str .= '<tr>
<td align="center">
'.$asso["asso_address"].'
</td>
</tr>
';
}
////// MAIL //////
if ($asso["asso_mail"] || $asso["asso_mail2"]) {
////// SPACE //////
$str .= '<tr><td> </td></tr>';
$str .= '<tr>
<td align="center">
<table>
<tr>
<td align="right">
<b>
mail: &nbsp;
</b>
</td>
';
if ($asso["asso_mail"]) {
$str .= '
<td align="right">
<B><BIG>
<a href="mailto:'.$asso["asso_mail"].'" class="texte_link">'.$asso["asso_mail"].'</a>
</BIG></B>
</td>
';
}
if ($asso["asso_mail"] && $asso["asso_mail2"]) {
$str .= '<td align="center">&nbsp ou &nbsp</td>';
}
if ($asso["asso_mail2"]) {
$str .= '
<td align="left">
<B><BIG>
<a href="mailto:'.$asso["asso_mail2"].'" class="texte_link">'.$asso["asso_mail2"].'</a>
</BIG></B>
</td>
</tr>
';
}
$str .= '</tr>
</td>
</table>';
}
if ($asso["asso_phone"]) {
////// SPACE //////
$str .= '<tr><td> </td></tr>';
////// PHONE //////
$str .= '
<tr>
<td width="100%" align="center">
<table>
<TR>
<TD align="right">
<B>
t&eacute;l&eacute;phone:
</B>
</TD>
<TD align="left">
<small>
'.$asso["asso_phone"].'
</small>
</TD>
</TR>
</table>
</td>
</tr>
';
if ($asso["asso_phone_comment"]) {
$str .= '
<TR>
<TD align=center>
<small>
'.$asso["asso_phone_comment"].'
</small>
</TD>
</TR>
';
}
}
////// SPACE //////
$str .= '<tr><td> </td></tr>';
}
return ($str);
// display links
$str = '<div id="left_side">';
$str .= '<div id="newsbox">';
$str .= '<h1><img alt="" src="images/puce.png" /> <strong>Liens</strong></h1>';
$str .= '<ul><li></li>';
$str .= dispContactsLinks();
$str .= '</ul>';
$str .= '</div>';
$str .= '</div>';
// display contacts
$str .= '<div id="right_side">';
$str .= '<div class="rightbox">';
$str .= '<h1><img alt="" src="images/puce.png" /> <strong>Contactez-nous</strong></h1>';
$str .= '<ul><li>';
$str .= '<table width="100%" border="0" cellspacing="10" cellpadding="2">';
$str .= '<tr><td align="center"><B><BIG>Association EPTV</BIG></B></td></tr>';
$str .= '<tr><td align="center">14-16 rue Voltaire<br/>94270 le Kremlin Bicetre</td></tr>';
$str .= '<tr><td align="center"><b>eMail: <big><a href="mailto:contact@eptv.fr" class="texte_link">contact@eptv.fr</big></b></strong></td></tr>';
$str .= '<tr><td align="center"><B>T&eacute;l&eacute;phone: </b><small>01 44 08 01 54</small></td></tr>';
$str .= '</table>';
$str .= '</li></ul></div></div>';
echo $str;
}
function dispContactsLinks() {
$str ='';
$result = getAllLinks();
if (mysql_num_rows($result)){
while ($link = mysql_fetch_array($result)) {
$str .= '
<TR valign=top>
<TD width="40%">
<a href="http://
'.$link["link_link"].'
" target=new class="texte_link">
'.$link["link_link"].'
</a>
</TD>
<TD>
'.$link["link_comment"].'
<BR>
</TD>
</TR>
<TR><TD> <BR> </TD></TR>
';
}
}
return($str);
$str = '<table cellspacing="10">';
$str .= '<tr valign=trop><td width="40%"><a href="http://www.facebook.com/pages/EPTV/26226047360" target=new class="texte_link">Facebook EPTV</a></td><td>Suivez l\'actualités d\'EPTV sur facebook en devenant fan</td></tr>';
$str .= '<tr valign=trop><td width="40%"><a href="http://twitter.com/epitatv" target=new class="texte_link">Twitter EPTV</a></td><td>EPTV twitte son actualité, suivez-la !</td></tr>';
$str .= '<tr valign=trop><td width="40%"><a href="http://bde.epita.fr/" target=new class="texte_link">BDE</a></td><td>Le site du BDE EPITA/EPITECH</td></tr>';
$str .= '<tr valign=trop><td width="40%"><a href="http://www.epita.fr/" target=new class="texte_link">EPITA</a></td><td>Le site de L\'école EPITA</td></tr>';
$str .= '<tr valign=trop><td width="40%"><a href="http://www.epitech.eu/" target=new class="texte_link">EPITECH</a></td><td>Le site de L\'école EPITECH</td></tr>';
$str .= '<tr valign=trop><td width="40%"><a href="http://www.pitivi.org/" target=new class="texte_link">Pitivi</a></td><td> Un projet de fin d\'etude Epitech pour l\'édition de vidéo </td></tr>';
$str .= '<tr valign=trop><td width="40%"><a href="http://www.seblu.net/" target=new class="texte_link">Seblu.net</a></td><td>Retrouvez les vidéos de Seblu on-line</td></tr>';
$str .= '</table>';
return $str;
}
?>
\ No newline at end of file
......@@ -4,7 +4,7 @@ function dispFooter() {
echo ' <div id="foot_menu">';
echo ' <ul>';
echo ' <li><a href="http://www.epita.fr" target="_blank" title="Site Epita">EPITA</a></li>';
echo ' <li><a href="http://www.epitech.net" target="_blank" title="Site Epitech">EPITECH</a></li>';
echo ' <li><a href="http://www.epitech.eu" target="_blank" title="Site Epitech">EPITECH</a></li>';
echo ' </ul>';
echo ' </div>';
echo ' <div id="ft_img_left"></div>';
......
......@@ -8,15 +8,14 @@ $GLOBALS["EPISUB"] = 4;
$GLOBALS["REPORTER"] = 5;
$GLOBALS["PRIV_GUEST"] = 6;
$GLOBALS["EPTV"] = 7;
$GLOBALS["ROOT"] = 8;
//$GLOBALS["ROOT"] = 8;
/* New vars */
$GLOBALS["ANONYM"] = 0;
$GLOBALS["FAN"] = 2;
$GLOBALS["EPIFAN"] = 4;
$GLOBALS["VIF"] = 6;
$GLOBALS["ANCIEN"] = 8;
$GLOBALS["EPI"] = 4;
$GLOBALS["VIP"] = 6;
$GLOBALS["MEMBRE"] = 10;
//$GLOBALS["ROOT"] = 12;
$GLOBALS["ROOT"] = 20;
?>
<?
function dispHome() {
$str = '';
$str .= dispHomeEdito();
$str .= '<div class="top_box">';
$str .= ' <object width="790" height="168"><param name="movie" value="http://www.dailymotion.com/flash/dmwall/dmwall.swf?feed=/eptv&cols=9&rows=2&slide=0&brand=none"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param><embed width="790" height="168" wmode="transparent" allowscriptaccess="always" src="http://www.dailymotion.com/flash/dmwall/dmwall.swf?feed=/eptv&cols=9&rows=2&slide=0&duration=30&brand=none" type="application/x-shockwave-flash" /></object>';
$str .= '</div>';
$str .= '<div id="left_side">
<div id="newsbox">
<h1><img alt="" src="images/puce.png" />&nbsp;<strong>Derni&egrave;res actualit&eacute;s</strong>&nbsp;<a type="application/rss+xml" href="?rss=News"><img alt="Flux RSS Actuali&eacute;s" src="images/rss.png" height="14px" /></a></h1>
<ul>';
$str .=dispNewsRows(15);
$str .= '
</ul></div>
</div>
<div id="right_side">
<div class="rightbox">
<h1><img alt="" src="images/puce.png" />&nbsp;<strong>Edito</strong></h1>
';
$str .= '<div id="left_side">';
$str .= '<div id="lastnewsbox">';
$str .= '<h1><img alt="" src="images/puce.png" />&nbsp;<strong>Les derni&egrave;res actualit&eacute;s</strong>&nbsp;<a type="application/rss+xml" href="?rss=News"><img alt="Flux RSS Actuali&eacute;s" src="images/rss.png" height="14px" /></a></h1>';
$str .= dispHomeEdito();
$str .= '
</div>
<div class="rightbox">
<h1><img alt="" src="images/puce.png" />&nbsp;<strong>Derni&egrave;res vid&eacute;o</strong>&nbsp;<a type="application/rss+xml" href="?rss=Videos"><img alt="Flux RSS Vid&eacute;os" src="images/rss.png" height="14px" /></a></h1>
';
$str .= '<ul>';
$str .= dispNewsRows(15);
$str .= '</ul>';
$str .= '</div>';
$str .= '</div>';
$str .= '<div id="right_side">';
$str .= '<div class="rightbox">';
$str .= '<h1><img alt="" src="images/puce.png" />&nbsp;<strong>Les derni&egrave;res vid&eacute;os</strong>&nbsp;<a type="application/rss+xml" href="?rss=Videos"><img alt="Flux RSS Vid&eacute;os" src="images/rss.png" height="14px" /></a></h1>';
$str .= dispHomeLastVideos();
$str .='</div></div>';
echo $str;
......@@ -40,12 +32,17 @@ function dispHomeEdito(){
if (mysql_num_rows($result))
$edito = mysql_fetch_array($result);
$str = '<ul>';
$str .= '<li>'.$edito["edito_title"].'</li>';
$str .= '<li><img id="logo_edito" alt="" src="images/edito_logo.png" />'.$edito["edito_comment"].'</li>';
$str .= '</ul>';
$str = '<div id="all_side">';
$str .= '<div id="editobox">';
$str .= '<h1><img alt="" src="images/puce.png" />&nbsp;<small>Edito :</small> '.$edito["edito_title"].'</h1>';
$str .= '<table width=100%><tr>';
$str .= '<td><img id="logo_edito" alt="" src="images/edito_logo.png" />';
$str .= '<td>'.$edito["edito_comment"].'</td>';
$str .= '</tr></table>';
$str .= '</div>';
$str .= '</div>';
return ($str);
return $str;
}
function dispHomeLastVideos(){
......
......@@ -36,6 +36,9 @@ function dispHTMLHeader() {
echo '<head>';
echo ' <title>EPTV</title>';
echo ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
echo ' <meta name="Author" content="Seblu" />';
echo ' <meta name="Copyright" content="EPTV 2010" />';
echo ' <meta name="Description" content="Le site web de l\'association EPTV" />';
echo ' <link rel="icon" type="image/vnd.microsoft.icon" href="images/eptv.ico" />';
echo ' <link rel="alternate" type="application/rss+xml" href="?rss=News" title="Acutalit&eacute;s" />';
echo ' <link rel="alternate" type="application/rss+xml" href="?rss=Videos" title="Vid&eacute;os" />';
......@@ -49,7 +52,6 @@ function dispHTMLHeader() {
// display html body
function dispHTMLBody() {
echo '<body>';
// echo ' <div id="main_container">';
echo ' <div id="main_header">';
dispMenu();
echo ' </div>';
......@@ -60,7 +62,6 @@ function dispHTMLBody() {
echo ' <div id="main_footer">';
dispFooter();
echo ' </div>';
// echo ' </div>';
echo '</body>';
}
......
......@@ -7,7 +7,13 @@ function dispTableMembers($tab) {
while ($tab[$cpt]) {
$result = getOneUserByID($tab[$cpt]);
$member = mysql_fetch_array($result);
$str .= "<tr><td width='$width'><b>".$member["user_pseudo"]."</b></td><td width='$width'>(".$member["user_login"].")</td>";
$str .= "<tr><td width='$width'>";
if ($_SESSION["user_right"] > $GLOBALS["ANONYM"])
$str .= "<a href='mailto:".getOneUserMail($member["user_login"])."'>";
$str .= "<b>".$member["user_pseudo"]."</b>";
if ($_SESSION["user_right"] > $GLOBALS["ANONYM"])
$str .= "</a>";
$str .= "</td><td width='$width'>(".$member["user_login"].")</td>";
if ($member["user_statut"] == "0")
$str .= "<td width='$width'>Nouveau</td>";
else
......@@ -21,8 +27,8 @@ function dispTableMembers($tab) {
function dispMembers() {
$str = '<div id="left_side">';
$str .= '<div id="newsbox">';
$str = '<div id="all_side">';
$str .= '<div id="memberbox">';
$str .= '<h1><img alt="" src="images/puce.png" /> <strong>Membres</strong></h1>';
$str .= '<ul>';
......@@ -84,7 +90,7 @@ function dispMembers() {
$str .= '</ul></div></div>';
$str .= '<div id="right_side">
/* $str .= '<div id="right_side">
<div class="rightbox">
<h1><img alt="" src="images/puce.png" /> <strong>L&acute;association</strong></h1>
<ul>
......@@ -92,6 +98,7 @@ function dispMembers() {
</ul>
</div>
</div>';
*/
echo $str;
}
......
......@@ -6,11 +6,11 @@ function dispMenu() {
$str .= '<li><a href="/" id="tabs_home" title="Accueil du site"><strong>Home</strong></a></li>';
$str .= '<li><a href="/?html=News" id="tabs_members" title="Toute l\'actualit&eacute;s"><strong>Actualit&eacute;s</strong></a></li>';
$str .= '<li><a href="/?html=Videos" id="tabs_members" title="Toutes nos videos"><strong>Vid&eacute;os</strong></a></li>';
$str .= '<li><a href="/?html=Members" id="tabs_cours" title="Nos Membres"><strong>Membres</strong></a></li>';
$str .= '<li><a id="tabs_cours" title="Fan"><strong>Fans</strong></a></li>';
//$str .= '<li><a id="tabs_cours" title="Fan"><strong>Fans</strong></a></li>';
if ($_SESSION["user_right"] >= 7)
$str .= '<li><a href="/?html=AdminHome" id="tabs_cours" title="Toutes nos realisations"><strong>Admin</strong></a></li>';
$str .= '<li><a href="/?html=Contacts" id="tabs_releases" title="Contactez nous"><strong>Contact</strong></a></li>';
$str .= '<li><a href="/?html=AdminHome" id="tabs_cours" title="Administration"><strong>Admin</strong></a></li>';
$str .= '<li><a href="/?html=Members" id="tabs_cours" title="Membres"><strong>Membres</strong></a></li>';
$str .= '<li><a href="/?html=Contacts" id="tabs_releases" title="Contactez-nous"><strong>Contact</strong></a></li>';
$str .= '</ul>';
$str .= '&nbsp;<img alt="" src="images/puce.png" />&nbsp;&nbsp;';
$str .= '<a href="https://'.$_SERVER['HTTP_HOST'].'/?html=Connection">';
......
<?php
function update_postfix_aliases() {
$postfix_alias_file = "/etc/postfix/aliases.users";
$query = "SELECT user_mail,user_alias FROM users_db WHERE user_mail IS NOT NULL AND user_alias IS NOT NULL AND user_enable = 1";
$result = mysql_query($query) or die("unable to query db");
$str = "";
while ($user = mysql_fetch_array($result)) {
$str .= $user["user_alias"].":\t".$user["user_mail"]."\n";
}
if (strlen(trim($str)) > 0) {
$f = fopen($postfix_alias_file, "w");