fixed patch to match current class

This commit is contained in:
Ralf Becker 2009-06-01 18:32:47 +00:00
parent cc6524e4a4
commit 27dd82637b

View File

@ -1,52 +1,44 @@
--- egroupware.orig/admin/inc/class.uiasyncservice.inc.php 2005-10-14 19:03:16.000000000 +0200 Index: egroupware/admin/inc/class.uiasyncservice.inc.php
+++ egroupware/admin/inc/class.uiasyncservice.inc.php 2006-03-09 21:37:20.000000000 +0100 ===================================================================
@@ -106,7 +106,7 @@ --- egroupware/admin/inc/class.uiasyncservice.inc.php (Revision 27137)
+++ egroupware/admin/inc/class.uiasyncservice.inc.php (Arbeitskopie)
$last_run = $async->last_check_run(); @@ -96,16 +96,20 @@
$lr_date = $last_run['end'] ? $GLOBALS['egw']->common->show_date($last_run['end']) : lang('never'); $config->save_repository();
- echo '<p><b>'.lang('Async services last executed').'</b>: '.$lr_date.' ('.$last_run['run_by'].")</p>\n<hr>\n"; unset($config);
+ echo '<p><b>'. lang('Async services last executed'). '</b>: '. $lr_date. ' ('. $last_run['run_by']. ")</p>\n<hr>\n"; }
+/*
if (isset($_POST['asyncservice']) && $_POST['asyncservice'] != $GLOBALS['egw_info']['server']['asyncservice']) if (!$async->only_fallback)
{
$installed = $async->installed();
if (is_array($installed) && isset($installed['cronline']))
{ {
@@ -116,16 +116,17 @@ +*/
$config->save_repository(); $async_use['cron'] = lang('crontab only (recomended)');
unset($config); +/*
} }
- if (!$async->only_fallback) }
+ $async_use[''] = lang('fallback (after each pageview)');
+ /*if (!$async->only_fallback) $async_use['off'] = lang('disabled (not recomended)');
{ +*/
$installed = $async->installed(); echo '<p><b>'.lang('Run Asynchronous services').'</b>'.
if (is_array($installed) && isset($installed['cronline'])) ' <select name="asyncservice" onChange="this.form.submit();">';
- { foreach ($async_use as $key => $label)
+ {*/ @@ -127,8 +131,9 @@
$async_use['cron'] = lang('crontab only (recomended)'); }
- } else
+ /* } {
} - echo '<p>'.lang('Installed crontab').": \n";
$async_use[''] = lang('fallback (after each pageview)'); + echo '<p>'.lang('Installed crontab').": /etc/cron.d/egroupware\n";
- $async_use['off'] = lang('disabled (not recomended)');
+ $async_use['off'] = lang('disabled (not recomended)'); */
echo '<p><b>'.lang('Run Asynchronous services').'</b>'.
' <select name="asyncservice" onChange="this.form.submit();">';
foreach ($async_use as $key => $label)
@@ -147,8 +148,9 @@
}
else
{
- echo '<p>'.lang('Installed crontab').": \n";
+ echo '<p>'.lang('Installed crontab').": /etc/cron.d/egroupware\n";
+ /* +/*
if (is_array($installed) && isset($installed['cronline'])) if (is_array($installed) && isset($installed['cronline']))
{ {
echo "$installed[cronline]</p>"; echo "$installed[cronline]</p>";
@@ -161,6 +163,7 @@ @@ -143,6 +148,7 @@
{
echo '<b>'.lang('asyncservices not yet installed or other error (%1) !!!',$installed['error'])."</b></p>\n";
}
+ */
echo '<p><input type="submit" name="install" value="'.lang('Install crontab')."\">\n".
lang("for the times below (empty values count as '*', all empty = every minute)")."</p>\n";
} }
echo '<p><input type="submit" name="install" value="'.lang('Install crontab')."\">\n".
lang("for the times below (empty values count as '*', all empty = every minute)")."</p>\n";
+*/
}
echo "<hr><table border=0><tr>\n";