SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `wbce163` -- -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]addons` -- CREATE TABLE `[[dbprefix]]addons` ( `addon_id` int(11) NOT NULL AUTO_INCREMENT, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `directory` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `description` text COLLATE utf8_unicode_ci NOT NULL, `function` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `platform` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `author` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `license` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`addon_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=59 ; -- -- Dumping data for table `[[dbprefix]]addons` -- INSERT INTO `[[dbprefix]]addons` VALUES (1, 'module', 'outputfilter_dashboard', 'Output Filter Dashboard', 'Admin-Tool to manage OutputFilter', 'tool', '1.6.6', 'WBCE 1.x', 'Thomas "thorn" Hornik , Christian M. Stefan (Stefek) , Martin Hecht (mrbaseman) ', 'GNU General Public License, Version 3'), (2, 'module', 'droplets', 'Droplets', 'This tool allows you to manage your local Droplets.', 'tool', '2.4.0', '1.6.0', 'Ruud, pcwacht, WebBird, cwsoft, Norhei, Colinax, Christian M. Stefan (Stefek)', 'GNU General Public License'), (3, 'module', 'CodeMirror_Config', 'CodeMirror Configurator', 'Change Settings of the CodeMirror implementation', 'tool, initialize', '0.1.0', '1.5.5', 'Christian M. Stefan (Stefek)', 'GNU General Public License'), (4, 'module', 'SecureFormSwitcher', 'More Security Settings', 'This tool provides some additional security settings', 'tool', '1.3.3', '1.1.0', 'Complete rewrite of Secure Form Switcher by Norbert Heimsath(heimsath.org)', 'GPLv2 or any later'), (5, 'module', 'addon_monitor', 'Addon Monitor', 'This AdminTool''s entire purpose is to give you a handy way to overview all the installed add-ons. You will be able to see whether or not your installed modules are in use and where.', 'tool', '0.7.2', '1.0.0', 'Christian M. Stefan (Stefek)', 'GNU/GPL v.2'), (6, 'module', 'captcha_control', 'Captcha and Advanced-Spam-Protection (ASP) Control', 'Admin-Tool to control CAPTCHA and ASP', 'tool', '2.0.5', '1.4.0', 'Thorn, Luise Hahne, Norbert Heimsath', 'WTFPL'), (7, 'module', 'ckeditor', 'CKEditor', 'includes CKEditor 4.22.1 Standard Package and some other Plugins, CKE allows editing content and can be integrated in frontend and backend modules.', 'wysiwyg,snippet', '4.22.1', '1.5.0', 'diverse, cwsoft, Norhei, Colinax', 'GPL, LGPL and MPL'), (8, 'module', 'elfinder', 'elFinder', 'elFinder file manager as Admin Tool', 'tool', '1.1.9', '1.5.0', 'WBCE', 'Modul under GPL, elFinder under BSD'), (9, 'module', 'errorlogger', 'Errorlog viewer', 'Catch PHP warnings and errors into a logfile and view them using this tool.', 'tool,preinit,initialize', '1.1.4.2', '1.3.0', 'Ruud Eisinga - Dev4me', 'GNU General Public License'), (10, 'module', 'jsadmin', 'Javascript Admin', 'Settings for the page tree and section management behaviour.', 'tool', '1.4.4', '1.4.0', 'Stepan Riha, Swen Uth', 'BSD License'), (11, 'module', 'maintainance_mode', 'Maintenance Mode Switcher', 'This tool offers a plain and simple switch to turn maintenance mode on and off.', 'tool', '1.1.4', '1.4.0', 'Norbert Heimsath(heimsath.org)', 'WTFPL'), (12, 'module', 'menu_link', 'Menu Link', 'This module allows you to insert a link into the menu.', 'page', '2.9.8', '1.4.0', 'Ryan Djurovich, thorn, Christian M. Stefan', 'GNU General Public License'), (13, 'module', 'miniform', 'MiniForm WBCE CMS Edition', 'This module allows you to create a quick and simple form without complicated settings.', 'page, tool', '0.23.3', '1.4.x', 'Ruud / Dev4me', 'GNU General Public License'), (14, 'module', 'mod_opf_auto_placeholder', 'OPF Auto Placeholder', 'Auto Add Placeholders for Javascript, CSS, Metas and Title', 'opffilter', '1.3.4', 'WBCE 1.4.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (15, 'module', 'mod_opf_csstohead', 'OPF CSS to head', 'moves css definitions from the body section into head', 'opffilter', '1.0.8', 'WBCE 1.2.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (16, 'module', 'mod_opf_email', 'OPF E-Mail', 'settings for the output filter to protect email addresses in text, mailto links, and javascript', 'tool', '1.1.11', 'WBCE 1.x', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (17, 'module', 'mod_opf_insert', 'OPF Insert', 'fill out placeholders for Javascript, CSS, Metas and Title', 'opffilter', '1.0.8', 'WBCE 1.4.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (18, 'module', 'mod_opf_move_stuff', 'OPF Move Contents', 'move sections enclosed by move markers to the areas denoted by the corresponding place holders', 'opffilter', '1.0.8', 'WBCE 1.3.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (19, 'module', 'mod_opf_remove_system_ph', 'OPF Remove System PH', 'remove system placeholder markers ', 'opffilter', '1.1.7', 'WBCE 1.3.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (20, 'module', 'mod_opf_replace_stuff', 'OPF Replace Contents', 'replaces the areas marked by placeholders by the corresponding parts enclosed by replacement markers', 'opffilter', '1.0.8', 'WBCE 1.3.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (21, 'module', 'mod_opf_wblink', 'OPF Internal Link Replacer', 'change internal wblinkxx into real URLs', 'opffilter', '1.0.7', 'WBCE 1.2.x ', 'Martin Hecht (mrbaseman)', 'GNU GPL2 (or any later version)'), (22, 'module', 'news_img', 'News with Images', 'This page type is designed for making a news page with Images and Lightboxeffect.', 'page', '5.0.28', '1.4', 'Ryan Djurovich, Rob Smith, Silvia Reins, Martin Hecht, Florian Meerwinck, Bianka Martinovic', 'GNU General Public License'), (23, 'module', 'show_menu2', 'show_menu2', 'A code snippet for the WBCE CMS providing menu functions. See the readme file or view sm2.wbce-cms.org.', 'snippet', '4.14.1', '1.4.0', 'diverse, WBCE Dev Team', 'GNU General Public License v2'), (24, 'module', 'simplepagehead', 'SimplePageHead', 'Snippet to generate better and simpler head tags (title, keywords.. ) for core and modules. Function can be invoked from the template. Simplest call: simplepagehead();', 'snippet', '0.8.2', '1.4.0', 'Chio, with a litte help from thorn. Extended for use with other modules by Christoph Marti. Updated by Florian Meerwinck for WBCE', 'GNU General Public License'), (25, 'module', 'sitemap', 'Sitemap', 'This module allows you to easily create a sitemap. You can even work with additional layout settings for the sitemap. It also gives you the option to show hidden menu items if required', 'page', '4.0.11', '1.4.0', 'Ryan Djurovich, Frank Schoep, Woudloper, Ruebenwurzel, Rob Smith, Mouring Kolhoff, Michael Milette, Dietrich Roland Pehlke, Christian M. Stefan (Stefanek) (last)', 'GNU General Public License'), (26, 'module', 'tool_account_settings', 'Account and Signups configuration', 'Set up the registration process (signup) and have an overview of all users registered to the system.', 'tool', '0.7.1', '1.4.0', 'Christian M. Stefan (Stefek)', 'GNU General Public License'), (27, 'module', 'wbSeoTool', 'SEO Tool', 'This Admin-Tool provides some SEO handling help.', 'tool', '0.7.1', '2.8.3', 'Christian M. Stefan ', 'GNU General Public License v.2'), (28, 'module', 'wbstats', 'Visitor statistics - WBstats - by Dev4me', 'Displays website statistics as an admintool', 'tool,initialize,page', '0.2.5.5', '1.3.0', 'Dev4me - Ruud Eisinga - www.dev4me.nl, Norbert Heimsath(heimsath.org)', 'GNU General Public License'), (29, 'module', 'wrapper', 'Wrapper', 'This module allows you to wrap your site around another using an inline frame', 'page', '2.8.3', '2.8.x', 'Ryan Djurovich', 'GNU General Public License'), (30, 'module', 'wysiwyg', 'WYSIWYG', 'This module allows you to edit the contents of a page using a graphical editor', 'page', '2.10.0', '1.4.0', 'Ryan Djurovich', 'GNU General Public License'), (31, 'template', 'argos_theme_reloaded', 'Argos Theme Reloaded', 'Enhanced backend theme for WBCE 1.x', 'theme', '2.1.7', '1.5.0', 'Bernd Michna (BerndJM / WWnW) based on the work by Jurgen Nijhuis (Argos Media) & Ruud Eisinga', 'WTFPL'), (32, 'template', 'wbce_flat_theme', 'WBCE Flat Theme', 'Flat theme for WBCE 1.x', 'theme', '1.7.10', '1.5.0', 'Colinax based on the work by Yetiie, BerndJM and rjgamer', 'GNU General Public License'), (33, 'template', 'wbcetik', 'WBCETik', 'Klassisch aufgebautes Template mit vertikaler Navigation, Content- und optionaler Seitenspalte, optionalen breiten Blöcken darüber und darunter. ', 'template', '1.1', '1.4', 'Florian Meerwinck', 'Responsee is licenced under MIT, MFG Labs icon set under CC-BY 3.0 and SIL Open Font License, Open Sans is licensed under Apache license. Images from pixabay.com, Pixabay License. '), (34, 'template', 'wbcezon', 'WBCEZon', 'Klassisch aufgebautes Template mit horizontaler Navigation, Content- und optionaler Seitenspalte, optionalen breiten Blöcken darüber und darunter. Die linke Spalte ist nur in der Desktop/Tablet-Ansicht sichtbar, nicht auf Smartphones. ', 'template', '1.0.1', '1.4', 'Florian Meerwinck', 'Responsee is licenced under MIT, MFG Labs icon set under CC-BY 3.0 and SIL Open Font License, Open Sans is licensed under Apache license. Images from pixabay.com, Pixabay License. '), (35, 'template', 'whiteboard', 'Whiteboard Template', 'This template is for use on page where you do not want anything wrapping the content.', 'template', '1.0', '1.0.0', 'WBCE', 'GNU General Public License'), (36, 'language', 'BG', 'Bulgarian', '', '', '2.8', '2.8.x', 'Hristo Benev(Христо Бенев)', 'GNU General Public License'), (37, 'language', 'CA', 'Catalan', '', '', '2.8', '2.8.x', 'Carles Escrig (simkin)', 'GNU General Public License'), (38, 'language', 'CS', 'Czech', '', '', '2.8', '2.8.x', 'WebStep, s.r.o.', 'GNU General Public License'), (39, 'language', 'DA', 'Danish', '', '', '2.8', '2.8.x', 'Allan Christensen', 'GNU General Public License'), (40, 'language', 'DE', 'German', '', '', '3.3', '1.4.0', 'Stefan Braunewell, Matthias Gallas, Florian Meerwinck', 'GNU General Public License'), (41, 'language', 'EN', 'English', '', '', '3.2', '1.3.0', 'Ryan Djurovich, Christian Sommer', 'GNU General Public License'), (42, 'language', 'ES', 'Spanish', '', '', '3.2', '1.3.0', 'Samuel Mateo, Jr. | samuelmateo.com', 'GNU General Public License'), (43, 'language', 'ET', 'Estonian', '', '', '2.8', '2.8.x', 'Heiko Häng', 'GNU General Public License'), (44, 'language', 'FI', 'Finnish', '', '', '2.8', '2.8.x', 'Jontse', 'GNU General Public License'), (45, 'language', 'FR', 'French', '', '', '3.2', '1.3.0', 'Marin Susac', 'GNU General Public License'), (46, 'language', 'GR', 'Greek', '', '', '3.2', '1.3.0', 'Yannis Spyrou', 'GNU General Public License'), (47, 'language', 'HR', 'Croatian', '', '', '2.8', '2.8.x', 'Vedran Presecki', 'GNU General Public License'), (48, 'language', 'HU', 'Hungarian', '', '', '3.2', '1.3.0', 'Zsolt + Robert', 'GNU General Public License'), (49, 'language', 'IT', 'Italian', '', '', '3.2', '1.3.0', 'Roberto Rossi', 'GNU General Public License'), (50, 'language', 'LV', 'Latvian', '', '', '2.8', '2.8.x', 'Krišjanis Rijnieks', 'GNU General Public License'), (51, 'language', 'NL', 'Dutch', '', '', '3.2', '1.3.0', 'Bramus, CodeALot, Luckyluke, Argos', 'GNU General Public License'), (52, 'language', 'NO', 'Norsk Bokmål''; // ''Norwegian', '', '', '3.2', '1.3.0', 'Odd Egil Hansen (oeh)', 'GNU General Public License'), (53, 'language', 'PL', 'Polish', '', '', '3.2', '1.3.0', 'Marek Stepien;', 'GNU General Public License'), (54, 'language', 'PT', 'Portuguese', '', '', '3.2', '1.3.0', 'Daniel Neto', 'GNU General Public License'), (55, 'language', 'RU', 'Russian', '', '', '2.9', '1.4.x', 'Kirill Karakulko (kirill@nadosoft.com), Leo Klee', 'GNU General Public License'), (56, 'language', 'SK', 'Slovak', '', '', '2.8', '2.8.x', 'Michal Kurtulik - YONIX.SK', 'GNU General Public License'), (57, 'language', 'SV', 'Swedish', '', '', '2.8', '2.8.x', 'Markus Eriksson, Peppe Bergqvist', 'GNU General Public License'), (58, 'language', 'TR', 'Turkish', '', '', '2.8', '2.8.x', 'Atakan KOÇ', 'GNU General Public License'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]blocking` -- CREATE TABLE `[[dbprefix]]blocking` ( `source_ip` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `timestamp` int(11) NOT NULL DEFAULT '0', `attempts` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`source_ip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `[[dbprefix]]blocking` -- -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]dbsessions` -- CREATE TABLE `[[dbprefix]]dbsessions` ( `id` varchar(148) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Session Id', `data` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT 'Session Data', `last_accessed` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Last timestamp', `user` int(11) NOT NULL COMMENT 'User Id', PRIMARY KEY (`id`), KEY `last_accessed` (`last_accessed`), KEY `user` (`user`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='WBCE Session Table'; -- -- Dumping data for table `[[dbprefix]]dbsessions` -- -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]groups` -- CREATE TABLE `[[dbprefix]]groups` ( `group_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '', `system_permissions` text COLLATE utf8_unicode_ci NOT NULL, `module_permissions` text COLLATE utf8_unicode_ci NOT NULL, `template_permissions` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`group_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `[[dbprefix]]groups` -- INSERT INTO `[[dbprefix]]groups` VALUES (1, 'Administrators', 'pages,pages_view,pages_add,pages_add_l0,pages_settings,pages_modify,pages_intro,pages_delete,media,media_view,media_upload,media_rename,media_delete,media_create,addons,modules,modules_view,modules_install,modules_uninstall,templates,templates_view,templates_install,templates_uninstall,languages,languages_view,languages_install,languages_uninstall,settings,settings_basic,settings_advanced,access,users,users_view,users_add,users_modify,users_delete,groups,groups_view,groups_add,groups_modify,groups_delete,admintools', '', ''); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]mod_droplets` -- CREATE TABLE `[[dbprefix]]mod_droplets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `code` longtext COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci NOT NULL, `modified_when` int(11) NOT NULL DEFAULT '0', `modified_by` int(11) NOT NULL DEFAULT '0', `active` int(11) NOT NULL DEFAULT '0', `admin_edit` int(11) NOT NULL DEFAULT '0', `admin_view` int(11) NOT NULL DEFAULT '0', `show_wysiwyg` int(11) NOT NULL DEFAULT '0', `comments` text COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=16 ; -- -- Dumping data for table `[[dbprefix]]mod_droplets` -- INSERT INTO `[[dbprefix]]mod_droplets` VALUES (1, 'EditThisPage', '// This Droplet will show a link to the backend page editor. This is only shown when the user is logged in and has the correct permissions to edit the page in question.\nglobal $wb, $page_id, $HEADING, $database, $admin;\n$str = " ";\nif (FRONTEND_LOGIN == ''enabled'' and is_numeric($wb->get_session(''USER_ID''))) {\n if ($page_id) {\n $this_page = $page_id;\n } else {\n $this_page = $wb->default_page_id;\n }\n $results = $database->query("SELECT * FROM ".TABLE_PREFIX."pages WHERE page_id = ''$this_page''");\n $results_array = $results->fetchRow();\n $old_admin_groups = explode('','', $results_array[''admin_groups'']);\n $old_admin_users = explode('','', $results_array[''admin_users'']);\n $this_user = $wb->get_session(''GROUP_ID'');\n $query = "SELECT * FROM ".TABLE_PREFIX."pages WHERE page_id = ''".$page_id."''";\n $get_pages = $database->query($query);\n $page = $get_pages->fetchRow();\n $admin_groups = explode('','', str_replace(''_'', '''', $page[''admin_groups'']));\n $admin_users = explode('','', str_replace(''_'', '''', $page[''admin_users'']));\n $in_group = false;\n foreach ($admin->get_groups_id() as $cur_gid) {\n if (in_array($cur_gid, $admin_groups)) {\n $in_group = true;\n }\n }\n if (($in_group) or is_numeric(array_search($this_user, $old_admin_groups))) {\n $str = '''' . $HEADING[''MODIFY_PAGE''] . ''Edit Page'';\n }\n}\nreturn $str;\n', 'Shows an "Edit page" link in the frontend', [[timestamp]], 1, 1, 0, 0, 0, 'Usage: [[editthispage]]'), (2, 'LoginBox', '// Absolute or relative url possible\n// Remember to enable frontend login in your website settings.\n\n global $wb,$page_id,$TEXT, $MENU, $HEADING;\n\n $return_value = ''''."\\n";\n return $return_value;\n', 'Puts a Login / Logout box on your page.', [[timestamp]], 1, 1, 0, 0, 0, 'Use: [[LoginBox?redirect=url]]'), (3, 'Lorem', '$lorem = array();\n$lorem[] = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut odio. Nam sed est. Nam a risus et est iaculis adipiscing. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Integer ut justo. In tincidunt viverra nisl. Donec dictum malesuada magna. Curabitur id nibh auctor tellus adipiscing pharetra. Fusce vel justo non orci semper feugiat. Cras eu leo at purus ultrices tristique.

";\n$lorem[] = "Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

";\n$lorem[] = "Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.

";\n$lorem[] = "Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.

";\n$lorem[] = "Cras consequat magna ac tellus. Duis sed metus sit amet nunc faucibus blandit. Fusce tempus cursus urna. Sed bibendum, dolor et volutpat nonummy, wisi justo convallis neque, eu feugiat leo ligula nec quam. Nulla in mi. Integer ac mauris vel ligula laoreet tristique. Nunc eget tortor in diam rhoncus vehicula. Nulla quis mi. Fusce porta fringilla mauris. Vestibulum sed dolor. Aliquam tincidunt interdum arcu. Vestibulum eget lacus. Curabitur pellentesque egestas lectus. Duis dolor. Aliquam erat volutpat. Aliquam erat volutpat. Duis egestas rhoncus dui. Sed iaculis, metus et mollis tincidunt, mauris dolor ornare odio, in cursus justo felis sit amet arcu. Aenean sollicitudin. Duis lectus leo, eleifend mollis, consequat ut, venenatis at, ante.

";\n$lorem[] = "Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

";\nif (!isset($blocks)) {\n $blocks=1;\n}\n$blocks = (int)$blocks - 1;\nif ($blocks <= 0) {\n $blocks = 0;\n}\nif ($blocks > 5) {\n $blocks = 5;\n}\n$returnvalue = "";\nfor ($i=0 ; $i<=$blocks ; $i++) {\n $returnvalue .= $lorem[$i];\n}\nreturn $returnvalue;\n', 'Create Lorum Ipsum text', [[timestamp]], 1, 1, 0, 0, 0, 'Use: [[Lorem?blocks=6]] (max 6 paragraphs)'), (4, 'ModifiedWhen', 'global $database, $wb;\nif (PAGE_ID>0) {\n $query=$database->query("SELECT modified_when FROM ".TABLE_PREFIX."pages where page_id=".PAGE_ID);\n $mod_details=$query->fetchRow();\n return "This page was last modified on ".date("d/m/Y", $mod_details[0]). " at ".date("H:i", $mod_details[0]).".";\n}\n', 'Displays the last modification time of the current page', [[timestamp]], 1, 1, 0, 0, 0, 'Use [[ModifiedWhen]]'), (5, 'NextPage', '$info = show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, ''[if(class==menu-current){[level] [sib] [sibCount] [parent]}]'', '''', '''', '''');\nlist($nLevel, $nSib, $nSibCount, $nParent) = explode('' '', $info);\n\n// show next\n$nxt = $nSib < $nSibCount ? $nSib + 1 : 0;\nif ($nxt > 0) {\n return show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, "[if(sib==$nxt){>> [a][menu_title]}]", '''', '''', '''');\n} else {\n return ''(no next)'';\n}\n', 'Create a next link to your page', [[timestamp]], 1, 1, 0, 0, 0, 'Display a link to the next page on the same menu level'), (6, 'Oneliner', '$line = file(dirname(__FILE__)."/example/oneliners.txt");\nshuffle($line);\nreturn $line[0];\n', 'Create a random oneliner on your page', [[timestamp]], 1, 1, 0, 0, 0, 'Use: [[OneLiner]]. The file with the oneliner data is located in /modules/droplets/example/oneliners.txt'), (7, 'ParentPage', '$info = show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, ''[if(class==menu-current){[level] [sib] [sibCount] [parent]}]'', '''', '''', '''');\nlist($nLevel, $nSib, $nSibCount, $nParent) = explode('' '', $info);\n\n// show up level\nif ($nLevel > 0) {\n $lev = $nLevel - 1;\n return show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB|SM2_BUFFER, "[if(level==$lev){[a][menu_title]}]", '''', '''', '''');\n} else {\n return ''(no parent)'';\n}\n', 'Create a parent link to your page', [[timestamp]], 1, 1, 0, 0, 0, 'Display a link to the parent page of the current page'), (8, 'PreviousPage', '$info = show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, ''[if(class==menu-current){[level] [sib] [sibCount] [parent]}]'', '''', '''', '''');\nlist($nLevel, $nSib, $nSibCount, $nParent) = explode('' '', $info);\n\n// show previous\n$prv = $nSib > 1 ? $nSib - 1 : 0;\nif ($prv > 0) {\n return show_menu2(0, SM2_CURR, SM2_START, SM2_ALL|SM2_BUFFER, "[if(sib==$prv){[a][menu_title] <<}]", '''', '''', '''');\n} else {\n return ''(no previous)'';\n}\n', 'Create a previous link to your page', [[timestamp]], 1, 1, 0, 0, 0, 'Display a link to the previous page on the same menu level'), (9, 'RandomImage', '$dir = ((isset($dir) && ($dir!='''')) ? $dir : '''');\r\n$folder = opendir(WB_PATH.MEDIA_DIRECTORY.''/''.$dir.''/.'');\r\n$names = array();\r\nwhile ($file = readdir($folder)) {\r\n $ext=strtolower(substr($file, -4));\r\n if ($ext==".jpg"||$ext==".gif"||$ext==".png") {\r\n $names[count($names)] = $file;\r\n }\r\n}\r\nclosedir($folder);\r\nshuffle($names);\r\n$image=$names[0];\r\n$name=substr($image, 0, -4);\r\nreturn ''''.$name.'''';\r\n', 'Get a random image from a folder in the MEDIA folder.', [[timestamp]], 1, 1, 0, 0, 0, 'Usage [[RandomImage?dir=subfolder_in_mediafolder]]'), (10, 'SearchBox', 'global $TEXT;\n$return_value = true;\nif (!isset($msg)) {\n $msg=''search this site..'';\n}\n$j = "onfocus=\\"if(this.value==''$msg''){this.value='''';this.style.color=''#000'';}else{this.select();}\\"\n onblur=\\"if(this.value==''''){this.value=''$msg'';this.style.color=''#b3b3b3'';}\\"";\nif (SHOW_SEARCH) {\n $return_value = '''';\n}\nreturn $return_value;\n', 'Create a searchbox', [[timestamp]], 1, 1, 0, 0, 0, 'Creates a serachbox on the position of [[searchbox]]. Optional parameter "?msg=the search message"'), (11, 'SectionPicker', '$sid = isset($sid) ? intval($sid) : 0;\n$anchor = isset($anchor) ? (string) $anchor : '''';\nreturn get_section_content($sid, false, $anchor);\n', 'Load the view.php from any other section-module', [[timestamp]], 1, 1, 0, 0, 0, 'Use [[SectionPicker?sid=123]] or use [[SectionPicker?sid=123&anchor=MyAnchor]] if you want to have a anchor added before the section'), (12, 'ShowRandomWysiwyg', 'global $database;\n $content = '''';\n if (isset($section)) {\n if (preg_match(''/^[0-9]+(?:\\s*[\\,\\|\\-\\;\\:\\+\\#\\/]\\s*[0-9]+\\s*)*$/'', $section)) {\n if (is_readable(WB_PATH.''/modules/wysiwyg/view.php'')) {\n // if valid arguments given and module wysiwyg is installed\n // split and sanitize arguments\n $aSections = preg_split(''/[\\s\\,\\|\\-\\;\\:\\+\\#\\/]+/'', $section);\n $section_id = $aSections[array_rand($aSections)]; // get random element\n ob_start(); // generate output by wysiwyg module\n require(WB_PATH.''/modules/wysiwyg/view.php'');\n $content = ob_get_clean();\n }\n }\n }\nreturn $content;\n', 'Randomly display one WYSIWYG section from a given list', [[timestamp]], 1, 1, 0, 0, 0, 'Use [[ShowRandomWysiwyg?section=10,12,15,20]] possible Delimiters: [ ,;:|-+#/ ]'), (13, 'SiteModified', 'global $database, $wb;\nif (PAGE_ID>0) {\n $query=$database->query("SELECT max(modified_when) FROM ".TABLE_PREFIX."pages");\n $mod_details=$query->fetchRow();\n return "This site was last modified on ".date("d/m/Y", $mod_details[0]). " at ".date("H:i", $mod_details[0]).".";\n}\n', 'Create information on when your site was last updated.', [[timestamp]], 1, 1, 0, 0, 0, 'Create information on when your site was last updated. Any page update counts.'), (14, 'mp4video', '// w and h are optional\n// load mp4-Video from /media/ or subfolder\nif (!isset($w)) $w="100%";\nif (!isset($h)) $h="auto";\nif (!isset($p)) $p="preview-video.jpg";\n$rv= "";\nreturn $rv;', 'mp4video', [[timestamp]], 1, 1, 0, 0, 0, 'Use: [[mp4video?mp4=dateiname.mp4&w=640&h=480]]'), (15, 'fetchNewsItems', 'include_once WB_PATH . ''/modules/news_img/functions.inc.php'';\r\n\r\n$options = array(\r\n ''group_id_type'' => ''group_id'', // type used by group_id to extract news entries (supported: ''group_id'', ''page_id'', ''section_id'', ''post_id'')\r\n ''group_id'' => 0, // IDs of news to show, matching defined $group_id_type (default:=0, all news, 0..N, or array(2,4,5,N) to limit news to IDs matching $group_id_type)\r\n ''start_news_item'' => 0, // start showing news from the Nth news item onwards (default:= 0, min:=-999, max:= 999); Note: -1: last item, -2: 2nd last etc.\r\n ''max_news_items'' => 10, // maximum number of news shown (default:= 10, min:=1, max:= 999)\r\n ''max_news_length'' => -1, // maximum length of the short news text shown (default:=-1 => full news length)\r\n ''strip_tags'' => true, // true:=remove tags from short and long text (default:=true); false:=don?t strip tags\r\n ''allowed_tags'' => ''

'', // tags not striped off (default:=''

'')\r\n ''custom_placeholder'' => false, // false:= none (default), array(''MY_VAR_1'' => ''%TAG%#'', ... ''MY_VAR_N'' => ''#regex_N#'' ...)\r\n ''sort_by'' => 1, // 1:=position (default), 2:=posted_when, 3:=published_when, 4:=random order, 5:=number of comments\r\n ''sort_order'' => 1, // 1:=descending (default), 2:=ascending\r\n ''is_not_older_than'' => 0, // alias for not_older_than (CKE problem, see issue #78)\r\n ''not_older_than'' => 0, // 0:=disabled (default), 0-999 (only show news `published_when` date <=x days; 12 hours:=0.5)\r\n ''lang_id'' => ''AUTO'', // language file to load and lang_id used if $lang_filer = true (default:= auto, examples: AUTO, DE, EN)\r\n ''lang_filter'' => false, // flag to enable language filter (default:= false, show only news from a news page, which language fits $lang_id)\r\n ''skip'' => null, // filter by tags (blacklist)\r\n ''tags'' => null, // filter by tags (whitelist)\r\n ''view'' => null, // use CSS from view (default, faq)\r\n ''aslist'' => false, // only titles (