Beispiel #1
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, 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);
            }
        }
    }
}
Beispiel #2
0
 * 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/>.
 */
$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 &rarr; Server", "shorewall"), "shorewall", "shorewall", "internal_fw", "modules/shorewall/graph/actions/icn_int_server_active.gif", "modules/shorewall/graph/actions/icn_int_server.gif"));
}
if ($wan_zones) {
    $sidemenu->addSideMenuItem(new SideMenuItem(_T("External &rarr; Server", "shorewall"), "shorewall", "shorewall", "external_fw", "modules/shorewall/graph/actions/icn_ext_server_active.gif", "modules/shorewall/graph/actions/icn_ext_server.gif"));
}
if ($lan_zones && $wan_zones) {
    $sidemenu->addSideMenuItem(new SideMenuItem(_T("Internal &rarr; External", "shorewall"), "shorewall", "shorewall", "internal_external", "modules/shorewall/graph/actions/icn_int_ext_active.gif", "modules/shorewall/graph/actions/icn_int_ext.gif"));
}
if (count($lan_zones) > 1) {
Beispiel #3
0
/**
 * (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"));
?>

Beispiel #4
0
<?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"));
Beispiel #5
0
 * 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("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 &rarr; 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 &rarr; 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 &rarr; External", "shorewall"), "shorewall", "shorewall", "internal_external", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
}
if ($lan_zones && $wan_zones) {
Beispiel #6
0
<?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"));
Beispiel #7
0
 * 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");
$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")
Beispiel #8
0
 *
 * 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");
Beispiel #9
0
<?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"));
Beispiel #10
0
 * (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("logs");
$sidemenu->addSideMenuItem(new SideMenuItem(_T("My commands", 'msc'), "msc", "logs", "consult"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("All user commands", 'msc'), "msc", "logs", "consultAll"));
// TODO: Remove all these files
/* $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")); */
Beispiel #11
0
 * 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
 */
$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);
<!DOCTYPE html>
<html lang="en">
<head>

    <title><?php 
print $this->title;
?>
</title>
    <?php 
error_reporting(E_ALL & ~E_DEPRECATED);
include_once "core/SideMenu/SideMenu.php";
$obj = new SideMenu();
$menu = $obj->getMenuElement();
print $this->meta_k;
print $this->meta_d;
// ПІДКЛЮЧЕННЯ СТИЛІВ
if (isset($this->css)) {
    if (is_array($this->css)) {
        foreach ($this->css as $k => $v) {
            print '<link rel="stylesheet" type="text/css" href="' . URL . 'public/css/' . $v . '.css" />';
        }
    } else {
        if (is_string($this->css)) {
            print '<link rel="stylesheet" type="text/css" href="' . URL . 'public/css/' . $this->css . '.css" />';
        }
    }
}
?>

    <link href="public/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
Beispiel #13
0
 * 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
 */
require_once "graph/navbar.inc.php";
require_once "modules/update/includes/xmlrpc.inc.php";
require_once "modules/update/includes/html.inc.php";
$MMCApp =& MMCApp::getInstance();
$os_classes = get_os_classes();
$sidemenu = new SideMenu();
$sidemenu->setClass("update");
$sidemenu->addSideMenuItem(new SideMenuItem(_T('All updates', 'update'), "update", "update", "index"));
foreach ($os_classes['data'] as $os) {
    $item = new SideMenuItem($os['name'], "update", "update", "viewUpdates&os_class_id=" . $os['id']);
    $item->setCssId("osClass" . $os['id']);
    $sidemenu->addSideMenuItem($item);
}
if (isset($_GET['os_class_id'])) {
    $sidemenu->forceActiveItem("viewUpdates&os_class_id=" . $_GET['os_class_id']);
}
$sidemenu->addSideMenuItem(new SideMenuItem(_T('Settings', 'update'), "update", "update", "settings"));
Beispiel #14
0
 * $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"));

?>
Beispiel #15
0
<?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();
Beispiel #16
0
/*
 * (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"));

?>
Beispiel #17
0
/*
 * (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("Bundle list", 'pkgs'), "pkgs", "pkgs", "bundleList"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Add a bundle", 'pkgs'), "pkgs", "pkgs", "addBundle"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Pending packages list", 'pkgs'), "pkgs", "pkgs", "pending"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Appstream settings", 'pkgs'), "pkgs", "pkgs", "appstreamSettings"));
Beispiel #18
0
/**
 * (c) 2004-2007 Linbox / Free&ALter Soft, http://linbox.com
 * (c) 2007-2008 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, 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", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Extension blacklist"), "squid", "internet", "extmanager", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Whitelist"), "squid", "internet", "whitemanager", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Time range whitelist"), "squid", "internet", "timemanager", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("IP whitelist"), "squid", "internet", "machmanager", "img/config/icn_global_active.gif", "img/config/icn_global.gif"));
//$sidemenu->addSideMenuItem(new SideMenuItem(_T("Logs"),"squid","internet","accesslog"));
?>

Beispiel #19
0
<?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"));
Beispiel #20
0
<?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->addSideMenuItem(new SideMenuItem(_T("Core services", "services"), "services", "control", "index", "modules/services/graph/img/icn_global_active.gif", "modules/services/graph/img/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Other services", "services"), "services", "control", "others", "modules/services/graph/img/icn_global_active.gif", "modules/services/graph/img/icn_global.gif"));
$sidemenu->addSideMenuItem(new SideMenuItem(_T("Services log", "services"), "services", "control", "log", "modules/services/graph/img/icn_global_active.gif", "modules/services/graph/img/icn_global.gif"));
Beispiel #21
0
<?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"));
Beispiel #22
0
<?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();
Beispiel #23
0
/**
 * (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"));
?>

Beispiel #24
0
 *
 * 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"])) {
Beispiel #25
0
 *
 * 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"));
}
Beispiel #26
0
 * 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("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"));
Beispiel #27
0
<?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";
}
Beispiel #28
0
<?
/*
 * (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"));

?>
    <link rel="stylesheet" href="theme/bootstrap.css" media="screen">
    <link rel="stylesheet" href="theme/usebootstrap.css">
    <link rel="stylesheet" href="bootstrap/custom.min.css">
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>

    <![endif]-->
    <style>
        .jumbotron{
            padding: 10px;
        }
    </style>
    <?php 
ini_set('display_errors', 'Off');
include_once "core/SideMenu/SideMenu.php";
$obj = new SideMenu();
$menu = $obj->getMenuElement();
print $this->meta_k;
print $this->meta_d;
// ПІДКЛЮЧЕННЯ СТИЛІВ
if (isset($this->css)) {
    if (is_array($this->css)) {
        foreach ($this->css as $k => $v) {
            print '<link rel="stylesheet" type="text/css" href="' . URL . 'public/css/' . $v . '.css" />';
        }
    } else {
        if (is_string($this->css)) {
            print '<link rel="stylesheet" type="text/css" href="' . URL . 'public/css/' . $this->css . '.css" />';
        }
    }
}