1.7.1 Ajax enabled search form with results highlighting.",0,"$setupPath/snippet.ajaxSearch.tpl",""); $ms[] = array("Breadcrumbs","1.0.1 Configurable breadcrumb page trail navigation.",0,"$setupPath/snippet.breadcrumbs.tpl",""); $ms[] = array("Ditto","2.1+ Summarizes and lists pages to create blogs, catalogs, PR archives, bio listings and more. Includes patches post-2.1 release to fix sorting bug and default display behavior. ",0,"$setupPath/snippet.ditto.tpl",""); $ms[] = array("eForm","1.4.4 Robust form parser/processor with validation, multiple sending options, chunk/page support for forms and reports, and file uploads.",0,"$setupPath/snippet.eform.tpl",""); $ms[] = array("FirstChildRedirect","1.0 Automatically redirects to the first child of a folder document.",0,"$setupPath/snippet.firstchild.tpl",""); $ms[] = array("Jot","1.1.3 User comments with moderation and email subscription.",0,"$setupPath/snippet.jot.tpl",""); $ms[] = array("ListIndexer","1.0.1 Shows the most recent documents, highly flexible.",0,"$setupPath/snippet.listindexer.tpl",""); $ms[] = array("MemberCheck","1.0 Selectively show chunks based on logged in Web User' group memberships.",0,"$setupPath/snippet.membercheck.tpl",""); $ms[] = array("NewsPublisher","1.4 Publish news articles directly from the web.",0,"$setupPath/snippet.newspublisher.tpl",""); $ms[] = array("Personalize","2.0 Basic personalization for web users.",0,"$setupPath/snippet.personalize.tpl",""); $ms[] = array("Reflect","2.1 Used with Ditto, creates archives of articles, blog entries, image galleries and more.",0,"$setupPath/snippet.reflect.tpl",""); $ms[] = array("UltimateParent","2.0 beta - Travels up the document tree from a specified document and returns the \"ultimate\" parent.",0,"$setupPath/snippet.ultparent.tpl",""); $ms[] = array("Wayfinder","2.0 Completely template-driven menu builder that's simple and fast to configure.",0,"$setupPath/snippet.wayfinder.tpl",""); $ms[] = array("WebChangePwd","1.0 Web User Change Password Snippet.",0,"$setupPath/snippet.webchangepwd.tpl","&tpl=Template;string;"); $ms[] = array("WebLogin","1.0 Web User Login Snippet.",0,"$setupPath/snippet.weblogin.tpl","&loginhomeid=Login Home Id;string; &logouthomeid=Logout Home Id;string; &logintext=Login Button Text;string; &logouttext=Logout Button Text;string; &tpl=Template;string;"); $ms[] = array("WebSignup","1.1 Web User Signup Snippet.",0,"$setupPath/snippet.websignup.tpl","&tpl=Template;string;"); # setup plugins template files - array : name, description, type - 0:file or 1:content, file or content,properties $mp = &$modulePlugins; $mp[] = array("Bottom Button Bar","Adds a set of buttons to the bottom of all manager pages",0,"$setupPath/plugin.bottombuttonbar.tpl","","OnChunkFormRender,OnDocFormRender,OnModFormRender,OnPluginFormRender,OnSnipFormRender,OnTVFormRender,OnTempFormRender,OnUserFormRender,OnWUsrFormRender"); $mp[] = array("Forgot Manager Login","Resets your manager login when you forget your password. ",0,"$setupPath/plugin.ForgotManagerPassword.tpl","","OnBeforeManagerLogin,OnManagerAuthentication,OnManagerLoginFormRender"); $mp[] = array("Inherit Parent Template","New docs automatically select template of parent folder",0,"$setupPath/plugin.inherit-parent-tpl.tpl","","OnDocFormPrerender"); $mp[] = array("QuickEdit","Front-end Content Editor.",0,"$setupPath/quickedit.plugin.tpl","","OnParseDocument,OnWebPagePrerender","f888bac76e1537ca8e0cbec772b4624a"); $mp[] = array("TinyMCE","3.1.0.1a: TinyMCE RichText Editor Plugin",0,"$setupPath/plugin.tinymce.tpl","&customparams=Custom Parameters;textarea; &tinyFormats=Block Formats;text;p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address &entity_encoding=Entity Encoding;list;named,numeric,raw;named &entities=Entities;text; &tinyPathOptions=Path Options;list;rootrelative,docrelative,fullpathurl;docrelative &tinyCleanup=Cleanup;list;enabled,disabled;enabled &tinyResizing=Advanced Resizing;list;true,false;false &advimage_styles=Advanced Image Styles;text; &advlink_styles=Advanced Link Styles;text; &disabledButtons=Disabled Buttons;text; &tinyLinkList=Link List;list;enabled,disabled;enabled &webtheme=Web Theme;list;simple,advanced,editor,custom;simple &webPlugins=Web Plugins;text;style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media &webButtons1=Web Buttons 1;text;undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help &webButtons2=Web Buttons 2;text;bold,italic,underline,strikethrough,sub,sup,separator,separator,blockquote,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops &webButtons3=Web Buttons 3;text; &webButtons4=Web Buttons 4;text; &webAlign=Web Toolbar Alignment;list;ltr,rtl;ltr","OnRichTextEditorRegister,OnRichTextEditorInit,OnInterfaceSettingsRender"); $mp[] = array("Search Highlighting","1.2.0.2 - Show search terms highlighted on page linked from search results. (Requires AjaxSearch snippet)",0,"$setupPath/plugin.searchhighlight.tpl","","OnWebPagePrerender"); $mp[] = array("Image TV Preview","1.2.0.2 - Show preview of any images loaded into image Tempalte Variables",0,"$setupPath/plugin.imageTVpreview.tpl","","OnDocFormRender"); # setup modules - array : name, description, type - 0:file or 1:content, file or content,properties, guid,enable_sharedparams $mm = &$moduleModules; $mm[] = array("Doc Manager","Quickly perform bulk updates to the Documents in your site including templates, publishing details, and permissions.",0,"$setupPath/module.docmanager.tpl","","",1); $mm[] = array("QuickEdit","Renders QuickEdit links in the frontend",0,"$setupPath/quickedit.module.tpl","&mod_path=Module Path (from site root);string;assets/modules/quick_edit &show_manager_link=Show Manager Link;int;1 &show_help_link=Show Help Link;int;1 &editable=Editable Fields;string;pagetitle,longtitle,description,content,alias,introtext,menutitle,published,hidemenu,menuindex,searchable,cacheable,template","f888bac76e1537ca8e0cbec772b4624a",1); # setup callback function $callBackFnc = "clean_up"; function clean_up($sqlParser) { $ids = array(); $mysqlVerOk = -1; if(function_exists("mysql_get_server_info")) { $mysqlVerOk = (version_compare(mysql_get_server_info(),"4.0.2")>=0); } // secure web documents - privateweb mysql_query("UPDATE `".$sqlParser->prefix."site_content` SET privateweb = 0 WHERE privateweb = 1",$sqlParser->conn); $sql = "SELECT DISTINCT sc.id FROM `".$sqlParser->prefix."site_content` sc LEFT JOIN `".$sqlParser->prefix."document_groups` dg ON dg.document = sc.id LEFT JOIN `".$sqlParser->prefix."webgroup_access` wga ON wga.documentgroup = dg.document_group WHERE wga.id>0"; $ds = mysql_query($sql,$sqlParser->conn); if(!$ds) { echo "An error occurred while executing a query: ".mysql_error(); } else { while($r = mysql_fetch_assoc($ds)) $ids[]=$r["id"]; if(count($ids)>0) { mysql_query("UPDATE `".$sqlParser->prefix."site_content` SET privateweb = 1 WHERE id IN (".implode(", ",$ids).")"); unset($ids); } } // secure manager documents privatemgr mysql_query("UPDATE `".$sqlParser->prefix."site_content` SET privatemgr = 0 WHERE privatemgr = 1"); $sql = "SELECT DISTINCT sc.id FROM `".$sqlParser->prefix."site_content` sc LEFT JOIN `".$sqlParser->prefix."document_groups` dg ON dg.document = sc.id LEFT JOIN `".$sqlParser->prefix."membergroup_access` mga ON mga.documentgroup = dg.document_group WHERE mga.id>0"; $ds = mysql_query($sql); if(!$ds) { echo "An error occurred while executing a query: ".mysql_error(); } else { while($r = mysql_fetch_assoc($ds)) $ids[]=$r["id"]; if(count($ids)>0) { mysql_query("UPDATE `".$sqlParser->prefix."site_content` SET privatemgr = 1 WHERE id IN (".implode(", ",$ids).")"); unset($ids); } } /**** Add Quick Plugin to Module ***/ // get quick edit module id $ds = mysql_query("SELECT id FROM `".$sqlParser->prefix."site_modules` WHERE name='QuickEdit'"); if(!$ds) { echo "An error occurred while executing a query: ".mysql_error(); } else { $row = mysql_fetch_assoc($ds); $moduleid=$row["id"]; } // get plugin id $ds = mysql_query("SELECT id FROM `".$sqlParser->prefix."site_plugins` WHERE name='QuickEdit'"); if(!$ds) { echo "An error occurred while executing a query: ".mysql_error(); } else { $row = mysql_fetch_assoc($ds); $pluginid=$row["id"]; } // setup plugin as module dependency $ds = mysql_query("SELECT module FROM `".$sqlParser->prefix."site_module_depobj` WHERE module='$moduleid' AND resource='$pluginid' AND type='30' LIMIT 1"); if(!$ds) { echo "An error occurred while executing a query: ".mysql_error(); } elseif (mysql_num_rows($ds)==0){ mysql_query("INSERT INTO `".$sqlParser->prefix."site_module_depobj` (module, resource, type) VALUES('$moduleid','$pluginid',30)"); } } ?>