mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
1) $GLOBALS['phpgw{_info}'] ==> $GLOBALS['egw{_info}']
2) removed loading of required db-extension, as it's now done in the db-class
This commit is contained in:
parent
d238e9d9cd
commit
84b5587e81
@ -37,7 +37,7 @@
|
|||||||
fclose($f);
|
fclose($f);
|
||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['phpgw_info']['flags'] = array(
|
$GLOBALS['egw_info']['flags'] = array(
|
||||||
'currentapp' => 'login',
|
'currentapp' => 'login',
|
||||||
'noapi' => True // this stops header.inc.php to include phpgwapi/inc/function.inc.php
|
'noapi' => True // this stops header.inc.php to include phpgwapi/inc/function.inc.php
|
||||||
);
|
);
|
||||||
@ -53,10 +53,10 @@
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
include($path_to_egroupware.'/header.inc.php');
|
include($path_to_egroupware.'/header.inc.php');
|
||||||
unset($GLOBALS['phpgw_info']['flags']['noapi']);
|
unset($GLOBALS['egw_info']['flags']['noapi']);
|
||||||
|
|
||||||
$db_type = $GLOBALS['phpgw_domain'][$_GET['domain']]['db_type'];
|
$db_type = $GLOBALS['egw_domain'][$_GET['domain']]['db_type'];
|
||||||
if (!isset($GLOBALS['phpgw_domain'][$_GET['domain']]) || empty($db_type))
|
if (!isset($GLOBALS['egw_domain'][$_GET['domain']]) || empty($db_type))
|
||||||
{
|
{
|
||||||
echo $msg = "asyncservice.php: Domain '$_GET[domain]' is not configured or renamed, exiting !!!\n";
|
echo $msg = "asyncservice.php: Domain '$_GET[domain]' is not configured or renamed, exiting !!!\n";
|
||||||
if (defined('ASYNC_LOG'))
|
if (defined('ASYNC_LOG'))
|
||||||
@ -67,28 +67,7 @@
|
|||||||
}
|
}
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
// some constanst for pre php4.3
|
$GLOBALS['egw_info']['server']['sessions_type'] = 'db'; // no php4-sessions availible for cgi
|
||||||
if (!defined('PHP_SHLIB_SUFFIX'))
|
|
||||||
{
|
|
||||||
define('PHP_SHLIB_SUFFIX',strtoupper(substr(PHP_OS, 0,3)) == 'WIN' ? 'dll' : 'so');
|
|
||||||
}
|
|
||||||
if (!defined('PHP_SHLIB_PREFIX'))
|
|
||||||
{
|
|
||||||
define('PHP_SHLIB_PREFIX',PHP_SHLIB_SUFFIX == 'dll' ? 'php_' : '');
|
|
||||||
}
|
|
||||||
$db_extension = PHP_SHLIB_PREFIX.$db_type.'.'.PHP_SHLIB_SUFFIX;
|
|
||||||
if (!extension_loaded($db_type) && !dl($db_extension))
|
|
||||||
{
|
|
||||||
echo $msg = "asyncservice.php: Extension '$db_type' is not loaded and can't be loaded via dl('$db_extension') !!!\n";
|
|
||||||
if (defined('ASYNC_LOG'))
|
|
||||||
{
|
|
||||||
$f = fopen(ASYNC_LOG,'a+');
|
|
||||||
fwrite($f,$msg);
|
|
||||||
fclose($f);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['phpgw_info']['server']['sessions_type'] = 'db'; // no php4-sessions availible for cgi
|
|
||||||
|
|
||||||
include(PHPGW_API_INC.'/functions.inc.php');
|
include(PHPGW_API_INC.'/functions.inc.php');
|
||||||
|
|
||||||
@ -104,4 +83,4 @@
|
|||||||
fwrite($f,$msg);
|
fwrite($f,$msg);
|
||||||
fclose($f);
|
fclose($f);
|
||||||
}
|
}
|
||||||
$GLOBALS['phpgw']->common->phpgw_exit();
|
$GLOBALS['egw']->common->phpgw_exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user