📄 210.php
字号:
<?php
// update link directory plugin settings and remove the 'allow comments' option since that plugin doesn't allow comments
$DB->query("UPDATE " . TABLE_PREFIX . "plugins SET settings = 19 WHERE pluginid = 16");
// update login panel plugin settings and remove the 'allow submit' option since that should always be on
// it would never make sense for it to be off
$DB->query("UPDATE " . TABLE_PREFIX . "plugins SET settings = 17 WHERE pluginid = 10");
// insert new phrases for the contact form plugin
$DB->query("INSERT INTO " . TABLE_PREFIX . "phrases VALUES ('0', 6, 'empty_fields', 'Error: One of the required field(s) is empty.', '', '', '#FF0000', '', '1', '0', '0') ");
// update phrases for the contact form plugin
$DB->query("UPDATE " . TABLE_PREFIX . "phrases SET color = '#FF0000', bold = 1 WHERE pluginid = 6 and varname = 'invalid_email'");
// remove a few phrases that are no longer used in the contact form
$DB->query("DELETE FROM " . TABLE_PREFIX . "phrases WHERE pluginid = 6 AND varname = 'enter_name'");
$DB->query("DELETE FROM " . TABLE_PREFIX . "phrases WHERE pluginid = 6 AND varname = 'enter_email'");
$DB->query("DELETE FROM " . TABLE_PREFIX . "phrases WHERE pluginid = 6 AND varname = 'enter_subject'");
$DB->query("DELETE FROM " . TABLE_PREFIX . "phrases WHERE pluginid = 6 AND varname = 'enter_message'");
// phpbb2 usergroup fix (emulates registered usergorup at -3, so we need to make this column signed:)
$DB->query("ALTER TABLE " . TABLE_PREFIX . "usergroups CHANGE `forumusergroupid` `forumusergroupid` SMALLINT( 5 ) DEFAULT '0' NOT NULL");
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -