0 X 2 B Arial P nS eZLAND win on disableScript(adrSite) dlSuite.disable(adrSite) return(true) @ Arial P pR 3LAND win on enableScript(adrSite) dlSuite.enable(adrSite) return(true) V K^ 4 B N [ g ~ descriptionUrl !http://q.queso.com/deepLeapPlugIn disableScript XenableScript 0flAddToEditorsOnlyMenu flEditors flEnabledrelativePath dl/ . P"( ) 1 Fversion 1.0b3xmlSubmissionFormMethod POSTxmlSubmissionFormUrl .http://www.deepleap.com/metainfo/importinfo.pl Arial P VǵV 3LAND win return(dlSuite.generateXml()) Arial P WW 3LAND win return(dlSuite.defaultPage()) { w . V^ % 1 9#pluginName DeepLeapdeepleap.xml default x { ~ z . AUt , < initialConfig prefs websiteFragment ~ UsUs @ Arial P Wr"# R 4 LAND win on defaultPage() Changes: 4/18/2000 JEL Added the check to make sure that a person was logged in as a managing editor before it would allow them to set the DeepLeap preferences local htmlText = "" pta = html.getPageTableAddress() adrDlPrefs = manilaSuite.plugins.getStorageAddress("DeepLeap") url = string.popTrailing(pta^.ftpSite^.url, '/') on add(s) htmlText = htmlText + s + cr pta^.title = "Set DeepLeap Preferences" if manilaSuite.editors.managingEditorTest(pta) == false add("I'm sorry... you have to be a managing editor of this site in order to set up the DeepLeap preferences.") return(htmlText) if defined(pta^.postArgs) adrDlPrefs^.sitename = pta^.postArgs.sitename adrDlPrefs^.contactinfo = pta^.postArgs.contactinfo adrDlPrefs^.sitemap = pta^.postArgs.sitemap adrDlPrefs^.whatsnew = pta^.postArgs.whatsnew adrDlPrefs^.engine = pta^.postArgs.engine adrDlPrefs^.parameter = pta^.postArgs.parameter adrDlPrefs^.type = pta^.postArgs.type add("Successfully set the DeepLeap preferences for this site. Next, scroll down to the bottom and submit the XML file to DeepLeap.
") bundle // add top instructions and whatnot add("This sets up the XML file that DeepLeap parses to generate the links in their MetaInfo tab, and allows you to submit the XML file to DeepLeap for parsing.
") add("Below, enter the addresses for each of the different pages. Don't put leading slashes in the URLs (in other words, \"http\://yoursite.com/sitemap.html\" should be entered as sitemap.html). You'll note that the home page URL is automatically generated for you; this comes out of the #ftpSite table at the root level of your website database. If you don't have one of the pages as part of your site, just leave that entry blank; DeepLeap just omits that option on the MetaInfo tab.") bundle // build preferences form local sitename, contactinfo, sitemap, whatsnew, engine, type, parameter bundle // set up variables, if they exist if defined(adrDlPrefs^.sitename) sitename = adrDlPrefs^.sitename if defined(adrDlPrefs^.contactinfo) contactinfo = adrDlPrefs^.contactinfo if defined(adrDlPrefs^.sitemap) sitemap = adrDlPrefs^.sitemap if defined(adrDlPrefs^.whatsnew) whatsnew = adrDlPrefs^.whatsnew if defined(adrDlPrefs^.engine) engine = adrDlPrefs^.engine if defined(adrDlPrefs^.type) type = adrDlPrefs^.type if defined(adrDlPrefs^.parameter) parameter = adrDlPrefs^.parameter add("
") bundle // build submission form local formUrl = dlData.prefs.xmlSubmissionFormUrl formMethod = dlData.prefs.xmlSubmissionFormMethod add("
") return(htmlText) 0 Arial P vh7 ; 4LAND win on disable(adrSite) local adrSiteFrag = manilaSuite.plugins.getSiteFragmentAddress("DeepLeap", adrSite) if defined(adrSiteFrag^) delete(adrSiteFrag) if defined(adrSite^.["deepleap.xml"]) delete(@adrSite^.["deepleap.xml"]) return(true) $ Arial P rh> G #LAND win on enable(adrSite) local adrSiteFrag = manilaSuite.plugins.getSiteFragmentAddress("DeepLeap", adrSite) adrSiteFrag^ = dlData.websiteFragment adrSite^.["deepleap.xml"] = dlData.websiteFragment.["deepleap.xml"] return(true) M 2 Arial P VCgT LAND win on generateXml() local xmlText = "" pta = html.getPageTableAddress() url = string.popTrailing(pta^.ftpSite^.url, '/') sitename = "", contactinfo = "", sitemap = "", whatsnew = "", engine = "", parameter = "", type = "" adrDlPrefs = manilaSuite.plugins.getStorageAddress("DeepLeap") indent = 0 on add(s) xmlText = xmlText + string.filledString ("\t", indent) + s + "\r\n" bundle // build the pagetable pta^.responseHeaders.["Content-Type"] = "text/xml" pta^.autoParagraphs = false pta^.clayCompatibility = false pta^.activeUrls = false wp.newTextObject("{bodytext}", @pta^.template) bundle // fill the variables if defined(adrDlPrefs^.sitename) sitename = adrDlPrefs^.sitename if defined(adrDlPrefs^.contactinfo) contactinfo = adrDlPrefs^.contactinfo if defined(adrDlPrefs^.sitemap) sitemap = adrDlPrefs^.sitemap if defined(adrDlPrefs^.whatsnew) whatsnew = adrDlPrefs^.whatsnew if defined(adrDlPrefs^.engine) engine = adrDlPrefs^.engine if defined(adrDlPrefs^.parameter) parameter = adrDlPrefs^.parameter if defined(adrDlPrefs^.type) type = adrDlPrefs^.type bundle // build the XML add("") add("