From 6acdb33c77aab70ac0083a59006553b2859f48b9 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Wed, 23 Jan 2013 13:34:01 +0000 Subject: [PATCH] Patchs : - warning de variables non existantes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Un peu d'ergonomie : - quelques mini-patchs de présentation - quand on génére un mot de passe, ça le colle dans les textbox adéquats --- bureau/admin/adm_add.php | 2 +- bureau/admin/adm_edit.php | 2 +- bureau/admin/adm_mxaccount.php | 2 +- bureau/admin/adm_slaveaccount.php | 2 +- bureau/admin/dom_add.php | 9 +++++---- bureau/admin/dom_edit.php | 19 +++++++++++++++++- bureau/admin/dom_subedit.php | 2 +- bureau/admin/ftp_edit.php | 2 +- bureau/admin/hta_edit.php | 2 +- bureau/admin/hta_edituser.php | 2 +- bureau/admin/js/alternc.js | 7 ++++--- bureau/admin/mail_edit.php | 2 +- bureau/admin/mem_param.php | 4 ++-- bureau/admin/sql_users_add.php | 2 +- bureau/admin/sql_users_password.php | 2 +- bureau/class/functions.php | 6 ++++-- bureau/class/m_hta.php | 31 +++++++++++++++-------------- 17 files changed, 60 insertions(+), 38 deletions(-) diff --git a/bureau/admin/adm_add.php b/bureau/admin/adm_add.php index d26d6d5c..2015c485 100644 --- a/bureau/admin/adm_add.php +++ b/bureau/admin/adm_add.php @@ -66,7 +66,7 @@ if (isset($error) && $error) { - + diff --git a/bureau/admin/adm_edit.php b/bureau/admin/adm_edit.php index 2dfdc5e6..66891211 100644 --- a/bureau/admin/adm_edit.php +++ b/bureau/admin/adm_edit.php @@ -83,7 +83,7 @@ if (!$r=$admin->get($uid)) { - + diff --git a/bureau/admin/adm_mxaccount.php b/bureau/admin/adm_mxaccount.php index e879864f..7ab7a5e4 100644 --- a/bureau/admin/adm_mxaccount.php +++ b/bureau/admin/adm_mxaccount.php @@ -100,7 +100,7 @@ for($i=0;$i

- + " class="inb" /> diff --git a/bureau/admin/adm_slaveaccount.php b/bureau/admin/adm_slaveaccount.php index dcdae8d5..819c42b0 100644 --- a/bureau/admin/adm_slaveaccount.php +++ b/bureau/admin/adm_slaveaccount.php @@ -100,7 +100,7 @@ for($i=0;$i

- + " class="inb" /> diff --git a/bureau/admin/dom_add.php b/bureau/admin/dom_add.php index 66405c3c..acc0cab1 100644 --- a/bureau/admin/dom_add.php +++ b/bureau/admin/dom_add.php @@ -63,9 +63,11 @@ if (isset($error) && $error) echo "

$error

"; $q = $quota->getquota("dom"); if ($q["u"]>0) { ?> -

+

+ -
+
+ />
/> -
-

+

diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php index cef9455b..91154cbf 100644 --- a/bureau/admin/dom_edit.php +++ b/bureau/admin/dom_edit.php @@ -70,6 +70,23 @@ function dnsoff() { if (document.forms["fdns"].emailoff.disabled!=null) document.forms["fdns"].emailoff.disabled=false; } + +function destruction_alert() { + // On ne se pose pas de question si le DNS est deja sur NON + if (!=1) { + return true; + } + if (document.forms["fdns"].email[1].checked) { + //return confirm(''); + if ( confirm('') ) { + return confirm(''); + } else { + return false; + } + } else { + return true; + } +}


@@ -184,7 +201,7 @@ if (!$r['noerase']) {

-
" method="post" id="fdns" name="fdns"> +" method="post" id="fdns" name="fdns" onSubmit="return destruction_alert();"> diff --git a/bureau/admin/dom_subedit.php b/bureau/admin/dom_subedit.php index 2556a6d9..5fc71c22 100644 --- a/bureau/admin/dom_subedit.php +++ b/bureau/admin/dom_subedit.php @@ -49,7 +49,7 @@ if (!$isinvited && $dt[strtolower($type)]["enable"] != "ALL" ) { } -if (!$noread) { +if (!isset($noread) || !$noread) { if (!$r=$dom->get_sub_domain_all($domain,$sub,$type,$value)) { $error=$err->errstr(); } diff --git a/bureau/admin/ftp_edit.php b/bureau/admin/ftp_edit.php index 985b7a10..30afa54d 100644 --- a/bureau/admin/ftp_edit.php +++ b/bureau/admin/ftp_edit.php @@ -82,7 +82,7 @@ if (isset($error) && $error) { - + diff --git a/bureau/admin/hta_edit.php b/bureau/admin/hta_edit.php index dfdd4dac..871b308b 100644 --- a/bureau/admin/hta_edit.php +++ b/bureau/admin/hta_edit.php @@ -104,7 +104,7 @@ for($i=0;$i - + diff --git a/bureau/admin/hta_edituser.php b/bureau/admin/hta_edituser.php index c9b3323a..454eccd8 100644 --- a/bureau/admin/hta_edituser.php +++ b/bureau/admin/hta_edituser.php @@ -51,7 +51,7 @@ if (isset($error) && $error) { - +
" />
diff --git a/bureau/admin/js/alternc.js b/bureau/admin/js/alternc.js index 4826c28d..c4924d3c 100644 --- a/bureau/admin/js/alternc.js +++ b/bureau/admin/js/alternc.js @@ -226,10 +226,11 @@ function generate_password(len){ return password; } -function generate_password_html(id, size) { - $("#"+id).html(" Refresh"); +function generate_password_html(id, size, field1, field2) { + $("#"+id).html(" Refresh"); $("#inp"+id).focus(); $("#inp"+id).select(); + if (field1 != "") { $(field1).val( $("#inp"+id).val() ); } + if (field2 != "") { $(field2).val( $("#inp"+id).val() ); } } - diff --git a/bureau/admin/mail_edit.php b/bureau/admin/mail_edit.php index d7b3e4b1..61d7f634 100644 --- a/bureau/admin/mail_edit.php +++ b/bureau/admin/mail_edit.php @@ -92,7 +92,7 @@ if (isset($error)) {

- +
diff --git a/bureau/admin/mem_param.php b/bureau/admin/mem_param.php index 10cafac2..8c05da18 100644 --- a/bureau/admin/mem_param.php +++ b/bureau/admin/mem_param.php @@ -68,8 +68,8 @@ if (!$mem->user["canpass"]) { - - + +
" size="20" maxlength="128" />
(1)" size="20" maxlength="60" />
(2)" size="20" maxlength="61" />
(1)" size="20" maxlength="60" />
(2)" size="20" maxlength="61" />
" />
diff --git a/bureau/admin/sql_users_add.php b/bureau/admin/sql_users_add.php index 4e1651a0..5b6c25f1 100644 --- a/bureau/admin/sql_users_add.php +++ b/bureau/admin/sql_users_add.php @@ -61,7 +61,7 @@ getFields($fields); - + diff --git a/bureau/admin/sql_users_password.php b/bureau/admin/sql_users_password.php index 3c3d9166..a5c84983 100644 --- a/bureau/admin/sql_users_password.php +++ b/bureau/admin/sql_users_password.php @@ -53,7 +53,7 @@ $r=$mysql->get_user_dblist($id); - + diff --git a/bureau/class/functions.php b/bureau/class/functions.php index 80138e41..cbce2854 100644 --- a/bureau/class/functions.php +++ b/bureau/class/functions.php @@ -600,9 +600,11 @@ function create_pass($length = 8){ } -function display_div_generate_password($pass_size=8) { +define("DEFAULT_PASS_SIZE", 8); + +function display_div_generate_password($pass_size=DEFAULT_PASS_SIZE, $fields_to_fill1="", $fields_to_fill2="") { $id=rand(1,1000); - echo "