[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/cron/ -> asyncwrapper.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare API - Timed Asynchron Services for eGroupWare                 *
   4      * Written by Lars Kneschke <l.kneschke@metaways.de>                        *
   5      * This script executes the asyncservice for all domains                    *
   6      * -------------------------------------------------------------------------*
   7      * This library is part of the eGroupWare API                               *
   8      * http://www.egroupware.org/                                               *
   9      * ------------------------------------------------------------------------ *
  10      * This library is free software; you can redistribute it and/or modify it  *
  11      * under the terms of the GNU Lesser General Public License as published by *
  12      * the Free Software Foundation; version 2.1 of the License.                *
  13      * This library is distributed in the hope that it will be useful, but      *
  14      * WITHOUT ANY WARRANTY; without even the implied warranty of               *
  15      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     *
  16      * See the GNU Lesser General Public License for more details.              *
  17      * You should have received a copy of the GNU Lesser General Public License *
  18      * along with this library; if not, write to the Free Software Foundation,  *
  19      * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            *
  20      \**************************************************************************/
  21  
  22      /* $Id: asyncwrapper.php 20520 2006-03-09 20:40:25Z lkneschke $ */
  23  
  24      $path_to_egroupware = realpath(dirname(__FILE__).'/../..');    //  need to be adapted if this script is moved somewhere else
  25      
  26      $headerIncPHP = file($path_to_egroupware. '/header.inc.php');
  27      
  28      foreach($headerIncPHP as $line) {
  29          if(preg_match("/GLOBALS\['egw_domain']\['(.*)']/", $line, $matches)) {
  30              system($_ENV["_"]. ' -q -d memory_limit=16M /usr/share/egroupware/phpgwapi/cron/asyncservices.php '. $matches[1]);
  31          }
  32      }
  33  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7