diff --git a/bureau/admin/mxlist.php b/bureau/admin/mxlist.php index e9ea0f31..a55d1f34 100644 --- a/bureau/admin/mxlist.php +++ b/bureau/admin/mxlist.php @@ -1,13 +1,5 @@ users_list(); diff --git a/bureau/admin/piwik_addsites.php b/bureau/admin/piwik_addsites.php index 2cd7ee6f..360329fd 100644 --- a/bureau/admin/piwik_addsites.php +++ b/bureau/admin/piwik_addsites.php @@ -1,13 +1,5 @@ - ---------------------------------------------------------------------- - AlternC - Web Hosting System - Copyright (C) 2002 by the AlternC Development Team. - http://alternc.org/ - ---------------------------------------------------------------------- - Based on: - Valentin Lacambre's web hosting softwares: http://altern.org/ ---------------------------------------------------------------------- LICENSE @@ -23,10 +15,13 @@ To read the license please visit http://www.gnu.org/copyleft/gpl.html ---------------------------------------------------------------------- - Purpose of file: listing of piwik site, and manage associated credentials - ---------------------------------------------------------------------- */ +/** + * Listing of piwik site, and manage associated credentials + * @copyright AlternC-Team 2000-2017 https://alternc.com/ + */ + require_once("../class/config.php"); include_once("head.php"); include_once("piwik_utils.php"); diff --git a/bureau/admin/piwik_user_dodel.php b/bureau/admin/piwik_user_dodel.php index 71883aac..6d3a1481 100755 --- a/bureau/admin/piwik_user_dodel.php +++ b/bureau/admin/piwik_user_dodel.php @@ -1,13 +1,5 @@ - ---------------------------------------------------------------------- - AlternC - Web Hosting System - Copyright (C) 2002 by the AlternC Development Team. - http://alternc.org/ - ---------------------------------------------------------------------- - Based on: - Valentin Lacambre's web hosting softwares: http://altern.org/ ---------------------------------------------------------------------- LICENSE @@ -23,8 +15,6 @@ To read the license please visit http://www.gnu.org/copyleft/gpl.html ---------------------------------------------------------------------- - Purpose of file: Admin piwik users right for piwik sites - ---------------------------------------------------------------------- */ require_once("../class/config.php"); diff --git a/bureau/admin/piwik_userlist.php b/bureau/admin/piwik_userlist.php index 578c0f7d..d079104d 100755 --- a/bureau/admin/piwik_userlist.php +++ b/bureau/admin/piwik_userlist.php @@ -1,13 +1,5 @@ user["login"] diff --git a/bureau/admin/quotas_users.php b/bureau/admin/quotas_users.php index 076dfc9c..f295a362 100644 --- a/bureau/admin/quotas_users.php +++ b/bureau/admin/quotas_users.php @@ -1,4 +1,27 @@
"; printf(_("If you want to manage them, go to")." 
"; printf(_("If you want to manage them, go to")." 
enum_domains($c["uid"]); $dc=0; // Domain Count $ms=0; // Mail Space @@ -335,7 +358,7 @@ foreach ($all as $c) { echo ""; - // On affiche le compte et ses domaines : + // We show all accounts and domains echo "".$c["login"]."
\n"; $domaines_list = $dom->enum_domains($c["uid"]); $dc=0; // Domain Count @@ -351,7 +374,7 @@ foreach ($all as $c) { $mailsize=$quota->get_size_unit($ms); $mailmansize=$quota->get_size_unit($mls * 1024); - // Espace WEB + // WEB space quota $ws = $c["websize"]; $webspace=$quota->get_size_unit($ws * 1024); if (isset($totalweb) && $totalweb){ @@ -372,14 +395,13 @@ if ($mode==0) { } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { - #echo "\"".$pc."%\""; $quota->quota_displaybar($pc); } echo ""; - // Espace Mail : + // Mail space quota if ($totalmail) $pc=intval(100*$ms/$totalmail); @@ -391,7 +413,6 @@ if ($mode==0) { } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { - #echo "\"".$pc."%\""; $quota->quota_displaybar($pc); } @@ -399,7 +420,7 @@ if ($mode==0) { if ($mode!=2) echo " style=\"text-align: right\""; echo ">"; - // Espace Mailman : + // Mailman space quota if ($totallist) $pc=intval(100*$mls/$totallist); else @@ -410,7 +431,6 @@ if ($mode==0) { } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { - #echo "\"".$pc."%\""; $quota->quota_displaybar($pc); } @@ -418,7 +438,7 @@ echo ""; -// Espace DB : +// MySQL db space $ds = $c["dbsize"]; $dbsize=$quota->get_size_unit($ds); @@ -432,14 +452,14 @@ if ($mode==0) { } elseif ($mode==1) { echo sprintf("%.1f",$pc)." %"; } else { - #echo "\"".$pc."%\""; - $quota->quota_displaybar($pc); + $quota->quota_displaybar($pc); } echo ""; +// Total space $ts=$c["totalsize"]; $totalsize=$quota->get_size_unit($ts * 1024); if ($mode==0) { @@ -452,7 +472,6 @@ if ($mode==0) { } else { $pc=0; } - #echo "\"".$pc."%\""; $quota->quota_displaybar($pc); } @@ -471,7 +490,7 @@ echo ""; "; } } - if ($oneuser_ok) { # quotas_oneuser.php will used prefilled $c + if ($oneuser_ok) { // quotas_oneuser.php will used prefilled $c define("QUOTASONE","1"); require_once("quotas_oneuser.php"); } - } // endif un seul compte + } // endif only one account ?> diff --git a/bureau/admin/sql_bck.php b/bureau/admin/sql_bck.php index 1a2df022..8a159538 100755 --- a/bureau/admin/sql_bck.php +++ b/bureau/admin/sql_bck.php @@ -1,13 +1,5 @@ show_help("sql_bck"); - } else { - echo "

