From d36c4f6baae03315b190da4c618d0139a8aeec47 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Thu, 29 Apr 2010 08:31:15 +0000 Subject: [PATCH] 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) --- bureau/admin/bro_main.php | 6 +- bureau/admin/bro_pref.php | 9 +-- bureau/admin/dom_edit.php | 59 ++++++++++++-------- bureau/admin/dom_editdns.php | 27 ++++----- bureau/admin/dom_subdoedit.php | 15 +++++ bureau/admin/dom_subedit.php | 56 ++++++++++++++----- bureau/admin/hta_edit.php | 1 + bureau/admin/main.php | 2 +- bureau/admin/menu_dom.php | 2 +- bureau/admin/menu_ftp.php | 2 +- bureau/admin/sql_bck.php | 7 ++- bureau/admin/sql_getparam.php | 6 +- bureau/admin/sql_list.php | 13 ++--- bureau/admin/styles/style.css | 6 +- bureau/class/functions.php | 30 +++++----- bureau/class/m_dom.php | 2 + bureau/locales/fr_FR/LC_MESSAGES/messages.po | 24 +++++--- 17 files changed, 170 insertions(+), 97 deletions(-) diff --git a/bureau/admin/bro_main.php b/bureau/admin/bro_main.php index 18881eb2..c7c240ba 100644 --- a/bureau/admin/bro_main.php +++ b/bureau/admin/bro_main.php @@ -336,7 +336,7 @@ echo "\">".htmlentities($c[$i]["name"])."/\n"; echo " ".format_size($c[$i]["size"]).""; echo "".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d h:i:s",$c[$i]["date"]))."
"; if ($p["showtype"]) { -echo "Dossier"; + echo ""._("Folder").""; } echo " "; echo "\n"; @@ -531,7 +531,7 @@ else {

is_protected($R)) { -echo ""._("Edit this folder's restrictions").""; +echo ""._("Edit this folder's protection").""; } else { echo ""._("Protect this folder").""; @@ -545,7 +545,7 @@ else {

- +

-

+ + " /> + " onclick="document.location='bro_main.php'"/> + + -

" />

-

 

- \ No newline at end of file diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php index 40a4de8e..8927dcdf 100644 --- a/bureau/admin/dom_edit.php +++ b/bureau/admin/dom_edit.php @@ -32,6 +32,11 @@ include_once("head.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", ""), ); getFields($fields); @@ -45,17 +50,21 @@ $dom->unlock();

@@ -94,16 +103,16 @@ for($i=0;$i<$r["nsub"];$i++) {
- + - - + +
- " /> + + " /> - -. +.
+type_local); ?> onclick="document.main.sub_local.focus();" /> +
+ " /> + " onclick="document.location='sql_list.php'"/> +
-
-" />
show_help("sql_bck"); diff --git a/bureau/admin/sql_getparam.php b/bureau/admin/sql_getparam.php index 98f48c80..a97e70a0 100644 --- a/bureau/admin/sql_getparam.php +++ b/bureau/admin/sql_getparam.php @@ -53,7 +53,7 @@ if (!$r=$mysql->get_dblist()) { - + server; ?> @@ -61,4 +61,8 @@ if (!$r=$mysql->get_dblist()) { + +

+ + diff --git a/bureau/admin/sql_list.php b/bureau/admin/sql_list.php index bbe8b766..89c4c1e7 100644 --- a/bureau/admin/sql_list.php +++ b/bureau/admin/sql_list.php @@ -74,14 +74,13 @@ for($i=0;$i

 

-

-cancreate("mysql")) { ?> -

- -

-

-

+cancreate("mysql")) { ?> +

+ +

+

+