From 5f5b00694a2972b89c950dad9bb4044b7883872a Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Fri, 19 Apr 2013 11:28:47 +0000 Subject: [PATCH] HTML au propre MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rajout d'un lien pour remonter dans le répertoire parent dans le browser --- bureau/admin/adm_authip_whitelist.php | 2 +- bureau/admin/bro_main.php | 15 +++++++-------- bureau/admin/cron.php | 4 ++-- bureau/admin/ftp_list.php | 2 -- bureau/admin/mail_edit.php | 2 +- bureau/admin/mail_manage_catchall.php | 2 +- bureau/admin/main.php | 2 +- bureau/admin/menu.php | 4 ++-- bureau/admin/styles/style.css | 1 + bureau/class/m_bro.php | 5 ++++- 10 files changed, 20 insertions(+), 19 deletions(-) diff --git a/bureau/admin/adm_authip_whitelist.php b/bureau/admin/adm_authip_whitelist.php index 490c0f73..5a255a93 100644 --- a/bureau/admin/adm_authip_whitelist.php +++ b/bureau/admin/adm_authip_whitelist.php @@ -61,7 +61,7 @@ $list_ip = $authip->list_ip_whitelist();

- + - + @@ -349,7 +349,8 @@ function actmoveto_not_empty() { } else { echo "bro_downloadfile.php?dir=".urlencode($R)."&file=".urlencode($c[$i]["name"]); } - echo "\">"; ehe($c[$i]["name"]); echo"\n"; + echo "\">"; ehe($c[$i]["name"]); + echo"\n"; echo " "; echo ""; if ($p["showtype"]) { @@ -377,8 +378,7 @@ function actmoveto_not_empty() { echo ""; $dbl=array(); foreach ($mysql->get_dblist() as $v) { $dbl[]=$v['db'];} echo "" ; - echo ""._("Restore it").""; - echo ""; + echo ""._("Restore it").""; echo ""; } @@ -390,7 +390,7 @@ function actmoveto_not_empty() { } echo "\n"; + echo "\">"; ehe($c[$i]["name"]); echo "/\n"; echo " "; echo ""; if ($p["showtype"]) { @@ -585,7 +585,7 @@ else {

- +

 

is_protected($R)) { @@ -600,14 +600,13 @@ else {   l_tgz[$p["downfmt"]]); ?> -

is_ftp($R)) { ?> - +   "> "; ?> - -
".$bro->PathList($R,"bro_main.php",true).""; }?> ".format_size($c[$i]["size"])."".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d H:i:s",$c[$i]["date"]))."
"; ehe($c[$i]["name"]) ;"/".format_size($c[$i]["size"])."".format_date(_('%3$d-%2$d-%1$d %4$d:%5$d'),date("Y-m-d h:i:s",$c[$i]["date"]))."
+
<?php __(" title=""/>
+ " id="crup_url_" name="" size="40" maxlength="255" value=""/> diff --git a/bureau/admin/ftp_list.php b/bureau/admin/ftp_list.php index 65a4c1bf..6c54c8df 100644 --- a/bureau/admin/ftp_list.php +++ b/bureau/admin/ftp_list.php @@ -109,13 +109,11 @@ if ( $val['enabled']) { -

  • '._("Server:").' '.$ftp->srv_name; ?>
  • '._("FTP mode for data transfert:").' '._("passive");?>
  • '._("User/password:").' '._("the one you specified when you created the account. You can edit them in the panel.");?>
-

show_help("ftp_list"); diff --git a/bureau/admin/mail_edit.php b/bureau/admin/mail_edit.php index 450632ae..53326d12 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/mail_manage_catchall.php b/bureau/admin/mail_manage_catchall.php index c03b4414..3618eefb 100644 --- a/bureau/admin/mail_manage_catchall.php +++ b/bureau/admin/mail_manage_catchall.php @@ -81,7 +81,7 @@ __("You can choose what to do with emails sent to unexisting address of this dom - + diff --git a/bureau/admin/main.php b/bureau/admin/main.php index d8bf8236..4d1a2e3b 100644 --- a/bureau/admin/main.php +++ b/bureau/admin/main.php @@ -61,7 +61,7 @@ if (file_exists($cache_file) && $timedif < $cache_time) { $xml = @simplexml_load_string($string); echo '
/>
'; -echo ""; +echo ""; //echo ''; $count = 0; $max = 5; diff --git a/bureau/admin/menu.php b/bureau/admin/menu.php index 4dc558f0..0866e43f 100644 --- a/bureau/admin/menu.php +++ b/bureau/admin/menu.php @@ -45,7 +45,7 @@ foreach ($obj_menu as $k => $m ) { echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; if (!empty($m['links'])) { diff --git a/bureau/admin/styles/style.css b/bureau/admin/styles/style.css index 70b70943..88bfe255 100644 --- a/bureau/admin/styles/style.css +++ b/bureau/admin/styles/style.css @@ -327,6 +327,7 @@ img { } .menu-box .menu-title { + display: block; color: #000000; border-bottom: 2px solid #AAA; background-color: #CFE3F1; diff --git a/bureau/class/m_bro.php b/bureau/class/m_bro.php index 7e483395..34e70d11 100644 --- a/bureau/class/m_bro.php +++ b/bureau/class/m_bro.php @@ -676,12 +676,15 @@ class m_bro { * @param string $action Page web de destination des liens * @return string le code HTML ainsi obtenu. */ - function PathList($path,$action) { + function PathList($path,$action, $justparent=false) { $path=$this->convertabsolute($path,1); $a=explode("/",$path); if (!is_array($a)) $a=array($a); $c=''; $R=''; + if ($justparent) { + return ""; + } for($i=0;$i
".$xml->channel->title."
".$xml->channel->description."
".$xml->channel->title."
".$xml->channel->description."
'._("Title").''._("Date").'