"; -__("You currently have no database defined"); - echo "

"; - } +} else { + echo "

"; + __("You currently have no database defined"); + echo "

"; +} ?> diff --git a/bureau/admin/sql_del.php b/bureau/admin/sql_del.php index 721f423d..8c200714 100755 --- a/bureau/admin/sql_del.php +++ b/bureau/admin/sql_del.php @@ -1,13 +1,5 @@ $val) { if (substr($key,0,4)=="del_") { diff --git a/bureau/admin/sql_doadd.php b/bureau/admin/sql_doadd.php index a9cc85ed..d1b4dda5 100644 --- a/bureau/admin/sql_doadd.php +++ b/bureau/admin/sql_doadd.php @@ -1,13 +1,5 @@ array ("post", "string", ""), ); + getFields($fields); + if (!$quota->cancreate("mysql")) { $msg->raise("ALERT", "mysql", _("Can't create a database: your quota is over")); include("sql_list.php"); exit; } + $q=$quota->getquota("mysql"); if($q['u'] > 0){ diff --git a/bureau/admin/sql_dobck.php b/bureau/admin/sql_dobck.php index 4e21cebb..6135f152 100644 --- a/bureau/admin/sql_dobck.php +++ b/bureau/admin/sql_dobck.php @@ -1,13 +1,5 @@ restore($restfile,true,$id)) { - $msg->raise("INFO", "mysql", _("Your database has been restored, check out the previous text for error messages.")); -} // if mysql->restore + $msg->raise("INFO", "mysql", _("Your database have been restored, check out the previous text for error messages.")); +} echo $msg->msg_html_all(); ?> diff --git a/bureau/admin/sql_getparam.php b/bureau/admin/sql_getparam.php index 5b76846f..04776bce 100644 --- a/bureau/admin/sql_getparam.php +++ b/bureau/admin/sql_getparam.php @@ -1,13 +1,5 @@ - Droits de l'utilisateur +
- +

+ include_once("foot.php"); +?> diff --git a/bureau/admin/sql_list.php b/bureau/admin/sql_list.php index b9563013..dbaa7c52 100755 --- a/bureau/admin/sql_list.php +++ b/bureau/admin/sql_list.php @@ -1,13 +1,5 @@ php_myadmin_connect()) { $_SESSION['PMA_single_signon_host'] = $r["host"]; // pma >= 2.11 session_write_close(); - // Forget any standard phpmyadmin session + // Destroy any existing phpmyadmin session setcookie("phpMyAdmin", "", time() - 3600); if ($id!="") { diff --git a/bureau/admin/sql_restore.php b/bureau/admin/sql_restore.php index f6c72c8d..2001e496 100755 --- a/bureau/admin/sql_restore.php +++ b/bureau/admin/sql_restore.php @@ -1,13 +1,5 @@ - - - - array ("post", "string", ""), diff --git a/bureau/admin/sql_users_doadd.php b/bureau/admin/sql_users_doadd.php index f613481b..4bf54b50 100755 --- a/bureau/admin/sql_users_doadd.php +++ b/bureau/admin/sql_users_doadd.php @@ -1,13 +1,5 @@ array ("post", "string", ""), diff --git a/bureau/admin/sql_users_dorights.php b/bureau/admin/sql_users_dorights.php index 4350caac..84177cc0 100644 --- a/bureau/admin/sql_users_dorights.php +++ b/bureau/admin/sql_users_dorights.php @@ -1,13 +1,5 @@ array ("post", "string", ""), diff --git a/bureau/admin/sql_users_list.php b/bureau/admin/sql_users_list.php index fc8542a5..0237d138 100755 --- a/bureau/admin/sql_users_list.php +++ b/bureau/admin/sql_users_list.php @@ -1,13 +1,5 @@ ". _("Image_Graph not installed. use 'aptitude install php-pear' then 'pear install --alldeps Image_Graph-devel' to see the graph.")."

"; diff --git a/bureau/admin/vm.php b/bureau/admin/vm.php index 97088eda..742903be 100755 --- a/bureau/admin/vm.php +++ b/bureau/admin/vm.php @@ -1,5 +1,11 @@