* 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
 */
/**
 * 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'));
Beispiel #2
0
 * 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/>.
 */
/* 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
Beispiel #3
0
 * 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/>.
 */
/**
 * 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));
 * 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/>.
 */
require_once "modules/ppolicy/includes/ppolicy-xmlrpc.php";
require_once "modules/ppolicy/includes/ppolicy.inc.php";
/**
 * ppolicy module declaration
 */
$mod = new Module("ppolicy");
$mod->setVersion("3.1.90");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Password Policy", "ppolicy"));
$mod->setAPIVersion("0:1:0");
$mod->setPriority(600);
/* Get the base module instance reference */
$base =& $MMCApp->getModule('base');
/* Get the users sub-module instance reference */
$users =& $base->getSubmod('users');
/* Add the page to the module */
$page = new Page("indexppolicy", _T("Password policies", "ppolicy"));
$page->setImg("modules/base/graph/access/img/icn_global_active.gif", "modules/base/graph/access/img/icn_global.gif");
$page->setFile("modules/ppolicy/default/index.php");
$users->addPage($page);
$page = new Page("addppolicy", _T("Add a password policy", "ppolicy"));
$page->setImg("modules/base/graph/access/img/icn_global_active.gif", "modules/base/graph/access/img/icn_global.gif");
$page->setFile("modules/ppolicy/default/add.php");
$users->addPage($page);
Beispiel #5
0
 *
 * 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
 */
require_once "modules/base/includes/computers.inc.php";
require_once "modules/base/includes/logging-xmlrpc.inc.php";
require_once "modules/base/includes/users-xmlrpc.inc.php";
/**
 * module declaration
 */
$mod = new Module("base");
$mod->setVersion("3.0.94");
$mod->setRevision('$Rev$');
$mod->setAPIVersion("9:0:5");
$mod->setDescription(_("User, group and computer management"));
$mod->setPriority(0);
/**
 * define main submod
 */
$submod = new SubModule("main", _("Home"));
$submod->setVisibility(False);
$submod->setDefaultPage("base/main/default");
$submod->setPriority(0);
$page = new Page("default", _("Shortcuts"));
$page->setOptions(array("visible" => False));
$submod->addPage($page);
$page = new Page("favorites", _("Favorites page"));
$page->setOptions(array("visible" => False, "AJAX" => True));
$submod->addPage($page);
$mod->addSubmod($submod);
Beispiel #6
0
 * $Id$
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (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/>.
 */
require_once "modules/sshlpk/includes/sshlpk-xmlrpc.php";
/**
 * module declaration
 */
$mod = new Module("sshlpk");
$mod->setVersion("2.5.1");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("LDAP Public SSH key management", "sshlpk"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(600);
$mod->addACL("showsshkey", _T("Show/Hide SSH key list", "sshlpk"));
$mod->addACL("sshkeylist", _T("Manage SSH key", "sshlpk"));
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($mod);
 */
/**
 * module declaration
 */
require_once "modules/pulse2/version.php";
$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);
Beispiel #8
0
 * 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, write to the Free Software
 * 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'));
Beispiel #9
0
 * 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
 *
 * Author(s):
 *   Julien Kerihuel <*****@*****.**>
 *   Miguel Julián <*****@*****.**>
 */
require "modules/samba4/includes/common-xmlrpc.inc.php";
/**
 * module declaration
 */
$module = new Module("samba4");
$module->setVersion("1.0.1");
$module->setRevision('$Rev$');
$module->setDescription(_T("SAMBA4 management"), "samba4");
$module->setAPIVersion("1:0:1");
$module->setPriority(20);
$isProvisioned = isSamba4Provisioned();
$sharesSubmodule = _createSamba4SharesSubmodule($isProvisioned);
$module->addSubmod($sharesSubmodule);
$machinesSubmodule = _createSamba4MachinesSubmodule($isProvisioned);
$module->addSubmod($machinesSubmodule);
$configSubmodule = _createSamba4ConfigSubmodule($isProvisioned);
$module->addSubmod($configSubmodule);
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($module);
function _createSamba4SharesSubmodule($isProvisioned)
{
    $submodule = new SubModule("shares");
    $submodule->setDescription(_T("Shares", "samba4"));
Beispiel #10
0
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once 'modules/network/includes/network-xmlrpc.inc.php';
/**
 * 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;
}
Beispiel #11
0
 * the Free Software Foundation; either version 2 of the License, or
 * (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, 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"));
Beispiel #12
0
 * 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 LMC; if not, write to the Free Software
 * 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"));
Beispiel #13
0
 * 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 LMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * module declaration
 */
require_once "modules/pulse2/version.php";
$mod = new Module("pulse2");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Pulse2", "pulse2"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(700);
/* Get the base module instance */
$base =& $MMCApp->getModule('base');
/* Get the computers sub-module instance */
$submod =& $base->getSubmod('computers');
$page = new Page("computers_list", _T("Computers list", "pulse2"));
$page->setOptions(array("visible" => False));
$page->setFile("modules/pulse2/pulse2/computers_list.php");
$submod->addPage($page);
$page = new Page("select_location", _T("Location selection in computer edit", "pulse2"));
$page->setOptions(array("visible" => False));
$page->setFile("modules/pulse2/includes/select_location.php");
$submod->addPage($page);
unset($submod);
Beispiel #14
0
 * 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/>.
 */
/**
 * 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);
Beispiel #15
0
/**
 * (c) 2009 Glen Ogilvie
 *
 * $Id$
 *
 * This file is part of Mandriva Management Console (MMC).
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (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/>.
 */
/**
 * module declaration
 */
$mod = new Module("userquota");
$mod->setVersion("2.4.92");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Manage user quotas for filesystems and networks", "userquota"));
$mod->setAPIVersion('0:0:0');
$mod->setPriority(700);
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($mod);
Beispiel #16
0
 * 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, write to the Free Software
 * 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));
