1 # ===================================================================== 2 # system.listMethods: XML-RPC introspection API 3 # See http://phpxmlrpc.sourceforge.net/server.php 4 # 5 # Copyright (c) 2007,2009 Carlo Strozzi 6 # 7 # This program is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; version 2 dated June, 1991. 10 # 11 # This program is distributed in the hope that it will be useful, 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 # GNU General Public License for more details. 15 # 16 # You should have received a copy of the GNU General Public License 17 # along with this program; if not, write to the Free Software 18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 # 20 # ===================================================================== 21 22 # ===================================================================== 23 # Local variables and functions 24 # ===================================================================== 25 26 # ===================================================================== 27 # Main program 28 # ===================================================================== 29 30 csaGetArgs POST 31 32 tw_dstem = $CSA_ROOT/lib/default 33 34 # Account for the fact that templates are created by the client. 35 CSA_TPL_SAFEPATH = ($CSA_INSTALL/lib $tw_dstem $TMPDIR $CSA_TPL_ROOT 36 $CSA_DOCROOT/$CSA_LANG/$TNS_ATTACH_PUBDIR) 37 38 # Without this, only the default OK response will be produced. 39 CSA_EXIT_SCRIPT = $CSA_ROOT/lib/exit-stuff.rc 40 41 csaMkTemp tpl.include.tw.rpc 42 43 cat <<'EOF' > $'tpl.include.tw.rpc' || csaExit.fault 0003 cat 44 45 46 blogger.deletePost 47 blogger.editPost 48 blogger.getPost 49 blogger.getRecentPosts 50 blogger.getTemplate 51 blogger.getUserInfo 52 blogger.getUsersBlogs 53 blogger.newPost 54 blogger.setTemplate 55 metaWeblog.editPost 56 metaWeblog.getCategories 57 metaWeblog.getPost 58 metaWeblog.getRecentPosts 59 metaWeblog.getTemplate 60 metaWeblog.newMediaObject 61 metaWeblog.newPost 62 metaWeblog.setTemplate 63 mt.getCategoryList 64 mt.getPostCategories 65 mt.getRecentPostTitles 66 mt.getTrackbackPings 67 mt.publishPost 68 mt.setPostCategories 69 mt.supportedMethods 70 mt.supportedTextFilters 71 pingback.ping 72 73 74 EOF 75 76 #if (~ $tpl_name tw-*) { 77 # 78 # # Page names beginning with tw-* are reserved for TW use, and usually 79 # # refer to views that do not correspond to actual pages on disk, so 80 # # we need to toggle unapplicable sections in templates. 81 # 82 # tpl.if.tw.ispage = '(::DEL:)' 83 # tpl.fi.tw.ispage = '(:DEL::)' 84 # tpl.if.tw.editor = '(::DEL:)' 85 # tpl.fi.tw.editor = '(:DEL::)' 86 #} 87 88 csaExit.ok 89 90 # End of program.