new ajax_submit() function with submitts the whole form via ajax to a given callback

This commit is contained in:
Ralf Becker 2009-04-29 14:15:19 +00:00
parent 7f976bd883
commit 76caa7db75

View File

@ -68,8 +68,25 @@ $GLOBALS['egw_info'] = array(
)
);
// if you move this file somewhere else, you need to adapt the path to the header!
include(dirname(__FILE__).'/header.inc.php');
try
{
include(dirname(__FILE__).'/header.inc.php');
}
catch (egw_exception_no_permission_app $e)
{
if (isset($GLOBALS['egw_info']['user']['apps']['filemanager']))
{
$GLOBALS['egw_info']['currentapp'] = 'filemanager';
}
elseif (isset($GLOBALS['egw_info']['user']['apps']['sitemgr-site']))
{
$GLOBALS['egw_info']['currentapp'] = 'sitemgr-site';
}
else
{
throw $e;
}
}
$headertime = microtime(true);
$webdav_server = new vfs_webdav_server();