本文整理汇总了PHP中delete_config_option函数的典型用法代码示例。如果您正苦于以下问题:PHP delete_config_option函数的具体用法?PHP delete_config_option怎么用?PHP delete_config_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了delete_config_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
delete_config_option('is_on_block_cache');
delete_config_option('is_on_template_cache');
delete_config_option('is_on_comcode_page_cache');
delete_config_option('is_on_lang_cache');
}
示例2: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('occlechat');
delete_value('last_occle_command');
delete_config_option('occle_chat_announce');
delete_config_option('bottom_show_occle_button');
}
示例3: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
delete_config_option('supermembers_groups');
delete_config_option('supermembers_text');
delete_config_option('is_on_supermember_filter');
delete_menu_item_simple('_SEARCH:supermembers');
}
示例4: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('transactions');
$GLOBALS['SITE_DB']->drop_if_exists('trans_expecting');
delete_config_option('currency');
delete_config_option('ecommerce_test_mode');
delete_config_option('ipn_test');
delete_config_option('ipn');
delete_config_option('ipn_password');
delete_config_option('vpn_password');
delete_config_option('vpn_username');
delete_config_option('ipn_digest');
delete_config_option('payment_gateway');
delete_config_option('use_local_payment');
delete_config_option('pd_address');
delete_config_option('pd_email');
delete_config_option('pd_number');
delete_config_option('callback_password');
delete_specific_permission('access_ecommerce_in_test_mode');
delete_menu_item_simple('_SELF:purchase:type=misc');
delete_menu_item_simple('_SELF:invoices:type=misc');
delete_menu_item_simple('_SEARCH:purchase:type=misc');
delete_menu_item_simple('_SEARCH:invoices:type=misc');
delete_menu_item_simple('_SEARCH:subscriptions:type=misc');
}
示例5: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('stats');
$GLOBALS['SITE_DB']->drop_if_exists('usersonline_track');
$GLOBALS['SITE_DB']->drop_if_exists('ip_country');
delete_config_option('super_logging');
delete_config_option('stats_store_time');
}
示例6: remove_file
/**
* Standard modular file removal function for OcCLE FS hooks.
*
* @param array The current meta-directory path
* @param string The root node of the current meta-directory
* @param string The file name
* @param array A reference to the OcCLE filesystem object
* @return boolean Success?
*/
function remove_file($meta_dir, $meta_root_node, $file_name, &$occle_fs)
{
if (count($meta_dir) > 0) {
return false;
}
//Directory doesn't exist
delete_config_option($file_name);
return true;
}
示例7: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('test_sections');
$GLOBALS['SITE_DB']->drop_if_exists('tests');
delete_specific_permission('perform_tests');
delete_specific_permission('add_tests');
delete_specific_permission('edit_own_tests');
delete_config_option('tester_forum_name');
delete_config_option('bug_report_text');
}
示例8: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('iotd');
delete_specific_permission('choose_iotd');
$GLOBALS['SITE_DB']->query_delete('trackbacks', array('trackback_for_type' => 'iotds'));
deldir_contents(get_custom_file_base() . '/uploads/iotds', true);
delete_config_option('points_ADD_IOTD');
delete_config_option('points_CHOOSE_IOTD');
delete_config_option('iotd_update_time');
}
示例9: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('poll');
$GLOBALS['SITE_DB']->drop_if_exists('poll_votes');
delete_specific_permission('choose_poll');
$GLOBALS['SITE_DB']->query_delete('trackbacks', array('trackback_for_type' => 'polls'));
delete_config_option('points_ADD_POLL');
delete_config_option('points_CHOOSE_POLL');
delete_config_option('poll_update_time');
}
示例10: install
/**
* Standard modular install function.
*
* @param ?integer What version we're upgrading from (NULL: new install)
* @param ?integer What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
*/
function install($upgrade_from = NULL, $upgrade_from_hack = NULL)
{
if ($upgrade_from < 4 && !is_null($upgrade_from)) {
delete_config_option('is_on_shop');
}
if ($upgrade_from < 3 || is_null($upgrade_from)) {
// Highlighted names
add_config_option('ENABLE_PURCHASE', 'is_on_highlight_name_buy', 'tick', 'return (get_forum_type()!=\'ocf\')?NULL:\'1\';', 'POINTSTORE', 'NAME_HIGHLIGHTING');
add_config_option('COST_highlight_name', 'highlight_name', 'integer', 'return (get_forum_type()!=\'ocf\')?NULL:\'2000\';', 'POINTSTORE', 'NAME_HIGHLIGHTING');
// Topic pinning
add_config_option('ENABLE_PURCHASE', 'is_on_topic_pin_buy', 'tick', 'return (!addon_installed(\'ocf_forum\'))?NULL:\'1\';', 'POINTSTORE', 'TOPIC_PINNING');
add_config_option('COST_topic_pin', 'topic_pin', 'integer', 'return (!addon_installed(\'ocf_forum\'))?NULL:\'180\';', 'POINTSTORE', 'TOPIC_PINNING');
// Gambling
add_config_option('ENABLE_PURCHASE', 'is_on_gambling_buy', 'tick', 'return \'1\';', 'POINTSTORE', 'GAMBLING');
add_config_option('MINIMUM_GAMBLE_AMOUNT', 'minimum_gamble_amount', 'integer', 'return \'6\';', 'POINTSTORE', 'GAMBLING');
add_config_option('MAXIMUM_GAMBLE_AMOUNT', 'maximum_gamble_amount', 'integer', 'return \'200\';', 'POINTSTORE', 'GAMBLING');
add_config_option('MAXIMUM_GAMBLE_MULTIPLIER', 'maximum_gamble_multiplier', 'integer', 'return \'200\';', 'POINTSTORE', 'GAMBLING');
add_config_option('AVERAGE_GAMBLE_MULTIPLIER', 'average_gamble_multiplier', 'integer', 'return \'85\';', 'POINTSTORE', 'GAMBLING');
// Banners
add_config_option('COST_banner_setup', 'banner_setup', 'integer', 'return (!addon_installed(\'banners\'))?NULL:\'750\';', 'POINTSTORE', 'BANNERS');
add_config_option('COST_banner_imp', 'banner_imp', 'integer', 'return (!addon_installed(\'banners\'))?NULL:\'700\';', 'POINTSTORE', 'BANNERS');
add_config_option('COST_banner_hit', 'banner_hit', 'integer', 'return (!addon_installed(\'banners\'))?NULL:\'20\';', 'POINTSTORE', 'BANNERS');
// POP3
add_config_option('COST_quota', 'quota', 'integer', 'return \'2\';', 'POINTSTORE', 'POP3');
// Flagrant
add_config_option('COST_text', 'text', 'integer', 'return (!addon_installed(\'flagrant\'))?NULL:\'700\';', 'POINTSTORE', 'FLAGRANT_MESSAGE');
// Custom
$GLOBALS['SITE_DB']->create_table('pstore_customs', array('id' => '*AUTO', 'c_title' => 'SHORT_TRANS', 'c_description' => 'LONG_TRANS', 'c_enabled' => 'BINARY', 'c_cost' => 'INTEGER', 'c_one_per_member' => 'BINARY'));
// Permissions
$GLOBALS['SITE_DB']->create_table('pstore_permissions', array('id' => '*AUTO', 'p_title' => 'SHORT_TRANS', 'p_description' => 'LONG_TRANS', 'p_enabled' => 'BINARY', 'p_cost' => 'INTEGER', 'p_hours' => 'INTEGER', 'p_type' => 'ID_TEXT', 'p_specific_permission' => 'ID_TEXT', 'p_zone' => 'ID_TEXT', 'p_page' => 'ID_TEXT', 'p_module' => 'ID_TEXT', 'p_category' => 'ID_TEXT'));
}
if (is_null($upgrade_from)) {
$GLOBALS['SITE_DB']->create_table('prices', array('name' => '*ID_TEXT', 'price' => 'INTEGER'));
$GLOBALS['SITE_DB']->create_table('sales', array('id' => '*AUTO', 'date_and_time' => 'TIME', 'memberid' => 'USER', 'purchasetype' => 'ID_TEXT', 'details' => 'SHORT_TEXT', 'details2' => 'SHORT_TEXT'));
// Pointstore Options
// Banners
add_config_option('ENABLE_PURCHASE', 'is_on_banner_buy', 'tick', 'return (!addon_installed(\'banners\'))?NULL:\'1\';', 'POINTSTORE', 'BANNERS');
add_config_option('HITS_ALLOCATED', 'initial_banner_hits', 'integer', 'return (!addon_installed(\'banners\'))?NULL:\'100\';', 'POINTSTORE', 'BANNERS');
// POP3
add_config_option('ENABLE_PURCHASE', 'is_on_pop3_buy', 'tick', 'return \'0\';', 'POINTSTORE', 'POP3', 1);
add_config_option('QUOTA', 'initial_quota', 'integer', 'return \'200\';', 'POINTSTORE', 'POP3', 1);
add_config_option('MAX_QUOTA', 'max_quota', 'integer', 'return \'10000\';', 'POINTSTORE', 'POP3', 1);
add_config_option('MAIL_SERVER', 'mail_server', 'line', 'return \'mail.\'.get_domain();', 'POINTSTORE', 'POP3', 1);
add_config_option('POP3_MAINTAIN_URL', 'pop_url', 'line', 'return \'http://\'.get_domain().\':2082/frontend/x/mail/addpop2.html\';', 'POINTSTORE', 'POP3', 1);
add_config_option('QUOTA_MAINTAIN_URL', 'quota_url', 'line', 'return \'http://\'.get_domain().\':2082/frontend/x/mail/pops.html\';', 'POINTSTORE', 'POP3', 1);
// Forwarding
add_config_option('ENABLE_PURCHASE', 'is_on_forw_buy', 'tick', 'return \'0\';', 'POINTSTORE', 'FORWARDING', 1);
add_config_option('FORW_MAINTAIN_URL', 'forw_url', 'line', 'return \'http://\'.get_domain().\':2082/frontend/x/mail/addfwd.html\';', 'POINTSTORE', 'FORWARDING', 1);
// Flagrant
add_config_option('ENABLE_PURCHASE', 'is_on_flagrant_buy', 'tick', 'return (!addon_installed(\'flagrant\'))?NULL:\'1\';', 'POINTSTORE', 'FLAGRANT_MESSAGE');
require_lang('pointstore');
add_menu_item_simple('main_community', NULL, 'POINT_STORE', '_SEARCH:pointstore:type=misc');
}
}
示例11: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('filedump');
delete_specific_permission('delete_anything_filedump');
delete_specific_permission('upload_filedump');
delete_specific_permission('upload_anything_filedump');
//deldir_contents(get_custom_file_base().'/uploads/filedump',true);
delete_menu_item_simple('_SEARCH:filedump:type=misc');
delete_config_option('filedump_show_stats_count_total_files');
delete_config_option('filedump_show_stats_count_total_space');
}
示例12: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('shopping_cart');
$GLOBALS['SITE_DB']->drop_if_exists('shopping_order_details');
$GLOBALS['SITE_DB']->drop_if_exists('shopping_order');
$GLOBALS['SITE_DB']->drop_if_exists('shopping_logging');
$GLOBALS['SITE_DB']->drop_if_exists('shopping_order_addresses');
$GLOBALS['SITE_DB']->query_delete('group_category_access', array('module_the_name' => 'shopping'));
delete_config_option('shipping_cost_factor');
delete_config_option('allow_opting_out_of_tax');
delete_menu_item_simple('_SEARCH:catalogues:type=category:catalogue_name=products');
}
示例13: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('theme_images');
delete_config_option('templates_store_revisions');
delete_config_option('templates_number_revisions_show');
$langs = find_all_langs(true);
foreach (array_keys($langs) as $lang) {
deldir_contents(get_custom_file_base() . '/themes/default/templates_cached/' . $lang, true);
}
//deldir_contents(get_custom_file_base().'/themes/default/images_custom',true);
//deldir_contents(get_file_base().'/themes',true);
// templates_custom, css_custom purposely left
}
示例14: uninstall
/**
* Standard modular uninstall function.
*/
function uninstall()
{
$GLOBALS['SITE_DB']->drop_if_exists('bookable');
$GLOBALS['SITE_DB']->drop_if_exists('bookable_blacked');
$GLOBALS['SITE_DB']->drop_if_exists('bookable_blacked_for');
$GLOBALS['SITE_DB']->drop_if_exists('bookable_codes');
$GLOBALS['SITE_DB']->drop_if_exists('booking');
$GLOBALS['SITE_DB']->drop_if_exists('bookable_supplement');
$GLOBALS['SITE_DB']->drop_if_exists('bookable_supplement_for');
$GLOBALS['SITE_DB']->drop_if_exists('booking_supplement');
delete_config_option('bookings_show_warnings_for_months');
delete_config_option('bookings_max_ahead_months');
}
示例15: install
/**
* Standard modular install function.
*
* @param ?integer What version we're upgrading from (NULL: new install)
* @param ?integer What hack version we're upgrading from (NULL: new-install/not-upgrading-from-a-hacked-version)
*/
function install($upgrade_from = NULL, $upgrade_from_hack = NULL)
{
// TODO: This is actually for the 'syndication' addon
if (is_null($upgrade_from)) {
add_config_option('ENABLE_RSS', 'is_on_rss', 'tick', 'return \'1\';', 'FEATURE', 'NEWS_AND_RSS');
add_config_option('UPDATE_TIME', 'rss_update_time', 'integer', 'return \'60\';', 'FEATURE', 'NEWS_AND_RSS');
}
if ($upgrade_from < 3 || is_null($upgrade_from)) {
add_config_option('ENABLE_RSS_ADVERTISING', 'is_rss_advertised', 'tick', 'return \'0\';', 'FEATURE', 'NEWS_AND_RSS');
delete_config_option('rss_side_max_entries');
delete_config_option('rss_max_entries');
}
}