function display($var) { if ($var == 'month') { $month = date('n', $this->{$var}); $month = intToMonth($month); $year = date('Y', $this->{$var}); return "{$year} {$month}"; } return parent::display($var); }
function display($var) { global $gbl, $sgbl, $login, $ghtml; if ($var === "logintime" || $var === "timeout" || $var === 'last_access') { return " " . lxgettime($this->{$var}) . " "; } if ($var === 'current_f') { if ($gbl->c_session->nname === $this->nname) { return 'on'; } return 'dull'; } if ($var === 'ip_address') { if (if_demo()) { return 'Masked in Demo'; } } return parent::display($var); }
function display($var) { switch ($var) { case "sizeper": return $this->size; case "pvrename": return "rename"; case "pvdownload": return "download"; case "nname": if ($this->base === ".trash") { return "Trash"; } if ($this->nname === '/') { return $this->getParentO()->nname; } if (isset($this->linkto)) { return "{$this->base} -> {$this->linkto}"; } return $this->base; break; case "mode": if ($this->base === ".." || $this->base === ".trash") { return ""; } return $this->getPermissions($dummy); break; case "realsize": case "size": if ($this->size < 1024) { return $this->size . 'B'; } if ($this->size < 1024 * 1024) { return round($this->size / 1024, 0) . "K"; } if ($this->size < 1024 * 1024 * 1024) { return round($this->size / (1024 * 1024), 1) . "M"; } return round($this->size / (1024 * 1024 * 1024), 3) . "G"; case "mtime": return lxgettime($this->mtime); default: return parent::display($var); break; } }