Adieu, menulist.txt ! Bonjour, menu avec des hooks magique dans les classes.

Plus simple à gérer pour modifier le html, plus facile à surcharger dans l'optique
de permettre de mettre des préférences.

Active se souvenir pour la session des préférences de menu.

Passe le stockage dans la session de php serialize à json
This commit is contained in:
Alan Garcia 2013-02-18 10:01:28 +00:00
parent 89d9e531b1
commit 938fcba146
40 changed files with 373 additions and 841 deletions

17
.gitattributes vendored
View File

@ -78,7 +78,6 @@ bureau/admin/adm_edit.php -text
bureau/admin/adm_email.php -text
bureau/admin/adm_list.php -text
bureau/admin/adm_login.php -text
bureau/admin/adm_menulist.php -text
bureau/admin/adm_mxaccount.php -text
bureau/admin/adm_panel.php -text
bureau/admin/adm_passpolicy.php -text
@ -310,21 +309,6 @@ bureau/admin/mem_logout.php -text
bureau/admin/mem_param.php -text
bureau/admin/mem_passwd.php -text
bureau/admin/menu.php -text
bureau/admin/menu_adm.php -text
bureau/admin/menu_aide.php -text
bureau/admin/menu_brouteur.php -text
bureau/admin/menu_cron.php -text
bureau/admin/menu_dom.php -text
bureau/admin/menu_ftp.php -text
bureau/admin/menu_ip.php -text
bureau/admin/menu_lang.php -text
bureau/admin/menu_logs.php -text
bureau/admin/menu_mail.php -text
bureau/admin/menu_mem.php -text
bureau/admin/menu_piwik.php -text
bureau/admin/menu_quota.php -text
bureau/admin/menu_sql.php -text
bureau/admin/menu_web.php -text
bureau/admin/mxlist.php -text
bureau/admin/nowebmail.php -text
bureau/admin/phpinfo.php -text
@ -481,7 +465,6 @@ etc/alternc/apache2.conf -text
etc/alternc/apache_logformat.conf -text
etc/alternc/dbusers.cnf.sample -text
etc/alternc/functions_hosting/hosting_massvhost.sh -text
etc/alternc/menulist.txt -text
etc/alternc/phpmyadmin.inc.php -text
etc/alternc/postfix-slave.cf -text
etc/alternc/postfix.cf -text

View File

