p_url = $p_url; $this->p_img = $p_img; } function getNavBar() { $f = ''; $res = '» '.__('root').''; if (file_exists($this->root.$this->base_path)) { $r = explode('/',$this->base_path); for ($i=1; $ip_url.'&f='.$f.'">'.$r[$i].''; } } return $res; } function getLine($k,$v,$c) { $color[0] = 'background:#fff;'; $color[1] = 'background:#f3f3f3;'; $common_style = 'padding: 1px 0.5em;'; $name_style = $common_style; $common_style .= 'width:1px;white-space:nowrap;'; $common_style = 'style="'.$common_style.$color[$c].'"'; $name_style = 'style="'.$name_style.$color[$c].'"'; $res = ''; $res .= ''; if ($v['d'] && $v['w']) { $res .= 'folder '; } elseif ($v['d']) { $res .= 'folder '; } elseif ($v['f'] && $v['w']) { if ($v['type'] == 'img') { $res .= 'file '; } else { $res .= 'file '; } } else { if ($v['type'] == 'img') { $res .= 'file '; } else { $res .= 'file '; } } $res .= ''; $res .= ''; if ($v['jail'] && $v['r'] && ($v['f'] || $v['d'] && $v['x'])) { $res .= ''.$k.''; } else { $res .= $k; } $res .= ''; $res .= ''. files::size(filesize($v['fname'])).''; $res .= ''. strftime('%Y-%m-%d %H:%M:%S',$v['mtime']).''; $res .= ''; if ($v['del']) { $del_msg = sprintf(__('Are you sure you want to delete this %s?'), ($v['d']) ? __('directory') : __('file')); $res .= ''. ''.__('delete').' '; } if ($v['jail'] && $v['r'] && $v['f']) { $res .= ''. ''.__('download').' '; } $res .= ' '; $res .= ''; return $res; } } ?>