本文整理汇总了PHP中module_addhook函数的典型用法代码示例。如果您正苦于以下问题:PHP module_addhook函数的具体用法?PHP module_addhook怎么用?PHP module_addhook使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了module_addhook函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: customeq_install
function customeq_install()
{
module_addhook("lodge");
module_addhook("pointsdesc");
module_addhook("charstats");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:customeq.php
示例2: proveyourself_install
function proveyourself_install()
{
$condition = "if (\$session['user']['location'] == \"Pleasantville\") {return true;} else {return false;};";
module_addhook("village", false, $condition);
module_addhook("footer-hof");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:proveyourself.php
示例3: jeweler_install
function jeweler_install()
{
$condition = "if (\$session['user']['location'] == \"Improbable Central\") {return true;} else {return false;};";
module_addhook("village", false, $condition);
module_addhook("biostat");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:jeweler.php
示例4: gravebless_install
function gravebless_install()
{
module_addhook("ramiusfavors");
module_addhook("dragonkilltext");
module_addhook("newday");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:gravebless.php
示例5: peerpressure_install
function peerpressure_install()
{
module_addeventhook("village", "require_once(\"modules/peerpressure.php\"); return peerpressure_victimtest();");
module_addhook("newday");
module_addhook("battle-defeat");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:peerpressure.php
示例6: crying_install
function crying_install()
{
global $session;
module_addeventhook("inn", "require_once(\"modules/crying.php\"); return crying_seentest();");
module_addhook("newday");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:crying.php
示例7: mountprereq_install
function mountprereq_install()
{
module_addhook("stables-nav");
module_addhook("boughtmount");
module_addhook("dragonkill");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:mountprereq.php
示例8: unclean_install
function unclean_install()
{
module_addhook("censor");
module_addhook("header-badword");
module_addhook("biostat");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:unclean.php
示例9: pinata_install
function pinata_install()
{
module_addeventhook("forest", "return 100;");
module_addhook("gardens");
module_addhook("newday");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:pinata.php
示例10: improbablehousing_furnitureshop_install
function improbablehousing_furnitureshop_install()
{
$condition = "if (\$session['user']['location'] == \"Improbable Central\") {return true;} else {return false;};";
module_addhook("village", false, $condition);
module_addhook("improbablehousing_sleepslot");
return true;
}
开发者ID:Beeps,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:improbablehousing_furnitureshop.php
示例11: specialcomments_install
function specialcomments_install()
{
module_addhook("commentary");
module_addhook("lodge");
module_addhook("postcomment");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:specialcomments.php
示例12: eqbuffhelper_install
function eqbuffhelper_install()
{
module_addhook("forest");
module_addhook("newday");
module_addhook("village");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:eqbuffhelper.php
示例13: sethsong_install
function sethsong_install()
{
// Convert the seenbard field.
$sql = "DESCRIBE " . db_prefix("accounts");
$result = db_query($sql);
while ($row = db_fetch_assoc($result)) {
if ($row['Field'] == "seenbard") {
$sql = "SELECT seenbard,acctid FROM " . db_prefix("accounts") . " WHERE seenbard>0";
$result1 = db_query($sql);
debug("Migrating seenbard.`n");
while ($row1 = db_fetch_assoc($result1)) {
$sql = "INSERT INTO " . db_prefix("module_userprefs") . " (modulename,setting,userid,value) VALUES ('seth','been',{$row1['acctid']},{$row1['seenbard']})";
db_query($sql);
}
//end while
debug("Dropping seenbard column from the user table.`n");
$sql = "ALTER TABLE " . db_prefix("accounts") . " DROP seenbard";
db_query($sql);
//drop it from the user's session too.
unset($session['user']['seenbard']);
}
//end if
}
//end while
module_addhook("inn");
module_addhook("newday");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:28,代码来源:sethsong.php
示例14: iitemcrates_install
function iitemcrates_install()
{
module_addhook("worldnav");
module_addhook("newday-runonce");
module_addhook("donation");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:iitemcrates.php
示例15: heidi_install
function heidi_install()
{
$condition = "if (\$session['user']['location'] == \"Kittania\") {return true;} else {return false;};";
module_addhook("village", false, $condition);
module_addhook("newday");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:heidi.php
示例16: creatureaddon_install
function creatureaddon_install()
{
module_addhook("creatureencounter");
module_addhook("battle-victory");
module_addhook("gravefight-start");
return true;
}
开发者ID:Beeps,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:creatureaddon.php
示例17: settings_install
function settings_install()
{
module_addhook('footer-news');
module_addhook('village');
module_addhook('footer-modules');
return true;
}
开发者ID:stephenKise,项目名称:Legend-of-the-Green-Dragon,代码行数:7,代码来源:settings.php
示例18: cityprefs_install
function cityprefs_install()
{
global $session;
require_once "lib/tabledescriptor.php";
$cityprefs = array('cityid' => array('name' => 'cityid', 'type' => 'int unsigned', 'extra' => 'not null auto_increment'), 'module' => array('name' => 'module', 'type' => 'varchar(255)', 'extra' => 'not null'), 'cityname' => array('name' => 'cityname', 'type' => 'varchar(255)', 'extra' => 'not null'), 'key-PRIMARY' => array('name' => 'PRIMARY', 'type' => 'primary key', 'unique' => '1', 'columns' => 'cityid'), 'index-cityid' => array('name' => 'cityid', 'type' => 'index', 'columns' => 'cityid'), 'index-module' => array('name' => 'module', 'type' => 'index', 'columns' => 'module'), 'index-cityname' => array('name' => 'cityname', 'type' => 'index', 'columns' => 'cityname'));
synctable(db_prefix('cityprefs'), $cityprefs, true);
if (!is_module_active('cityprefs')) {
if ($session['user']['superuser'] & ~SU_DOESNT_GIVE_GROTTO) {
output_notl("`4Installing cityprefs Module.`n");
}
$sql = "INSERT INTO " . db_prefix("cityprefs") . " (module,cityname) VALUES ('none','" . getsetting("villagename", LOCATION_FIELDS) . "')";
db_query($sql);
$vloc = array();
$vloc = modulehook("validlocation", $vloc);
ksort($vloc);
reset($vloc);
foreach ($vloc as $loc => $val) {
$sql = "select modulename from " . db_prefix("module_settings") . " where value='" . addslashes($loc) . "' and setting='villagename'";
$result = db_query($sql);
$row = db_fetch_assoc($result);
$sql = "INSERT INTO " . db_prefix("cityprefs") . " (module,cityname) VALUES ('" . $row['modulename'] . "','" . addslashes($loc) . "')";
db_query($sql);
}
} else {
if ($session['user']['superuser'] & ~SU_DOESNT_GIVE_GROTTO) {
output("`4Updating cityprefs Module.`n");
}
}
module_addhook("superuser");
module_addhook("changesetting");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:32,代码来源:cityprefs.php
示例19: newbfaq_install
function newbfaq_install()
{
module_addhook("village");
module_addhook("biostat");
module_addhook("commentary_talkform");
return true;
}
开发者ID:CavemanJoe,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:newbfaq.php
示例20: wcgpoints_install
function wcgpoints_install()
{
module_addhook("gardens");
module_addhook("newday");
module_addhook("moderate");
return true;
}
开发者ID:Beeps,项目名称:Improbable-Island---DragonScales---DragonBones---LotGD-2.0---Season-Three,代码行数:7,代码来源:wcgpoints.php
注:本文中的module_addhook函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论