Cheetah
index.php
Go to the documentation of this file.
1 <?php
2 
8  $GLOBALS['ch_profiler_disable'] = 1;
9 
10  include("../inc/header.inc.php");
11  require_once(CH_DIRECTORY_PATH_INC . 'admin.inc.php');
12 
13  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCUtil.php');
14  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCUser.php');
15  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCMessages.php');
16  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCSearch.php');
17  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCFriends.php');
18  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCMedia.php');
19  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCImages.php');
20  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCMediaAudio.php');
21  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCMediaVideo.php');
22 
23  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCProfileView.php');
24 
25  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/lib/xmlrpc.inc');
26  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/lib/xmlrpcs.inc');
27  require_once(CH_DIRECTORY_PATH_ROOT . 'xmlrpc/lib/xmlrpc_wrappers.inc');
28 
30  array(
31 
32  // util
33 
34  "cheetah.concat" => array(
35  "function" => "ChWsbXMLRPCUtil::concat",
36  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString)),
37  "docstring" => "concat two strings",
38  ),
39 
40  "cheetah.getContacts" => array(
41  "function" => "ChWsbXMLRPCUtil::getContacts",
42  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString)),
43  "docstring" => "get user contacts",
44  ),
45 
46  "cheetah.getCountries" => array(
47  "function" => "ChWsbXMLRPCUtil::getCountries",
48  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
49  "docstring" => "get countries list",
50  ),
51 
52  "cheetah.service" => array(
53  "function" => "ChWsbXMLRPCUtil::service",
54  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcArray, $xmlrpcString)),
55  "docstring" => "perform serice call",
56  ),
57 
58  // user related
59 
60  "cheetah.login" => array(
61  "function" => "ChWsbXMLRPCUser::login",
62  "signature" => array (array ($xmlrpcInt, $xmlrpcString, $xmlrpcString)),
63  "docstring" => "returns user id on success or 0 if login failed",
64  ),
65  "cheetah.login2" => array(
66  "function" => "ChWsbXMLRPCUser::login2",
67  "signature" => array (array ($xmlrpcInt, $xmlrpcString, $xmlrpcString)),
68  "docstring" => "returns user id on success or 0 if login failed (v.2)",
69  ),
70  "cheetah.login4" => array(
71  "function" => "ChWsbXMLRPCUser::login4",
72  "signature" => array (array ($xmlrpcInt, $xmlrpcString, $xmlrpcString)),
73  "docstring" => "returns user id on success or 0 if login failed (v.4)",
74  ),
75  "cheetah.getHomepageInfo" => array(
76  "function" => "ChWsbXMLRPCUser::getHomepageInfo",
77  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString)),
78  "docstring" => "return logged in user information to dispay on homepage",
79  ),
80  "cheetah.getHomepageInfo2" => array(
81  "function" => "ChWsbXMLRPCUser::getHomepageInfo2",
82  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
83  "docstring" => "return logged in user information to dispay on homepage (v.2)",
84  ),
85  "cheetah.getUserInfo" => array(
86  "function" => "ChWsbXMLRPCUser::getUserInfo",
87  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
88  "docstring" => "return user information",
89  ),
90  "cheetah.getUserInfo2" => array(
91  "function" => "ChWsbXMLRPCUser::getUserInfo2",
92  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
93  "docstring" => "return user information (v.2)",
94  ),
95  "cheetah.getUserInfoExtra" => array(
96  "function" => "ChWsbXMLRPCUser::getUserInfoExtra",
97  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
98  "docstring" => "return extended users information",
99  ),
100 
101  "cheetah.updateStatusMessage" => array(
102  "function" => "ChWsbXMLRPCUser::updateStatusMessage",
103  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
104  "docstring" => "update user status message, returns 0 on error, or 1 on success",
105  ),
106 
107  "cheetah.getUserLocation" => array(
108  "function" => "ChWsbXMLRPCUser::getUserLocation",
109  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
110  "docstring" => "get user location, returns struct on succees, 0 on error, -1 on access denied",
111  ),
112 
113  "cheetah.updateUserLocation" => array(
114  "function" => "ChWsbXMLRPCUser::updateUserLocation",
115  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
116  "docstring" => "update user location, returns 1 on succees, 0 on error",
117  ),
118 
119  // messages
120 
121  "cheetah.getMessagesInbox" => array(
122  "function" => "ChWsbXMLRPCMessages::getMessagesInbox",
123  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString)),
124  "docstring" => "get user's inbox messages",
125  ),
126  "cheetah.getMessagesSent" => array(
127  "function" => "ChWsbXMLRPCMessages::getMessagesSent",
128  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString)),
129  "docstring" => "get user's sent messages",
130  ),
131  "cheetah.getMessageInbox" => array(
132  "function" => "ChWsbXMLRPCMessages::getMessageInbox",
133  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
134  "docstring" => "get user's inbox message",
135  ),
136  "cheetah.getMessageSent" => array(
137  "function" => "ChWsbXMLRPCMessages::getMessageSent",
138  "signature" => array (array ($xmlrpcScruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
139  "docstring" => "get user's sent message",
140  ),
141 
142  "cheetah.sendMessage" => array(
143  "function" => "ChWsbXMLRPCMessages::sendMessage",
144  "signature" => array (array ($xmlrpcScruct, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
145  "docstring" => "send message",
146  ),
147 
148  // search
149 
150  "cheetah.getSeachHomeMenu3" => array(
151  "function" => "ChWsbXMLRPCSearch::getSeachHomeMenu3",
152  "signature" => array (array ($xmlrpcStruct, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
153  "docstring" => "get search homepage menu",
154  ),
155 
156  "cheetah.getSearchResultsLocation" => array(
157  "function" => "ChWsbXMLRPCSearch::getSearchResultsLocation",
158  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
159  "docstring" => "get search results by location",
160  ),
161  "cheetah.getSearchResultsKeyword" => array(
162  "function" => "ChWsbXMLRPCSearch::getSearchResultsKeyword",
163  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString,$xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
164  "docstring" => "get search results by keyword",
165  ),
166  "cheetah.getSearchResultsNearMe" => array(
167  "function" => "ChWsbXMLRPCSearch::getSearchResultsNearMe",
168  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
169  "docstring" => "get search results near specified location",
170  ),
171 
172  // friends
173 
174  "cheetah.getFriends" => array(
175  "function" => "ChWsbXMLRPCFriends::getFriends",
176  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
177  "docstring" => "get user's friends",
178  ),
179  "cheetah.getFriendRequests" => array(
180  "function" => "ChWsbXMLRPCFriends::getFriendRequests",
181  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
182  "docstring" => "get friend requests",
183  ),
184  "cheetah.declineFriendRequest" => array(
185  "function" => "ChWsbXMLRPCFriends::declineFriendRequest",
186  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
187  "docstring" => "decline friend request",
188  ),
189  "cheetah.acceptFriendRequest" => array(
190  "function" => "ChWsbXMLRPCFriends::acceptFriendRequest",
191  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
192  "docstring" => "accept friend request",
193  ),
194  "cheetah.removeFriend" => array(
195  "function" => "ChWsbXMLRPCFriends::removeFriend",
196  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
197  "docstring" => "remove friend",
198  ),
199  "cheetah.addFriend" => array(
200  "function" => "ChWsbXMLRPCFriends::addFriend",
201  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
202  "docstring" => "add friend",
203  ),
204 
205  // images
206 /*
207  "cheetah.getImages" => array(
208  "function" => "ChWsbXMLRPCImages::getImages",
209  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
210  "docstring" => "get profile's images",
211  ),
212 */
213  "cheetah.removeImage" => array(
214  "function" => "ChWsbXMLRPCImages::removeImage",
215  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
216  "docstring" => "remove user image by id",
217  ),
218  "cheetah.makeThumbnail" => array(
219  "function" => "ChWsbXMLRPCImages::makeThumbnail",
220  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
221  "docstring" => "make primary image by image id",
222  ),
223  "cheetah.getImageAlbums" => array(
224  "function" => "ChWsbXMLRPCImages::getImageAlbums",
225  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
226  "docstring" => "get profile's images albums",
227  ),
228  "cheetah.uploadImage" => array(
229  "function" => "ChWsbXMLRPCImages::uploadImage",
230  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcBase64, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
231  "docstring" => "upload new image",
232  ),
233  "cheetah.getImagesInAlbum" => array(
234  "function" => "ChWsbXMLRPCImages::getImagesInAlbum",
235  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
236  "docstring" => "get profile's images in specified album",
237  ),
238 
239  // audio
240 
241  "cheetah.removeAudio" => array(
242  "function" => "ChWsbXMLRPCMediaAudio::removeAudio5",
243  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
244  "docstring" => "remove user sound by id (v.5)",
245  ),
246  "cheetah.getAudioAlbums" => array(
247  "function" => "ChWsbXMLRPCMediaAudio::getAudioAlbums",
248  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
249  "docstring" => "get profile's sound albums",
250  ),
251  "cheetah.getAudioInAlbum" => array(
252  "function" => "ChWsbXMLRPCMediaAudio::getAudioInAlbum",
253  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
254  "docstring" => "get profile's sounds in specified album",
255  ),
256 
257  // video
258 
259  "cheetah.removeVideo" => array(
260  "function" => "ChWsbXMLRPCMediaVideo::removeVideo5",
261  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
262  "docstring" => "remove user video by id (v.5)",
263  ),
264  "cheetah.getVideoAlbums" => array(
265  "function" => "ChWsbXMLRPCMediaVideo::getVideoAlbums",
266  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
267  "docstring" => "get profile's video albums",
268  ),
269  "cheetah.uploadVideo" => array(
270  "function" => "ChWsbXMLRPCMediaVideo::uploadVideo5",
271  "signature" => array (array ($xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcBase64, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
272  "docstring" => "upload new video (v.5)",
273  ),
274  "cheetah.getVideoInAlbum" => array(
275  "function" => "ChWsbXMLRPCMediaVideo::getVideoInAlbum",
276  "signature" => array (array ($xmlrpcArray, $xmlrpcString, $xmlrpcString, $xmlrpcString, $xmlrpcString)),
277  "docstring" => "get profile's video in specified album",
278  ),
279 
280  ),
281  0
282  );
283 
284  $s->functions_parameters_type = 'phpvals';
285  $GLOBALS['xmlrpc_internalencoding'] = 'UTF-8';
286  $s->service();
php
xmlrpc_server
Definition: xmlrpcs.inc:434
$GLOBALS
$GLOBALS['aRequest']
Definition: index.php:10
$s
$s
Definition: index.php:29