当前位置: 首页>>代码示例>>PHP>>正文


PHP Module::setVersion方法代码示例

本文整理汇总了PHP中Module::setVersion方法的典型用法代码示例。如果您正苦于以下问题:PHP Module::setVersion方法的具体用法?PHP Module::setVersion怎么用?PHP Module::setVersion使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Module的用法示例。


在下文中一共展示了Module::setVersion方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Module

 * 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);
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例2: Module

 * (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));
开发者ID:sebastiendu,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例3: Module

 * 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"));
开发者ID:neoclust,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例4: Module

 * (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);
开发者ID:psyray,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例5: Module

 *
 * 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");
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:infoPackage.inc.php

示例6: Module

 *
 * 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;
开发者ID:neoclust,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例7: Module

 * 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);
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:infoPackage.inc.php

示例8: getZonesTypes

 * 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");
开发者ID:neoclust,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例9: Module

 *
 * 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()) {
开发者ID:psyray,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php

示例10: Module

 * 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);
开发者ID:pulse-project,项目名称:pulse,代码行数:31,代码来源:infoPackage.inc.php

示例11: _createSamba4SharesSubmodule

 * 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 <jkerihuel@zentyal.com>
 *   Miguel Julián <mjulian@zentyal.com>
 */
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)
{
开发者ID:psyray,项目名称:mmc,代码行数:31,代码来源:infoPackage.inc.php


注:本文中的Module::setVersion方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。