| Name | Size | Mode | Actions |
|---|---|---|---|
| images/ | - | 0755 | rm |
| php53/ | - | 0755 | rm |
| php56/ | - | 0755 | rm |
| php71/ | - | 0755 | rm |
| php81/ | - | 0755 | rm |
| clipper.sql | 193450 | 0644 | editdlrm |
| clipper.zip | 6027809 | 0644 | editdlrm |
| clone.php | 4894 | 0644 | editdlrm |
| config.inc.php | 3602 | 0644 | editdlrm |
| edit.php | 4566 | 0644 | editdlrm |
| edit.xml | 433 | 0644 | editdlrm |
| fileindex.php | 96 | 0644 | editdlrm |
| import.php | 3257 | 0644 | editdlrm |
| info.xml | 2213 | 0644 | editdlrm |
| install.js | 924 | 0644 | editdlrm |
| install.php | 5437 | 0644 | editdlrm |
| install.xml | 1906 | 0644 | editdlrm |
| md5 | 6987 | 0644 | editdlrm |
| notes.txt | 395 | 0644 | editdlrm |
/var/softaculous/clipper/clipper.sql (193450B)
You have successfully installed ClipperCMS.
\r\n\r\nThe ClipperCMS Community provides a great starting point to learn all things Clipper, or you can visit the documentation pages on site construction for a quick-start guide to building a website with Clipper.
\r\nWelcome to ClipperCMS!
\r\n', 1, 3, 0, 1, 1, 1, 1130304721, 1, 1130304927, 0, 0, 0, 1130304721, 1, 'Base Install', 0, 0, 0, 0, 0); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_htmlsnippets` -- CREATE TABLE `[[dbprefix]]site_htmlsnippets` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` varchar(255) NOT NULL DEFAULT 'Chunk', `editor_type` int(11) NOT NULL DEFAULT '0' COMMENT '0-plain text,1-rich text,2-code editor', `category` int(11) NOT NULL DEFAULT '0' COMMENT 'category id', `cache_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Cache option', `snippet` mediumtext, `locked` tinyint(4) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains the site chunks.' AUTO_INCREMENT=2 ; -- -- Dumping data for table `[[dbprefix]]site_htmlsnippets` -- INSERT INTO `[[dbprefix]]site_htmlsnippets` VALUES (1, 'mm_demo_rules', 'Default ManagerManager rules. Should be modified for your own sites.', 0, 1, 0, '// Uncomment this line (remove the leading ''// '') to hide longtitle if you do not use it.\n// mm_hideFields(''longtitle'');\n\n// Uncomment this if you use [*description*] in a description meta tag\n// mm_changeFieldHelp(''description'', ''Description for search engines. Optional. Leave blank if unsure''); \n\n// Uncomment the following to hide some often unused fields from all users\n// mm_hideFields(''log'');\n// mm_hideFields(''parent'');\n// mm_hideFields(''link_attributes'');\n// mm_hideFields(''which_editor'');\n// mm_hideFields(''is_richtext'');\n\n// Examples of changing the help text. Uncomment to use these or write your own.\n// mm_changeFieldHelp(''pagetitle'', ''Title of this page'');\n// mm_changeFieldHelp(''menutitle'', ''An optional title for this page to be used in menus. Usually shorter if used.'');\n\n// Uncomment the following to hide the fields from all but admins\n// mm_hideFields(''cacheable'', ''!1'');\n// mm_hideFields(''clear_cache'', ''!1'');\n// mm_hideFields(''is_folder'', ''!1'');\n// mm_hideFields(''content_dispo'', ''!1'');\n// mm_hideFields(''content_type'', ''!1'');\n\n\n', 0); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_modules` -- CREATE TABLE `[[dbprefix]]site_modules` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` varchar(255) NOT NULL DEFAULT '0', `editor_type` int(11) NOT NULL DEFAULT '0' COMMENT '0-plain text,1-rich text,2-code editor', `disabled` tinyint(4) NOT NULL DEFAULT '0', `category` int(11) NOT NULL DEFAULT '0' COMMENT 'category id', `wrap` tinyint(4) NOT NULL DEFAULT '0', `locked` tinyint(4) NOT NULL DEFAULT '0', `icon` varchar(255) NOT NULL DEFAULT '' COMMENT 'url to module icon', `enable_resource` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'enables the resource file feature', `resourcefile` varchar(255) NOT NULL DEFAULT '' COMMENT 'a physical link to a resource file', `createdon` int(11) NOT NULL DEFAULT '0', `editedon` int(11) NOT NULL DEFAULT '0', `guid` varchar(32) NOT NULL DEFAULT '' COMMENT 'globally unique identifier', `enable_sharedparams` tinyint(4) NOT NULL DEFAULT '0', `properties` text, `modulecode` mediumtext COMMENT 'module boot up code', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Site Modules' AUTO_INCREMENT=2 ; -- -- Dumping data for table `[[dbprefix]]site_modules` -- INSERT INTO `[[dbprefix]]site_modules` VALUES (1, 'Res Manager', '1.1 Quickly perform bulk updates to the Documents in your site including templates, publishing details, and permissions', 0, 0, 2, 0, 0, '', 0, '', 0, 0, '', 1, '', 'include_once(MODX_BASE_PATH.''assets/modules/resmanager/classes/resmanager.class.php'');\ninclude_once(MODX_BASE_PATH.''assets/modules/resmanager/classes/rm_frontend.class.php'');\ninclude_once(MODX_BASE_PATH.''assets/modules/resmanager/classes/rm_backend.class.php'');\n\n$rm = new ResManager($modx);\n$rmf = new ResManagerFrontend($rm, $modx);\n$rmb = new ResManagerBackend($rm, $modx);\n\n$rm->ph = $rm->getLang();\n$rm->ph[''theme''] = $rm->getTheme();\n$rm->ph[''ajax.endpoint''] = MODX_SITE_URL.''assets/modules/resmanager/tv.ajax.php'';\n$rm->ph[''datepicker.year_range''] = $modx->config[''datepicker_year_range''];\n$rm->ph[''date.format''] = $modx->config[''date_format''];\n$rm->ph[''time.format''] = $modx->config[''time_format''];\n\n$rm->ph[''style.css''] = '''';\nif (is_file(MODX_MANAGER_PATH."media/style/$manager_theme/style.css")) {\n $rm->ph[''style.css''] = ''\\n";\n}\n\n$rm->ph[''manager.css''] = '''';\nif (is_file(MODX_MANAGER_PATH."media/style/$manager_theme/manager.css")) {\n $rm->ph[''manager.css''] = ''\\n";\n}\n\n$rm->ph[''jquery''] = $modx->getJqueryTag();\n$rm->ph[''jquery.ui''] = $modx->getJqueryPluginTag(''jquery-ui-custom-clippermanager'', ''jquery-ui-custom-clippermanager.min.js'');\n$rm->ph[''jquery.timepicker''] =$modx->getJqueryPluginTag(''jquery-ui-timepicker'', ''jquery-ui-timepicker-addon.js'');\n\nif (isset($_POST[''tabAction''])) {\n\n $rmb->handlePostback();\n} else {\n\n $rmf->getViews();\n echo $rm->parseTemplate(''main.tpl'', $rm->ph);\n}\n'); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_module_access` -- CREATE TABLE `[[dbprefix]]site_module_access` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `module` int(11) NOT NULL DEFAULT '0', `usergroup` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Module users group access permission' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_module_depobj` -- CREATE TABLE `[[dbprefix]]site_module_depobj` ( `id` int(11) NOT NULL AUTO_INCREMENT, `module` int(11) NOT NULL DEFAULT '0', `resource` int(11) NOT NULL DEFAULT '0', `type` int(2) NOT NULL DEFAULT '0' COMMENT '10-chunks, 20-docs, 30-plugins, 40-snips, 50-tpls, 60-tvs', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Module Dependencies' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_plugins` -- CREATE TABLE `[[dbprefix]]site_plugins` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` varchar(255) NOT NULL DEFAULT 'Plugin', `editor_type` int(11) NOT NULL DEFAULT '0' COMMENT '0-plain text,1-rich text,2-code editor', `category` int(11) NOT NULL DEFAULT '0' COMMENT 'category id', `cache_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Cache option', `plugincode` mediumtext, `locked` tinyint(4) NOT NULL DEFAULT '0', `properties` text, `disabled` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'Disables the plugin', `moduleguid` varchar(32) NOT NULL DEFAULT '' COMMENT 'GUID of module from which to import shared parameters', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains the site plugins.' AUTO_INCREMENT=7 ; -- -- Dumping data for table `[[dbprefix]]site_plugins` -- INSERT INTO `[[dbprefix]]site_plugins` VALUES (1, 'ManagerManager', 'clipper-0.3.13 Customize the MODx Manager to offer bespoke admin functions for end users.', 0, 2, 0, '// You can put your ManagerManager rules EITHER in a chunk OR in an external file - whichever suits your development style the best\n\n// To use an external file, put your rules in /assets/plugins/managermanager/mm_rules.inc.php \n// (you can rename default.mm_rules.inc.php and use it as an example)\n// The chunk SHOULD have php opening tags at the beginning and end\n\n// If you want to put your rules in a chunk (so you can edit them through the Manager),\n// create the chunk, and enter its name in the configuration tab.\n// The chunk should NOT have php tags at the beginning or end\n\n// You don''t need to change anything else from here onwards\n//-------------------------------------------------------\n\n// Run the main code\n$asset_path = $modx->config[''base_path''] . ''assets/plugins/managermanager/mm.inc.php'';\ninclude($asset_path);\n', 0, '&config_chunk=Configuration Chunk;text;mm_demo_rules; &which_jquery=jQuery source;list;local (assets/js),remote (google code),manual url (specify below);local (assets/js) &js_src_type=jQuery URL override;text;', 0, ''), (2, 'Search Highlight', 'clipper-1.5.1 Used with AjaxSearch to show search terms highlighted on page linked from search results', 0, 3, 0, '/*\n ------------------------------------------------------------------------\n Plugin: Search_Highlight clipper-v1.5.1\n ------------------------------------------------------------------------\n Changes:\n 18/03/10 - Remove possibility of XSS attempts being passed in the URL\n - look-behind assertion improved\n 29/03/09 - Removed urldecode calls;\n - Added check for magic quotes - if set, remove slashes\n - Highlights terms searched for when target is a HTML entity\n 18/07/08 - advSearch parameter and pcre modifier added\n 10/02/08 - Strip_tags added to avoid sql injection and XSS. Use of $_REQUEST\n 01/03/07 - Added fies/updates from forum from users mikkelwe/identity\n (better highlight replacement, additional div around term/removal message)\n ------------------------------------------------------------------------\n Description: When a user clicks on the link from the AjaxSearch results\n the target page will have the terms highlighted.\n ------------------------------------------------------------------------\n Created By: Susan Ottwell (sottwell@sottwell.com)\n Kyle Jaebker (kjaebker@muddydogpaws.com)\n\n Refactored by Coroico (www.modx.wangba.fr) and TS\n ------------------------------------------------------------------------\n Based off the the code by Susan Ottwell (www.sottwell.com)\n http://modxcms.com/forums/index.php/topic,1237.0.html\n ------------------------------------------------------------------------\n CSS:\n The classes used for the highlighting are the same as the AjaxSearch\n ------------------------------------------------------------------------\n Notes:\n To add a link to remove the highlighting and to show the searchterms\n put the following on your page where you would like this to appear:\n\n \n\n Example output for this:\n\n Search Terms: the, template\n Remove Highlighting\n\n Set the following variables to change the text:\n\n $termText - the text before the search terms\n $removeText - the text for the remove link\n ------------------------------------------------------------------------\n*/\nglobal $database_connection_charset;\n// Conversion code name between html page character encoding and Mysql character encoding\n// Some others conversions should be added if needed. Otherwise Page charset = Database charset\n$pageCharset = array(\n ''utf8'' => ''UTF-8'',\n ''latin1'' => ''ISO-8859-1'',\n ''latin2'' => ''ISO-8859-2''\n);\n\nif (isset($_REQUEST[''searched'']) && isset($_REQUEST[''highlight''])) {\n\n // Set these to customize the text for the highlighting key\n // --------------------------------------------------------\n $termText = ''{$_lang[''forgot_password_email_instructions'']}
\n{$_lang[''forgot_password_email_fine_print'']}
\nEOD;\n $mail->AddAddress($to);\n\n if(!$mail->Send()) { $this->errors[] = $_lang[''error_sending_email'']; }\n \n return $mail; \n }\n }\n\n function unblockUser($user_id) {\n global $modx, $_lang;\n\n $pre = $modx->db->config[''table_prefix''];\n $modx->db->update(array(''blocked'' => 0, ''blockeduntil'' => 0, ''failedlogincount'' => 0), "`{$pre}user_attributes`", "internalKey = ''{$user_id}''");\n\n if(!$modx->db->getAffectedRows()) { $this->errors[] = $_lang[''user_doesnt_exist'']; return; }\n\n return true;\n }\n\n function checkLang() {\n global $_lang;\n\n $eng = array();\n $eng[''forgot_your_password''] = ''Forgot your password?'';\n $eng[''account_email''] = ''Account email'';\n $eng[''send''] = ''Send'';\n $eng[''password_change_request''] = ''Password change request'';\n $eng[''forgot_password_email_intro''] = ''A request has been made to change the password on your account.'';\n $eng[''forgot_password_email_link''] = ''Click here to complete the process.'';\n $eng[''forgot_password_email_instructions''] = ''From there you will be able to change your password from the My Account menu.'';\n $eng[''forgot_password_email_fine_print''] = ''* The URL above will expire once you change your password or after today.'';\n $eng[''error_sending_email''] = ''Error sending email'';\n $eng[''could_not_find_user''] = ''Could not find user'';\n $eng[''user_doesnt_exist''] = ''User does not exist'';\n $eng[''email_sent''] = ''Email sent'';\n\n foreach($eng as $key=>$value) {\n if(empty($_lang[$key])) { $_lang[$key] = $value; }\n } \n }\n\n function getErrorOutput() {\n $output = '''';\n\n if($this->errors) {\n $output = ''''.implode('''', $this->errors).'''';\n }\n \n return $output;\n }\n }\n}\n\nglobal $_lang;\n\n$output = '''';\n$event_name = $modx->Event->name;\n$action = ((isset($_GET[''action'']) && !is_array($_GET[''action'']) && $_GET[''action'']!='''') ? $_GET[''action''] : '''');\n$username = ((isset($_GET[''username'']) && !is_array($_GET[''username'']) && $_GET[''username'']!='''') ? $_GET[''username''] : '''');\n$to = ((isset($_GET[''email'']) && !is_array($_GET[''email'']) && $_GET[''email'']!='''') ? $_GET[''email''] : '''');\n$hash = ((isset($_GET[''hash'']) && !is_array($_GET[''hash'']) && $_GET[''hash'']!='''') ? $_GET[''hash''] : '''');\n$forgot = new ForgotManagerPassword();\n\nif($event_name == ''OnManagerLoginFormRender'') {\n switch($action) {\n case ''show_form'':\n $output = $forgot->getForm();\n break;\n case ''send_email'':\n if($forgot->sendEmail($to)) { $output = $_lang[''email_sent'']; }\n break;\n default:\n $output = $forgot->getLink();\n break;\n }\n\n if($forgot->errors) { $output = $forgot->getErrorOutput() . $forgot->getLink(); }\n}\n\nif($event_name == ''OnBeforeManagerLogin'' && $hash && $username) {\n $user = $forgot->getUser(false, $username, '''', $hash);\n if($user && is_array($user) && !$forgot->errors) {\n $forgot->unblockUser($user[''id'']);\n }\n}\n\nif($event_name == ''OnManagerAuthentication'' && $hash && $username) {\n $user = $forgot->getUser(false, $username, '''', $hash);\n $output = ($user !== null && count($forgot->errors) == 0) ? true : false;\n}\n\n$modx->Event->output($output);\n\n', 0, '', 0, ''), (4, 'TransAlias', 'clipper-1.1.1 Human readible URL translation supporting multiple languages and overrides.', 0, 2, 0, 'require MODX_BASE_PATH.''assets/plugins/transalias/plugin.transalias.php'';\n', 0, '&table_name=Trans table;list;common,russian,dutch,german,czech,utf8,utf8lowercase;utf8lowercase &char_restrict=Restrict alias to;list;lowercase alphanumeric,alphanumeric,legal characters;legal characters &remove_periods=Remove Periods;list;Yes,No;No &word_separator=Word Separator;list;dash,underscore,none;dash &override_tv=Override TV name;string;', 0, ''), (5, 'Quick Manager+', 'clipper-1.6 Enables QuickManager+ front end content editing support', 0, 2, 0, '// In manager\nif (isset($_SESSION[''mgrValidated''])) {\n\n $show = TRUE;\n\n if ($disabled != '''') {\n $arr = explode(",", $disabled );\n if (in_array($modx->documentIdentifier, $arr)) {\n $show = FALSE;\n }\n }\n\n if ($show) {\n // Replace [*#tv*] with QM+ edit TV button placeholders\n if ($tvbuttons == ''true'') {\n $e = $modx->Event;\n if ($e->name == ''OnParseDocument'') {\n $output = &$modx->documentOutput;\n $output = preg_replace(''~\\[\\*#(.*?)\\*\\]~'', ''[*$1*]'', $output);\n $modx->documentOutput = $output;\n }\n }\n // In manager\n if (isset($_SESSION[''mgrValidated''])) {\n require_once($modx->config[''base_path''].''assets/plugins/qm/qm.inc.php'');\n $qm = new Qm($modx, $noconflict === ''true'', $loadtb, $tbwidth, $tbheight, $hidefields, $hidetabs, $hidesections, $addbutton, $custombutton, $managerbutton, $logout, $autohide, $editbuttons, $editbclass, $newbuttons, $newbclass, $tvbuttons, $tvbclass);\n }\n }\n}\n', 0, '&noconflict=Use own instance of jquery;list;true,false;true &loadtb=Load modal box in front-end;list;true,false;true &tbwidth=Modal box window width;text;80% &tbheight=Modal box window height;text;90% &hidefields=Hide document fields from front-end editors;text;parent &hidetabs=Hide document tabs from front-end editors;text; &hidesections=Hide document sections from front-end editors;text; &addbutton=Show add document here button;list;true,false;true &custombutton=Custom buttons;textarea; &managerbutton=Show go to manager button;list;true,false;true &logout=Logout to;list;manager,front-end;manager &disabled=Plugin disabled on documents;text; &autohide=Autohide toolbar;list;true,false;true &editbuttons=Inline edit buttons;list;true,false;false &editbclass=Edit button CSS class;text;qm-edit &newbuttons=Inline new resource buttons;list;true,false;false &newbclass=New resource button CSS class;text;qm-new &tvbuttons=Inline template variable buttons;list;true,false;false &tvbclass=Template variable button CSS class;text;qm-tv', 0, ''), (6, 'TinyMCE Rich Text Editor', 'clipper-3.5.3 Javascript WYSIWYG Editor', 0, 2, 0, '// Set the name of the plugin folder\n$plugin_dir = "tinymce";\n\n// Set path and base setting variables\nif(!isset($mce_path))\n{ \n $mce_path = MODX_BASE_PATH . ''assets/plugins/''.$plugin_dir . ''/''; \n $mce_url = MODX_BASE_URL . ''assets/plugins/''.$plugin_dir . ''/''; \n}\n\n$params[''customparams''] = $customparams;\n$params[''blockFormats''] = $mce_formats;\n$params[''entity_encoding''] = $entity_encoding;\n$params[''entities''] = $entities;\n$params[''pathoptions''] = $mce_path_options;\n$params[''resizing''] = $mce_resizing;\n$params[''disabledButtons''] = $disabledButtons;\n$params[''link_list''] = $link_list;\n$params[''theme''] = $webtheme;\n$params[''custom_plugins''] = $webPlugins;\n$params[''custom_buttons1''] = $webButtons1;\n$params[''custom_buttons2''] = $webButtons2;\n$params[''custom_buttons3''] = $webButtons3;\n$params[''custom_buttons4''] = $webButtons4;\n$params[''toolbar_align''] = $webAlign;\n$params[''width''] = $width;\n$params[''height''] = $height;\n\n$params[''mce_path''] = $mce_path;\n$params[''mce_url''] = $mce_url;\n\ninclude_once $mce_path . ''lang/tinymce.lang.php'';\ninclude_once $mce_path . ''tinymce.functions.php'';\n\n$mce = new TinyMCE($params);\n\n// Handle event\n$e = &$modx->Event; \nswitch ($e->name)\n{\n case "OnRichTextEditorRegister": // register only for backend\n $e->output("TinyMCE");\n break;\n\n case "OnRichTextEditorInit": \n if($editor!=="TinyMCE") return;\n \n $params[''elements''] = $elements;\n $params[''css_selectors''] = $modx->config[''tinymce_css_selectors''];\n $params[''use_browser''] = $modx->config[''use_browser''];\n $params[''editor_css_path''] = $modx->config[''editor_css_path''];\n \n if($modx->isBackend() || (intval($_GET[''quickmanagertv'']) == 1 && isset($_SESSION[''mgrValidated''])))\n {\n $params[''theme''] = $modx->config[''tinymce_editor_theme''];\n $params[''language''] = getTinyMCELang($modx->config[''manager_language'']);\n $params[''frontend''] = false;\n $params[''custom_plugins''] = $modx->config[''tinymce_custom_plugins''];\n $params[''custom_buttons1''] = $modx->config[''tinymce_custom_buttons1''];\n $params[''custom_buttons2''] = $modx->config[''tinymce_custom_buttons2''];\n $params[''custom_buttons3''] = $modx->config[''tinymce_custom_buttons3''];\n $params[''custom_buttons4''] = $modx->config[''tinymce_custom_buttons4''];\n $params[''toolbar_align''] = $modx->config[''manager_direction''];\n $params[''webuser''] = null;\n \n $html = $mce->get_mce_script($params);\n }\n else\n {\n $frontend_language = isset($modx->config[''fe_editor_lang'']) ? $modx->config[''fe_editor_lang'']:'''';\n $webuser = (isset($modx->config[''rb_webuser'']) ? $modx->config[''rb_webuser''] : null);\n \n $params[''webuser''] = $webuser;\n $params[''language''] = getTinyMCELang($frontend_language);\n $params[''frontend''] = true;\n \n $html = $mce->get_mce_script($params);\n }\n $e->output($html);\n break;\n\n case "OnInterfaceSettingsRender":\n global $usersettings,$settings;\n $action = $modx->manager->action;\n switch ($action)\n {\n case 11:\n $mce_settings = '''';\n break;\n case 12:\n $mce_settings = $usersettings;\n break;\n case 17:\n $mce_settings = $settings;\n break;\n default:\n $mce_settings = $settings;\n break;\n }\n \n $params[''use_editor''] = $modx->config[''base_url''].$modx->config[''use_editor''];\n $params[''editor_css_path''] = $modx->config[''editor_css_path''];\n $params[''theme''] = $mce_settings[''tinymce_editor_theme''];\n $params[''css_selectors''] = $mce_settings[''tinymce_css_selectors''];\n $params[''custom_plugins''] = $mce_settings[''tinymce_custom_plugins''];\n $params[''custom_buttons1''] = $mce_settings[''tinymce_custom_buttons1''];\n $params[''custom_buttons2''] = $mce_settings[''tinymce_custom_buttons2''];\n $params[''custom_buttons3''] = $mce_settings[''tinymce_custom_buttons3''];\n $params[''custom_buttons4''] = $mce_settings[''tinymce_custom_buttons4''];\n \n $html = $mce->get_mce_settings($params);\n $e->output($html);\n break;\n \n default :\n return; // stop here - this is very important. \n break; \n}\n', 0, '&customparams=Custom Parameters;textarea; &mce_formats=Block Formats;text;p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre &entity_encoding=Entity Encoding;list;named,numeric,raw;named &entities=Entities;text; &mce_path_options=Path Options;list;rootrelative,docrelative,fullpathurl;docrelative &mce_resizing=Advanced Resizing;list;true,false;true &disabledButtons=Disabled Buttons;text; &link_list=Link List;list;enabled,disabled;enabled &webtheme=Web Theme;list;simple,editor,creative,custom;simple &webPlugins=Web Plugins;text;style,advimage,advlink,searchreplace,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media &webButtons1=Web Buttons 1;text;undo,redo,selectall,|,pastetext,pasteword,|,search,replace,|,nonbreaking,hr,charmap,|,image,link,unlink,anchor,media,|,cleanup,removeformat,|,fullscreen,code,help &webButtons2=Web Buttons 2;text;bold,italic,underline,strikethrough,sub,sup,|,|,blockquote,bullist,numlist,outdent,indent,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,|,styleprops &webButtons3=Web Buttons 3;text; &webButtons4=Web Buttons 4;text; &webAlign=Web Toolbar Alignment;list;ltr,rtl;ltr &width=Width;text;100% &height=Height;text;400', 0, ''); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_plugin_events` -- CREATE TABLE `[[dbprefix]]site_plugin_events` ( `pluginid` int(10) NOT NULL, `evtid` int(10) NOT NULL DEFAULT '0', `priority` int(10) NOT NULL DEFAULT '0' COMMENT 'determines plugin run order' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Links to system events'; -- -- Dumping data for table `[[dbprefix]]site_plugin_events` -- INSERT INTO `[[dbprefix]]site_plugin_events` VALUES (1, 28, 0), (1, 29, 0), (1, 30, 0), (1, 35, 0), (2, 3, 0), (3, 80, 0), (3, 81, 0), (3, 93, 0), (4, 100, 0), (5, 3, 0), (5, 11, 0), (5, 13, 0), (5, 28, 0), (5, 31, 0), (5, 90, 0), (5, 92, 0), (6, 85, 0), (6, 87, 0), (6, 88, 0); -- -------------------------------------------------------- -- -- Table structure for table `[[dbprefix]]site_snippets` -- CREATE TABLE `[[dbprefix]]site_snippets` ( `id` int(10) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` varchar(255) NOT NULL DEFAULT 'Snippet', `editor_type` int(11) NOT NULL DEFAULT '0' COMMENT '0-plain text,1-rich text,2-code editor', `category` int(11) NOT NULL DEFAULT '0' COMMENT 'category id', `cache_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Cache option', `snippet` mediumtext, `locked` tinyint(4) NOT NULL DEFAULT '0', `properties` text, `moduleguid` varchar(32) NOT NULL DEFAULT '' COMMENT 'GUID of module from which to import shared parameters', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Contains the site snippets.' AUTO_INCREMENT=13 ; -- -- Dumping data for table `[[dbprefix]]site_snippets` -- INSERT INTO `[[dbprefix]]site_snippets` VALUES (1, 'Jot', 'clipper-1.1.5 User comments with moderation and email subscription', 0, 4, 0, '/*####\n#\n# Author: Armand "bS" Pondman (apondman@zerobarrier.nl)\n#\n# Latest Version: http://modxcms.com/Jot-998.html\n# Jot Demo Site: http://projects.zerobarrier.nl/modx/\n# Documentation: http://wiki.modxcms.com/index.php/Jot (wiki)\n#\n####*/\n\n$jotPath = $modx->config[''base_path''] . ''assets/snippets/jot/'';\ninclude_once($jotPath.''jot.class.inc.php'');\n\n$Jot = new CJot;\n$Jot->VersionCheck("1.1.4");\n$Jot->Set("path",$jotPath);\n$Jot->Set("action", $action);\n$Jot->Set("postdelay", $postdelay);\n$Jot->Set("docid", $docid);\n$Jot->Set("tagid", $tagid);\n$Jot->Set("subscribe", $subscribe);\n$Jot->Set("moderated", $moderated);\n$Jot->Set("captcha", $captcha);\n$Jot->Set("badwords", $badwords);\n$Jot->Set("bw", $bw);\n$Jot->Set("sortby", $sortby);\n$Jot->Set("numdir", $numdir);\n$Jot->Set("customfields", $customfields);\n$Jot->Set("guestname", $guestname);\n$Jot->Set("canpost", $canpost);\n$Jot->Set("canview", $canview);\n$Jot->Set("canedit", $canedit);\n$Jot->Set("canmoderate", $canmoderate);\n$Jot->Set("trusted", $trusted);\n$Jot->Set("pagination", $pagination);\n$Jot->Set("placeholders", $placeholders);\n$Jot->Set("subjectSubscribe", $subjectSubscribe);\n$Jot->Set("subjectModerate", $subjectModerate);\n$Jot->Set("subjectAuthor", $subjectAuthor);\n$Jot->Set("notify", $notify);\n$Jot->Set("notifyAuthor", $notifyAuthor);\n$Jot->Set("validate", $validate);\n$Jot->Set("title", $title);\n$Jot->Set("authorid", $authorid);\n$Jot->Set("css", $css);\n$Jot->Set("cssFile", $cssFile);\n$Jot->Set("cssRowAlt", $cssRowAlt);\n$Jot->Set("cssRowMe", $cssRowMe);\n$Jot->Set("cssRowAuthor", $cssRowAuthor);\n$Jot->Set("tplForm", $tplForm);\n$Jot->Set("tplComments", $tplComments);\n$Jot->Set("tplModerate", $tplModerate);\n$Jot->Set("tplNav", $tplNav);\n$Jot->Set("tplNotify", $tplNotify);\n$Jot->Set("tplNotifyModerator", $tplNotifyModerator);\n$Jot->Set("tplNotifyAuthor", $tplNotifyAuthor);\n$Jot->Set("tplSubscribe", $tplSubscribe);\n$Jot->Set("debug", $debug);\n$Jot->Set("output", $output);\nreturn $Jot->Run();\n', 0, '', ''), (2, 'eForm', '1.4.8-clipper Robust form parser/processor with validation, multiple sending options, chunk/page support for forms and reports, and file uploads', 0, 5, 0, '# Original created by Raymond Irving 15-Dec-2004.\n# Further work by the MODx community and ClipperCMS community\n\n# Set Snippet Paths\n$snipFolder = isset($snipFolder)?$snipFolder:''eform'';\n$snipPath = $modx->config["base_path"].''assets/snippets/''.$snipFolder.''/'';\n\n\n# check if inside manager\nif ($modx->isBackend()) {\nreturn ''''; # don''t go any further when inside manager\n}\n\n//tidying up some casing errors in parameters\nif(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;\nif(isset($eformOnBeforeMailSent)) $eFormOnBeforeMailSent = $eformOnBeforeMailSent;\nif(isset($eformOnMailSent)) $eFormOnMailSent = $eformOnMailSent;\nif(isset($eformOnValidate)) $eFormOnValidate = $eformOnValidate;\nif(isset($eformOnBeforeFormMerge)) $eFormOnBeforeFormMerge = $eformOnBeforeFormMerge;\nif(isset($eformOnBeforeFormParse)) $eFormOnBeforeFormParse = $eformOnBeforeFormParse;\n//for sottwell :)\nif(isset($eFormCSS)) $cssStyle = $eFormCSS;\n\n# Snippet customize settings\n$params = array (\n // Snippet Path\n ''snipPath'' => $snipPath, //includes $snipFolder\n ''snipFolder'' => $snipFolder,\n\n// eForm Params\n ''vericode'' => isset($vericode)? $vericode:"",\n ''formid'' => isset($formid)? $formid:"",\n ''from'' => isset($from)? $from:$modx->config[''emailsender''],\n ''fromname'' => isset($fromname)? $fromname:$modx->config[''site_name''],\n ''to'' => isset($to)? $to:$modx->config[''emailsender''],\n ''cc'' => isset($cc)? $cc:"",\n ''bcc'' => isset($bcc)? $bcc:"",\n ''subject'' => isset($subject)? $subject:"",\n ''ccsender'' => isset($ccsender)?$ccsender:0,\n ''sendirect'' => isset($sendirect)? $sendirect:0,\n ''mselector'' => isset($mailselector)? $mailselector:0,\n ''mobile'' => isset($mobile)? $mobile:'''',\n ''mobiletext'' => isset($mobiletext)? $mobiletext:'''',\n ''autosender'' => isset($autosender)? $autosender:$from,\n ''autotext'' => isset($automessage)? $automessage:"",\n ''category'' => isset($category)? $category:0,\n ''keywords'' => isset($keywords)? $keywords:"",\n ''gid'' => isset($gotoid)? $gotoid:$modx->documentIdentifier,\n ''noemail'' => isset($noemail)? ($noemail):false,\n ''saveform'' => isset($saveform)? ($saveform? true:false):true,\n ''tpl'' => isset($tpl)? $tpl:"",\n ''report'' => isset($report)? $report:"",\n ''allowhtml'' => isset($allowhtml)? $allowhtml:0,\n //Added by JJ\n ''replyto'' => isset($replyto)? $replyto:"",\n ''language'' => isset($language)? $language:$modx->config[''manager_language''],\n ''thankyou'' => isset($thankyou)? $thankyou:"",\n ''isDebug'' => isset($debug)? $debug:0,\n ''reportAbuse'' => isset($reportAbuse)? $reportAbuse:false,\n ''disclaimer'' => isset($disclaimer)?$disclaimer:'''',\n ''sendAsHtml'' => isset($sendAsHtml)?$sendAsHtml:false,\n ''sendAsText'' => isset($sendAsText)?$sendAsText:false,\n ''sessionVars'' => isset($sessionVars)?$sessionVars:false,\n ''postOverides'' => isset($postOverides)?$postOverides:0,\n ''eFormOnBeforeMailSent'' => isset($eFormOnBeforeMailSent)?$eFormOnBeforeMailSent:'''',\n ''eFormOnMailSent'' => isset($eFormOnMailSent)?$eFormOnMailSent:'''',\n ''eFormOnValidate'' => isset($eFormOnValidate)?$eFormOnValidate:'''',\n ''eFormOnBeforeFormMerge'' => isset($eFormOnBeforeFormMerge)?$eFormOnBeforeFormMerge:'''',\n ''eFormOnBeforeFormParse'' => isset($eFormOnBeforeFormParse)?$eFormOnBeforeFormParse:'''',\n ''cssStyle'' => isset($cssStyle)?$cssStyle:'''',\n ''jScript'' => isset($jScript)?$jScript:'''',\n ''submitLimit'' => (isset($submitLimit) && is_numeric($submitLimit))?$submitLimit*60:0,\n ''protectSubmit'' => isset($protectSubmit)?$protectSubmit:1,\n ''requiredClass'' => isset($requiredClass)?$requiredClass:"required",\n ''invalidClass'' => isset($invalidClass)?$invalidClass:"invalid",\n ''runSnippet'' => ( isset($runSnippet) && !is_numeric($runSnippet) )?$runSnippet:'''',\n ''autoSenderName'' => isset($autoSenderName)?$autoSenderName:'''',\n ''version'' => ''1.4.6''\n);\n\n// pixelchutes PHx workaround\nforeach( $params as $key=>$val ) $params[ $key ] = str_replace( array(''(('',''))''), array(''[+'',''+]''), $val );\n\n# Start processing\n\ninclude_once ($snipPath."eform.inc.php");\n\n$output = eForm($modx,$params);\n\n# Return\nreturn $output;\n', 0, '', ''), (3, 'WebUsers', '1.3.6 @package WebUsers', 0, 6, 0, '$type = isset($type) ? $type : ''simple'';\n $regType = isset($regType) ? $regType : ''instant'';\n $notify = isset($notify) ? $notify : '''';\n $groups = isset($groups) ? $groups : '''';\n $regRequired = isset($regRequired) ? $regRequired : '''';\n $customTable = isset($customTable) ? $customTable : ''web_user_attributes_extended'';\n $customFields = isset($customFields) ? $customFields : '''';\n $prefixTable = isset($prefixTable) ? $prefixTable : 1;\n $lang = isset($lang) ? $lang : ''en'';\n $userImageSettings = isset($userImage) ? $userImage : ''105000,100,100'';\n $dateFormat = isset($dateFormat) ? $dateFormat : ''%A %B %d, %Y at %I:%M %p'';\n $disableServices = isset($disableServices) ? explode('','', str_replace('', '','','',$disableServices)) : array();\n $tableCheck = isset($tableCheck) ? $tableCheck : 1;\n \n define(''WEBUSER_PATH'', MODX_BASE_PATH.''assets/snippets/webusers/'');\n \n require_once(WEBUSER_PATH.''webusers.class.php'');\n require_once(WEBUSER_PATH.''webusers.templates.php'');\n\n if (file_exists(WEBUSER_PATH.''lang/''.$lang.''.php''))\n {\n require_once(WEBUSER_PATH.''lang/''.$lang.''.php'');\n }\n else\n {\n require_once(WEBUSER_PATH.''lang/en.php'');\n $modx->setPlaceholder(''wlpe.message'', $wlpe_lang[105]);\n print ''[+wlpe.message+]'';\n }\n \n $wlpe = new WebLoginPE($wlpe_lang, $dateFormat, $userImageSettings, $type);\n $wlpe->CustomTable($customTable, $customFields, $prefixTable, $tableCheck);\n\n $liHomeId = isset($liHomeId) ? explode('','', $liHomeId) : '''';\n $loHomeId = isset($loHomeId) ? $loHomeId : '''';\n $regHomeId = isset($regHomeId) ? $regHomeId : '''';\n $regSuccessId = isset($regSuccessId) ? $regSuccessId : '''';\n $regSuccessPause = isset($regSuccessPause) ? $regSuccessPause : 5;\n $profileHomeId = isset($profileHomeId) ? $profileHomeId : '''';\n $inputHandler = isset($inputHandler) ? explode(''||'', $inputHandler) : array();\n $usersList = isset($usersList) ? $usersList : '''';\n \n if ($regType == ''verify''){$wlpeRegisterTpl = $wlpeRegisterVerifyTpl;}else{$wlpeRegisterTpl = $wlpeRegisterInstantTpl;}\n \n $displayLoginFormTpl = isset($loginFormTpl) ? $wlpe->Template($loginFormTpl) : $wlpeDefaultFormTpl;\n $displaySuccessTpl = isset($successTpl) ? $wlpe->Template($successTpl) : $wlpeDefaultSuccessTpl;\n $displayRegisterTpl = isset($registerTpl) ? $wlpe->Template($registerTpl) : $wlpeRegisterTpl;\n $displayRegSuccessTpl = isset($registerSuccessTpl) ? $wlpe->Template($registerSuccessTpl) : $wlpeDefaultFormTpl;\n $displayProfileTpl = isset($profileTpl) ? $wlpe->Template($profileTpl) : $wlpeProfileTpl;\n $displayViewProfileTpl = isset($viewProfileTpl) ? $wlpe->Template($viewProfileTpl) : $wlpeViewProfileTpl;\n $displayUsersOuterTpl = isset($usersOuterTpl) ? $wlpe->Template($usersOuterTpl) : $wlpeUsersOuterTpl;\n $displayUsersTpl = isset($usersTpl) ? $wlpe->Template($usersTpl) : $wlpeUsersTpl;\n $displayManageOuterTpl = isset($manageOuterTpl) ? $wlpe->Template($manageOuterTpl) : $wlpeUsersOuterTpl;\n $displayManageTpl = isset($manageTpl) ? $wlpe->Template($manageTpl) : $wlpeManageTpl;\n $displayManageProfileTpl = isset($manageProfileTpl) ? $wlpe->Template($manageProfileTpl) : $wlpeManageProfileTpl;\n $displayManageDeleteTpl = isset($manageDeleteTpl) ? $wlpe->Template($manageDeleteTpl) : $wlpeManageDeleteTpl;\n $displayProfileDeleteTpl = isset($profileDeleteTpl) ? $wlpe->Template($profileDeleteTpl) : $wlpeProfileDeleteTpl;\n $displayActivateTpl = isset($activateTpl) ? $wlpe->Template($activateTpl) : $wlpeActivateTpl;\n $displayResetTpl = isset($resetTpl) ? $wlpe->Template($resetTpl) : $wlpeResetTpl;\n $notifyTpl = isset($notifyTpl) ? $wlpe->Template($notifyTpl) : $wlpeNotifyTpl;\n $notifySubject = isset($notifySubject) ? $notifySubject : ''New Web User for ''.$modx->config[''site_name''].''.'';\n $messageTpl = isset($messageTpl) ? $wlpe->Template($messageTpl) : $wlpeMessageTpl;\n $tosChunk = isset($tosChunk) ? $wlpe->Template($tosChunk) : $wlpeTos;\n $modx->setPlaceholder(''tos'', $tosChunk);\n \n $loadJquery = isset($loadJquery) ? $loadJquery : false;\n $customJs = isset($customJs) ? $customJs : '''';\n \n if (isset($pruneDays))\n {\n $wlpe->PruneUsers($pruneDays);\n }\n \n if ($loadJquery == ''true'' || $loadJquery == true || $loadJquery == 1 || $loadJquery == ''1'') \n {\n $wlpe->RegisterScripts($customJs);\n }\n else if (!empty($customJs))\n {\n $modx->regClientStartupScript($customJs);\n }\n \n $wlpe->ActiveUsers();\n $wlpe->PlaceHolders($inputHandler, $messageTpl);\n\n $service = $_REQUEST[''service''];\n if (empty($service) || $service == '''')\n {\n $service = $_REQUEST[''serviceButtonValue''];\n }\n \n if ($type == ''register'')\n {\n if (in_array(''register'', $disableServices)){return;}\n switch ($service) \n {\n case ''register'' :\n if (in_array(''register'', $disableServices)){return;}\n $registration = $wlpe->Register($regType, $groups, $regRequired, $notify, $notifyTpl, $notifySubject);\n \n if (isset($regSuccessId) && $regSuccessId !== '''')\n {\n if ($registration == ''success'')\n {\n $url = rtrim($modx->config[''site_url''], ''/'').$modx->makeURL($regSuccessId);\n header(''Refresh: ''.$regSuccessPause.'';URL=''.$url);\n return $displayRegSuccessTpl;\n }\n return $displayRegisterTpl;\n \n }\n if ($registration == ''success'')\n {\n return $displayRegSuccessTpl;\n }\n return $displayRegisterTpl;\n break;\n \n case ''cancel'':\n if ($loHomeId == '''') $loHomeId = $modx->config[''site_start''];\n $url = $modx->makeURL($loHomeId);\n $modx->sendRedirect($url,0,''REDIRECT_REFRESH'');\n break;\n \n case ''login'' :\n if ($_SERVER[''REQUEST_METHOD''] == ''POST'')\n {\n $wlpe->Login($type, $liHomeId);\n }\n\n if ($modx->getLoginUserID())\n {\n return $displaySuccessTpl;\n }\n else\n {\n return $displayLoginFormTpl;\n }\n break;\n\n case ''logout'' :\n $wlpe->Logout($type, $loHomeId);\n return $displayLoginFormTpl;\n break;\n \n default :\n return $displayRegisterTpl;\n }\n return;\n }\n \n else if ($type == ''profile'')\n {\n if (in_array(''profile'', $disableServices)){return;}\n switch ($service) \n {\n case ''saveprofile'' :\n if (in_array(''saveprofile'', $disableServices)){return;}\n $wlpe->SaveUserProfile();\n $wlpe->PlaceHolders($inputHandler, $messageTpl);\n return $displayProfileTpl;\n break;\n \n case ''cancel'':\n if ($loHomeId == '''') $loHomeId = $modx->config[''site_start''];\n $url = $modx->makeURL($loHomeId);\n $modx->sendRedirect($url,0,''REDIRECT_REFRESH'');\n break;\n \n case ''logout'':\n if ($loHomeId == '''') $loHomeId = $modx->config[''site_start''];\n $wlpe->Logout($type, $loHomeId);\n break;\n \n case ''deleteprofile'':\n if (in_array(''deleteprofile'', $disableServices)){return;}\n return $displayProfileDeleteTpl;\n break;\n \n case ''confirmdeleteprofile'':\n if (in_array(''confirmdeleteprofile'', $disableServices)){return;}\n $wlpe->RemoveUserProfile();\n return ''[+wlpe.message+]'';\n break;\n \n default :\n return $displayProfileTpl;\n break;\n }\n return;\n }\n \n else if ($type == ''users'')\n {\n if (in_array(''users'', $disableServices)){return;}\n switch ($service)\n {\n case ''viewprofile'':\n if (in_array(''viewprofile'', $disableServices)){return;}\n $wlpe->ViewUserProfile($_REQUEST[''username''],$inputHandler);\n return $displayViewProfileTpl;\n break;\n \n case ''messageuser'':\n if (in_array(''messageuser'', $disableServices)){return;}\n $wlpe->SendMessageToUser();\n return $displayViewProfileTpl;\n break;\n \n default :\n $userpage = $wlpe->ViewAllUsers($displayUsersTpl, $displayUsersOuterTpl, $usersList);\n return $userpage;\n }\n return;\n }\n \n else if ($type == ''manager'')\n {\n if (in_array(''manager'', $disableServices)){return;}\n switch ($service)\n {\n case ''editprofile'':\n if (in_array(''editprofile'', $disableServices)){return;}\n $wlpe->ViewUserProfile($_REQUEST[''username''],$inputHandler);\n return $displayManageProfileTpl;\n break;\n \n case ''saveuserprofile'' :\n if (in_array(''saveuserprofile'', $disableServices)){return;}\n $wlpe->SaveUserProfile($_POST[''internalKey'']);\n $manageUsersPage = $wlpe->ViewAllUsers($displayManageTpl, $displayManageOuterTpl, $usersList);\n return $manageUsersPage;\n break;\n \n case ''messageuser'':\n if (in_array(''messageuser'', $disableServices)){return;}\n $wlpe->SendMessageToUser();\n return $displayViewProfileTpl;\n break;\n \n case ''deleteuser'':\n if (in_array(''deleteuser'', $disableServices)){return;}\n $_SESSION[''editInternalKey''] = $_POST[''internalKey''];\n return $displayManageDeleteTpl;\n break;\n\n case ''confirmdeleteuser'':\n if (in_array(''confirmdeleteuser'', $disableServices)){return;}\n $wlpe->RemoveUserProfileManager($_SESSION[''editInternalKey'']);\n $manageUsersPage = $wlpe->ViewAllUsers($displayManageTpl, $displayManageOuterTpl, $usersList);\n unset($_SESSION[''editInternalKey'']);\n return $manageUsersPage;\n break;\n \n default :\n $manageUsersPage = $wlpe->ViewAllUsers($displayManageTpl, $displayManageOuterTpl, $usersList);\n return $manageUsersPage;\n }\n return;\n }\n \n else if ($type == ''simple'')\n {\n switch ($service) \n {\n\n case ''login'' :\n if ($_SERVER[''REQUEST_METHOD''] == ''POST'')\n {\n $wlpe->Login($type, $liHomeId);\n }\n\n if ($modx->getLoginUserID())\n {\n return $displaySuccessTpl;\n }\n else\n {\n return $displayLoginFormTpl;\n }\n break;\n\n case ''logout'' :\n $wlpe->Logout($type, $loHomeId);\n return $displayLoginFormTpl;\n break;\n\n case ''profile'' :\n if (in_array(''profile'', $disableServices)){return;}\n if (empty($profileHomeId))\n {\n return $displayProfileTpl;\n }\n $url = $modx->makeURL($profileHomeId);\n $modx->sendRedirect($url,0,''REDIRECT_REFRESH'');\n return;\n break;\n \n case ''saveprofile'':\n case ''saveprofilesimple'' :\n if (in_array(''saveprofile'', $disableServices)){return;}\n $wlpe->SaveUserProfile();\n $wlpe->PlaceHolders($inputHandler, $messageTpl);\n return $displayProfileTpl;\n break;\n \n case ''deleteprofile'':\n case ''deleteprofilesimple'':\n if (in_array(''deleteprofile'', $disableServices)){return;}\n return $displayProfileDeleteTpl;\n break;\n\n case ''confirmdeleteprofilesimple'':\n if (in_array(''confirmdeleteprofile'', $disableServices)){return;}\n $wlpe->RemoveUserProfile();\n return ''[+wlpe.message+]'';\n break;\n\n case ''registernew'' :\n if (in_array(''register'', $disableServices)){return;}\n if (empty($regHomeId))\n {\n return $displayRegisterTpl;\n }\n $url = $modx->makeURL($regHomeId);\n $modx->sendRedirect($url,0,''REDIRECT_REFRESH'');\n return;\n break;\n \n case ''register'':\n if (in_array(''register'', $disableServices)){return;}\n $registration = $wlpe->Register($regType, $groups, $regRequired, $notify, $notifyTpl, $notifySubject);\n \n if (isset($regSuccessId) && $regSuccessId !== '''')\n {\n if ($registration == ''success'')\n {\n $url = rtrim($modx->config[''site_url''], ''/'').$modx->makeURL($regSuccessId);\n header(''Refresh: ''.$regSuccessPause.'';URL=''.$url);\n return $displayRegSuccessTpl;\n }\n return $displayRegisterTpl;\n \n }\n if ($registration == ''success'')\n {\n return $displayRegSuccessTpl;\n }\n return $displayRegisterTpl;\n break;\n\n case ''forgot'' :\n if (in_array(''forgot'', $disableServices)){return;}\n return $displayResetTpl;\n break;\n \n case ''resetpassword'' :\n if (in_array(''resetpassword'', $disableServices)){return;}\n $wlpe->ResetPassword();\n if (isset($wlpe->Report)) \n {\n if (isset($_POST[''email'']))\n {\n return $displayResetTpl;\n }\n else\n {\n return $displayActivateTpl;\n }\n }\n return;\n break;\n \n case ''activate'' :\n if (in_array(''activate'', $disableServices)){return;}\n return $displayActivateTpl;\n break;\n \n case ''activated'':\n if (in_array(''activated'', $disableServices)){return;}\n $wlpe->ActivateUser();\n // pixelchutes 1:57 AM 9/19/2007\n // Here we check for an error, then reload the activation template if necessary\n // Do NOT reload if wlpe->Report indicates success\n // Added strip_tags() around string which means an error is not thrown regarding a modifier from closing\n // html tag e.g. if $wlpe_lang[104] contains "Error: No Group Specified
'' : '''';\n}\n\nif (!isset ($chunk)) {\n return $debug ? ''Error: No Chunk Specified
'' : '''';\n}\n\n# turn comma-delimited list of groups into an array\n$groups = explode('','', $groups);\n\nif (!class_exists(''MemberCheck'')) {\n class MemberCheck {\n var $allGroups = NULL;\n var $debug;\n\n static function getInstance($debug) {\n static $instance;\n if (!isset ($instance)) {\n $instance = new MemberCheck($debug);\n }\n return $instance;\n }\n\n function __construct($debug = false) {\n global $modx;\n\n $this->debug = $debug;\n if ($debug) {\n $this->allGroups = array ();\n $tableName = $modx->getFullTableName(''webgroup_names'');\n $sql = "SELECT name FROM $tableName";\n if ($rs = $modx->db->query($sql)) {\n while ($row = $modx->db->getRow($rs)) {\n array_push($this->allGroups, stripslashes($row[''name'']));\n }\n }\n }\n }\n\n function isValidGroup($groupName) {\n $isValid = !(array_search($groupName, $this->allGroups) === false);\n return $isValid;\n }\n\n function getMemberChunk(& $groups, $chunk) {\n global $modx;\n $o = '''';\n if (is_array($groups)) {\n for ($i = 0; $i < count($groups); $i++) {\n $groups[$i] = trim($groups[$i]);\n if ($this->debug) {\n if (!$this->isValidGroup($groups[$i])) {\n return "The group " . $groups[$i] . " could not be found...
";\n }\n }\n }\n\n $check = $modx->isMemberOfWebGroup($groups);\n\n $chunkcheck = $modx->getChunk($chunk);\n\n $o .= ($check && $chunkcheck) ? $chunkcheck : '''';\n if (!$chunkcheck)\n $o .= $this->debug ? "The chunk $chunk not found...
" : '''';\n } else {\n $o .= "No valid group names were specified!
";\n }\n\n return $o;\n }\n }\n}\n\n$memberCheck = MemberCheck :: getInstance($debug);\n\nif (!isset ($ph)) {\n return $memberCheck->getMemberChunk($groups, $chunk);\n} else {\n $modx->setPlaceholder($ph, $memberCheck->getMemberChunk($groups, $chunk));\n return '''';\n}\n', 0, '', ''), (6, 'UltimateParent', '2.0 Travels up the document tree from a specified document and returns its "ultimate" non-root parent', 0, 7, 0, '/*\n * @name UltimateParent\n * @version 2.0 beta (requires MODx 0.9.5+)\n * @author Jason Coward