@ -54,6 +54,16 @@ class m_aws {
function m_aws() {
}
function hook_menu() {
$obj = array(
'title' => _("Web Statistics"),
'ico' => 'images/stat.png',
'link' => 'aws_list.php',
'pos' => 80,
) ;
return $obj;
}
/* ----------------------------------------------------------------- */
/**

View File

@ -1,120 +0,0 @@
<?php
/*
$Id: adm_menulist.php,v 1.1 2005/09/05 10:55:48 arnodu59 Exp $
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2005 by the AlternC Development Team.
http://alternc.org/
----------------------------------------------------------------------
Based on:
Valentin Lacambre's web hosting softwares: http://altern.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag
Purpose of file: Show a form to edit a member
----------------------------------------------------------------------
*/
require_once("../class/config.php");
include("head.php");
?>
<body>
<h3><?php __("About AlternC"); ?></h3>
<hr/>
<?php
$menu_available=array();
$menu_activated=array();
$menu_error=array();
$MENUPATH=ALTERNC_PANEL."/admin/";
$file=file("/etc/alternc/menulist.txt", FILE_SKIP_EMPTY_LINES);
foreach($file as $v) {
$v=trim($v);
if ( file_exists($MENUPATH.$v)) {
$menu_activated[]=$v;
} else {
$menu_error[]=$v;
}
}
$c=opendir($MENUPATH);
while ($di=readdir($c)) {
if (preg_match("#^menu_.*\\.php$#",$di,$match)) {
$menu_available[]=$match[0];
}
}
closedir($c);
asort($menu_available);
asort($menu_activated);
asort($menu_error);
$menus=array(
"menu_dom" => _("Domains"),
"menu_adm" => _("Administration"),
"menu_mail" => _("Email Addresses"),
"menu_brouteur" => _("File browser"),
"menu_web" => _("Protected folders"),
"menu_ftp" => _("FTP accounts"),
"menu_cron" => _("Scheduled tasks"),
"menu_sql" => _("Databases"),
"menu_quota" => _("Show my quotas"),
"menu_ip" => _("Access security"),
"menu_logs" => _("Logs"),
"menu_aide" => _("Online help"),
"menu_lang" => _("Languages"),
"menu_mem" => _("Settings"),
"menu_piwik" => _("Piwik statistics"),
"menu_admin" => _("Administration"),
"menu_mailman" => _("Mailing lists"),
"menu_aws" => _("Web Statistics"),
);
function tr($name) {
global $menus;
$name=basename($name,".php");
if (isset($menus[$name])) return $menus[$name];
else return _("Module")." ".$name;
}
$menu_diff=array_diff($menu_available,$menu_activated);
__("Edit the file /etc/alternc/menulist.txt to enable, disable ou change order of menu entry.");
?>
<h4><?php __("Menu currently activated"); ?></h4>
<ul>
<?php foreach($menu_activated as $m) {
echo "<li>$m - <i>".tr($m)."</i></li>";
} ?>
</ul>
<h4><?php __("Menu activated but not present"); ?></h4>
<ul>
<?php foreach($menu_error as $m) {
echo "<li>$m - <i>".tr($m)."</i></li>";
}
?>
</ul>
<h4><?php __("Menu available but not activated"); ?></h4>
<ul>
<?php foreach($menu_diff as $m) {
echo "<li>$m - <i>".tr($m)."</i></li>";
}
?>
</ul>
<?php include_once('foot.php');?>

View File

@ -67,7 +67,6 @@ if (isset($error) && $error) {
<li class="lst2"><a href="adm_doms_def_type.php"><?php __("Manage defaults domains type"); ?></a></li>
<li class="lst1"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
<li class="lst2"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
<li class="lst1"><a href="adm_menulist.php"><?php __("Manage menu"); ?></a></li>
<!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
<?php

View File

@ -240,7 +240,7 @@ function generate_password(len){
}
function generate_password_html(id, size, field1, field2) {
$("#"+id).html("<input id='inp"+id+"' type='textbox' size=8 readonly='readonly' value='"+generate_password(size)+"' />&nbsp;<a href='javascript:generate_password_html("+id+","+size+",\""+field1+"\",\""+field2+"\");'><img src='/images/refresh.png' alt='Refresh'/></a>");
$("#"+id).html("<input id='inp"+id+"' type='textbox' size=8 readonly='readonly' value='"+generate_password(size)+"' />&nbsp;<a href='javascript:generate_password_html("+id+","+size+",\""+field1+"\",\""+field2+"\");'><img src='/images/refresh.png' alt='Refresh' title='Refresh'/></a>");
$("#inp"+id).focus();
$("#inp"+id).select();
if (field1 != "") { $(field1).val( $("#inp"+id).val() ); }

View File

@ -83,7 +83,7 @@ echo "<br/>";
if($admin->enabled) {
$expiring = $admin->renew_get_expiring_accounts();
if(count($expiring) > 0) {
if(!empty($expiring) ) {
echo "<h2>" . _("Expired or about to expire accounts") . "</h2>\n";
echo "<table cellspacing=\"2\" cellpadding=\"4\">\n";
echo "<tr><th>"._("uid")."</th><th>"._("Last name, surname")."</th><th>"._("Expiry")."</th></tr>\n";

View File

@ -33,21 +33,72 @@ require_once("../class/config.php");
<img src="logo3.png" class="menutoplogo" border="0" alt="AlternC" alt="<?php __("AlternC"); ?>"/>
<p class="currentuser"><?php echo sprintf(_("Welcome %s"),$mem->user["login"]); ?></p>
<div class="menu-box">
<a href="main.php">
<div class="menu-title"><img src="images/home.png" alt="<?php __("Home / Information"); ?>" />&nbsp;<?php __("Home / Information"); ?></div>
</a>
</div>
<?php
// Force rebuilding quota, in case of add or edit of the quota and cache not up-to-date
$quota->getquota("",true); // rebuild quota
$MENUPATH=ALTERNC_PANEL."/admin/";
$file=file("/etc/alternc/menulist.txt", FILE_SKIP_EMPTY_LINES);
foreach($file as $v) {
$v=trim($v);
if ( file_exists($MENUPATH.$v)) include($MENUPATH.$v);
$obj_menu = $menu->getmenu();
foreach ($obj_menu as $k => $m ) {
echo "<div class='menu-box ".(!empty($m['divclass'])?$m['divclass']:'')."'>\n";
echo " <a href=\"".$m['link']."\"";
if (!empty($m['target'])) echo " target='". $m['target']."' ";
echo ">\n";
echo " <div class='menu-title'>\n";
echo " <img src='".$m['ico']."' alt=\"".$m['title']."\" width='16' height='16' />&nbsp;";
echo " <span class='";
if (!empty($m['class'])) echo $m['class']." ";
echo "'>"; // fin span ouvrant
echo $m['title'];
if (isset($m['quota_total'])) {
if (!$quota->cancreate($k)) { echo '<span class="full">' ; } else { echo "<span>"; }
echo " (".$m['quota_used']."/".$m['quota_total'].")";
echo "</span>\n";
} // if there are some quota
if ( empty($m['links'])) {
$i = "images/menu_right.png";
// img machin
} else {
if ( $m['visibility'] ) {
$i="/images/menu_moins.png";
} else {
$i="/images/menu_plus.png";
}
}
echo " <img src='$i' alt='' style='float:right;' id='menu-$k-img'/>\n";
echo " </span>";
echo " </div>\n";
echo " </a>\n";
if (!empty($m['links'])) {
echo "<div class='menu-content' id='menu-$k'>";
echo " <ul>";
foreach( $m['links'] as $l ) {
if ( $l['txt'] == 'progressbar' ) {
$usage_percent = (int) ($l['used'] / $l['total'] * 100);
$usage_color = ( $l['used'] > $l['total'] ? '#800' : '#080');
$usage_color = ((85 < $usage_percent && $usage_percent <= 100) ? '#ff8800' : $usage_color); // yellow
echo "<li>";
echo '<div class="progress-bar">';
echo '<div style="width: ' . ($usage_percent > 100 ? 100 : $usage_percent) . '%; background: ' . $usage_color . ';">&nbsp;</div>';
echo '</div>';
echo "</ul>";
continue;
} // progressbar
echo "<li><a href=\"".$l['url']."\" ";
if (!empty($l['onclick'])) echo " onClick='". $l['onclick']."' ";
if (!empty($l['target'])) echo " target='". $l['target']."' ";
echo " ><span class='".(empty($l['class'])?'':$l['class'])."'>";
if (!empty($l['ico'])) echo "<img src='".$l['ico']."' alt='' />&nbsp;";
echo $l['txt'];
echo "</span></a></li>";
}
echo " </ul>";
echo "</div>";
}
echo "</div>";
if (! $m['visibility']) echo "<script type='text/javascript'>menu_toggle('menu-$k');</script>\n";
}
?>
<p class="center"><a href="about.php"><img src="logo2.png" class="menulogo" border="0" alt="AlternC" title="<?php __("About"); ?>"/></a>
<br />
@ -56,13 +107,4 @@ echo "$L_VERSION";
?>
</p>
<script type="text/javascript">
<?php
foreach( $mem->session_tempo_params_get('menu_toggle') as $k => $v ) {
if ($v == 'hidden') echo "menu_toggle('$k');\n";
}
?>
</script>

View File

@ -1,53 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############################# */
/* ######### SUPER-ADMIN ########## */
/* ############################# */
if ($mem->checkRight()) { ?>
<div class="menu-box">
<a href="javascript:menu_toggle('menu-adm');">
<div class="menu-title">
<img src="images/admin.png" alt="Administration" />&nbsp;<span class="adminmenu"><?php __("Administration"); ?></span>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-adm-img"/>
</div>
</a>
<div class="menu-content" id ="menu-adm">
<ul>
<li><a href="adm_list.php"><span class="adminmenu"><?php __("Manage AlternC accounts"); ?></span></a></li>
<li><a href="quotas_users.php?mode=4"><span class="adminmenu"><?php __("User Quotas"); ?></span></a></li>
<?php if ($cuid == 2000) { ?>
<li><a href="adm_panel.php"><span class="adminmenu"><?php __("Admin Control Panel"); ?></span></a></li>
<li><a href="/alternc-sql/"><span class="adminmenu"><?php __("PhpMyAdmin"); ?></span></a></li>
<li><a href="alternc_debugme.php?enable=<?php echo $debug_alternc->status?"0":"1"; ?>"><span class="adminmenu"><?php if ($debug_alternc->status) __("Switch debug Off"); else __("Switch debug On"); ?></span></a></li>
<?php if ( empty($L_INOTIFY_UPDATE_DOMAIN) || file_exists("$L_INOTIFY_UPDATE_DOMAIN") ) { ?>
<li><a href='javascript:alert("<?php __("Domain changes are already applying"); ?>");'><span class="adminmenu"><?php __("Applying..."); ?></span></a></li>
<?php } else { // file L_INOTIFY_UPDATE_DOMAIN don't exist ?>
<li><a href="/adm_update_domains.php" onClick='return confirm("<?php echo addslashes(_("Server configuration changes are applied every 5 minutes. Do you want to do it right now?"));?>");'><span class="adminmenu"><?php __("Apply changes"); ?></span></a></li>
<?php } // file exist L_INOTIFY_UPDATE_DOMAIN ?>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

View File

@ -1,31 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
?>
<div class="menu-box">
<a href="<?php echo $help_baseurl; ?>" target="help">
<div class="menu-title">
<img src="images/help.png" alt="<?php __("Online help"); ?>" />&nbsp;<?php __("Online help"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>

View File

@ -1,32 +0,0 @@
<?php
/*
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# BROUTEUR ############# */
?>
<div class="menu-box">
<a href="bro_main.php">
<div class="menu-title">
<img src="images/folder.png" alt="<?php __("File browser"); ?>" />&nbsp;<?php __("File browser"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>

View File

@ -1,40 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# CRON ############# */
$q = $quota->getquota("cron");
if ($q['t'] > 0 || $q['u'] > 0) {
?>
<div class="menu-box">
<a href="cron.php">
<div class="menu-title">
<img src="images/schedule.png" alt="<?php __("Scheduled tasks"); ?>" width=16px height=16px/>&nbsp;<?php __("Scheduled tasks"); ?> (<?php echo $q["u"].'/'.$q["t"]; ?>)
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
<?php
} // fin du if pour les quotas
?>

View File

@ -1,53 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# DOMAINES ############# */
$q = $quota->getquota("dom");
if ($q["t"] > 0 || $q['u'] > 0)
{
?>
<div class="menu-box">
<a href="javascript:menu_toggle('menu-dom');">
<div class="menu-title" id="test">
<img src="images/dom.png" alt="<?php __("Domains"); ?>" />&nbsp;<?php __("Domains"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="images/menu_moins.png" alt="" style="float:right;" id="menu-dom-img"/>
</div>
</a>
<div class="menu-content" id="menu-dom">
<ul>
<?php if ($quota->cancreate("dom")) { ?>
<li><a href="dom_add.php"><img src="images/new.png" alt="<?php __("Add a domain"); ?>" />&nbsp;<?php __("Add a domain"); ?></a></li>
<?php }
/* Enumeration des domaines : */
$domlist = $dom->enum_domains();
reset($domlist);
while (list($key, $val) = each($domlist)) { ?>
<li><a href="dom_edit.php?domain=<?php echo urlencode($val) ?>" title="<?php echo htmlentities($val); ?>"><?php echo $val; ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

View File

@ -1,48 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# FTP ############# */
$q = $quota->getquota("ftp");
if ($q["t"] > 0 || $q['u'] > 0) {
?>
<div class="menu-box">
<a href="javascript:menu_toggle('menu-ftp');">
<div class="menu-title">
<img src="images/ftp.png" alt="<?php __("FTP accounts"); ?>" />&nbsp;<?php __("FTP accounts"); ?> <?php if (!$quota->cancreate("ftp")) { echo '<span class="full">'; } ?>(<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)<?php if (!$quota->cancreate("ftp")) { echo '</span>'; } ?>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-ftp-img"/>
</div>
</a>
<div class="menu-content" id="menu-ftp">
<ul>
<?php if ($quota->cancreate("ftp")) { ?>
<li><a href="ftp_edit.php?create=1"><img src="images/new.png" alt="<?php __("Create a new ftp account"); ?>" />&nbsp;<?php __("Create a new ftp account"); ?></a></li>
<?php } ?>
<?php if ( $q['u'] > 0 ) { // if there are some FTP accounts ?>
<li><a href="ftp_list.php"><?php __("FTP accounts list"); ?></a></li>
<?php } //no existing FTP accounts ?>
</ul>
</div>
</div>
<?php } ?>

View File

@ -1,34 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# IP ############# */
?>
<div class="menu-box">
<a href="ip_main.php">
<div class="menu-title">
<img src="images/ip.png" alt="<?php __("Access security"); ?>" width="16" height="16" />&nbsp;<?php __("Access security"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>

View File

@ -1,15 +0,0 @@
<div class="menu-box">
<a href="javascript:menu_toggle('menu-lang');">
<div class="menu-title">
<img src="/images/lang.png" alt="<?php __("Languages"); ?>" />&nbsp;<?php __("Languages"); ?>
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-lang-img"/>
</div>
</a>
<div class="menu-content" id="menu-lang">
<ul>
<?php foreach($locales as $l) { ?>
<li><a href="/login.php?setlang=<?php echo $l; ?>" target="_top"><?php if (isset($lang_translation[$l])) echo $lang_translation[$l]; else echo $l; ?></a></li>
<?php } ?>
</ul>
</div>
</div>

View File

@ -1,37 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# LOGS ############# */
?>
<div class="menu-box">
<a href="logs_list.php">
<div class="menu-title">
<img src="images/logs.png" alt="<?php __("Logs"); ?>" width="16" height="16" />&nbsp;<?php __("Logs"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>

View File

@ -1,55 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# MAILS ############# */
$q = $quota->getquota("mail");
$r = $quota->getquota("dom");
// there are some existing mail, or there is a domain AND quota authorize mail
if ($q["u"] > 0 || ( $r["u"] > 0 && $q['t'] > 0 )) {
?>
<div class="menu-box">
<a href="javascript:menu_toggle('menu-mail');">
<div class="menu-title">
<img src="images/mail.png" alt="<?php __("Email Addresses"); ?>" />&nbsp;<?php __("Email Addresses"); ?> (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-mail-img"/>
</div>
</a>
<div class="menu-content" id="menu-mail">
<ul>
<?php
/* Enumeration des domlistes en mail : */
$domlist = $mail->enum_domains();
foreach($domlist as $l => $v){
?>
<li><a href="mail_list.php?domain_id=<?php echo urlencode($v["id"]) ?>" title='<?php echo htmlentities($v["domaine"]).'&nbsp;'.htmlentities("(".$v["nb_mail"].")"); ?>'><?php echo $v['domaine']; ?> (<?php echo $v["nb_mail"]; ?>)</a></li>
<?php
}?>
</ul>
</div>
</div>
<?php
} // fin du if pour les quotas
?>

View File

@ -1,36 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
?>
<div class="menu-box">
<a href="mem_param.php">
<div class="menu-title">
<img src="images/config.png" alt="<?php __("Settings"); ?>" />&nbsp;<?php __("Settings"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
</div>
<div class="menu-box">
<a href="mem_logout.php" target="_parent">
<div class="menu-title"><img src="images/exit.png" alt="<?php __("Logout"); ?>" />&nbsp;<?php __("Logout"); ?></div>
</a>
</div>

View File

@ -1,42 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# PIWIK ############# */
$q = $quota->getquota("piwik");
if (!empty($piwik->piwik_server_uri) && ($q["t"] > 0 || $r["u"] > 0)) {
?>
<div class="menu-box">
<a href="javascript:menu_toggle('menu-piwik');">
<div class="menu-title">
<img src="images/stat.png" alt="<?php __("Piwik statistics"); ?>" />&nbsp;<?php __("Piwik statistics"); ?>&nbsp;(<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
<div class="menu-content" id="menu-piwik">
<ul>
<li><a href="piwik_userlist.php"><?php __("Piwik Users"); ?></a></li>
<li><a href="piwik_sitelist.php"><?php __("Piwik Sites") ?></a></li>
</ul>
</div>
</div>
<?php } ?>

View File

@ -1,81 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
?>
<div class="menu-box menu-quota">
<a href="quota_show.php">
<div class="menu-title">
<img src="images/quota.png" alt="<?php __("Show my quotas"); ?>" />&nbsp;<?php __("Show my quotas"); ?>
<img src="images/menu_right.png" alt="" style="float:right;" class="menu-right"/>
</div>
</a>
<?php
$q=$quota->getquota();
$qlist=$quota->qlist();
reset($qlist);
$col=1;
if (!is_array($q) || empty($q) ) {
// "No quotas for this account, or quotas currently unavailable
return;
}
$first=true;
while (list($key,$val)=each($qlist)) {
$col=3-$col;
// FIXME: rewrite it
if (($key == 'bw_web' || $key == 'web') && (isset($q[$key]["t"]) && $q[$key]["t"] > 0)) {
/*
// Quite useless, so i commented it out
if ($first) {
echo '<dt id="#quotas">' . _("Quotas") . '</dt>';
$first=false;
}
*/
if ($key == 'web') {
$q[$key]["u"] = $q[$key]["u"] * 1024;
$q[$key]["t"] = $q[$key]["t"] * 1024;
}
$usage_percent = (int) ($q[$key]["u"] / $q[$key]["t"] * 100);
$usage_color = ($q[$key]["u"] > $q[$key]["t"] ? '#800' : '#080');
$usage_color = ((85 < $usage_percent && $usage_percent <= 100) ? '#ff8800' : $usage_color); // yellow
$url = ($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php');
echo '<ul><li>';
echo '<div><a href="' . $url . '">' . /* _($val) */ _("quota_".$key) . " " . sprintf(_("%s%% of %s"),$usage_percent,format_size($q[$key]["t"])) . '</a></div>';
echo "</li>\n";
echo '<li>';
echo '<div class="progress-bar">';
echo '<div style="width: ' . ($usage_percent > 100 ? 100 : $usage_percent) . '%; background: ' . $usage_color . ';">&nbsp;</div>';
echo '</div>';
echo '</li></ul>';
}
}
?>
<div style="height: 5px;">&nbsp;</div>
</div>

View File

@ -1,43 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
$q = $quota->getquota("mysql");
if ($q["t"] > 0 || $q['u'] >0) {
?>
<div class="menu-box">
<a href="javascript:menu_toggle('menu-sql');">
<div class="menu-title">
<img src="images/mysql.png" alt="MySQL" />&nbsp;MySQL (<?php echo $q["u"]; ?>/<?php echo $q["t"]; ?>)
<img src="/images/menu_moins.png" alt="" style="float:right;" id="menu-sql-img"/>
</div>
</a>
<div class="menu-content" id="menu-sql">
<ul>
<li><a href="sql_list.php"><?php __("Databases"); ?></a></li>
<li><a href="sql_users_list.php"><?php __("MySQL Users") ?></a></li>
<?php if ($q["u"] > 0 ) { ?>
<li><a target="_blank" href="sql_admin.php"><?php __("PhpMyAdmin"); ?></a></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>

View File

@ -1,33 +0,0 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
http://alternc.org/
----------------------------------------------------------------------
LICENSE
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License (GPL)
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
To read the license please visit http://www.gnu.org/copyleft/gpl.html
----------------------------------------------------------------------
*/
/* ############# WEB ACCESS ############# */
?>
<div class="menu-box">
<a href="hta_list.php">
<div class="menu-title">
<img src="images/password.png" alt="<?php __("Protected folders"); ?>" />&nbsp;<?php __("Protected folders"); ?>
<img src="/images/menu_right.png" alt="" style="float:right;" id="menu-adm-img"/>
</div>
</a>
</div>

View File

@ -28,7 +28,7 @@
----------------------------------------------------------------------
*/
/* * /
/* */
// To enable dispay of PHP errors
ini_set('display_errors', true);
/* */

View File

@ -64,6 +64,74 @@ class m_admin {
);
}
function hook_menu() {
global $mem, $cuid, $debug_alternc, $L_INOTIFY_UPDATE_DOMAIN;
if (!$mem->checkRight()) return false;
$obj = array(
'title' => _("Administration"),
'ico' => 'images/admin.png',
'link' => 'toggle',
'class' => 'adminmenu',
'pos' => 10,
'links' =>
array(
array(
'txt' => _("Manage AlternC accounts"),
'url' => 'adm_list.php',
'class' => 'adminmenu'
),
array(
'txt' => _("User Quotas"),
'url' => 'quotas_users.php?mode=4',
'class' => 'adminmenu'
),
)
) ;
if ($cuid == 2000) {
$obj['links'][] =
array(
'txt' => _("Admin Control Panel"),
'url' => 'adm_panel.php',
'class' => 'adminmenu'
);
$obj['links'][] =
array(
'txt' => _("PhpMyAdmin"),
'url' => '/alternc-sql/',
'class' => 'adminmenu'
);
$obj['links'][] =
array(
'txt' => ($debug_alternc->status)?_("Switch debug Off"):_("Switch debug On"),
'url' => "alternc_debugme.php?enable=".($debug_alternc->status?"0":"1"),
'class' => 'adminmenu'
);
if (empty($L_INOTIFY_UPDATE_DOMAIN) || file_exists("$L_INOTIFY_UPDATE_DOMAIN") ) {
$obj['links'][] =
array(
'txt' => _("Applying..."),
'url' => 'javascript:alert(\''._("Domain changes are already applying").'\');',
'class' => 'adminmenu',
);
} else {
$obj['links'][] =
array(
'txt' => _("Apply changes"),
'url' => 'adm_update_domains.php',
'class' => 'adminmenu',
'onclick' => 'return confirm("'.addslashes(_("Server configuration changes are applied every 5 minutes. Do you want to do it right now?")).'");',
);
} // L_INOTIFY_UPDATE_DOMAIN
} // cuid == 2000
return $obj;
}
/* ----------------------------------------------------------------- */
/** Returns the known information about a hosted account

View File

@ -35,6 +35,17 @@ class m_authip {
return $this->list_ip(true);
}
function hook_menu() {
$obj = array(
'title' => _("Access security"),
'ico' => 'images/ip.png',
'link' => 'ip_main.php',
'pos' => 120,
) ;
return $obj;
}
/*
* Retourne la liste des ip spécifiées par cet utilisateur
*

View File

@ -71,6 +71,18 @@ class m_bro {
$this->l_createfile=array( 0=>_("Go back to the file manager"), 1=>_("Edit the newly created file") );
}
function hook_menu() {
$obj = array(
'title' => _("File browser"),
'ico' => 'images/folder.png',
'link' => 'bro_main.php',
'pos' => 40,
) ;
return $obj;
}
/* ----------------------------------------------------------------- */
/** Verifie un dossier relatif au dossier de l'utilisateur courant

View File

@ -67,6 +67,16 @@ class m_cron {
return $r;
}
function hook_menu() {
$obj = array(
'title' => _("Scheduled tasks"),
'ico' => 'images/schedule.png',
'link' => 'cron.php',
'pos' => 90,
) ;
return $obj;
}
/*---------------------------------------------------------------------------*/
/** update the crontab

View File

@ -85,6 +85,38 @@ class m_dom {
function m_dom() {
}
function hook_menu() {
global $quota;
$obj = array(
'title' => _("Domains"),
'ico' => 'images/dom.png',
'link' => 'toggle',
'pos' => 20,
'links' => array(),
) ;
if ( $quota->cancreate("dom") ) {
$obj['links'][] =
array (
'ico' => 'images/new.png',
'txt' => _("Add a domain"),
'url' => "dom_add.php",
);
}
foreach ($this->enum_domains() as $d) {
$obj['links'][] =
array (
'txt' => htmlentities($d),
'url' => "dom_edit.php?domain=".urlencode($d),
);
}
return $obj;
}
/* ----------------------------------------------------------------- */
/**
* Retourne un tableau contenant les types de domaines

View File

@ -45,6 +45,38 @@ class m_ftp {
return array("ftp"=>"FTP accounts");
}
function hook_menu() {
global $quota;
$q = $quota->getquota("ftp");
$obj = array(
'title' => _("FTP accounts"),
'ico' => 'images/ftp.png',
'link' => 'toggle',
'pos' => 60,
'links' => array(),
) ;
if ( $quota->cancreate("ftp") ) {
$obj['links'][] =
array (
'ico' => 'images/new.png',
'txt' => _("Create a new ftp account"),
'url' => "ftp_edit.php?create=1",
'class' => '',
);
}
if ( $q['u'] > 0 ) { // if there are some FTP accounts
$obj['links'][] =
array (
'txt' => _("FTP accounts list"),
'url' => "ftp_list.php"
);
}
return $obj;
}
// Return the values needed to activate security access. See get_auth_class()
// in authip for more informations
@ -352,17 +384,14 @@ class m_ftp {
}
/* ----------------------------------------------------------------- */
/** Fonction appellée par domains quand un deomaine est supprimé pour le membre
/** Fonction appellée par domains quand un domaine est supprimé pour le membre
* @param string $dom Domaine à détruire.
* @access private
*/
function alternc_del_domain($dom) {
global $db,$err,$cuid;
$err->log("ftp","del_dom",$dom);
$db->query("SELECT COUNT(*) AS cnt FROM ftpusers WHERE uid='$cuid' AND name LIKE '$dom%'");
$db->next_record();
$cnt=$db->Record["cnt"];
$db->query("DELETE FROM ftpusers WHERE uid='$cuid' AND name LIKE '$dom%'");
$err->log("ftp","alternc_del_domain",$dom);
$db->query("DELETE FROM ftpusers WHERE uid='$cuid' AND ( name LIKE '$dom\_%' OR name LIKE '$dom') ");
return true;
}
@ -373,7 +402,7 @@ class m_ftp {
*/
function alternc_del_member() {
global $db,$err,$cuid;
$err->log("ftp","del_member");
$err->log("ftp","alternc_del_member");
$db->query("DELETE FROM ftpusers WHERE uid='$cuid'");
return true;
}

View File

@ -55,6 +55,17 @@ class m_hta {
return array("hta"=>"Protected folders passwords");
}
function hook_menu() {
$obj = array(
'title' => _("Protected folders"),
'ico' => 'images/password.png',
'link' => 'hta_list.php',
'pos' => 50,
) ;
return $obj;
}
/*---------------------------------------------------------------------------*/
/**

View File

@ -55,6 +55,17 @@ class m_log {
}//list_logs
function hook_menu() {
$obj = array(
'title' => _("Logs"),
'ico' => 'images/logs.png',
'link' => 'logs_list.php',
'pos' => 130,
) ;
return $obj;
}
function list_logs_directory_all($dirs){
global $err;
$err->log("log","get_logs_directory_all");

View File

@ -90,6 +90,26 @@ class m_mail {
$this->srv_pop3s = variable_get('mail_human_pop3s', $L_FQDN,'Human name for POP3s mail server');
}
function hook_menu() {
$obj = array(
'title' => _("Email Addresses"),
'ico' => 'images/mail.png',
'link' => 'toggle',
'pos' => 30,
'links' => array(),
) ;
foreach ($this->enum_domains() as $d) {
$obj['links'][] =
array (
'txt' => htmlentities($d["domaine"]).'&nbsp;'.htmlentities("(".$d["nb_mail"].")"),
'url' => "mail_list.php?domain_id=".urlencode($d['id']),
);
}
return $obj;
}
// FIXME documenter
function catchall_getinfos($domain_id) {
global $dom, $db;

View File

@ -58,6 +58,16 @@ class m_mem {
return array("mem"=>"AlternC's account password");
}
function hook_menu() {
$obj = array(
'title' => _("Settings"),
'ico' => 'images/config.png',
'link' => 'mem_param.php',
'pos' => 160,
) ;
return $obj;
}
/* ----------------------------------------------------------------- */
/** Check that the current user is an admnistrator.
@ -589,8 +599,8 @@ Cordially.
return false;
}
$j=$_SESSION[$sid];
$j=unserialize($j);
if ( ! empty( $j[$v] ) ) { // si on a bien qque chose a retourner :)
$j=json_decode($j, true);
if ( ! empty($j[$v] ) ) { // si on a bien qque chose a retourner :)
return $j[$v];
}
return false;
@ -600,14 +610,14 @@ Cordially.
$sid=$_COOKIE['session'];
$p=Array();
if ( ! empty($_SESSION[$sid]) ) {
$p = unserialize($_SESSION[$sid]);
$p = json_decode($_SESSION[$sid], true);
}
if (! $ecrase && (isset($p[$k]) && is_array($p[$k])) && is_array($v) ) {
$v=array_merge($p[$k], $v); // overwrite entry with the same name
}
$p[$k]=$v;
$_SESSION[$sid]=serialize($p);
$_SESSION[$sid]=json_encode($p);
return true;
}

View File

@ -108,6 +108,40 @@ class m_mysql {
$this->dbus = new DB_users();
}
function hook_menu() {
global $quota;
$q = $quota->getquota("mysql");
$obj = array(
'title' => _("MySQL"),
'ico' => 'images/mysql.png',
'link' => 'toggle',
'pos' => 100,
'links' => array(),
) ;
$obj['links'][] =
array (
'txt' => _("Databases"),
'url' => "sql_list.php",
);
$obj['links'][] =
array (
'txt' => _("MySQL Users"),
'url' => "sql_users_list.php",
);
if ($q["u"] > 0 ) {
$obj['links'][] =
array (
'txt' => _("PhpMyAdmin"),
'url' => "sql_admin.php",
'target' => '_blank',
);
}
return $obj;
}
/* ----------------------------------------------------------------- */
/**

View File

@ -31,6 +31,22 @@ class m_piwik {
var $piwik_admin_token;
function hook_menu() {
global $quota;
$obj = array(
'title' => _("Piwik statistics"),
'ico' => 'images/stat.png',
'link' => 'toggle',
'pos' => 115,
'links' => array(
array( 'txt' => _("Piwik Users"), 'url' => 'piwik_userlist.php'),
array( 'txt' => _("Piwik Sites"), 'url' => 'piwik_sitelist.php'),
),
) ;
return $obj;
}
/*---------------------------------------------------------------------------*/
/** Constructor
*/

View File

@ -55,6 +55,28 @@ class m_quota {
_("quota_web");
}
function hook_menu() {
global $quota;
$obj = array(
'title' => _("Show my quotas"),
'ico' => 'images/quota.png',
'link' => 'quota_show.php',
'pos' => 110,
'divclass' => 'menu-quota',
'links' => array(),
) ;
$q=$quota->getquota();
foreach ( array('web', 'bw_web') as $key ) {
if ( empty($q[$key]["t"])) continue;
$usage_percent = (int) ($q[$key]["u"] / $q[$key]["t"] * 100);
$obj['links'][] = array( 'txt'=>_("quota_".$key) . " " . sprintf(_("%s%% of %s"),$usage_percent,format_size($q[$key]["t"]*1024)), 'url'=>($key == 'bw_web' ? 'stats_show_per_month.php' : 'quota_show.php') );
$obj['links'][] = array( 'txt'=>'progressbar', 'total' => $q[$key]["t"], 'used' => $q[$key]["u"]);
}
return $obj;
}
/* ----------------------------------------------------------------- */
/** Check if a user can use a ressource.

View File

@ -3,7 +3,6 @@
# Uses debconf
. /usr/share/debconf/confmodule
MENUFILE="/etc/alternc/menulist.txt"
LOGAPACHE="/etc/alternc/awstats.log.alternc.conf"
APACHEROTATE="/etc/logrotate.d/apache2"
@ -73,14 +72,6 @@ EOF
# Update rights on previous user's awstats configuration files
chown alterncpanel:alterncpanel /etc/awstats/awstats.*.conf > /dev/null 2>&1
# ADD menu item :
if ! grep -q "^menu_aws.php$" "$MENUFILE"; then
rm -f $MENUFILE.alternc_awstats
sed -e "s/menu_cron.php/&\\
menu_aws.php/" <$MENUFILE >$MENUFILE.alternc_awstats
mv -f $MENUFILE.alternc_awstats $MENUFILE
fi
echo "**********************************************"
echo "* ALTERNC-AWSTATS *"
echo "* Add an autorized user called 'admin' in *"

View File

@ -9,11 +9,6 @@ case "$1" in
# unconfigure /etc/alternc/templates/apache-ssl/httpd.conf
alternc.install
if grep -qs "menu_aws.php" $MENUFILE; then
rm -f $MENUFILE.alternc_awstats
cat $MENUFILE | grep -v "menu_aws.php" >$MENUFILE.alternc_awstats
mv -f $MENUFILE.alternc_awstats $MENUFILE
fi
;;
purge)
#/usr/lib/alternc/quota_delete aws

View File

@ -69,13 +69,6 @@ case "$1" in
echo "/etc/bind/master was not empty. Please remove it manually."
fi
if [ ! -e /etc/alternc/menulist.txt ]; then
if [ -f /var/alternc/bureau/admin/menulist.txt ]; then
mv -f /var/alternc/bureau/admin/menulist.txt \
/etc/alternc/menulist.txt
fi
fi
;;
abort-upgrade)

View File

@ -1,14 +0,0 @@
menu_adm.php
menu_dom.php
menu_mail.php
menu_brouteur.php
menu_web.php
menu_ftp.php
menu_cron.php
menu_sql.php
menu_quota.php
menu_ip.php
menu_logs.php
menu_aide.php
menu_lang.php
menu_mem.php