本文整理汇总了PHP中Settings::Del方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings::Del方法的具体用法?PHP Settings::Del怎么用?PHP Settings::Del使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Settings
的用法示例。
在下文中一共展示了Settings::Del方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
/**
* @category modules
* @package Secure Form Switcher
* @author WBCE Project
* @copyright Norbert Heimsath
* @license WTFPL
*/
//no direct file access
if (count(get_included_files()) == 1) {
die(header("Location: ../index.php", TRUE, 301));
}
$msg = '';
// Del old switch as now there is only one.
Settings::Del("secure_form_module");
示例2: header
<?php
/**
*
* @category modules
* @package captcha_control
* @author WBCE Project
* @copyright Thorn, Luise Hahne, Norbert Heimsath
* @license GPLv2 or any later
*/
//no direct file access
if (count(get_included_files()) == 1) {
header("Location: ../index.php", TRUE, 301);
}
// Default settings
Settings::Del("enabled_captcha");
Settings::Del("enabled_asp");
Settings::Del("captcha_type");
Settings::Del("asp_session_min_age");
Settings::Del("asp_view_min_age");
Settings::Del("asp_input_min_age");
Settings::Del("ct_text");
$table = TABLE_PREFIX . 'mod_captcha_control';
$database->query("DROP TABLE `{$table}`");
示例3:
echo "<br />Adding redirect timer to settings table<br />";
Settings::Set('redirect_timer', '1500', false);
echo "<br />Updating rename_files_on_upload to settings table<br />";
Settings::Set('rename_files_on_upload', 'ph.*?,cgi,pl,pm,exe,com,bat,pif,cmd,src,asp,aspx,js', false);
echo "<br />Adding mediasettings to settings table<br />";
Settings::Set('mediasettings', '', false);
echo "<br />Adding Secureform Settings if not exits.<br />";
// Settings::Set ("wb_maintainance_mode", false, fals);
Settings::Set("wb_secform_secret", "5609bnefg93jmgi99igjefg", false);
Settings::Set("wb_secform_secrettime", '86400', false);
Settings::Set("wb_secform_timeout", '7200', false);
Settings::Set("wb_secform_tokenname", 'formtoken', false);
Settings::Set("wb_secform_usefp", false, false);
Settings::Set('fingerprint_with_ip_octets', '0', false);
echo "<br />Removing Secureform selector, no longer needed.<br />";
Settings::Del('secure_form_module');
// No longer needed as Singletab is removed
/**********************************************************
* Adding DB Fields
*/
// Add field "redirect_type" to table "mod_menu_link"
echo "<br />Adding field redirect_type to mod_menu_link table<br />";
db_add_field('redirect_type', 'mod_menu_link', "INT NOT NULL DEFAULT '302' AFTER `target_page_id`");
// Add field "namesection" to table "sections"
echo "<br />Adding field namesection to sections table<br />";
db_add_field('namesection', 'sections', "VARCHAR( 255 ) NULL");
/**********************************************************
* - making sure group_id is set correct there was a big bug in original WB
* WBCE 1.0.0
*/
$table = TABLE_PREFIX . "users";
示例4: die
* @author Christian Sommer, WB-Project, Werner v.d. Decken, Norbert Heimsath(heimsath.org)
* @copyright WebsiteBaker Org. e.V.
* @link http://websitebaker.org/
* @license http://www.gnu.org/licenses/gpl.html
* @platform WebsiteBaker 2.8.3
* @requirements PHP 5.3.6 and higher
* @version $Id: uninstall.php 1520 2011-11-09 00:12:37Z darkviper $
* @filesource $HeadURL: svn://isteam.dynxs.de/wb_svn/wb280/tags/2.8.3/wb/modules/output_filter/uninstall.php $
* @lastmodified $Date: 2011-11-09 01:12:37 +0100 (Mi, 09. Nov 2011) $
*
*/
//no direct file access
if (count(get_included_files()) == 1) {
die(header("Location: ../index.php", TRUE, 301));
}
Settings::Del('wb_suppress_old_opf');
Settings::Del('opf_droplets');
Settings::Del('opf_droplets_be');
Settings::Del('opf_wblink');
Settings::Del('opf_auto_placeholder');
Settings::Del('opf_insert');
Settings::Del('opf_sys_rel');
Settings::Del('opf_email_filter');
Settings::Del('opf_mailto_filter');
Settings::Del('opf_js_mailto');
Settings::Del('opf_short_url');
Settings::Del('opf_css_to_head');
Settings::Del('opf_at_replacement');
Settings::Del('opf_dot_replacement');
// deleting version too
Settings::Set("opf_version");