예제 #1
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/>.
 */
/* 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);
예제 #2
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
 */
/**
 * 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));
예제 #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, 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"));
예제 #4
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);
예제 #5
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/>.
 */
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");
예제 #6
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
 */
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;
예제 #7
0
 * 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
 */
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);
예제 #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, 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");
예제 #9
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
 */
require_once "modules/mail/includes/mail-xmlrpc.php";
$mod = new Module("mail");
$mod->setVersion("2.5.89");
$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("mailgroupalias", _T("Group 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()) {
예제 #10
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, 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);
예제 #11
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, 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)
{