* 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")); $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);
$page->setFile("modules/mail/domains/ajaxFilter.php", array("AJAX" => True, "visible" => False)); $submod->addPage($page); $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");
* 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();
* 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')); $submod->addPage($page); $page = new Page("editBundle", _T('Edit a bundle', 'pkgs')); $submod->addPage($page); $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 */ $mod->addACL("isSamba", _T("Add/delete SAMBA's attributes", "samba"));
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; }
* 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)); $submod->addPage($page); $page = new Page("master_edit", _T("Edit master", "imaging")); $page->setOptions(array("visible" => False)); $submod->addPage($page);
* 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')); $page->addTab($tab); $submod->addPage($page); $page = new Page("EditBackupProfile", _T('Edit Backup Profile', 'backuppc')); $page->setOptions(array("visible" => False));
* 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")); $submod->addPage($page); $page = new Page("deleteb", _T("Delete from blacklist", "squid")); $page->setOptions(array("noHeader" => True, "visible" => False));
*/ 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; } $visibleDHCP = True; if (!hasDHCP()) { $submod->setDefaultPage("network/network/index"); $visibleDHCP = False; } $visibleServices = True; if (in_array("services", $_SESSION['supportModList'])) {
* 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")); $submod->addPage($page); $page = new Page("summary", _T("Summary", "inventory")); $submod->addPage($page); $page = new Page("drive", _T("Drive", "inventory"));
* * 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'); $page = new Page("createStaticGroup", _T("Create static group from dashboard widgets (GLPI)", "glpi")); $page->setFile("modules/glpi/glpi/createStaticGroup.php"); $page->setOptions(array("visible" => False, "noHeader" => True)); $submod->addPage($page); $page = new Page("createAntivirusStaticGroup", _T("Create static group from antivirus dashboard widget (GLPI)", "glpi"));