Commit 9517d27d authored by Antoine Beaupré's avatar Antoine Beaupré
Browse files

Standardisation de l'interface web d'AlternC, qui passe maintenant la

validation du w3c

Refonte de certains styles et couleurs, tel que discuté sur la liste de
discussion.

Des modifications locales peuvent maintenant être faites dans
styles/custom.css qui n'est pas distribué avec AlternC et donc jamais
remplacé.

Contribution de Marc Angles
Sponsorisé par Koumbit
parent aad2d5ef
...@@ -202,7 +202,7 @@ bureau/admin/sta2_doedit_raw.php -text ...@@ -202,7 +202,7 @@ bureau/admin/sta2_doedit_raw.php -text
bureau/admin/sta2_edit_raw.php -text bureau/admin/sta2_edit_raw.php -text
bureau/admin/sta2_list.php -text bureau/admin/sta2_list.php -text
bureau/admin/stats_members.php -text bureau/admin/stats_members.php -text
bureau/admin/styles/style.css -text bureau/admin/styles/base.css -text
bureau/admin/template.php -text bureau/admin/template.php -text
bureau/admin/web_list.php -text bureau/admin/web_list.php -text
bureau/admin/webmail/.htaccess -text bureau/admin/webmail/.htaccess -text
...@@ -243,7 +243,6 @@ bureau/locales/fr_FR/LC_MESSAGES/messages.po -text ...@@ -243,7 +243,6 @@ bureau/locales/fr_FR/LC_MESSAGES/messages.po -text
bureau/locales/manual.pot -text bureau/locales/manual.pot -text
bureau/locales/messages.pot -text bureau/locales/messages.pot -text
bureau/locales/pt_BR/LC_MESSAGES/messages.po -text bureau/locales/pt_BR/LC_MESSAGES/messages.po -text
bureau/style.css -text
debian/.cvsignore -text debian/.cvsignore -text
debian/README.Debian -text debian/README.Debian -text
debian/alternc.cron.d -text debian/alternc.cron.d -text
......
...@@ -56,7 +56,8 @@ if (!$mem->setid($id)) { ...@@ -56,7 +56,8 @@ if (!$mem->setid($id)) {
<html> <html>
<head> <head>
<title><?php __("AlternC Desktop"); ?></title> <title><?php __("AlternC Desktop"); ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<frameset cols="225px,*"> <frameset cols="225px,*">
......
...@@ -44,17 +44,16 @@ include("head.php"); ...@@ -44,17 +44,16 @@ include("head.php");
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p></body></html>";
} }
?> ?>
<blockquote> <ul id="adm_panel">
<table border="0" cellpadding="4" cellspacing="0"> <li class="lst1"><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></li>
<tr class="lst1"><td><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></td></tr> <li class="lst2"><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></li>
<tr class="lst2"><td><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></td></tr> <li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
<tr class="lst1"><td><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></td></tr> <li class="lst2"><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></li>
<tr class="lst2"><td><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></td></tr> <li class="lst1"><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></li>
<tr class="lst1"><td><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></td></tr> <li class="lst1"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
<tr class="lst1"><td><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></td></tr> <li class="lst2"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
<tr class="lst2"><td><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></td></tr> <li class="lst1"><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></li>
<tr class="lst1"><td><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></td></tr> <li class="lst1"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li>
<tr class="lst1"><td><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></td></tr>
<?php <?php
// here we include any "adminmenu_*" file content // here we include any "adminmenu_*" file content
...@@ -73,9 +72,7 @@ if ($d) { ...@@ -73,9 +72,7 @@ if ($d) {
closedir($d); closedir($d);
?> ?>
</ul>
</table>
</blockquote>
</body> </body>
</html> </html>
......
...@@ -42,7 +42,7 @@ if (!$hlist[$hid]) { ...@@ -42,7 +42,7 @@ if (!$hlist[$hid]) {
<html> <html>
<head> <head>
<title>Aide en ligne <?php echo $host ?></title> <title>Aide en ligne <?php echo $host ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css"> <link rel="stylesheet" href="/admin/styles/base.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> </head>
<frameset cols="30%,*" onload="window.focus(); return true;"> <frameset cols="30%,*" onload="window.focus(); return true;">
...@@ -54,7 +54,3 @@ if (!$hlist[$hid]) { ...@@ -54,7 +54,3 @@ if (!$hlist[$hid]) {
Your browser must support frames Your browser must support frames
</noframes> </noframes>
</html> </html>
ames
</noframes>
</html>
...@@ -129,20 +129,18 @@ include("head.php"); ...@@ -129,20 +129,18 @@ include("head.php");
</head> </head>
<body> <body>
<table border="0" width="100%" cellspacing="0"> <div id="browser">
<tr><td> <h3><?php __("File browser"); ?></h3>
<hr /> <hr />
<table width="100%"><tr><td valign="top"> <table width="100%"><tr><td valign="top">
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br /> <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br />
<small> <small>
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?> <?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
</td><td valign="top" align="right"> </td><td valign="top" align="right">
<h3><?php __("File browser"); ?></h3>
<form action="bro_main.php" method="post" name="nn" id="nn"> <form action="bro_main.php" method="post" name="nn" id="nn">
<input type="hidden" name="R" value="<?php echo $R; ?>" /> <input type="hidden" name="R" value="<?php echo $R; ?>" />
<table><tr> <table id="add-file"><tr>
<td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td> <td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td>
<td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td> <td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td>
</tr><tr><td> </tr><tr><td>
......
...@@ -82,7 +82,8 @@ if ($select) { ...@@ -82,7 +82,8 @@ if ($select) {
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Browser for folder</title> <title>Browser for folder</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php <?php
...@@ -100,7 +101,8 @@ if ($select) { ...@@ -100,7 +101,8 @@ if ($select) {
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Recherche d'un dossier</title> <title>Recherche d'un dossier</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript"> <script type="text/javascript">
/* Fonction appelle lors du lancement d'un popup Fichier : */ /* Fonction appelle lors du lancement d'un popup Fichier : */
......
...@@ -41,7 +41,8 @@ if (!$mem->checkid()) { ...@@ -41,7 +41,8 @@ if (!$mem->checkid()) {
<html> <html>
<head> <head>
<title>Administration de <?php echo $host ?></title> <title>Administration de <?php echo $host ?></title>
<link rel="stylesheet" href="style.css" type="text/css"> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
</head> </head>
<frameset cols="225px,*"> <frameset cols="225px,*">
<frame src="menu.php" name="left"> <frame src="menu.php" name="left">
......
...@@ -45,9 +45,16 @@ exit(); ...@@ -45,9 +45,16 @@ exit();
if ($error) echo "<p class=\"error\">$error</p>"; if ($error) echo "<p class=\"error\">$error</p>";
?> ?>
<form method="post" action="dom_doadd.php" id="main"> <form method="post" action="dom_doadd.php" id="main">
<table><tr><td> <table><thead><?php __("Domain hosting"); ?></thead><tbody>
<b><label for="newdomain"><?php __("Domain name"); ?> : www.</label></b></td><td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /> <tr>
</td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td></tr> <th><label for="newdomain"><?php __("Domain name"); ?> : www.</label></th>
<td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /></td>
</tr>
<tr>
<th></th>
<td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td>
</tr>
</tbody>
</table> </table>
<p> <p>
<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br /> <input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br />
......
...@@ -48,7 +48,8 @@ include("head.php"); ...@@ -48,7 +48,8 @@ include("head.php");
} }
?> ?>
<form method="post" action="ftp_doadd.php" name="main"> <form method="post" action="ftp_doadd.php" name="main">
<table border="1" cellspacing="0" cellpadding="4"> <table><thead><?php __("Create a new ftp account"); ?></thead>
<tbody>
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
<label for="login"><?php __("Username"); ?></label></th><td> <label for="login"><?php __("Username"); ?></label></th><td>
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" /> <select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" />
...@@ -63,7 +64,7 @@ include("head.php"); ...@@ -63,7 +64,7 @@ include("head.php");
</script> </script>
</td></tr> </td></tr>
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></td></tr> <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></td></tr>
</table> </tbody></table>
</form> </form>
<?php $mem->show_help("ftp_add"); ?> <?php $mem->show_help("ftp_add"); ?>
</body> </body>
......
...@@ -56,8 +56,7 @@ if ($error) { ...@@ -56,8 +56,7 @@ if ($error) {
<p class="error"><?php echo $error ?></p> <p class="error"><?php echo $error ?></p>
<?php } ?> <?php } ?>
<form method="post" action="ftp_del.php"> <form method="post" action="ftp_del.php">
<table cellspacing="0" cellpadding="4">
<tr><th colspan="2">&nbsp;</th><th><?php __("Username"); ?></th><th><?php __("Folder"); ?></th></tr>
<?php <?php
reset($r); reset($r);
$col=1; $col=1;
...@@ -65,25 +64,24 @@ while (list($key,$val)=each($r)) ...@@ -65,25 +64,24 @@ while (list($key,$val)=each($r))
{ {
$col=3-$col; $col=3-$col;
?> ?>
<tr class="lst<?php echo $col; ?>"> <dl>
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td> <dt><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /><strong><?php __("Username"); ?>:</strong> <label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></dt>
<td><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></td> <dd><span><?php __("Folder"); ?></span> <code>/<?php echo $val["dir"] ?></code></dd>
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td> <dd><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></dd>
<td><code>/<?php echo $val["dir"] ?></code></td> <dd><span></span></dd>
</tr> </dl>
<?php <?php
} }
?> ?>
<tr><td colspan="5"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></td></tr> <div class="delete"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></div>
</table>
</form> </form>
<?php if ($quota->cancreate("ftp")) { ?> <?php if ($quota->cancreate("ftp")) { ?>
<p> <p class="add">
<a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a> <a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a>
</p> </p>
<?php } <?php }
$mem->show_help("ftp_list"); $mem->show_help("ftp_list");
?> ?>
</body> </body>
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Bureau</title> <title>Bureau</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" language="javascript" src="/admin/js/alternc.js"> <script type="text/javascript" language="javascript" src="/admin/js/alternc.js">
</script> </script>
...@@ -56,7 +56,7 @@ include("head.php"); ...@@ -56,7 +56,7 @@ include("head.php");
// --> // -->
</script></td> </script></td>
</tr> </tr>
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Protect this folder"); ?>" /></td></tr> <tr><td class="add" colspan="2"><input type="submit" class="inb" value="<?php __("Protect this folder"); ?>" /></td></tr>
</table> </table>
</form> </form>
......
...@@ -41,39 +41,48 @@ $H=getenv("HTTP_HOST"); ...@@ -41,39 +41,48 @@ $H=getenv("HTTP_HOST");
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>AlternC Desktop</title> <title>AlternC Desktop</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<body onload="document.forms['fmain'].username.focus();"> <body class="login" onload="document.forms['fmain'].username.focus();">
<h1><?php echo _("Administration of")." ".$H ?></h1>
<?php if ($error) echo "<font color=red>$error</font>"; ?> <?php if ($error) echo "<font color=red>$error</font>"; ?>
<p><?php echo _("Enter your username and password to connect to the virtual desktop")." [ ".$H." ]" ?></p> <p id="logo"><a href="http://alternc.org">
<img src="alternc.png" width="120" height="82" border="0" alt="<?php __("AlternC, Opensource hosting control panel"); ?>" title="<?php __("AlternC, Opensource hosting control panel"); ?>" /></a>
</p>
<div id="wrapper">
<form action="login.php" method="post" target="_top" id="fmain" name="fmain"> <form action="login.php" method="post" target="_top" id="fmain" name="fmain">
<div class="dlogin"> <table>
<table border="1" cellspacing="0" cellpadding="4" width="300" class="login"> <thead>
<tr><th align="right"><label for="username"><?php echo _("Username"); ?></label></th><td><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="20" autocomplete="off" /></td></tr> <tr><td colspan="2"><?php echo _("Administration of")." ".$H ?></td></tr>
<tr><th align="right"><label for="password"><?php echo _("Password"); ?></label></th><td><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="20" autocomplete="off" /></td></tr> </thead>
<tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /></td></tr> <tfoot>
<tr><td colspan="2" align="right"><label><input type="checkbox" class="inc" id="restrictip" name="restrictip" value="1" checked="checked"><?php __("Restrict this session to my ip address"); ?></label></td></tr> <tr><td colspan="2">
</table> <p><?php __("You must accept the session cookie to log-in"); ?></p>
</div> <p><?php __("You can use a different language: "); ?>
</form> <?php
<p>&nbsp;</p> foreach($locales as $l) {
<table width="100%" style="border: 0"> ?>
<tr><td style="text-align: left"> <a href="?setlang=<?php echo $l; ?>"><?php __($l); ?></a>
<?php __("You must accept the session cookie to log-in"); ?> <?php } ?>
<br /> </p>
<?php __("You can use a different language: "); ?> </td></tr>
<?php </tfoot>
foreach($locales as $l) { <tbody>
?> <tr><td class="forminfo" colspan="2"><?php echo _("Enter your username and password to connect to the virtual desktop")."<br />[ ".$H." ]" ?></td></tr>
<a href="?setlang=<?php echo $l; ?>"><?php __($l); ?></a>&nbsp; <tr>
<?php } ?> <td class="username"><label for="username"><?php echo _("Username"); ?></label></td>
</td> <td class="input_username"><input type="text" class="int" name="username" id="username" value="" maxlength="128" size="20" /></td>
<td style="text-align: right">
<p> <a href="http://alternc.org"><img src="alternc.png" width="120" height="82" border="0" alt="<?php __("AlternC, Opensource hosting control panel"); ?>" title="<?php __("AlternC, Opensource hosting control panel"); ?>" /></a></p>
</td>
</tr> </tr>
<tr>
<td class="pass"><label for="password"><?php echo _("Password"); ?></label></td>
<td class="input_pass"><input type="password" class="int" name="password" id="password" value="" maxlength="128" size="20" /></td>
</tr>
<tr><td class="login" colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Enter"); ?>" /></td></tr>
<tr><td class="cookie_ack" colspan="2"><label><input type="checkbox" class="inc" id="restrictip" name="restrictip" value="1" checked="checked" /><?php __("Restrict this session to my ip address"); ?></label></td></tr>
</tbody>
</table> </table>
</form>
</div>
</body> </body>
</html> </html>
...@@ -40,10 +40,11 @@ if (!$mem->checkid()) { ...@@ -40,10 +40,11 @@ if (!$mem->checkid()) {
<html> <html>
<head> <head>
<title><?php __("AlternC Desktop"); ?></title> <title><?php __("AlternC Desktop"); ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<frameset cols="225px,*"> <frameset frameborder="0" cols="225px,*">
<frame src="menu.php" name="left" /> <frame src="menu.php" name="left" />
<frame src="main.php" name="right" /> <frame src="main.php" name="right" />
<noframes> <noframes>
......
...@@ -33,7 +33,10 @@ include("head.php"); ...@@ -33,7 +33,10 @@ include("head.php");
?> ?>
</head> </head>
<body> <body>
<?php
<h3>Ce bureau est un lieu de dveloppement pour arranger minimalement alterc dans l'objectif d'y faire un "theme" plus joli et personnalisable</h3>
<div id="info"><?php
// Show last login information : // Show last login information :
__("Last Login: "); __("Last Login: ");
...@@ -87,14 +90,8 @@ if($admin->enabled) { ...@@ -87,14 +90,8 @@ if($admin->enabled) {
} }
} }
/* ?></div>
<h3>
Le bureau AlternC de ce serveur est en travaux actuellement.<br />
Il se peut que certaines parties du bureau soient inaccessibles ponctuellement.<br />
Si une partie du bureau ne fonctionne pas pendant longtemps, n'hsitez pas, contactez le
mainteneur par mail : <a href="mailto:root@heberge.info">root@heberge.info</a>
</h3>
*/
?>
</body> </body>
</html> </html>
...@@ -36,7 +36,8 @@ $mem->del_session(); ...@@ -36,7 +36,8 @@ $mem->del_session();
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title><?php __("Disconnected"); ?></title> <title><?php __("Disconnected"); ?></title>
<link rel="stylesheet" href="styles/style.css" type="text/css" /> <link rel="stylesheet" href="styles/base.css" type="text/css" />
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head> </head>
<body> <body>
......
...@@ -38,8 +38,8 @@ if ($help_setting) { ...@@ -38,8 +38,8 @@ if ($help_setting) {
?> ?>
</head> </head>
<body> <body id="mem_param">
<div align="center"><h3><?php __("Settings of your account"); ?></h3></div> <h3><?php __("Settings of your account"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<font color=red>$error</font></body></html>"; echo "<font color=red>$error</font></body></html>";
...@@ -47,66 +47,57 @@ if ($help_setting) { ...@@ -47,66 +47,57 @@ if ($help_setting) {
} }
?> ?>
<hr /> <hr />
<p>
<?php __("Password change"); ?> : <br />
<?php
if (!$mem->user["canpass"]) {
__("You cannot change your password");
echo "</p>";
} else {
__("help_chg_passwd"); ?>
</p>
<form method="post" action="mem_passwd.php"> <form method="post" action="mem_passwd.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<thead><tr><td colspan="2"><?php __("Password change"); ?></td></tr></thead>
<tr><td colspan="2">
<?php
if (!$mem->user["canpass"]) {
__("You cannot change your password");
}
else {
__("help_chg_passwd");
?>
</td></tr>
<tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php echo $oldpass; ?>" size="20" maxlength="128" /></td></tr> <tr><th><?php __("Old password"); ?></th><td><input type="password" class="int" name="oldpass" value="<?php echo $oldpass; ?>" size="20" maxlength="128" /></td></tr>
<tr><th><?php __("New password"); ?> (1)</th><td><input type="password" class="int" name="newpass" value="<?php echo $newpass; ?>" size="20" maxlength="60" /></td></tr> <tr><th><?php __("New password"); ?> (1)</th><td><input type="password" class="int" name="newpass" value="<?php echo $newpass; ?>" size="20" maxlength="60" /></td></tr>
<tr><th><?php __("New password"); ?> (2)</th><td><input type="password" class="int" name="newpass2" value="<?php echo $newpass2; ?>" size="20" maxlength="61" /></td></tr> <tr><th><?php __("New password"); ?> (2)</th><td><input type="password" class="int" name="newpass2" value="<?php echo $newpass2; ?>" size="20" maxlength="61" /></td></tr>
<tr><td align="center" colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my password"); ?>" /></td></tr> <tr><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my password"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p>&nbsp;</p>
<?php } ?> <?php } ?>
<hr />
<form method="post" action="mem_chgmail.php"> <form method="post" action="mem_chgmail.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<tr><td colspan="2"><?php __("Change the email of the account"); ?><br /> <thead><tr><td colspan="2"><?php __("Change the email of the account"); ?></td></tr></thead>
<?php __("help_chg_mail"); ?></td></tr> <tr><td colspan="2"><?php __("help_chg_mail"); ?></td></tr>
<tr><th><?php __("Current mailbox"); ?></th><td><big><code><?php echo $mem->user["mail"]; ?></code></big></td></tr> <tr><th><?php __("Current mailbox"); ?></th><td><big><code><?php echo $mem->user["mail"]; ?></code></big></td></tr>
<tr><th><?php __("New mailbox"); ?></th><td><input type="text" class="int" name="newmail" value="<?php echo $newmail; ?>" size="40" maxlength="128" /></td></tr> <tr><th><?php __("New mailbox"); ?></th><td><input type="text" class="int" name="newmail" value="<?php echo $newmail; ?>" size="40" maxlength="128" /></td></tr>
<tr><td style="text-align: center" colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my mail"); ?>" /></td></tr> <tr><td colspan="3"><input type="submit" class="inb" name="submit" value="<?php __("Change my mail"); ?>" /></td></tr>
</table> </table>
</form> </form>
<p>&nbsp;</p>
<hr />
<form method="post" action="mem_param.php"> <form method="post" action="mem_param.php">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<tr><td colspan="2"><?php __("Online help settings"); ?><br /> <thead><tr><td colspan="2"><?php __("Online help settings");?></td></tr></thead>
<?php __("help_help_settings"); ?></td></tr> <tr><td colspan="2"><?php __("help_help_settings"); ?></td></tr>
<tr><th><label for="showhelp"><?php __("Do you want to see the help texts and links on each page?"); ?></label></th><td><input type="checkbox" class="inc" id="showhelp" name="showhelp" value="1" <?php if ($mem->get_help_param()) echo "checked=\"checked\""; ?> /></td></tr> <tr><th><label for="showhelp"><?php __("Do you want to see the help texts and links on each page?"); ?></label></th><td><input type="checkbox" class="inc" id="showhelp" name="showhelp" value="1" <?php if ($mem->get_help_param()) echo "checked=\"checked\""; ?> /></td></tr>
<tr><td align="center" colspan="3"><input type="submit" class="inb" name="help_setting" value="<?php __("Change these settings"); ?>" /></td></tr> <tr><td colspan="3"><input type="submit"