dans l'edition des domaines, on a maintenant des formulaires PROPRES ... et l'adresse IP n'est pas preremplie desormais (ca me pourrissait la vie ce truc de xxx.xxx.xxx.xxx)

This commit is contained in:
Benjamin Sonntag 2010-04-29 08:31:15 +00:00
parent 52eaeb12ea
commit d36c4f6baa
17 changed files with 170 additions and 97 deletions

View File

@ -336,7 +336,7 @@ echo "\">".htmlentities($c[$i]["name"])."/</a></b></td>\n";
echo " <td>".format_size($c[$i]["size"])."</td>"; echo " <td>".format_size($c[$i]["size"])."</td>";
echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d h:i:s",$c[$i]["date"]))."<br /></td>"; echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d h:i:s",$c[$i]["date"]))."<br /></td>";
if ($p["showtype"]) { if ($p["showtype"]) {
echo "<td>Dossier</td>"; echo "<td>"._("Folder")."</td>";
} }
echo "<td>&nbsp;"; echo "<td>&nbsp;";
echo "</td>\n"; echo "</td>\n";
@ -531,7 +531,7 @@ else {
</p><p> </p><p>
<span class="ina"><?php <span class="ina"><?php
if ($hta->is_protected($R)) { if ($hta->is_protected($R)) {
echo "<a href=\"hta_edit.php?dir=".(($R)?$R:"/")."\">"._("Edit this folder's restrictions")."</a>"; echo "<a href=\"hta_edit.php?dir=".(($R)?$R:"/")."\">"._("Edit this folder's protection")."</a>";
} }
else { else {
echo "<a href=\"hta_add.php?value=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>"; echo "<a href=\"hta_add.php?value=".(($R)?$R:"/")."\">"._("Protect this folder")."</a>";
@ -545,7 +545,7 @@ else {
</span> </span>
</p><p> </p><p>
<span class="ina"> <span class="ina">
<a href="bro_pref.php"><?php __("File browser preferences"); ?></a> <a href="bro_pref.php"><?php __("Configure the file editor"); ?></a>
</span> </span>
</p> </p>
<?php <?php

View File

@ -46,7 +46,6 @@ include_once("head.php");
<table cellpadding="6" border="1" cellspacing="0"> <table cellpadding="6" border="1" cellspacing="0">
<tr><td colspan="2"><h4><?php __("File browser preferences"); ?></h4></td></tr>
<tr><td><?php __("Horizontal window size"); ?></td><td><select class="inl" name="editsizex"> <tr><td><?php __("Horizontal window size"); ?></td><td><select class="inl" name="editsizex">
<?php <?php
for($i=50;$i<=200;$i+=10) { for($i=50;$i<=200;$i+=10) {
@ -128,10 +127,12 @@ for($i=0;$i<count($bro->l_icons);$i++) {
} }
?></select></td></tr> ?></select></td></tr>
<tr class="trbtn"><td colspan="2">
<input type="submit" name="submit" class="inb" value="<?php __("Change my settings"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='bro_main.php'"/>
</td></tr>
</table> </table>
<p><input type="submit" name="submit" class="inb" value="<?php __("Change my settings"); ?>" /></p>
</form> </form>
<p>&nbsp;</p>
<a href="bro_main.php"><?php __("Back to the file browser"); ?></a>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -32,6 +32,11 @@ include_once("head.php");
$fields = array ( $fields = array (
"domain" => array ("request", "string", ""), "domain" => array ("request", "string", ""),
"sub" => array ("request", "string", ""),
"type" => array ("request", "integer", $dom->type_local),
"sub_local" => array ("request", "string", "/"),
"sub_url" => array ("request", "string", "http://"),
"sub_ip" => array ("request", "string", ""),
); );
getFields($fields); getFields($fields);
@ -45,17 +50,21 @@ $dom->unlock();
<script type="text/javascript"> <script type="text/javascript">
function dnson() { function dnson() {
// Active les composants DNS : // Active les composants DNS :
if (document.forms["dns"].mx.disabled!=null) if (document.forms["fdns"].mx.disabled!=null)
document.forms["dns"].mx.disabled=false; document.forms["fdns"].mx.disabled=false;
if (document.forms["dns"].mail.disabled!=null) if (document.forms["fdns"].emailon.disabled!=null)
document.forms["dns"].mail.disabled=true; document.forms["fdns"].emailon.disabled=true;
if (document.forms["fdns"].emailoff.disabled!=null)
document.forms["fdns"].emailoff.disabled=true;
} }
function dnsoff() { function dnsoff() {
// Active les composants DNS : // Active les composants DNS :
if (document.forms["dns"].mx.disabled!=null) if (document.forms["fdns"].mx.disabled!=null)
document.forms["dns"].mx.disabled=true; document.forms["fdns"].mx.disabled=true;
if (document.forms["dns"].mail.disabled!=null) if (document.forms["fdns"].emailon.disabled!=null)
document.forms["dns"].mail.disabled=false; document.forms["fdns"].emailon.disabled=false;
if (document.forms["fdns"].emailoff.disabled!=null)
document.forms["fdns"].emailoff.disabled=false;
} }
</script> </script>
<h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3> <h3><?php printf(_("Editing subdomains of %s"),$domain); ?></h3>
@ -94,16 +103,16 @@ for($i=0;$i<$r["nsub"];$i++) {
<form action="dom_subdoedit.php" method="post" name="main" id="main"> <form action="dom_subdoedit.php" method="post" name="main" id="main">
<table border="0"> <table border="0">
<tr> <tr>
<td colspan="2"> <td>
<input type="hidden" name="domain" value="<?php echo $r["name"]; ?>" /> <input type="hidden" name="domain" value="<?php ehe($r["name"]); ?>" />
<input type="hidden" name="action" value="add" /> <input type="hidden" name="action" value="add" />
<?php __("Create a subdomain:"); ?> <?php __("Create a subdomain:"); ?></td><td>
<input type="text" class="int" name="sub" style="text-align:right" value="" size="22" id="sub" /><span class="int" id="newsubname">.<?php echo $domain; ?></span></td> <input type="text" class="int" name="sub" style="text-align:right" value="<?php ehe($sub); ?>" size="22" id="sub" /><span class="int" id="newsubname">.<?php echo $domain; ?></span></td>
</tr> </tr>
<tr> <tr>
<td><input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" checked="checked" onclick="document.main.sub_local.focus();" /> <td><input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" <?php cbox($type==$dom->type_local); ?> onclick="document.main.sub_local.focus();" />
<label for="local"><?php __("Locally managed"); ?></label></td> <label for="local"><?php __("Locally managed"); ?></label></td>
<td><input type="text" class="int" name="sub_local" id="sub_local" value="/" size="28" /> <td><input type="text" class="int" name="sub_local" id="sub_local" value="<?php ehe($sub_local); ?>" size="28" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" <?php __("Choose a folder..."); ?> \" class=\"bff\">"); document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" <?php __("Choose a folder..."); ?> \" class=\"bff\">");
@ -112,19 +121,19 @@ for($i=0;$i<$r["nsub"];$i++) {
</td> </td>
</tr> </tr>
<tr> <tr>
<td><input type="radio" id="url" class="inc" name="type" value="<?php echo $dom->type_url; ?>" onclick="document.main.sub_url.focus();" /> <td><input type="radio" id="url" class="inc" name="type" value="<?php echo $dom->type_url; ?>" <?php cbox($type==$dom->type_url); ?> onclick="document.main.sub_url.focus();" />
<label for="url" ><?php __("URL redirection"); ?></label></td> <label for="url" ><?php __("URL redirection"); ?></label></td>
<td><input type="text" class="int" name="sub_url" id="sub_url" value="http://" size="50" /></td> <td><input type="text" class="int" name="sub_url" id="sub_url" value="<?php ehe($sub_url); ?>" size="50" /></td>
</tr> </tr>
<?php if ($r["dns"]) { // show only if dns is enabled ?> <?php if ($r["dns"]) { // show only if dns is enabled ?>
<tr> <tr>
<td><input type="radio" id="ip" class="inc" name="type" value="<?php echo $dom->type_ip; ?>" onclick="document.main.sub_ip.focus();" /> <td><input type="radio" id="ip" class="inc" name="type" value="<?php echo $dom->type_ip; ?>" <?php cbox($type==$dom->type_ip); ?> onclick="document.main.sub_ip.focus();" />
<label for="ip"><?php __("IP redirection"); ?></label></td> <label for="ip"><?php __("IP redirection"); ?></label></td>
<td><input type="text" class="int" name="sub_ip" id="sub_ip" value="xxx.xxx.xxx.xxx" size="16" /></td> <td><input type="text" class="int" name="sub_ip" id="sub_ip" value="<?php ehe($sub_ip); ?>" size="16" /> <small><?php __("(enter an IPv4 address, for example 192.168.1.2)"); ?></small></td>
</tr> </tr>
<? } ?> <? } ?>
<tr> <tr>
<td><input type="radio" id="webmail" class="inc" name="type" value="<?php echo $dom->type_webmail; ?>" /> <td><input type="radio" id="webmail" class="inc" name="type" value="<?php echo $dom->type_webmail; ?>" <?php cbox($type==$dom->type_webmail); ?>/>
<label for="webmail"><?php __("Webmail access"); ?></label></td> <label for="webmail"><?php __("Webmail access"); ?></label></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
@ -145,12 +154,12 @@ if (!$r[noerase]) {
<hr /> <hr />
<h3><?php __("DNS parameters"); ?></h3> <h3><?php __("DNS parameters"); ?></h3>
<form action="dom_editdns.php?domain=<?php echo urlencode($r["name"]) ?>" method="post" id="dns"> <form action="dom_editdns.php?domain=<?php echo urlencode($r["name"]) ?>" method="post" id="fdns" name="fdns">
<table border="1" cellpadding="6" cellspacing="0"> <table border="1" cellpadding="6" cellspacing="0">
<tr><td colspan="2"><?php __("Manage the DNS on the server ?"); ?></td></tr> <tr><td colspan="2"><?php __("Manage the DNS on the server ?"); ?></td></tr>
<tr> <tr>
<td align="center" width="65%"><label for="yesdns"><?php __("Yes"); ?></label><input type="radio" id="yesdns" class="inc" name="dns" value="1"<?php if ($r["dns"]) echo " checked=\"checked\"" ?> onclick="dnson();" /></td> <td align="center" width="65%"><input type="radio" id="yesdns" class="inc" name="dns" value="1"<?php cbox($r["dns"]); ?> onclick="dnson();" />&nbsp;<label for="yesdns"><?php __("Yes"); ?></label></td>
<td align="center" width="35%"><label for="nodns"><?php __("No"); ?></label><input type="radio" id="nodns" class="inc" name="dns" value="0"<?php if (!$r["dns"]) echo " checked=\"checked\"" ?> onclick="dnsoff();" /></td> <td align="center" width="35%"><input type="radio" id="nodns" class="inc" name="dns" value="0"<?php cbox(!$r["dns"]); ?> onclick="dnsoff();" />&nbsp;<label for="nodns"><?php __("No"); ?></label></td>
</tr> </tr>
<tr> <tr>
<td width="65%" valign="top"> <td width="65%" valign="top">
@ -162,7 +171,9 @@ if (!$r[noerase]) {
<td width="35%" valign="top"> <td width="35%" valign="top">
<p> <p>
<?php __("help_dns_mail"); ?></p> <?php __("help_dns_mail"); ?></p>
<select class="inl" id="email" name="email" <?php if ($r["dns"]) echo "disabled=\"disabled\""; ?>><option value="1"<?php if ($r["mail"]) echo " selected=\"selected\"";?>><?php __("Yes"); ?></option><option value="0"<?php if (!$r["mail"]) echo " selected=\"selected\"";?>><?php __("No"); ?></option></select> <input type="radio" id="emailon" class="inc" name="email" id="emailon" value="1"<?php cbox($r["mail"]); ?> <?php if ($r["dns"]) echo "disabled=\"disabled\""; ?>/><label for="emailon"><?php __("Yes"); ?></label>
<br />
<input type="radio" id="emailoff" class="inc" name="email" id="emailoff" value="0"<?php cbox(!$r["mail"]); ?> <?php if ($r["dns"]) echo "disabled=\"disabled\""; ?>/><label for="emailoff"><?php __("No"); ?></label>
</td> </td>
</tr> </tr>
<tr class="trbtn"><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Submit the changes"); ?>" /></td></tr> <tr class="trbtn"><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Submit the changes"); ?>" /></td></tr>

View File

@ -34,6 +34,7 @@ $fields = array (
"domain" => array ("request", "string", ""), "domain" => array ("request", "string", ""),
"dns" => array ("request", "integer", 1), "dns" => array ("request", "integer", 1),
"mx" => array ("request", "string", ""), "mx" => array ("request", "string", ""),
"email" => array ("request", "integer", 0),
); );
getFields($fields); getFields($fields);
@ -45,14 +46,14 @@ if ($dns!="1") {
} else { } else {
$mx=""; $mx="";
} }
} }
if (!$dom->edit_domain($domain,$dns,$mx)) { if (!$dom->edit_domain($domain,$dns,$mx)) {
$error=$err->errstr(); $error=$err->errstr();
include("dom_edit.php"); include("dom_edit.php");
$dom->unlock(); $dom->unlock();
exit(); exit();
} }
$dom->unlock(); $dom->unlock();
?> ?>
@ -64,6 +65,6 @@ $dom->unlock();
// XXX: we assume the cron job is at every 5 minutes // XXX: we assume the cron job is at every 5 minutes
print strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300)))); print strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
?><br /> ?><br />
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a> <span class="ina"><a href="login.php" target="_top"><?php __("Click here to continue"); ?></a></span>
</p> </p>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -29,6 +29,17 @@
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
$fields = array (
"domain" => array ("request", "string", ""),
"sub" => array ("request", "string", ""),
"type" => array ("request", "integer", $dom->type_local),
"sub_local" => array ("request", "string", "/"),
"sub_url" => array ("request", "string", "http://"),
"sub_ip" => array ("request", "string", ""),
"action" => array ("request", "string", "add"),
);
getFields($fields);
$dom->lock(); $dom->lock();
switch ($type) { switch ($type) {
@ -49,10 +60,14 @@ $dom->unlock();
if (!$r) { if (!$r) {
$error=$err->errstr(); $error=$err->errstr();
$noread=true;
include("dom_subedit.php");
exit();
} else { } else {
$t = time(); $t = time();
// XXX: we assume the cron job is at every 5 minutes // XXX: we assume the cron job is at every 5 minutes
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300)))); $error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
foreach($fields as $k=>$v) unset($k);
} }
include("dom_edit.php"); include("dom_edit.php");
exit; exit;

View File

@ -33,22 +33,50 @@ include_once("head.php");
$fields = array ( $fields = array (
"domain" => array ("request", "string", ""), "domain" => array ("request", "string", ""),
"sub" => array ("request", "string", ""), "sub" => array ("request", "string", ""),
"type" => array ("request", "integer", $dom->type_local),
"sub_local" => array ("request", "string", "/"),
"sub_url" => array ("request", "string", "http://"),
"sub_ip" => array ("request", "string", ""),
"action" => array ("request", "string", "add"),
); );
getFields($fields); getFields($fields);
$dom->lock(); $dom->lock();
if (!$r=$dom->get_sub_domain_all($domain,$sub)) { if (!$noread) {
if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
$error=$err->errstr(); $error=$err->errstr();
} ?>
<h3><?php __("Editing subdomain"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?></h3>
<?php
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();
}
$sub=$r["name"];
$type=$r["type"];
switch ($type) {
case $dom->type_local:
$sub_local=$r["dest"];
break;
case $dom->type_url:
$sub_url=$r["dest"];
break;
case $dom->type_ip:
$sub_ip=$r["dest"];
break;
case $dom->type_webmail:
break;
}
}
$dom->unlock(); $dom->unlock();
?> ?>
<h3><?php __("Editing subdomain"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?></h3> <h3><?php __("Editing subdomain"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"erroe\">$error</p>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit();
} }
?> ?>
<hr /> <hr />
@ -59,13 +87,13 @@ $dom->unlock();
<form action="dom_subdoedit.php" method="post" id="main" name="main"> <form action="dom_subdoedit.php" method="post" id="main" name="main">
<table border="0"> <table border="0">
<tr> <tr>
<td> <input type="hidden" name="domain" value="<?php echo $domain ?>" /> <td> <input type="hidden" name="domain" value="<?php ehe($domain); ?>" />
<input type="hidden" name="sub" value="<?php echo $sub ?>" /> <input type="hidden" name="sub" value="<?php echo ehe($sub); ?>" />
<input type="hidden" name="action" value="edit" /> <input type="hidden" name="action" value="edit" />
<input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" <?php cbox($r["type"]==$dom->type_local); ?> onclick="document.main.sub_local.focus();" /> <input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" <?php cbox($r["type"]==$dom->type_local); ?> onclick="document.main.sub_local.focus();" />
<label for="local"><?php __("Locally managed"); ?></label></td> <label for="local"><?php __("Locally managed"); ?></label></td>
<td><input type="text" class="int" name="sub_local" id="sub_local" value="<?php ecif($r["type"]==0,$r["dest"],"/"); ?>" size="40" /> <td><input type="text" class="int" name="sub_local" id="sub_local" value="<?php ehe($sub_local); ?>" size="40" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" <?php __("Choose a folder..."); ?> \" class=\"bff\">"); document.write("&nbsp;<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" <?php __("Choose a folder..."); ?> \" class=\"bff\">");
@ -74,14 +102,14 @@ $dom->unlock();
</td> </td>
</tr> </tr>
<tr> <tr>
<td><input type="radio" id="url" class="inc" name="type" value="<?php echo $dom->type_url; ?>" <?php cbox($r["type"]==$dom->type_url); ?> onclick="document.main.sub_url.focus();" /> <td><input type="radio" id="url" class="inc" name="type" value="<?php echo $dom->type_url; ?>" <?php cbox($type==$dom->type_url); ?> onclick="document.main.sub_url.focus();" />
<label for="url"><?php __("URL redirection"); ?></label></td> <label for="url"><?php __("URL redirection"); ?></label></td>
<td><input type="text" class="int" name="sub_url" id="sub_url" value="<?php ecif($r["type"]==1,$r["dest"],"http://"); ?>" size="50" /></td> <td><input type="text" class="int" name="sub_url" id="sub_url" value="<?php ehe($sub_url); ?>" size="50" /></td>
</tr> </tr>
<tr> <tr>
<td><input type="radio" id="ip" class="inc" name="type" value="<?php echo $dom->type_ip; ?>" <?php cbox($r["type"]==$dom->type_ip); ?> onclick="document.main.sub_ip.focus();" /> <td><input type="radio" id="ip" class="inc" name="type" value="<?php echo $dom->type_ip; ?>" <?php cbox($type==$dom->type_ip); ?> onclick="document.main.sub_ip.focus();" />
<label for="ip"><?php __("IP redirection"); ?></label></td> <label for="ip"><?php __("IP redirection"); ?></label></td>
<td><input type="text" class="int" name="sub_ip" id="sub_ip" value="<?php ecif($r["type"]==2,$r["dest"],"xxx.xxx.xxx.xxx"); ?>" size="16" /></td> <td><input type="text" class="int" name="sub_ip" id="sub_ip" value="<?php ehe($sub_ip); ?>" size="16" /> <small><?php __("(enter an IPv4 address, for example 192.168.1.2)"); ?></small></td>
</tr> </tr>
<tr> <tr>
<td><input type="radio" id="webmail" class="inc" name="type" value="<?php echo $dom->type_webmail; ?>" <?php cbox($r["type"]==$dom->type_webmail); ?> /> <td><input type="radio" id="webmail" class="inc" name="type" value="<?php echo $dom->type_webmail; ?>" <?php cbox($r["type"]==$dom->type_webmail); ?> />
@ -91,7 +119,7 @@ $dom->unlock();
<tr class="trbtn"> <tr class="trbtn">
<td colspan="2"> <td colspan="2">
<input type="submit" class="inb" name="submit" value="<?php __("Validate this change"); ?>" /> <input type="submit" class="inb" name="submit" value="<?php __("Validate this change"); ?>" />
<input type="button" class="inb" name="back" value="<?php __("Cancel"); ?>" onclick="history.back();" /> <input type="button" class="inb" name="back" value="<?php __("Cancel"); ?>" onclick="document.location='dom_edit.php?domain=<?php ehe($domain); ?>'" />
</td> </td>
</tr> </tr>

