⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 102.php

📁 CMS系统
💻 PHP
字号:
<?php

// change customplugin name from 32 to 64 varchars
$DB->query("ALTER TABLE customplugins CHANGE name name VARCHAR( 64 ) NOT NULL");

// custom plugins now have displaynames
$DB->query("ALTER TABLE customplugins ADD displayname VARCHAR( 64 ) NOT NULL AFTER name");

// this update adds the option of displaying 'next' and 'previous' links for displaying more articles
$DB->query("INSERT INTO " . TABLE_PREFIX . "pluginsettings (pluginid , groupname , title , description , input , value , displayorder )
            VALUES ('2', 'Options', 'Allow Multiple Pages', 'By allowing multiple pages, your site will display next and previous links at the end of your news plugin which will link to more articles if they exist.', 'yesno', '0', '3') ");

// this update adds the option of organizing articles by name, first created, or last created
$DB->query("INSERT INTO " . TABLE_PREFIX . "pluginsettings (pluginid , groupname , title , description , input , value , displayorder )
            VALUES ('2', 'Options', 'Sorting', 'How would you like your articles to be sorted?', '<select name=\\\\\"settings[\$setting[settingid]]\\\\\">\r\n<option \".iif(\$setting[value]==\"Newest First\", \"selected\", \"\").\">Newest First</option>\r\n<option \".iif(\$setting[value]==\"Oldest First\", \"selected\", \"\").\">Oldest First</option>\r\n<option \".iif(\$setting[value]==\"Alphabetically\", \"selected\", \"\").\">Alphabetically</option>\r\n</select>', 'Newest First', '4') ");
$DB->query("UPDATE " . TABLE_PREFIX . "plugins SET version = '1.1' WHERE pluginid = '2'");

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -