本文整理汇总了PHP中modules::init_module方法的典型用法代码示例。如果您正苦于以下问题:PHP modules::init_module方法的具体用法?PHP modules::init_module怎么用?PHP modules::init_module使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类modules
的用法示例。
在下文中一共展示了modules::init_module方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: modload
public function modload()
{
modules::init_module('cs_levels', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
// these are standard in module constructors
chanserv::add_help('cs_levels', 'help', &chanserv::$help->CS_HELP_LEVELS_1);
// add the help
if (ircd::$halfop) {
chanserv::add_help('cs_levels', 'help levels', &chanserv::$help->CS_HELP_LEVELS_ALL);
} else {
chanserv::add_help('cs_levels', 'help levels', &chanserv::$help->CS_HELP_LEVELS_ALL2);
}
// if we have halfop enabled the help we add is different.
chanserv::add_command('levels', 'cs_levels', 'levels_command');
// add the command
self::$flags = '+-kvhoaqsrftFb';
// string of valid flags
if (!ircd::$halfop) {
self::$flags = str_replace('h', '', self::$flags);
}
// if halfop isnt enabled, remove h and H
if (!ircd::$protect) {
self::$flags = str_replace('a', '', self::$flags);
}
// same for protect
if (!ircd::$owner) {
self::$flags = str_replace('q', '', self::$flags);
}
// and finally, owner
}
示例2: modload
public function modload()
{
modules::init_module('ns_help', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'static');
// these are standard in module constructors
nickserv::add_help_fix('ns_help', 'prefix', 'help', &nickserv::$help->NS_HELP_PREFIX);
nickserv::add_help_fix('ns_help', 'suffix', 'help', &nickserv::$help->NS_HELP_SUFFIX);
// add teh help docs
}
示例3: modload
public function modload()
{
modules::init_module('ns_ghost', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
// these are standard in module constructors
nickserv::add_help('ns_ghost', 'help', &nickserv::$help->NS_HELP_GHOST_1);
nickserv::add_help('ns_ghost', 'help ghost', &nickserv::$help->NS_HELP_GHOST_ALL);
// add the help
nickserv::add_command('ghost', 'ns_ghost', 'ghost_command');
// add the ghost command
}
示例4: modload
public function modload()
{
modules::init_module('cs_register', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
// these are standard in module constructors
chanserv::add_help('cs_register', 'help', &chanserv::$help->CS_HELP_REGISTER_1);
chanserv::add_help('cs_register', 'help register', &chanserv::$help->CS_HELP_REGISTER_ALL);
// add the help
chanserv::add_command('register', 'cs_register', 'register_command');
// add the command
}
示例5: modload
public function modload()
{
modules::init_module('os_vhost', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
// these are standard in module constructors
operserv::add_help('os_vhost', 'help', &operserv::$help->OS_HELP_VHOST_1);
operserv::add_help('os_vhost', 'help vhost', &operserv::$help->OS_HELP_VHOST_ALL);
// add the help
operserv::add_command('vhost', 'os_vhost', 'vhost_command');
// add the vhost command
}
示例6: modload
public function modload()
{
modules::init_module('os_ignore', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'default');
// these are standard in module constructors
operserv::add_help('os_ignore', 'help', &operserv::$help->OS_HELP_IGNORE_1);
operserv::add_help('os_ignore', 'help ignore', &operserv::$help->OS_HELP_IGNORE_ALL);
// add the help
operserv::add_command('ignore', 'os_ignore', 'ignore_command');
// add the ignore command
}
示例7: modload
public function modload()
{
modules::init_module('cs_topic', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
// these are standard in module constructors
chanserv::add_help('cs_topic', 'help commands', &chanserv::$help->CS_HELP_TOPIC_1);
chanserv::add_help('cs_topic', 'help topic', &chanserv::$help->CS_HELP_TOPIC_ALL);
// add the help
chanserv::add_command('topic', 'cs_topic', 'topic_command');
// add the commands
}
示例8: modload
public function modload()
{
modules::init_module('os_rehash', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'static');
// these are standard in module constructors
operserv::add_help('os_rehash', 'help', &operserv::$help->OS_HELP_REHASH_1);
operserv::add_help('os_rehash', 'help rehash', &operserv::$help->OS_HELP_REHASH_ALL);
// add the help
operserv::add_command('rehash', 'os_rehash', 'rehash_command');
// add the commands
}
示例9: modload
public function modload()
{
modules::init_module('os_chanclear', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'default');
// these are standard in module constructors
operserv::add_help('os_chanclear', 'help', &operserv::$help->OS_HELP_CHANCLEAR_1);
operserv::add_help('os_chanclear', 'help chanclear', &operserv::$help->OS_HELP_CHANCLEAR_ALL);
// add the help
operserv::add_command('chanclear', 'os_chanclear', 'chanclear_command');
// add the command
}
示例10: modload
public function modload()
{
modules::init_module('ns_info', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
// these are standard in module constructors
nickserv::add_help('ns_info', 'help', &nickserv::$help->NS_HELP_INFO_1);
nickserv::add_help('ns_info', 'help info', &nickserv::$help->NS_HELP_INFO_ALL);
// add the help
nickserv::add_command('info', 'ns_info', 'info_command');
// add the info command
}
示例11: modload
public function modload()
{
modules::init_module('os_stats', self::MOD_VERSION, self::MOD_AUTHOR, 'operserv', 'default');
// these are standard in module constructors
operserv::add_help('os_stats', 'help', &operserv::$help->OS_HELP_STATS_1);
operserv::add_help('os_stats', 'help stats', &operserv::$help->OS_HELP_STATS_ALL);
// add the help
operserv::add_command('stats', 'os_stats', 'stats_command');
// add the stats command
}
示例12: modload
public function modload()
{
modules::init_module('cs_list', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
// these are standard in module constructors
chanserv::add_help('cs_list', 'help', &chanserv::$help->CS_HELP_LIST_1, true);
chanserv::add_help('cs_list', 'help list', &chanserv::$help->CS_HELP_LIST_ALL, true);
// add the help
chanserv::add_command('list', 'cs_list', 'list_command');
// add the list command
}
示例13: modload
public function modload()
{
modules::init_module('cs_drop', self::MOD_VERSION, self::MOD_AUTHOR, 'chanserv', 'default');
// these are standard in module constructors
chanserv::add_help('cs_drop', 'help', &chanserv::$help->CS_HELP_DROP_1);
chanserv::add_help('cs_drop', 'help drop', &chanserv::$help->CS_HELP_DROP_ALL);
// add the help
chanserv::add_command('drop', 'cs_drop', 'drop_command');
// add the drop command
}
示例14: modload
public function modload()
{
modules::init_module('ns_identify', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
// these are standard in module constructors
nickserv::add_help('ns_identify', 'help', &nickserv::$help->NS_HELP_IDENTIFY_1);
nickserv::add_help('ns_identify', 'help identify', &nickserv::$help->NS_HELP_IDENTIFY_ALL);
// add the help
nickserv::add_command('identify', 'ns_identify', 'identify_command');
// add the command
nickserv::add_help('ns_identify', 'help id', &nickserv::$help->NS_HELP_IDENTIFY_ALL);
nickserv::add_command('id', 'ns_identify', 'identify_command');
// "id" alias, help and command
}
示例15: modload
public function modload()
{
modules::init_module('ns_password', self::MOD_VERSION, self::MOD_AUTHOR, 'nickserv', 'default');
// these are standard in module constructors
nickserv::add_help('ns_password', 'help', &nickserv::$help->NS_HELP_PASSWORD_1);
nickserv::add_help('ns_password', 'help password', &nickserv::$help->NS_HELP_PASSWORD_ALL);
nickserv::add_help('ns_password', 'help', &nickserv::$help->NS_HELP_SAPASS_1, true);
nickserv::add_help('ns_password', 'help sapass', &nickserv::$help->NS_HELP_SAPASS_ALL, true);
// add the help docs
nickserv::add_command('password', 'ns_password', 'password_command');
nickserv::add_command('sapass', 'ns_password', 'sapass_command');
// add the password command
}