Lines Matching refs:this

85         'desc'    => html_entity_decode($this->getLang('snap_description')),
112 $this->defaultWiki=DOKU_URL."doku.php?id=";
114 $this->outputPath=realpath($conf['datadir']).'/../snap/';
115 if (!file_exists($this->outputPath.".")) mkdir($this->outputPath);
122 $this->imagePath=false;
123 $this->titrePage=false;
124 $this->snapTime=false;
125 $this->snapTimeFormatted=false;
126 $this->fromCache=false;
127 $this->succeed=false;
128 $this->target=false;
129 $this->selectedPort=false;
130 $this->snapLog=false;
131 $this->timeout=false;
132 $this->snapDuration=false;
133 $this->snapTotalDuration=false;
134 $this->tries=false;
135 $this->url=false;
136 $this->width=false;
137 $this->height=false;
139 if ($checkCache === NULL) $checkCache=$this->checkCache;
142 $this->url=$this->defaultWiki.$param;
146 …$url=$this->defaultWiki.$param."&u=".urlencode($_SESSION[DOKU_COOKIE]['auth']['user'])."&phash=".u…
174 $this->url=$param;
180 $larg=$this->defLarg;
181 $haut=$this->defHaut;
183 else if (!$larg) $larg=round($haut*$this->imFactor,0);
184 else if (!$haut) $haut=round($larg/$this->imFactor,0);
186 if ($larg>$this->maxLarg) $larg=$this->maxLarg;
187 if ($haut>$this->maxHaut) $haut=$this->maxHaut;
189 $this->width=$larg;
190 $this->height=$haut;
195 $imagePath=$this->outputPath.$image;
210 $ports=explode(" ",$this->snapPorts);
212 while (!$fp && $try<$this->tryTimeout) {
216 $this->selectedPort=$ports[array_rand($ports)];
217 $fp = fsockopen($this->snapServer, $this->selectedPort, $errno, $errstr, 30);
222 $this->tries=$try;
223 $this->width=false;
224 $this->height=false;
229 …fwrite($fp, "$url $imagePath $this->screenx $this->screeny ".($this->snapTimeout*1000)." $larg $ha…
230 while (!feof($fp)) $this->snapLog.=fgets($fp, 128);
233 $this->snapDuration=time()-$start;
234 $this->snapTotalDuration=time()-$totalStart;
235 $this->tries=$try;
239 $this->fromCache=true;
243 $this->snapLog=preg_replace_callback("/&phash=(.*)/",
247 $this->snapLog);
248 $this->snapLog=preg_replace_callback("/&p=(.*)/",
252 $this->snapLog);
255 if (preg_match("/html2image error: time out/i",$this->snapLog)) $this->timeout=true;
258 if (preg_match("/html2image error: time out/i",$this->snapLog)) $this->timeout=true;
266 $this->snapTime=filemtime($imagePath);
267 $this->snapTimeFormatted=strftime($conf['dformat'],$this->snapTime);
270 if ($conf['target']['extern']) $this->target="target=\"".$conf['target']['extern']."\"";
273 if ($conf['target']['wiki']) $this->target="target=\"".$conf['target']['wiki']."\"";
276 $this->imagePath=$imagePath;
277 $this->titrePage=$titrePage;
278 $this->succeed=true;
280 return array($this->imagePath, $this->titrePage, $this->target);