Example #1
0
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.*
*
*/
/*
* Uncomment the line below to enable basic operation. By default this
* will manage a folder called 'uploads' relative to this script's path.
*
* You can change this folder to anything you like. The script will not
* allow managing of files outside of this path.
*
* Advanced users may wish to write a separate php script to control the
* ajax features of the File Manager.  Including callbacks for deleting
* or renaming files.
*/
jqFileManager::ProcessAjax(dirname(dirname(dirname(dirname(__FILE__)))));
class jqFileManager
{
    private static $docroot = NULL;
    public static function SetDocRoot($path)
    {
        self::$docroot = $path;
    }
    private static $relroot = '/';
    public static function SetRelRoot($path)
    {
        self::$relroot = $path;
    }
    private static $data = array();
    static function GetRelativePath($path)
    {
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.*
*
*/
/*
* Uncomment the line below to enable basic operation. By default this
* will manage a folder called 'uploads' relative to this script's path.
* 
* You can change this folder to anything you like. The script will not
* allow managing of files outside of this path.
*
* Advanced users may wish to write a separate php script to control the
* ajax features of the File Manager.  Including callbacks for deleting
* or renaming files.
*/
jqFileManager::ProcessAjax(dirname(__FILE__) . '/uploads');
class jqFileManager
{
    private static $docroot = NULL;
    public static function SetDocRoot($path)
    {
        self::$docroot = $path;
    }
    private static $relroot = '/';
    public static function SetRelRoot($path)
    {
        self::$relroot = $path;
    }
    private static $data = array();
    static function GetRelativePath($path)
    {
Example #3
0
 static function ajax()
 {
     header("X-Robots-Tag: noindex", true);
     utopia::CancelTemplate();
     if (isset($_GET['upload'])) {
         return jqFileManager::ProcessUpload(jqFileManager::GetPath(PATH_UPLOADS));
     }
     jqFileManager::ProcessAjax(PATH_UPLOADS, null, 'uUploads::OnRename', 'uUploads::GetIcon');
 }