<?php define('APP_PATH', dirname(__FILE__)); define('DS', DIRECTORY_SEPARATOR); include 'includes' . DS . 'creatur.ini.php'; require APP_PATH . DS . 'lib' . DS . 'DB.php'; include_once APP_PATH . DS . 'lib' . DS . 'media' . DS . 'Media.php'; include_once APP_PATH . DS . 'lib' . DS . 'Upload' . DS . 'class.upload.php'; $fb = new Filebrowser(); $m = $fb->getTask(); class Filebrowser { public function getTask() { $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null; switch ($action) { case 'upload': $this->setImg(); break; case 'drop': $img = isset($_REQUEST['img']) ? $_REQUEST['img'] : null; $this->unsetImg($img); break; default: $this->setInterface(); } } public function setInterface() { $tpl = new Creatur_Smarty(); $tpl->assign('path_img', IMG_WEB_PATH);