Example #1
0
            }
            self::$fileInfo[] = ADMIN_CONFIGURATION::$CONFIG['adminURL'] . LANG . '/filemanager/?modal=1path=' . urlencode($path) . '&file=' . urlencode($name);
            if (is_file(dirname(__FILE__) . "/../../../" . $path . '/' . $name)) {
                $getExtenstion = explode('.', $name);
                if (in_array($getExtenstion[count($getExtenstion) - 1], $this->extensions)) {
                    self::$Icons[] = $this->icons[array_search($getExtenstion[count($getExtenstion) - 1], $this->extensions)];
                } else {
                    self::$Icons[] = 'file-o';
                }
            } else {
                self::$Icons[] = 'folder';
            }
            self::$files[] = array($name, $userInfo->USERNAME . ' ' . $userInfo->USERLATNAME, $infoFile['size'], $infoFile['timestamp']);
        }
    }
}
if (!isset($_GET['path']) or !empty(trim($_GET['path']))) {
    $path = '.';
} else {
    $path = urldecode($_GET['path']);
}
if (isset($_GET['file'])) {
    $file = urldecode($_GET['file']);
}
if (!isset($_GET['file'])) {
    $fm = new FileManager($path);
    $fm->OpenFolder($path);
} else {
    Template::setModel(dirname(__FILE__) . '/../models/InfoFileManager.php');
    Template::setView(dirname(__FILE__) . '/../views/InfoFileManager.html');
}