phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/cron asyncservices.php,1.2,1.3


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/cron asyncservices.php,1.2,1.3
Date: Mon, 21 Jul 2003 14:20:47 -0400

Update of /cvsroot/phpgroupware/phpgwapi/cron
In directory subversions:/tmp/cvs-serv13603/cron

Modified Files:
        asyncservices.php 
Log Message:
- added update from version 0.9.14.004-6 (security-fixes) and 0.9.14.508 
(asyncservice)
- merged asyncservices from .16

Index: asyncservices.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/cron/asyncservices.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** asyncservices.php   27 Apr 2003 23:19:49 -0000      1.2
--- asyncservices.php   21 Jul 2003 18:20:45 -0000      1.3
***************
*** 25,42 ****
  
        $path_to_phpgroupware = '../..';        // need to be adapted if this 
script is moved somewhere else
!       $GLOBALS['domain'] = 'default';
  
        $GLOBALS['phpgw_info']['flags'] = array(
!               'currentapp' => 'login'
        );
        include($path_to_phpgroupware.'/header.inc.php');
  
!       $num = ExecMethod('phpgwapi.asyncservice.check_run');
        
        // if the following comment got removed, you will get an email from 
cron for every check performed
!       //echo date('Y/m/d H:i:s ').($num ? "$num job(s) executed" : 'Nothing 
to execute')."\n";
  
        $GLOBALS['phpgw']->common->phpgw_exit();
- 
- 
- 
--- 25,50 ----
  
        $path_to_phpgroupware = '../..';        // need to be adapted if this 
script is moved somewhere else
!       $_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
!       //echo date('Y/m/d H:i:s ').$_GET['domain'].': '.($num ? "$num job(s) 
executed" : 'Nothing to execute')."\n";
  
        $GLOBALS['phpgw']->common->phpgw_exit();





reply via email to

[Prev in Thread] Current Thread [Next in Thread]