Lines Matching refs:this

55             $partresult = $this->glob_recursive($dir . '/' . $dirmask);
67 $this->mediafiles = $this->glob_recursive($conf['mediadir'] . '/*.*');
68 $this->dlcount = array();
69 $this->lastdl = array();
70 foreach ($this->mediafiles as $idx=>$mediafile) {
74 unset($this->mediafiles[$idx]);
77 $mediaWN = $this->getWNfromMediaFN($mediafile);
80 $this->dlcount[$mediaWN] = 0;
81 $this->lastdl[$mediaWN] = -1;
84 $this->dlcount[$mediaWN] = $meta['dlcount'];
85 $this->lastdl[$mediaWN] = $meta['lastdl'];
88 arsort($this->dlcount);
89 arsort($this->lastdl);
96 … ptln(sprintf($this->getLang('mediafiles_found'), count($this->mediafiles)) . '<br /><br />');
97 ptln('<strong>' . $this->getLang('top_dl_files') . ':</strong><br />');
98 …inline"><tr><th>#</th><th>' . $this->getLang('filename') . '</th><th>' . $this->getLang('downloads…
100 foreach ($this->dlcount as $fn=>$dlc) {
101 $lastdl = $this->getLang('never');
102 $lastdltime = $this->time_translate(time() - $this->lastdl[$fn]);
103 if ($this->lastdl[$fn] > 0) $lastdl = sprintf($this->getLang('ago'), $lastdltime);
105 if ($top > $this->getConf('top_n_statistics')) break;
109 ptln('<strong>' . $this->getLang('most_recent_dl_files') . ':</strong><br />');
110 …inline"><tr><th>#</th><th>' . $this->getLang('filename') . '</th><th>' . $this->getLang('downloads…
112 foreach ($this->lastdl as $fn=>$dlt) {
113 $lastdl = $this->getLang('never');
114 $lastdltime = $this->time_translate(time() - $dlt);
115 if ($dlt > 0) $lastdl = sprintf($this->getLang('ago'), $lastdltime);
116 …align">' . $top++ . '</th><td>' . $fn . '</td><td class="rightalign">' . $this->dlcount[$fn] . '</…
117 if ($top > $this->getConf('top_n_statistics')) break;
121 ptln('<strong>' . $this->getLang('least_recent_dl_files') . ':</strong><br />');
122 …inline"><tr><th>#</th><th>' . $this->getLang('filename') . '</th><th>' . $this->getLang('downloads…
123 $top = count($this->lastdl);
124 foreach (array_reverse($this->lastdl) as $fn=>$dlt) {
125 $lastdl = $this->getLang('never');
126 $lastdltime = $this->time_translate(time() - $dlt);
127 if ($dlt > 0) $lastdl = sprintf($this->getLang('ago'), $lastdltime);
128 …align">' . $top-- . '</th><td>' . $fn . '</td><td class="rightalign">' . $this->dlcount[$fn] . '</…
129 if ($top <= count($this->lastdl)-$this->getConf('top_n_statistics')) break;