View File

@ -114,6 +114,7 @@ for($i=0;$i<count($r);$i++){
</form> </form>
<script type="text/javascript"> <script type="text/javascript">
document.forms['main'].user.focus(); document.forms['main'].user.focus();
document.forms['main'].setAttribute('autocomplete', 'off');
</script> </script>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -100,7 +100,7 @@ $c=@mysql_fetch_array(mysql_query("SELECT * FROM membres WHERE uid='".$cuid."';"
list($totalweb)=@mysql_fetch_array(mysql_query("SELECT SUM(size) FROM size_web WHERE uid = '" . $c["uid"] . "'")); list($totalweb)=@mysql_fetch_array(mysql_query("SELECT SUM(size) FROM size_web WHERE uid = '" . $c["uid"] . "'"));
echo "<p>Espace WEB: "; echo "<p>"._("WEB Space:")." ";
echo sprintf("%.1f", $totalweb / 1024)."&nbsp;Mo"; echo sprintf("%.1f", $totalweb / 1024)."&nbsp;Mo";
echo "</p>"; echo "</p>";

View File

@ -41,7 +41,7 @@ if ($q["t"] > 0)
<div class="menu-content" id="menu-dom"> <div class="menu-content" id="menu-dom">
<ul> <ul>
<?php if ($quota->cancreate("dom")) { ?> <?php if ($quota->cancreate("dom")) { ?>
<li><a href="dom_add.php"><img src="images/new.png" alt="<?php __("Add a domain"); ?>" /><?php __("Add a domain"); ?></a></li> <li><a href="dom_add.php"><img src="images/new.png" alt="<?php __("Add a domain"); ?>" />&nbsp;<?php __("Add a domain"); ?></a></li>
<?php } <?php }
/* Enumeration des domaines : */ /* Enumeration des domaines : */

View File

@ -41,7 +41,7 @@ if ($q["t"] > 0) {
<div class="menu-content" id="menu-ftp"> <div class="menu-content" id="menu-ftp">
<ul> <ul>
<?php if ($quota->cancreate("ftp")) { ?> <?php if ($quota->cancreate("ftp")) { ?>
<li><a href="ftp_add.php"><img src="images/new.png" alt="<?php __("Create a new ftp account"); ?>" /><?php __("Create a new ftp account"); ?></a></li> <li><a href="ftp_add.php"><img src="images/new.png" alt="<?php __("Create a new ftp account"); ?>" />&nbsp;<?php __("Create a new ftp account"); ?></a></li>
<?php } ?> <?php } ?>
<li><a href="ftp_list.php"><?php __("FTP accounts list"); ?></a></li> <li><a href="ftp_list.php"><?php __("FTP accounts list"); ?></a></li>
</ul> </ul>

View File

@ -91,9 +91,12 @@ if (is_array($r)) {
</script> </script>
</td> </td>
</tr> </tr>
<tr class="trbtn"><td colspan="2">
<input class="inb" type="submit" name="submit" value="<?php __("Change the SQL backup parameters"); ?>" />
<input type="button" class="inb" name="cancel" value="<?php __("Cancel"); ?>" onclick="document.location='sql_list.php'"/>
</td></tr>
</table> </table>
<br />
<input class="inb" type="submit" name="submit" value="<?php __("Change the SQL backup parameters"); ?>" />
</form> </form>
<?php <?php
$mem->show_help("sql_bck"); $mem->show_help("sql_bck");

View File

@ -53,7 +53,7 @@ if (!$r=$mysql->get_dblist()) {
<td><code><?php echo $r[0]["pass"]; ?></code></td> <td><code><?php echo $r[0]["pass"]; ?></code></td>
</tr> </tr>
<tr> <tr>
<th><?php __("SQL Server"); ?></th> <th><?php __("MySQL Server"); ?></th>
<td><code><?php echo $mysql->server; ?></code></td> <td><code><?php echo $mysql->server; ?></code></td>
</tr> </tr>
<tr> <tr>
@ -61,4 +61,8 @@ if (!$r=$mysql->get_dblist()) {
<td><code><?php echo $r[0]["db"]; ?></code></td> <td><code><?php echo $r[0]["db"]; ?></code></td>
</tr> </tr>
</table> </table>
<p><span class="ina"><a href="sql_list.php"><?php __("Back to the MySQL database list"); ?></a></span></p>
<?php include_once("foot.php"); ?> <?php include_once("foot.php"); ?>

View File

@ -74,14 +74,13 @@ for($i=0;$i<count($r);$i++) {
</form> </form>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>
<?php if ($quota->cancreate("mysql")) { ?>
<a href="sql_add.php"><?php __("Create a new database"); ?></a><br /><br />
<?php } ?>
<a href="sql_passchg.php"><?php __("Change the SQL password"); ?></a><br /><br />
<a href="sql_getparam.php"><?php __("Get the current SQL parameters"); ?></a><br /><br />
</p> <?php if ($quota->cancreate("mysql")) { ?>
<p> <span class="ina"><a href="sql_add.php"><?php __("Create a new database"); ?></a></span> </p>
<?php } ?>
<p><span class="ina"><a href="sql_passchg.php"><?php __("Change the SQL password"); ?></a></span></p>
<p><span class="ina"><a href="sql_getparam.php"><?php __("Get the current SQL parameters"); ?></a></span></p>
<?php <?php
} else { } else {

View File

@ -77,7 +77,7 @@ hr {
/* Should not be use anymore !!! */ /* Should not be use anymore !!! */
border-color: blue; border-color: blue;
border-width: 5px; border-width: 5px;
backgorund-color: #500000; background-color: #500000;
color: white; color: white;
} }
@ -415,3 +415,7 @@ input#dir, input#sub_local {
.warningmsg { .warningmsg {
width: 500px; width: 500px;
} }
#mx {
width: 300px;
}

View File

@ -227,10 +227,23 @@ function getuserpath($user = null) {
return $L_ALTERNC_LOC . "/html/".substr($user,0,1)."/".$user; return $L_ALTERNC_LOC . "/html/".substr($user,0,1)."/".$user;
} }
/* ECHOes checked="checked" only if the parameter is true
* useful for checkboxes and radio buttons
*/
function cbox($test) { function cbox($test) {
if ($test) echo (" checked=\"checked\""); if ($test) echo (" checked=\"checked\"");
} }
/* ECHOes selected="selected" only if the parameter is true
* useful for checkboxes and radio buttons
*/
function selected($bool) {
if ($bool) {
echo " selected=\"selected\"";
}
}
function ecif($test,$tr,$fa="") { function ecif($test,$tr,$fa="") {
if ($test) if ($test)
echo $tr; echo $tr;
@ -412,23 +425,6 @@ function eoption($values,$cur,$info="") {
} }
} }
/* ECHOes checked="checked" only if the parameter is true
* useful for checkboxes and radio buttons
*/
function checked($bool) {
if ($bool) {
echo " checked=\"checked\"";
}
}
/* ECHOes selected="selected" only if the parameter is true
* useful for checkboxes and radio buttons
*/
function selected($bool) {
if ($bool) {
echo " selected=\"selected\"";
}
}
/* Echo the HTMLSpecialChars version of a value. /* Echo the HTMLSpecialChars version of a value.
* Must be called when pre-filling fields values in forms such as : * Must be called when pre-filling fields values in forms such as :

View File

@ -70,6 +70,8 @@ class m_dom {
var $type_url = "1"; var $type_url = "1";
var $type_ip = "2"; var $type_ip = "2";
var $type_webmail = "3"; var $type_webmail = "3";
var $type_cname = "4"; // TODO : implement this ;)
var $type_ns = "5"; // TODO : implement this ;)
var $action_insert = "0"; var $action_insert = "0";
var $action_update= "1"; var $action_update= "1";

View File

@ -897,8 +897,8 @@ msgid "Your preferences have been updated."
msgstr "Vos préférences ont été mises à jour." msgstr "Vos préférences ont été mises à jour."
#: ../admin/bro_pref.php:45 ../admin/bro_pref.php:49 #: ../admin/bro_pref.php:45 ../admin/bro_pref.php:49
msgid "File editor preferences" msgid "Configure the file editor"
msgstr "Préférences du gestionnaire de fichiers" msgstr "Configurer le gestionnaire de fichiers"
#: ../admin/bro_pref.php:50 #: ../admin/bro_pref.php:50
msgid "Horizontal window size" msgid "Horizontal window size"
@ -1179,7 +1179,7 @@ msgstr ""
#: ../admin/ftp_add.php:39 ../admin/ftp_add.php:50 ../admin/ftp_list.php:50 #: ../admin/ftp_add.php:39 ../admin/ftp_add.php:50 ../admin/ftp_list.php:50
#: ../admin/ftp_list.php:86 ../admin/menu_ftp.php:44 #: ../admin/ftp_list.php:86 ../admin/menu_ftp.php:44
msgid "Create a new ftp account" msgid "Create a new ftp account"
msgstr "Création d'un compte ftp" msgstr "Créer un compte ftp"
#: ../admin/ftp_add.php:65 ../admin/ftp_add.php:66 ../admin/ftp_add.php:64 #: ../admin/ftp_add.php:65 ../admin/ftp_add.php:66 ../admin/ftp_add.php:64
msgid "Create this new FTP account." msgid "Create this new FTP account."
@ -1727,7 +1727,7 @@ msgstr "Accueil"
#: ../admin/menu_quota.php:32 ../admin/menu_quota.php:31 #: ../admin/menu_quota.php:32 ../admin/menu_quota.php:31
msgid "Show my quotas" msgid "Show my quotas"
msgstr "Afficher les quotas" msgstr "Quotas du compte"
#: ../admin/menu_sql.php:35 ../admin/sql_users_list.php:40 #: ../admin/menu_sql.php:35 ../admin/sql_users_list.php:40
#: ../admin/menu_sql.php:34 ../admin/menu_sql.php:38 #: ../admin/menu_sql.php:34 ../admin/menu_sql.php:38
@ -1880,7 +1880,7 @@ msgstr "Voici vos param
#: ../admin/sql_getparam.php:56 ../admin/sql_list.php:95 #: ../admin/sql_getparam.php:56 ../admin/sql_list.php:95
#: ../admin/sql_passchg.php:51 ../admin/sql_users_list.php:100 #: ../admin/sql_passchg.php:51 ../admin/sql_users_list.php:100
msgid "SQL Server" msgid "SQL Server"
msgstr "Serveur SQL" msgstr "Serveur MySQL"
#: ../admin/sql_list.php:48 ../admin/sql_list.php:44 #: ../admin/sql_list.php:48 ../admin/sql_list.php:44
msgid "help_sql_list_ok" msgid "help_sql_list_ok"
@ -2777,14 +2777,14 @@ msgstr "Afficher la taille des r
msgid "(slow)" msgid "(slow)"
msgstr "(lent)" msgstr "(lent)"
msgid "Edit this folder's restrictions" msgid "Edit this folder's protection"
msgstr "Modifier les restriction dans ce dossier" msgstr "Modifier la protection de ce répertoire"
msgid "with a login and a password" msgid "with a login and a password"
msgstr "utilisant un nom d'utilisateur et un mot de passe" msgstr "utilisant un nom d'utilisateur et un mot de passe"
msgid "Download this folder" msgid "Download this folder"
msgstr "Télécharger ce dossier" msgstr "Télécharger ce répertoire"
msgid "as a %s file" msgid "as a %s file"
msgstr "comme fichier %s" msgstr "comme fichier %s"
@ -2818,3 +2818,11 @@ msgstr "Redirections/Autres destinataires&nbsp;:"
msgid "Path" msgid "Path"
msgstr "Répertoire courant" msgstr "Répertoire courant"
msgid "Edit login and passwords"
msgstr "Gérer les utilisateurs et mots de passe"
msgid "Back to the MySQL database list"
msgstr "Retour à la liste des bases MySQL"
msgid "(enter an IPv4 address, for example 192.168.1.2)"
msgstr "(entrez une adresse IPv4, par exemple 192.168.1.2)"