Lines Matching +full:x +full:- +full:age

51 		if(time() - fileatime($fname) - $this->_timelimit > 0)
54 return $this->_timelimit;
59 if(time() - filemtime($fname) - $this->_timelimit > 0)
74 // atime: age based on fileatime().
75 // mtime: age based on filemtime().
80 $meddir = $conf['mediadir'] . '/' . strtr($this->getConf('latex_namespace'),':','/');
82 $this->_timelimit = $timelimit;
104 $this->output = "";
115 $this->output .= '<div class="info">'.$this->getLang('refresh_note').'</div>';
119 $this->output .= "<pre>Purge result ([x] = deleted):\n";
121 $res = $this->latexpurge($mode, $days*86400);
124 $this->output .= '[x] '.$img . "\n";
127 // $this->output .= '[ ] '.$img . "\n";
132 …$this->output = "<div class=\"error\">Purger: Bad form inputs. No action taken.</div>".$this->outp…
134 $this->output .= "Totals: $numdeleted deleted, $numkept kept (kept files not shown).\n";
138 $this->output .= "</pre>";
148 ptln('<p>'.$this->output.'</p>');
150 ptln('<h2>'.$this->getLang('legend_purge').'</h2>');
154 …ptln('<form action="'.wl($INFO['id']).'?do=admin&page='.$this->getPluginName().'" method="post">');
156 …ptln('<td rowspan="2"><input type="submit" class="button" name="latexpurge" value="'.$this->getLa…
158 $labtimes = $this->getLang('label_times');
161 echo $this->getLang('label_olderthan');
163 echo $this->getLang('label_days');
165 …echo '<LABEL><INPUT type="radio" name="purgemode" value="all" />'.$this->getLang('label_all').'</L…
176 ptln(' <input type="hidden" name="page" value="'.$this->getPluginName().'" />');
194 foreach(array($this->getConf("latex_path"),$this->getConf("dvips_path"),
195 $this->getConf("convert_path"),$this->getConf("identify_path")) as $path) {
197 $cmd = $path." --version 2>&1";
205 echo '<pre style="background-color:#FCC;">'; //pink for error status
216 if(is_writable($plug->_latex->getPicturePath()) && is_dir($plug->_latex->getPicturePath()))
217 …ptln('<div class="success">Media directory is writable: <code>'.$plug->_latex->getPicturePath().'<…
219 …ptln('<div class="error">Media directory not writable or nonexistant! <code>'.$plug->_latex->getPi…
221 if(is_writable($plug->_latex->_tmp_dir) && is_dir($plug->_latex->_tmp_dir))
222 …ptln('<div class="success">Temporary directory is writable: <code>'.$plug->_latex->_tmp_dir.'</cod…
224 …s="error">Temporary directory not writable or nonexistant! <code>'.$plug->_latex->_tmp_dir.'</code>
229 $outname = $plug->_latex->getPicturePath()."/img".$md5.'.'.$plug->_latex->_image_format;
239 $plug->_latex->_keep_tmp = true;
240 $plug->_latex->_cmdoutput = ''; // activate command log.
242 $this->doc = '';
243 $plug->render('xhtml', $this, $data);
244 $tmpw = $this->getConf('latex_namespace').':tmp:'.$plug->_latex->_tmp_filename;
245 $tmpf = $plug->_latex->_tmp_dir."/".$plug->_latex->_tmp_filename;
246 $tmpext = array('tex','log','aux','dvi','ps',$plug->_latex->_image_format);
251 $rendstr = $this->render('{{'.$tmpw.'.'.$ext.'?linkonly&nocache|'.$fname.'}}');
274 // ptln(htmlspecialchars($plug->_url));
277 ptln($this->doc);
283 echo $plug->_latex->_cmdoutput;
292 $plug->_latex->cleanTemporaryDirectory();