close
Warning:
Can't synchronize with repository "(default)" (/usr/local/svn/deb2-client does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Mar 25, 2008, 12:08:27 PM (16 years ago)
- Author:
-
Adam
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v4
|
v5
|
|
15 | 15 | |
16 | 16 | #initialize, what dictionaries I have access to? |
17 | | $url = $server.'doc?action=init'; |
| 17 | $url = $server.'doc?action=connect'; |
18 | 18 | curl_setopt($curl, CURLOPT_URL, $url); |
19 | 19 | $result = curl_exec($curl); |
20 | 20 | |
21 | 21 | $dicts = json_decode($result, true); |
22 | | foreach($dicts['slovniky'] as $dict_code => $dict_info) { |
| 22 | foreach($dicts['dicts'] as $dict_code => $dict_info) { |
23 | 23 | #dictionary code + dictionary url |
24 | | $dict_url = $dict_info['dict']; |
| 24 | $dict_url = $dict_info['code']; |
25 | 25 | echo $dict_code.':'.$dict_url."\n"; |
26 | 26 | |