Commit 8e34ec29 authored by Alan Garcia's avatar Alan Garcia
Browse files

Manage menulist

parent 7d47f685
......@@ -38,6 +38,7 @@ 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
......
......@@ -34,19 +34,19 @@ include("head.php");
?>
<body>
<h3><?php __("About AlternC"); ?></h3>
<i><?php __("Hosting Software");?></i>
<i><?php __("Hosting control panel");?></i>
<hr/>
<p>
<?php
__("AlternC is an automatic hosting software suite based on Debian. It features a PHP-based administration interface and scripts that manage server configuration. <br/>It can manage email, Web, Web statistics, and mailing list hosting. It is available in French, English, and Spanish.");
__("AlternC is an automatic hosting software suite. It features a PHP-based administration interface and scripts that manage server configuration. <br/>It manages, among others, email, Web, Web statistics, and mailing list services. It is available in many languages. It is a free software distributed under GPL license.");
?>
<p>
<p>
<ul>
<li><?php __("Official website: ");?> <a target=_blank href="http://www.alternc.com">http://www.alternc.com</a></li>
<li><?php __("Developper website: ");?> <a target=_blank href="http://www.alternc.org">http://www.alternc.org</a></li>
<li><?php __("Help: ");?> <a target=_blank href="http://www.aide-alternc.com">http://www.aide-alternc.com</a></li>
<li><?php __("Official website: ");?> <a target=_blank href="http://alternc.com">http://alternc.com</a></li>
<li><?php __("Developer website: ");?> <a target=_blank href="https://alternc.org">https://alternc.org</a></li>
<li><?php __("Help: ");?> <a target=_blank href="http://aide-alternc.org">http://aide-alternc.org</a></li>
</ul>
</li>
......
<?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);
$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 actually activated"); ?></h4>
<ul>
<?php foreach($menu_activated as $m){ echo "<li>$m - <i>"._("shortdesc_$m")."</i></li>";} ?>
</ul>
<h4><?php __("Menu activated but not present"); ?></h4>
<ul>
<?php foreach($menu_error as $m){ echo "<li>$m - <i>"._("shortdesc_$m")."</i></li>";} ?>
</ul>
<h4><?php __("Menu avalaible but not activated"); ?></h4>
<ul>
<?php foreach($menu_diff as $m){ echo "<li>$m - <i>"._("shortdesc_$m")."</i></li>";} ?>
</ul>
<?php include_once('foot.php');?>
......@@ -66,6 +66,7 @@ if (isset($error) && $error) {
<li class="lst1"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
<li class="lst2"><a href="adm_domstype.php"><?php __("Manage domains type"); ?></a></li>
<li class="lst1"><a href="adm_dnsweberror.php"><?php __("DNS and website having errors"); ?></a></li>
<li class="lst2"><a href="adm_menulist.php"><?php __("Manage menu"); ?></a></li>
<!-- <li class="lst2"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> -->
</ul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment