예제 #1
0
$page->setOptions(array("AJAX" => True, "visible" => False));
$submod->addPage($page);
/*$page = new Page("add",_T("Add a computer","samba"));
$submod->addPage($page);*/
$page = new Page("edit", _T("Edit a computer", "samba"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("delete", _T("Delete a computer", "samba"));
$page->setOptions(array("noHeader" => True, "visible" => False));
$submod->addPage($page);
$mod->addSubmod($submod);
/**
 * Config submod
 */
$submod = new SubModule("config");
$submod->setDefaultPage("samba/config/index");
$submod->setImg('modules/samba/graph/navbar/pref');
$submod->setDescription(_T("Configuration"), "samba");
$submod->setVisibility(False);
$submod->setAlias('shares');
$page = new Page("index", _T("SAMBA configuration", "samba"));
$submod->addPage($page);
$page = new Page("restart", _T("restart SAMBA service", "samba"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("reload", _T("Reload SAMBA service", "samba"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$mod->addSubmod($submod);
/**
 * Declare ACL
예제 #2
0
    $page = new Page("ajaxDomainFilter");
    $page->setFile("modules/mail/domains/ajaxDomainFilter.php", array("AJAX" => True, "visible" => False));
    $submod->addPage($page);
    $page = new Page("ajaxMailDomainFilter");
    $page->setFile("modules/mail/domains/ajaxMailDomainFilter.php", array("AJAX" => True, "visible" => False));
    $submod->addPage($page);
    $mod->addSubmod($submod);
    $mod->addACL($attrs["maildrop"], _T("Forward to", "mail"));
} else {
    $mod->addACL($attrs["maildrop"], _T("Mail drop", "mail"));
}
if (hasVAliasesSupport()) {
    $submod = new SubModule("aliases");
    $submod->setDescription(_T("Mail", "mail"));
    $submod->setImg('modules/mail/graph/img/mail');
    $submod->setDefaultPage("mail/aliases/index");
    $submod->setVisibility($showAliasesModule);
    $submod->setPriority(10);
    $page = new Page("index", _T("Virtual aliases", "mail"));
    $submod->addPage($page);
    $page = new Page("add", _T("Add a virtual alias", "mail"));
    $submod->addPage($page);
    $page = new Page("edit", _T("Edit a virtual alias", "mail"));
    $page->setOptions(array("visible" => False));
    $submod->addPage($page);
    $page = new Page("delete", _T("Delete a virtual alias", "mail"));
    $page->setFile("modules/mail/aliases/delete.php", array("noHeader" => True, "visible" => False));
    $submod->addPage($page);
    $page = new Page("ajaxAliasesFilter");
    $page->setFile("modules/mail/aliases/ajaxAliasesFilter.php", array("AJAX" => True, "visible" => False));
    $submod->addPage($page);
예제 #3
0
 */
/**
 * shorewall module declaration
 */
include 'modules/shorewall/includes/shorewall-xmlrpc.inc.php';
$zones_types = getZonesTypes();
$lan_zones = getShorewallZones($zones_types['internal']);
$wan_zones = getShorewallZones($zones_types['external']);
$mod = new Module("shorewall");
$mod->setVersion("2.4.3");
$mod->setRevision('');
$mod->setDescription(_T("Firewall management", "shorewall"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(60);
$submod = new SubModule("shorewall", _T("Firewall", "shorewall"));
$submod->setDefaultPage("shorewall/shorewall/internal_fw");
$submod->setImg('modules/shorewall/graph/navbar/shorewall');
$submod->setPriority(60);
/* Add the page to the module */
$page = new Page("internal_fw", _T("Internal → Server", "shorewall"));
$submod->addPage($page);
if (!$lan_zones) {
    $page->setOptions(array("visible" => False));
}
$page = new Page("ajax_internal_fw");
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$page = new Page("delete_internal_fw_rule");
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$page = new Page("external_fw", _T("External → Server", "shorewall"));
예제 #4
0
$MMCApp =& MMCApp::getInstance();
/* Get the base module instance */
$base =& $MMCApp->getModule('base');
/* Get the computers sub-module instance */
$submod =& $base->getSubmod('computers');
/* Set up MSC pages only when the computers module is available */
if (!empty($submod)) {
    $mod = new Module("msc");
    $mod->setVersion(VERSION);
    $mod->setRevision(REVISION);
    $mod->setDescription(_T("Secure Control", "msc"));
    $mod->setAPIVersion("0:0:0");
    $mod->setPriority(700);
    $submodmsc = new SubModule("logs", _T("Audit", "msc"));
    $submodmsc->setImg('modules/msc/img/navbar/msc');
    $submodmsc->setDefaultPage("msc/logs/consult");
    $page = new Page("consult", _T('My commands', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("consultAll", _T('All user commands', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("viewLogs", _T('Commands logs', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("all", _T('Show all logs', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("pending", _T('Show pending task\'s logs', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("running", _T('Show running task\'s logs', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("finished", _T('Show finished task\'s logs', 'msc'));
    $submodmsc->addPage($page);
    $page = new Page("custom", _T('Show custom state task\'s logs', 'msc'));
예제 #5
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * dashboard module declaration
 */
require_once "modules/pulse2/version.php";
$mod = new Module("support");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Support", "support"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(500);
$submod = new SubModule("support", _T("Remote support", "support"));
$submod->setDefaultPage("support/support/index");
$submod->setVisibility(false);
$submod->setPriority(110);
$page = new Page("collect", _T("Collect", "support"));
$submod->addPage($page);
$page = new Page("connect", _T("Connect", "support"));
$submod->addPage($page);
$page = new Page("disconnect", _T("Disconnect", "support"));
$submod->addPage($page);
$page = new Page("get_file", _T("Download an archive including logs and config files", "support"));
$submod->addPage($page);
$mod->addSubmod($submod);
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($mod);
예제 #6
0
/**
 * dashboard module declaration
 */
$MMCApp =& MMCApp::getInstance();
/* Get the base module instance reference */
$base =& $MMCApp->getModule('base');
/* Get the main sub-module instance reference */
$main =& $base->getSubmod('main');
$mod = new Module("dashboard");
$mod->setVersion("3.0.94");
$mod->setRevision('');
$mod->setDescription(_T("Dashboard", "dashboard"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(-10);
$submod = new SubModule("main", _T("Dashboard", "dashboard"));
$submod->setImg('modules/dashboard/graph/navbar/dashboard');
$submod->setDefaultPage("dashboard/main/default");
$submod->setPriority(-10);
/* Add the dashboard to the main module */
$page = new Page("default", _T("Dashboard", "dashboard"));
$page->setFile("modules/dashboard/main/default.php");
$submod->addPage($page);
$main->addPage($page);
$page = new Page("ajaxPanels", _T("Panels", "dashboard"));
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$mod->addSubmod($submod);
$MMCApp->addModule($mod);
# hide status submod in base module
$status =& $base->getSubmod('status');
$status->setVisibility(False);
예제 #7
0
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * module declaration
 */
require_once "modules/pulse2/version.php";
$mod = new Module("imaging");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Imaging service", "imaging"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(600);
$submod = new SubModule("manage");
$submod->setDescription(_T("Imaging", "manage"));
$submod->setImg("modules/imaging/img/imaging");
$submod->setDefaultPage("imaging/manage/index");
$page = new Page("index", _T("Server status", "imaging"));
$submod->addPage($page);
$page = new Page("master", _T("Manage masters", "imaging"));
$submod->addPage($page);
$page = new Page("master_remove", _T("Remove master", "imaging"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$page = new Page("master_delete", _T("Delete master", "imaging"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$page = new Page("master_edit", _T("Edit master", "imaging"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("master_add", _T("Add master", "imaging"));
$page->setOptions(array("visible" => False, "noHeader" => True));
예제 #8
0
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
/* require_once("modules/ppolicy/includes/ppolicy-xmlrpc.php"); */
/* require_once("modules/ppolicy/includes/ppolicy.inc.php"); */
/**
 * ppolicy module declaration
 */
/* require_once("modules/admin/includes/admin.inc.php"); */
require_once "modules/admin/includes/commons.inc.php";
$mod = new Module("admin");
$mod->setVersion("3.1.1");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Configuration", "admin"));
$mod->setAPIVersion("4.1.3");
$mod->setPriority(600);
/* Add the page to the module */
$submod = new SubModule("configure");
$submod->setVisibility(True);
$submod->setDescription(_T("Administration"));
$submod->setDefaultPage("admin/configure/index");
$submod->setImg('img/navbar/load');
$mod->addSubmod($submod);
/* Add the (yet empty) module to the app */
$MMCApp = MMCApp::getInstance();
$MMCApp->addModule($mod);
unset($MMCApp);
/* Load all configuration page found in the "pages" directory, they will
 be added to the main submodule
*/
loadAllConfigurationPages();
예제 #9
0
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * module declaration
 */
require_once "modules/pulse2/version.php";
$mod = new Module("backuppc");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Backup", "backuppc"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(800);
$submod = new SubModule("backuppc");
$submod->setDescription(_T("Backup", "backuppc"));
$submod->setImg('modules/backuppc/img/navbar/bpc');
$submod->setDefaultPage("backuppc/backuppc/index");
$page = new Page("index", _T('Backup status', 'backuppc'));
$submod->addPage($page);
$page = new Page("hostStatus", _T('Host backup status', 'backuppc'));
$page->setFile("modules/backuppc/backuppc/hostStatus.php");
$tab = new Tab("tab1", _T('Host summary', 'backuppc'));
$page->addTab($tab);
$tab = new Tab("tab2", _T('Edit host config', 'backuppc'));
$page->addTab($tab);
$tab = new Tab("tab3", _T('File search', 'backuppc'));
$page->addTab($tab);
$submod->addPage($page);
$page = new Page("EditBackupProfile", _T('Edit Backup Profile', 'backuppc'));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("EditPeriodProfile", _T('Edit Backup period Profile', 'backuppc'));
예제 #10
0
function _createSamba4ConfigSubmodule($isProvisioned)
{
    $submodule = new SubModule("config");
    $submodule->setDefaultPage("samba4/config/index");
    $submodule->setImg('modules/samba4/graph/navbar/pref');
    $submodule->setDescription(_T("Configuration"), "samba4");
    $submodule->setVisibility(False);
    $submodule->setAlias('shares');
    $page = new Page("index", _T("SAMBA4 configuration", "samba4"));
    $page->setImg("modules/samba4/graph/img/config/icn_global_active.gif", "modules/samba4/graph/img/config/icn_global.gif");
    $submodule->addPage($page);
    $page = new Page("restart", _T("restart SAMBA service", "samba4"));
    $page->setOptions(array("visible" => False));
    $submodule->addPage($page);
    $page = new Page("reload", _T("Reload SAMBA service", "samba4"));
    $page->setOptions(array("visible" => False));
    $submodule->addPage($page);
    return $submodule;
}
예제 #11
0
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
$mod = new Module("squid");
$mod->setVersion("2.5.89");
$mod->setRevision('');
$mod->setDescription(_T("Web Proxy Content filter"), "squid");
$mod->setAPIVersion('1:1:0');
$submod = new SubModule("internet");
$submod->setDescription(_T("Proxy", "squid"));
$submod->setImg('modules/squid/graph/navbar/proxy');
$submod->setDefaultPage("squid/internet/blackmanager");
$submod->setPriority(300);
$page = new Page("blackmanager", _T("Blacklist", "squid"));
$submod->addPage($page);
$page = new Page("whitemanager", _T("Whitelist", "squid"));
$submod->addPage($page);
$page = new Page("timemanager", _T("Time range whitelist", "squid"));
$submod->addPage($page);
$page = new Page("extmanager", _T("Extension blacklist", "squid"));
$submod->addPage($page);
$page = new Page("machmanager", _T("IP whitelist", "squid"));
$submod->addPage($page);
$page = new Page("deleteb", _T("Delete from blacklist", "squid"));
$page->setOptions(array("noHeader" => True, "visible" => False));
$submod->addPage($page);
$page = new Page("deletew", _T("Delete from whitelist", "squid"));
예제 #12
0
/**
 * module declaration
 */
$mod = new Module("network");
$mod->setVersion("2.5.95");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Network management", "network"));
$mod->setAPIVersion('2:1:0');
$mod->setPriority(30);
/**
 * user submod definition
 */
$submod = new SubModule("network");
$submod->setDescription(_T("Network", "network"));
$submod->setImg('modules/network/graph/img/network');
$submod->setDefaultPage("network/network/index");
$submod->setPriority(30);
$visibleDNS = True;
if (!hasDNS()) {
    $submod->setDefaultPage("network/network/subnetindex");
    $visibleDNS = False;
}
$visibleDHCP = True;
if (!hasDHCP()) {
    $submod->setDefaultPage("network/network/index");
    $visibleDHCP = False;
}
$visibleServices = True;
if (in_array("services", $_SESSION['supportModList'])) {
    $visibleServices = False;
}
예제 #13
0
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * module declaration
 */
require_once "modules/pulse2/version.php";
$mod = new Module("inventory");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Inventory", "inventory"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(700);
$submod = new SubModule("inventory");
$submod->setDescription(_T("Inventory", "inventory"));
$submod->setImg('modules/inventory/graph/img/inventory');
$submod->setDefaultPage("inventory/inventory/incoming");
$page = new Page("incoming", _T("Incoming", "inventory"));
$submod->addPage($page);
$page = new Page("index", _T("Bios", "inventory"));
$submod->addPage($page);
$page = new Page("hardware", _T("Hardware", "inventory"));
$submod->addPage($page);
$page = new Page("network", _T("Network", "inventory"));
$submod->addPage($page);
$page = new Page("controller", _T("Controller", "inventory"));
$submod->addPage($page);
$page = new Page("summary", _T("Summary", "inventory"));
$submod->addPage($page);
$page = new Page("drive", _T("Drive", "inventory"));
$submod->addPage($page);
$page = new Page("input", _T("Input", "inventory"));
예제 #14
0
$submod->addPage($page);
$page = new Page("ajaxFilter");
$page->setFile("modules/base/groups/ajaxFilter.php", array("AJAX" => True, "visible" => False));
$submod->addPage($page);
$page = new Page("members", _("Group members"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("edit", _("Edit a group"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$mod->addSubmod($submod);
/* Computer management module */
if (hasComputerManagerWorking()) {
    $submod = new SubModule("computers", _("Computers"));
    $submod->setImg('modules/base/graph/navbar/computer');
    $submod->setDefaultPage("base/computers/index");
    $submod->setPriority(3);
    $page = new Page("index", _("Computer list"));
    $submod->addPage($page);
    $page = new Page("add", _("Add computer"));
    if (!canAddComputer()) {
        $page->setOptions(array("visible" => False));
    }
    $submod->addPage($page);
    $page = new Page("edit", _("Edit computer"));
    $page->setOptions(array("visible" => False));
    $submod->addPage($page);
    $page = new Page("delete", _("Delete a computer"));
    $page->setFile("modules/base/computers/delete.php", array("noHeader" => True, "visible" => False));
    $submod->addPage($page);
    $page = new Page("ajaxComputersList", _("Ajax part of computers list"));
예제 #15
0
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * services module declaration
 */
$MMCApp =& MMCApp::getInstance();
$mod = new Module("services");
$mod->setVersion("3.1.1");
$mod->setRevision('');
$mod->setDescription(_T("Services management", "services"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(990);
$submod = new SubModule("control", _T("Services", "services"));
$submod->setDefaultPage("services/control/index");
$submod->setImg('modules/services/graph/navbar/services');
$submod->setPriority(990);
/* Add the page to the module */
$page = new Page("index", _T("Core services", "services"));
$submod->addPage($page);
$page = new Page("ajaxServicesFilter", _T("Core services", "services"));
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$page = new Page("others", _T("Others services", "services"));
$submod->addPage($page);
$page = new Page("action");
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$page = new Page("start");
$page->setOptions(array("visible" => False, "AJAX" => True));
예제 #16
0
 * (at your option) any later version.
 *
 * MMC 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.
 *
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * report module declaration
 */
$MMCApp =& MMCApp::getInstance();
$mod = new Module("report");
$mod->setVersion("3.1.83");
$mod->setRevision('');
$mod->setDescription(_T("Reporting", "report"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(990);
$submod = new SubModule("report", _T("Report", "report"));
$submod->setDefaultPage("report/report/index");
$submod->setImg('modules/report/graph/navbar/report');
$submod->setPriority(990);
$page = new Page("index", _T("Report creation", "report"));
$submod->addPage($page);
$page = new Page("get_file", _T("Download a file from report module (report or PNG)", "report"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$mod->addSubmod($submod);
$MMCApp->addModule($mod);
예제 #17
0
 */
/**
 * module declaration
 */
require_once "modules/pulse2/version.php";
// hide msc module for the moment
$mod = new Module("pkgs");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Packages", "pkgs"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(800);
$submod = new SubModule("pkgs");
$submod->setDescription(_T("Packages", "pkgs"));
$submod->setImg('modules/pkgs/img/navbar/pkgs');
$submod->setDefaultPage("pkgs/pkgs/index");
$page = new Page("index", _T('Show all packages', 'pkgs'));
$submod->addPage($page);
$page = new Page("bundleList", _T('Show all bundles', 'pkgs'));
$submod->addPage($page);
$page = new Page("add", _T('Add a package', 'pkgs'));
$submod->addPage($page);
$page = new Page("edit", _T('Edit a package', 'pkgs'));
$submod->addPage($page);
$page = new Page("addBundle", _T('Add a bundle', 'pkgs'));
$submod->addPage($page);
$page = new Page("editBundle", _T('Edit a bundle', 'pkgs'));
$submod->addPage($page);
$submod->addPage($page);
$page = new Page("pending", _T('See pending packages', 'pkgs'));
$submod->addPage($page);
예제 #18
0
 */
/**
 * module declaration
 */
$mod = new Module("proxy");
$mod->setVersion("2.5.1");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Web proxy"), "proxy");
$mod->setAPIVersion('1:1:0');
/**
 * user submod definition
 */
$submod = new SubModule("blacklist");
$submod->setDescription(_T("Proxy", "proxy"));
$submod->setImg('modules/proxy/graph/navbar/proxy');
$submod->setDefaultPage("proxy/blacklist/statut");
$submod->setPriority(300);
$page = new Page("index", _T("Blacklist", "proxy"));
$submod->addPage($page);
$page = new Page("delete", _T("Remove a domain in the blacklist", "proxy"));
$page->setOptions(array("noHeader" => True, "visible" => False));
$submod->addPage($page);
$page = new Page("add", _T("Add a domain in the blacklist", "proxy"));
$submod->addPage($page);
$page = new Page("restart", _T("Restart proxy web service", "proxy"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("statut", _T("Proxy status page", "proxy"));
$submod->addPage($page);
$mod->addSubmod($submod);
$MMCApp =& MMCApp::getInstance();
예제 #19
0
 * You should have received a copy of the GNU General Public License
 * along with MMC.  If not, see <http://www.gnu.org/licenses/>.
 */
/**
 * update module declaration
 */
require_once "modules/pulse2/version.php";
$MMCApp =& MMCApp::getInstance();
$mod = new Module("update");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Update manager", "update"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(990);
$submod = new SubModule("update", _T("Updates", "update"));
$submod->setDefaultPage("update/update/index");
$submod->setImg('modules/update/graph/navbar/update');
$submod->setPriority(990);
$page = new Page("index", _T("All updates", "update"));
$submod->addPage($page);
$page = new Page("viewUpdates", _T("Updates", "update"));
$submod->addPage($page);
$page = new Page("ajaxUpdates", _T("Updates list", "update"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$page = new Page("enableUpdate", _T("Enable update", "update"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);
$page = new Page("disableUpdate", _T("Disable update", "update"));
$page->setOptions(array("visible" => False, "noHeader" => True));
$submod->addPage($page);