[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/doc/rpm-build/ -> class.uiasyncservice.inc.php.patch (source)

   1  --- egroupware.orig/admin/inc/class.uiasyncservice.inc.php    2005-10-14 19:03:16.000000000 +0200
   2  +++ egroupware/admin/inc/class.uiasyncservice.inc.php    2006-03-09 21:37:20.000000000 +0100
   3  @@ -106,7 +106,7 @@
   4   
   5               $last_run = $async->last_check_run();
   6               $lr_date = $last_run['end'] ? $GLOBALS['egw']->common->show_date($last_run['end']) : lang('never');
   7  -            echo '<p><b>'.lang('Async services last executed').'</b>: '.$lr_date.' ('.$last_run['run_by'].")</p>\n<hr>\n";
   8  +            echo '<p><b>'. lang('Async services last executed'). '</b>: '. $lr_date. ' ('. $last_run['run_by']. ")</p>\n<hr>\n";
   9   
  10               if (isset($_POST['asyncservice']) && $_POST['asyncservice'] != $GLOBALS['egw_info']['server']['asyncservice'])
  11               {
  12  @@ -116,16 +116,17 @@
  13                   $config->save_repository();
  14                   unset($config);
  15               }
  16  -            if (!$async->only_fallback)
  17  +
  18  +            /*if (!$async->only_fallback)
  19               {
  20                   $installed = $async->installed();
  21                   if (is_array($installed) && isset($installed['cronline']))
  22  -                {
  23  +                {*/
  24                       $async_use['cron'] = lang('crontab only (recomended)');
  25  -                }
  26  +            /*    }
  27               }
  28               $async_use['']    = lang('fallback (after each pageview)');
  29  -            $async_use['off'] = lang('disabled (not recomended)');
  30  +            $async_use['off'] = lang('disabled (not recomended)'); */
  31               echo '<p><b>'.lang('Run Asynchronous services').'</b>'.
  32                   ' <select name="asyncservice" onChange="this.form.submit();">';
  33               foreach ($async_use as $key => $label)
  34  @@ -147,8 +148,9 @@
  35               }
  36               else
  37               {
  38  -                echo '<p>'.lang('Installed crontab').": \n";
  39  +                echo '<p>'.lang('Installed crontab').": /etc/cron.d/egroupware\n";
  40   
  41  +                /*
  42                   if (is_array($installed) && isset($installed['cronline']))
  43                   {
  44                       echo "$installed[cronline]</p>";
  45  @@ -161,6 +163,7 @@
  46                   {
  47                       echo '<b>'.lang('asyncservices not yet installed or other error (%1) !!!',$installed['error'])."</b></p>\n";
  48                   }
  49  +                */
  50                   echo '<p><input type="submit" name="install" value="'.lang('Install crontab')."\">\n".
  51                       lang("for the times below (empty values count as '*', all empty = every minute)")."</p>\n";
  52               }


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