add FileHandlerMobile

This allow to use plugins in mobile interface
This commit is contained in:
Sebijk 2023-02-02 19:53:15 +01:00
parent 28c56c50c9
commit e599013582
7 changed files with 49 additions and 0 deletions

View file

@ -26,6 +26,13 @@ if(!class_exists('BMAddressbook'))
include('../serverlib/addressbook.class.php'); include('../serverlib/addressbook.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
/**
* file handler for modules
*/
ModuleFunction('FileHandlerMobile',
array(substr(__FILE__, strlen(__DIR__)+1),
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
/** /**
* calendar interface * calendar interface
*/ */

View file

@ -24,6 +24,13 @@ if(!class_exists('BMAddressbook'))
include('../serverlib/addressbook.class.php'); include('../serverlib/addressbook.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
/**
* file handler for modules
*/
ModuleFunction('FileHandlerMobile',
array(substr(__FILE__, strlen(__DIR__)+1),
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
/** /**
* addressbook interface * addressbook interface
*/ */

View file

@ -26,6 +26,13 @@ if(!class_exists('BMMailBuilder'))
include('../serverlib/mailbuilder.class.php'); include('../serverlib/mailbuilder.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
/**
* file handler for modules
*/
ModuleFunction('FileHandlerMobile',
array(substr(__FILE__, strlen(__DIR__)+1),
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
/** /**
* open mailbox * open mailbox
*/ */

View file

@ -21,6 +21,13 @@
include('../serverlib/init.inc.php'); include('../serverlib/init.inc.php');
/**
* file handler for modules
*/
ModuleFunction('FileHandlerMobile',
array(substr(__FILE__, strlen(__DIR__)+1),
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
/** /**
* delete no redirect cookie, if exists * delete no redirect cookie, if exists
*/ */

View file

@ -24,6 +24,13 @@ if(!class_exists('BMTodo'))
include('../serverlib/todo.class.php'); include('../serverlib/todo.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
/**
* file handler for modules
*/
ModuleFunction('FileHandlerMobile',
array(substr(__FILE__, strlen(__DIR__)+1),
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
/** /**
* todo interface * todo interface
*/ */

View file

@ -26,6 +26,13 @@ if(!class_exists('BMZIP'))
include('../serverlib/zip.class.php'); include('../serverlib/zip.class.php');
RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE); RequestPrivileges(PRIVILEGES_USER | PRIVILEGES_MOBILE);
/**
* file handler for modules
*/
ModuleFunction('FileHandlerMobile',
array(substr(__FILE__, strlen(__DIR__)+1),
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
/** /**
* open webdisk * open webdisk
*/ */

View file

@ -400,6 +400,13 @@ class BMPlugin
{ {
} }
/**
* user page handler for mobile interface.
*/
public function FileHandlerMobile($file, $action)
{
}
/** /**
* admin page handler. * admin page handler.
*/ */