Lines Matching refs:this

22         $this->helper =  plugin_load('helper', 'xcom');
24 $this->page = $page;
26 if(!$this->page) {
27 $this->msg('nopage');
31 while(!($this->localClient = $this->ini_clients($local_auth,true))) {
37 if(!$this->localClient) {
38 $err .= $this->msg('nolocal',1);
41 while(!($this->remoteClient = $this->ini_clients($remote_auth))) {
47 if(!$this->remoteClient) {
48 $err .= $this->msg('noremote',1);
51 $err .= $this->msg('chkauth',1);
56 $this->msg('success');
59 if($this->is_media_id($page)) {
60 $this->getMediaFile($page);
61 $this->logoff();
68 if($ret) return $this->helper->getLang($which) . $nl;
69 echo $this->helper->getLang($which) . $nl;
76 if($local) $this->user = $credentials->user;
77 … return $this->xcom_connect($credentials->url,$credentials->user,$credentials->pwd ,0);
81 if($local) $this->user = $credentials['user'];
82 … return $this->xcom_connect($credentials['url'],$credentials['user'],$credentials['pwd'] ,0);
88 echo "$id ". $this->msg('ismedia',1," " . $matches[1] . "\n");
97 if(!$this->mediaArray) $this->getMedia();
98 if(!is_array($this->mediaArray)) {
99 $this->msg('nomedia',0, " $this->page.\n");
102 $this->msg('reqmedia');
103 foreach($this->mediaArray as $mfile) {
104 $this->getMediaFile($mfile);
109 $this->data_buffer = "";
110 $this->xcom_get_data( 'wiki.getAttachment',$this->remoteClient,true, array($mfile));
111 if($this->data_buffer) {
112 if(is_array($this->data_buffer)) {
113 echo print_r($this->data_buffer,true);
116 … echo "$mfile " . $this->msg('fsize',true,"") . " " . strlen($this->data_buffer) ."\n";
117 $this->saveMediaFile($mfile);
125 … $auth = $this->xcom_get_data( 'wiki.aclCheck',$this->localClient,false,array($this->page));
128 $this->msg('noperm',false," $this->page\n");
129 $this->logoff();
132 echo $this->page . "\n";
133 $this->data_buffer = "";
134 … $this->xcom_get_data( 'wiki.getPage',$this->remoteClient,true, array($this->page));
135 if(is_array($this->data_buffer)) {
136 echo print_r($this->data_buffer,true);
140 $this->savePage();
143 …$resp = $this->xcom_get_data( 'wiki.putPage',$this->localClient,false, array($this->page,$this->da…
146 $this->msg('noimport',false," $this->page\n");
147 $this->logoff();
150 $this->msg('imported',false," $this->page\n");
155 $this->mediaArray=$this->xcom_get_data( 'plugin.xcom.getMedia',$this->remoteClient);
164 else $params = array($task,$this->page);
181 $this->data_buffer = $client->getResponse();
189 $auth = $this->xcom_get_data( 'wiki.aclCheck',$this->localClient,false,array($id));
192 $this->msg('uploadperm',false," $id\n");
200 io_saveFile($ftmp, $this->data_buffer);
201 $this->media_save($ftmp,$id,$auth);
213 else $this->msg('msave',false," $id\n");
229 $this->msg('logoff');
230 $resp =$this->xcom_get_data( 'dokuwiki.getVersion',$this->localClient,false,false);
231 $this->msg('localdw', false," $resp\n");
234 $this->msg('logoff',false, " $resp\n");
235 $this->xcom_get_data( 'dokuwiki.logoff',$this->localClient,false,false);
237 else $this->msg('nologoff');
239 $resp =$this->xcom_get_data( 'dokuwiki.getVersion',$this->remoteClient,false,false);
240 $this->msg('remotedw', false," $resp\n");
243 $this->msg('logoff',false, " $resp\n");
244 $this->xcom_get_data( 'dokuwiki.logoff',$this->remoteClient,false,false);
246 else $this->msg('nologoff');