[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/cron asyncservices.php,1.1.2.4,1.1.2.5
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/cron asyncservices.php,1.1.2.4,1.1.2.5 |
Date: |
Sat, 05 Jul 2003 16:35:58 -0400 |
Update of /cvsroot/phpgroupware/phpgwapi/cron
In directory subversions:/tmp/cvs-serv10114/cron
Modified Files:
Tag: Version-0_9_16-branch
asyncservices.php
Log Message:
update asyncservice to store user-info and create a "normal" phpgw environment
(eg. preferences) for the job to run
Index: asyncservices.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/cron/asyncservices.php,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -r1.1.2.4 -r1.1.2.5
*** asyncservices.php 13 Jun 2003 10:42:52 -0000 1.1.2.4
--- asyncservices.php 5 Jul 2003 20:35:56 -0000 1.1.2.5
***************
*** 27,52 ****
$_GET['domain'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] :
'default';
! // As debian does not compile the db-support into the cgi-binary of php
we have to load it manualy.
! // Unfortunaly we cant include the header to find out which db to use,
as header.inc.php includes
! // phpgwapi/inc/functions.inc.php which includes/CreateObject's the
db-class. The first call of the
! // db-class fails on debian as mysql or pgsql is not loaded.
! // Therefore we now load mysql and pgsql support if its not already
loaded.
!
! $db_extensions_to_load = array(
! 'mysql' => 'mysql',
! 'pgsql' => 'pgsql'
);
! foreach ($db_extensions_to_load as $db => $extension_name)
{
! if (!extension_loaded($extension_name) &&
!dl($extension_name.'.so'))
! {
! echo "Extension '$db' is not loaded and can't be loaded
via dl('$extension_name.so') !!!\n";
! }
}
! $GLOBALS['phpgw_info']['flags'] = array(
! 'currentapp' => 'login'
! );
! include($path_to_phpgroupware.'/header.inc.php');
$num = ExecMethod('phpgwapi.asyncservice.check_run','crontab');
// if the following comment got removed, you will get an email from
cron for every check performed
--- 27,47 ----
$_GET['domain'] = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] :
'default';
! $GLOBALS['phpgw_info']['flags'] = array(
! 'currentapp' => 'login',
! 'noapi' => True // this stops header.inc.php to
include phpgwapi/inc/function.inc.php
);
! include($path_to_phpgroupware.'/header.inc.php');
! unset($GLOBALS['phpgw_info']['flags']['noapi']);
!
! $db_type = $GLOBALS['phpgw_domain'][$_GET['domain']]['db_type'];
! if (!extension_loaded($db_type) && !dl($db_type.'.so'))
{
! echo "Extension '$db_type' is not loaded and can't be loaded
via dl('$db_type.so') !!!\n";
}
+
+ $GLOBALS['phpgw_info']['server']['sessions_type'] = 'db';
! include(PHPGW_API_INC.'/functions.inc.php');
!
$num = ExecMethod('phpgwapi.asyncservice.check_run','crontab');
// if the following comment got removed, you will get an email from
cron for every check performed
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/cron asyncservices.php,1.1.2.4,1.1.2.5,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: news_admin/inc class.uiexport.inc.php,1.1.2.1,1.1.2.2
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/setup setup.inc.php,1.37.2.6.2.8,1.37.2.6.2.9 tables_current.inc.php,1.32.2.6.2.8,1.32.2.6.2.9 tables_update.inc.php,1.53.2.9.2.11,1.53.2.9.2.12
- Previous by thread:
[Phpgroupware-cvs] CVS: news_admin/inc class.uiexport.inc.php,1.1.2.1,1.1.2.2
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/setup setup.inc.php,1.37.2.6.2.8,1.37.2.6.2.9 tables_current.inc.php,1.32.2.6.2.8,1.32.2.6.2.9 tables_update.inc.php,1.53.2.9.2.11,1.53.2.9.2.12
- Index(es):