Beispiel #17
0
 *
 * 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
 */
$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);
Beispiel #18
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/>.
 */
require_once "modules/dyngroup/includes/includes.php";
require_once "modules/pulse2/version.php";
$mod = new Module("dyngroup");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("Dyngroup", "dyngroup"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(700);
$MMCApp =& MMCApp::getInstance();
/* Get the base module instance */
$base =& $MMCApp->getModule('base');
/* Get the computers sub-module instance */
$submod =& $base->getSubmod('computers');
if (!empty($submod)) {
    /* Dynamic groups */
    if (isDynamicEnable()) {
        $page = new Page("computersgroupcreator", _T("Computers Group Creator", "dyngroup"));
        $page->setFile("modules/dyngroup/dyngroup/tab.php");
        $tab = new Tab("tabdyn", _T("Dynamic group creation's tab", "dyngroup"));
        $page->addTab($tab);
        $tab = new Tab("tabsta", _T("Static group creation's tab", "dyngroup"));
Beispiel #19
0
 * 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/>.
 */
/**
 * 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 &rarr; 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);
Beispiel #20
0
 * 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/>.
 */
/**
 * 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");
Beispiel #21
0
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * module declaration
 */
$mod = new Module("samba");
$mod->setVersion("2.4.92");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("SAMBA management"), "samba");
$mod->setAPIVersion("5:3:4");
$mod->setPriority(20);
/**
 * shares submod definition
 */
$submod = new SubModule("shares");
$submod->setDescription(_T("Shares", "samba"));
$submod->setImg('modules/samba/graph/navbar/share');
$submod->setDefaultPage("samba/shares/index");
$submod->setPriority(20);
$page = new Page("index", _T("List shares", "samba"));
$submod->addPage($page);
$page = new Page("add", _T("Add a share", "samba"));
$submod->addPage($page);
$page = new Page("backup", _T("Backup a share", "samba"));
Beispiel #22
0
<?php

/**
 * (c) 2014 Mandriva, http://www.mandriva.com
 *
 * This file is part of Management Console.
 *
 * MMC is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (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/>.
 */
require_once "modules/radius/includes/radius-xmlrpc.php";
$MMCApp =& MMCApp::getInstance();
$mod = new Module("radius");
$mod->setVersion("2.5.95");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Radius management", "radius"));
$mod->setAPIVersion("0:0:0");
$mod->setPriority(700);
$mod->addACL("showradius", _T("Show/Hide radius attributes", "radius"));
$mod->addACL("radiusCallingStationId", _T("Calling Station ID", "radius"));
$MMCApp->addModule($mod);
Beispiel #23
0
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * module declaration
 */
require_once "modules/mail/includes/mail-xmlrpc.php";
$mod = new Module("mail");
$mod->setVersion("2.4.92");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Mail management", "mail"));
$mod->setAPIVersion("7:0:0");
$mod->setPriority(10);
$attrs = getMailAttributes();
$mod->addACL("mailaccess", _T("Mail access", "mail"));
$mod->addACL("maildisable", _T("Disable mail delivery", "mail"));
$mod->addACL($attrs["mailalias"], _T("Mail aliases", "mail"));
$mod->addACL($attrs["mailbox"], _T("Mail delivery path", "mail"));
$mod->addACL($attrs["mailhost"], _T("Mail server host", "mail"));
$mod->addACL($attrs["mailuserquota"], _T("Mail user quota", "mail"));
$mod->addACL("mailgroupaccess", _T("Mail group alias access", "mail"));
$showAliasesModule = True;
if (hasVDomainSupport()) {
    $showAliasesModule = False;
    $submod = new SubModule("domains");
    $submod->setDescription(_T("Mail", "mail"));
Beispiel #24
0
require_once '../../model/DAL/ModuleDAL.php';
//===Création du module====
$newModule = new Module();
$newAssignment = new Assignment();
$newExam = new Exam();
//regex opur les date format YYYY/MM/DD
$myregex = "~^[0-9]{4}/[0-9]{1,2}/[0-9]{1,2}\$~";
//********CREATION MODULE *******
//Vérifie ce qui est renvoyer par le POST de /view/phtml/module_create.php
//et set de l'objet newModule au fur et à mesure
$validModuleLabel = filter_input(INPUT_POST, 'label', FILTER_SANITIZE_STRING);
$newModule->setLabel($validModuleLabel);
$validModuleNumber = filter_input(INPUT_POST, 'moduleNumber', FILTER_SANITIZE_NUMBER_INT);
$newModule->setNumber($validModuleNumber);
$validModuleDescription = filter_input(INPUT_POST, 'descriptionModule', FILTER_SANITIZE_STRING);
$newModule->setDescription($validModuleDescription);
$newModule->setBareme(1);
//barème par defaut
$newModule->setAffiche(1);
//visible
//$newModule->setAssignment($newAssignment); //lors de la creation du module dans la table, l'attribut moduleId de l'assignemnt va etre modifier a la valeur de ce module.
//$newModule->setExam($newExam); //lie l'exam à ce module
//insertion du module dans la table
$validInsertModule = ModuleDAL::insertOnDuplicate($newModule);
$moduleId = $newModule->getId();
if ($validInsertModule != null) {
    $moduleId = $newModule->getId();
    echo "Insertion Module OK (id:" . $moduleId . ")";
} else {
    echo "ECHEC insertion module, good luck";
}
Beispiel #25
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);
Beispiel #26
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/>.
 */
/**
 * module declaration
 */
$mod = new Module("bulkimport");
$mod->setVersion("2.5.95");
$mod->setRevision('$Rev$');
$mod->setDescription(_T("Bulk user manager via CSV files", "bulkimport"));
$mod->setAPIVersion('0:0:0');
/* Get the base module instance reference */
$base =& $MMCApp->getModule('base');
/* Get the computers sub-module instance reference */
$users =& $base->getSubmod('users');
/* Add the page to the module */
$page = new Page("bulkimport", _T("Bulk import (CSV)", "bulkimport"));
$page->setFile("modules/bulkimport/import/index.php");
$page->setImg("modules/base/graph/users/img/icn_addUser_active.gif", "modules/base/graph/users/img/icn_addUser.gif");
$users->addPage($page);
$MMCApp =& MMCApp::getInstance();
$MMCApp->addModule($mod);
unset($page);
unset($users);
Beispiel #27
0
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
/**
 * 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"));
Beispiel #28
0
 *
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require_once "modules/pulse2/version.php";
$MMCApp =& MMCApp::getInstance();
$mod = new Module("glpi");
$mod->setVersion(VERSION);
$mod->setRevision(REVISION);
$mod->setDescription(_T("GLPI Inventory", "glpi"));
$mod->setAPIVersion("0:0:0");
// Create a glpi submodule only for Glpi Dashboard ACL
// (Antivirus, Inventory, WinXP -> 7 migration,...)
$submod = new SubModule("glpi");
$submod->setDescription(_T("Glpi", "glpi"));
// BTW, hide this submodule from Web UI
$submod->setVisibility(False);
$page = new Page('glpi_dashboard', _T('Glpi Dashboard', 'glpi'));
$submod->addPage($page);
$mod->addSubmod($submod);
$MMCApp->addModule($mod);
/* Get the base module instance */
$base =& $MMCApp->getModule('base');
/* Get the computers sub-module instance */
$submod =& $base->getSubmod('computers');