<?php /* Build log sidebar that aggregates all log viewers from all available modules */ $sidemenu = new SideMenu(); $sidemenu->setClass("logview"); $MMCApp =& MMCApp::getInstance(); $mod = $MMCApp->getModule("base"); $submod = $mod->getSubmod("logview"); foreach ($submod->getPages() as $page) { if ($page->isVisible()) { $sidemenu->addSideMenuItem(new SideMenuItem($page->getDescription(), "base", "logview", $page->getAction(), "img/common/logview_active.png", "img/common/logview_inactive.png")); } } $p = new PageGenerator(); $p->setSideMenu($sidemenu); $p->displaySideMenu();
* * 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/>. */ $sidemenu = new SideMenu(); $sidemenu->setClass("shorewall"); $sidemenu->setBackgroundImage("img/users/icn_users_large.gif"); $zones_types = getZonesTypes(); $lan_zones = getShorewallZones($zones_types['internal']); $wan_zones = getShorewallZones($zones_types['external']); if ($lan_zones) { $sidemenu->addSideMenuItem(new SideMenuItem(_T("Internal → Server", "shorewall"), "shorewall", "shorewall", "internal_fw", "img/config/icn_global_active.gif", "img/config/icn_global.gif")); } if ($wan_zones) { $sidemenu->addSideMenuItem(new SideMenuItem(_T("External → Server", "shorewall"), "shorewall", "shorewall", "external_fw", "img/config/icn_global_active.gif", "img/config/icn_global.gif")); } if ($lan_zones && $wan_zones) { $sidemenu->addSideMenuItem(new SideMenuItem(_T("Internal → External", "shorewall"), "shorewall", "shorewall", "internal_external", "img/config/icn_global_active.gif", "img/config/icn_global.gif")); } if ($lan_zones && $wan_zones) { $sidemenu->addSideMenuItem(new SideMenuItem(_T("External → Internal", "shorewall"), "shorewall", "shorewall", "external_internal", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
<?php /* * (c) 2008 Mandriva, http://www.mandriva.com * * $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("update"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Update managment", 'update'), "update", "update", "index"));
<?php /** * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com * (c) 2007-2008 Mandriva, http://www.mandriva.com * * $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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("groups"); $sidemenu->setBackgroundImage("img/groups/icn_groups_large.gif"); $sidemenu->addSideMenuItem(new SideMenuItem(_("List"), "base", "groups", "index", "img/groups/icn_global_active.gif", "img/groups/icn_global.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_("Add"), "base", "groups", "add", "img/groups/icn_addGroup_active.gif", "img/groups/icn_addGroup.gif"));
* 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("domains aliases"); if (hasVDomainSupport()) { $s = new SideMenuItem(_T("Mail domains", "mail"), "mail", "domains", "index", "modules/mail/graph/img/mail_active.png", "modules/mail/graph/img/mail_inactive.png"); $s->setCssId("index_domains"); $sidemenu->addSideMenuItem($s); $s = new SideMenuItem(_T("Add a domain", "mail"), "mail", "domains", "add", "modules/mail/graph/img/mailadd_active.png", "modules/mail/graph/img/mailadd_inactive.png"); $s->setCssId("add_domain"); $sidemenu->addSideMenuItem($s); } if (hasVAliasesSupport()) { $s = new SideMenuItem(_T("Virtual aliases", "mail"), "mail", "aliases", "index", "modules/mail/graph/img/mail_active.png", "modules/mail/graph/img/mail_inactive.png"); $s->setCssId("index_aliases"); $sidemenu->addSideMenuItem($s); $s = new SideMenuItem(_T("Add a virtual alias", "mail"), "mail", "aliases", "add", "modules/mail/graph/img/mailadd_active.png", "modules/mail/graph/img/mailadd_inactive.png"); $s->setCssId("add_alias"); $sidemenu->addSideMenuItem($s);
<?php /** * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com * (c) 2007-2012 Mandriva, http://www.mandriva.com * * 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/>. */ $sidemenu = new SideMenu(); $sidemenu->setClass("control"); $sidemenu->setBackgroundImage("img/users/icn_users_large.gif"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Core services", "services"), "services", "control", "index", "img/config/icn_global_active.gif", "img/config/icn_global.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Other services", "services"), "services", "control", "others", "img/config/icn_global_active.gif", "img/config/icn_global.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Services log", "services"), "services", "control", "log", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
* (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 * * Author(s): * Miguel Julián <*****@*****.**> */ $submods = array('shares', 'machines', 'config'); $sidemenu = new SideMenu(); $sidemenu->setClass(join(" ", $submods)); $MMCApp =& MMCApp::getInstance(); $mod = $MMCApp->getModule('samba4'); foreach ($submods as $submod) { $submod = $mod->getSubmod($submod); if ($submod) { foreach ($submod->getPages() as $page) { if ($page->hasAccessAndVisible($mod, $submod)) { $item = new SideMenuItem($page->getDescription(), $mod->getName(), $submod->getName(), $page->getAction(), $page->getImg("active"), $page->getImg("default")); $item->cssId = join("_", array($mod->getName(), $submod->getName(), $page->getAction())); $sidemenu->addSideMenuItem($item); } } } }
/** * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com * (c) 2007-2008 Mandriva, http://www.mandriva.com/ * * $Id$ * * 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("blacklist"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Proxy status"), "proxy", "blacklist", "statut")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Blacklist management"), "proxy", "blacklist", "index")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Add an entry in blacklist"), "proxy", "blacklist", "add")); ?>
* 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("audit"); $sidemenu->addSideMenuItem(new SideMenuItem(_("All modules"), "base", "audit", "indexall", "img/common/logview_active.png", "img/common/logview_inactive.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_("Users and Groups"), "base", "audit", "indexbase", "img/common/logview_active.png", "img/common/logview_inactive.png")); if (in_array("samba", $_SESSION["modulesList"])) { $sidemenu->addSideMenuItem(new SideMenuItem(_("Samba"), "base", "audit", "indexsamba", "img/common/logview_active.png", "img/common/logview_inactive.png")); } if (in_array("mail", $_SESSION["modulesList"])) { $sidemenu->addSideMenuItem(new SideMenuItem(_("Mail"), "base", "audit", "indexmail", "img/common/logview_active.png", "img/common/logview_inactive.png")); } if (in_array("proxy", $_SESSION["modulesList"])) { $sidemenu->addSideMenuItem(new SideMenuItem(_("Proxy"), "base", "audit", "indexproxy", "img/common/logview_active.png", "img/common/logview_inactive.png")); } if (in_array("network", $_SESSION["modulesList"])) { $sidemenu->addSideMenuItem(new SideMenuItem(_("Network"), "base", "audit", "indexnetwork", "img/common/logview_active.png", "img/common/logview_inactive.png")); } /* This module doesn't have audit capabilities for now, so disable it
<?php /* * (c) 2008 Mandriva, http://www.mandriva.com * * $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("backuppc"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Status", 'backuppc'), "backuppc", "backuppc", "index")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Profiles", 'backuppc'), "backuppc", "backuppc", "ViewProfiles")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Add fileset", 'backuppc'), "backuppc", "backuppc", "EditBackupProfile")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Add schedule", 'backuppc'), "backuppc", "backuppc", "EditPeriodProfile"));
<?php /* * (c) 2008 Mandriva, http://www.mandriva.com * * $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("report"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Report creation", 'report'), "report", "report", "index"));
<?php $sidemenu = new SideMenu(); $sidemenu->setClass("status"); $MMCApp =& MMCApp::getInstance(); $mod = $MMCApp->getModule('base'); $submod = $mod->getSubmod('status'); foreach ($submod->getPages() as $page) { $sidemenu->addSideMenuItem(new SideMenuItem($page->getDescription(), "base", "status", $page->getAction())); } $p = new PageGenerator(); /** * Affichage du menu */ $p->setSideMenu($sidemenu); //$sidemenu inclus dans localSideBar.php $p->displaySideMenu();
* 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 */ $sidemenu= new SideMenu(); $sidemenu->setClass("manage"); $sidemenu->addSideMenuItem( new SideMenuItem(_T("Imaging server status","imaging"), "imaging", "manage", "index", "modules/imaging/graph/images/imaging-status-active.png", "modules/imaging/graph/images/imaging-status-inactive.png") ); $sidemenu->addSideMenuItem( new SideMenuItem(_T("Manage masters","imaging"), "imaging", "manage", "master", "modules/imaging/graph/images/imaging-master-active.png", "modules/imaging/graph/images/imaging-master-inactive.png") ); $sidemenu->addSideMenuItem( new SideMenuItem(_T("Manage boot services","imaging"), "imaging", "manage", "service", "modules/imaging/graph/images/imaging-service-active.png", "modules/imaging/graph/images/imaging-service-inactive.png") ); $sidemenu->addSideMenuItem( new SideMenuItem(_T("Default boot menu","imaging"), "imaging", "manage", "bootmenu", "modules/imaging/graph/images/imaging-bootmenu-active.png", "modules/imaging/graph/images/imaging-bootmenu-inactive.png") ); $sidemenu->addSideMenuItem( new SideMenuItem(_T("Post-imaging scripts","imaging"), "imaging", "manage", "postinstall", "modules/imaging/graph/images/imaging-postinst-active.png", "modules/imaging/graph/images/imaging-postinst-inactive.png") );
* * $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("manage computers"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Imaging server status", "imaging"), "imaging", "manage", "index", "modules/imaging/graph/images/imaging-status-active.png", "modules/imaging/graph/images/imaging-status-inactive.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Manage masters", "imaging"), "imaging", "manage", "master", "modules/imaging/graph/images/imaging-master-active.png", "modules/imaging/graph/images/imaging-master-inactive.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Manage boot services", "imaging"), "imaging", "manage", "service", "modules/imaging/graph/images/imaging-service-active.png", "modules/imaging/graph/images/imaging-service-inactive.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Default boot menu", "imaging"), "imaging", "manage", "bootmenu", "modules/imaging/graph/images/imaging-bootmenu-active.png", "modules/imaging/graph/images/imaging-bootmenu-inactive.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Post-imaging scripts", "imaging"), "imaging", "manage", "postinstall", "modules/imaging/graph/images/imaging-postinst-active.png", "modules/imaging/graph/images/imaging-postinst-inactive.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Imaging Configuration", "imaging"), "imaging", "manage", "configuration", "modules/imaging/graph/images/imaging-configuration-active.png", "modules/imaging/graph/images/imaging-configuration-inactive.png")); if (in_array("dyngroup", $_SESSION["modulesList"])) { require "modules/dyngroup/dyngroup/localImagingSidebar.php"; }
/** * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com * (c) 2007-2008 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("internet"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Blacklist"), "squid", "internet", "blackmanager", "modules/squid/graph/actions/icn_blacklist_active.gif", "modules/squid/graph/actions/icn_blacklist.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Extension blacklist"), "squid", "internet", "extmanager", "modules/squid/graph/actions/icn_blacklist_extend_active.gif", "modules/squid/graph/actions/icn_blacklist_extend.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Whitelist"), "squid", "internet", "whitemanager", "modules/squid/graph/actions/icn_whitelist_active.gif", "modules/squid/graph/actions/icn_whitelist.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Time range whitelist"), "squid", "internet", "timemanager", "modules/squid/graph/actions/icn_interval_active.png", "modules/squid/graph/actions/icn_interval.png")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("IP whitelist"), "squid", "internet", "machmanager", "modules/squid/graph/actions/icn_ip_autorised_active.png", "modules/squid/graph/actions/icn_ip_autorised.png")); //$sidemenu->addSideMenuItem(new SideMenuItem(_T("Logs"),"squid","internet","accesslog")); ?>
<?php $sidemenu = new SideMenu(); $sidemenu->setClass("computers"); $sidemenu->addSideMenuItem(new SideMenuItem(_("All computers"), "base", "computers", "index", "img/machines/icn_allMachines_active.gif", "img/machines/icn_allMachines_ro.gif")); if (canAddComputer()) { $sidemenu->addSideMenuItem(new SideMenuItem(_("Add computer"), "base", "computers", "add", "img/machines/icn_addMachines_active.gif", "img/machines/icn_addMachines_ro.gif")); } if (in_array("glpi", $_SESSION["modulesList"])) { require "modules/glpi/glpi/localSidebar.php"; } if (in_array("dyngroup", $_SESSION["modulesList"])) { require "modules/dyngroup/dyngroup/localSidebar.php"; } if (in_array("inventory", $_SESSION["modulesList"])) { require "modules/inventory/inventory/localComputersSidebar.php"; }
* 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("users"); $sidemenu->setBackgroundImage("img/users/icn_users_large.gif"); $sidemenu->addSideMenuItem(new SideMenuItem(_("List"), "base", "users", "index", "img/users/icn_global_active.gif", "img/users/icn_global.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_("Add"), "base", "users", "add", "img/users/icn_addUser_active.gif", "img/users/icn_addUser.gif")); if (in_array("bulkimport", $_SESSION["modulesList"])) { $sidemenu->addSideMenuItem(new SideMenuItem(_("Bulk import (CSV)"), "base", "users", "bulkimport", "img/users/icn_addUser_active.gif", "img/users/icn_addUser.gif")); } if ($_SESSION["login"] != "root" && $_SESSION["AUTH_METHOD"] == "login") { $sidemenu->addSideMenuItem(new SideMenuItem(_("Change your password"), "base", "users", "passwd", "img/access/icn_global_active.gif", "img/access/icn_global.gif")); } if ($_SESSION["login"] != "root" && $_SESSION["AUTH_METHOD"] == "token") { $sidemenu->addSideMenuItem(new SideMenuItem(_("Reset your password"), "base", "users", "resetpasswd", "img/access/icn_global_active.gif", "img/access/icn_global.gif")); } /* Display the global password policy settings if enabled */ if (in_array("ppolicy", $_SESSION["modulesList"])) { require_once "modules/ppolicy/includes/localSidebar.php";
* $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu= new SideMenu(); $sidemenu->setClass("logs"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Consolidated view", 'msc'), "msc", "logs", "consult")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Show all logs", 'msc'), "msc", "logs", "all")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Show all pending task's logs", 'msc'), "msc", "logs", "pending")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Show all running task's logs", 'msc'), "msc", "logs", "running")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Show all finished task's logs", 'msc'), "msc", "logs", "finished")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Show custom state task's logs", 'msc'), "msc", "logs", "custom")); ?>
* 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu = new SideMenu(); $sidemenu->setClass("inventory"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Incoming", 'inventory'), "inventory", "inventory", "incoming")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Bios", 'inventory'), "inventory", "inventory", "index")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Hardware", 'inventory'), "inventory", "inventory", "hardware")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Software", 'inventory'), "inventory", "inventory", "software")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Network", 'inventory'), "inventory", "inventory", "network")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Controller", 'inventory'), "inventory", "inventory", "controller")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Registry", 'inventory'), "inventory", "inventory", "registry")); if (isExpertMode()) { $sidemenu->addSideMenuItem(new SideMenuItem(_T("Drive", 'inventory'), "inventory", "inventory", "drive")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Input", 'inventory'), "inventory", "inventory", "input")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Memory", 'inventory'), "inventory", "inventory", "memory")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Monitor", 'inventory'), "inventory", "inventory", "monitor")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Port", 'inventory'), "inventory", "inventory", "port")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Printer", 'inventory'), "inventory", "inventory", "printer")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Sound", 'inventory'), "inventory", "inventory", "sound"));
/* * (c) 2008 Mandriva, http://www.mandriva.com * * $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu= new SideMenu(); $sidemenu->setClass("pkgs"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Packages list", 'pkgs'), "pkgs", "pkgs", "index")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Add a package", 'pkgs'), "pkgs", "pkgs", "add")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Pending packages list", 'pkgs'), "pkgs", "pkgs", "pending")); ?>
<? /* * (c) 2007-2008 Mandriva, http://www.mandriva.com * * $Id$ * * This file is part of Pulse 2, http://pulse2.mandriva.org * * Pulse 2 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301, USA */ $sidemenu= new SideMenu(); $sidemenu->setClass("msc"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Repository", 'msc'), "msc", "msc", "repository")); ?>
* 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, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ $pdc = xmlCall("samba.isPdc", null); $sidemenu = new SideMenu(); $sidemenu->setClass("shares machines config"); $sidemenu->addSideMenuItem(new SideMenuItem(_T("List shares", "samba"), "samba", "shares", "index", "img/shares/icn_global_active.gif", "img/shares/icn_global.gif")); $sidemenu->addSideMenuItem(new SideMenuItem(_T("Add a share", "samba"), "samba", "shares", "add", "img/shares/icn_addShare_active.gif", "img/shares/icn_addShare.gif")); if ($pdc) { // if SAMBA is configured as a PDC $s = new SideMenuItem(_T("List computers", "samba"), "samba", "machines", "index", "img/machines/icn_global_active.gif", "img/machines/icn_global.gif"); $s->setCssId("indexmachines"); $sidemenu->addSideMenuItem($s); /*$s = new SideMenuItem(_T("Add a computer", "samba"), "samba", "machines", "add", "img/machines/icn_addMachines_active.gif", "img/machines/icn_addMachines.gif"); $s->setCssId("addmachine"); $sidemenu->addSideMenuItem($s);*/ } $s = new SideMenuItem(_T("General options", "samba"), "samba", "config", "index", "img/config/icn_global_active.gif", "img/config/icn_global.gif"); $s->setCssId("indexconfig"); $sidemenu->addSideMenuItem($s); switch ($_GET["submod"]) {