project = @$_SESSION['project']['path']; $Filemanager->access = $access; switch ($action) { case 'index': $Filemanager->index(); break; case 'search': $Filemanager->search(); break; case 'find': $Filemanager->find(); break; case 'open': $Filemanager->open(); break; case 'open_in_browser': $Filemanager->openinbrowser(); break; case 'create': $Filemanager->create(); break; case 'delete': $Filemanager->delete(); break; case 'deleteInner': $Filemanager->delete( true ); break; case 'modify': $Filemanager->modify(); break; case 'duplicate': $Filemanager->duplicate(); break; case 'upload': $Filemanager->upload(); break; default: exit('{"status":"fail","data":{"error":"Unknown Action"}}'); }