2 require_once(
"../class/config.php");
3 include_once(
"head.php");
6 "cronupdate" => array (
"post",
"array",
""),
10 if (!empty($cronupdate)) {
11 if (! $cron->update($cronupdate)) {
21 <h3><?php
__(
"Scheduled tasks"); ?></h3>
26 <p
class=
"alert alert-danger"><?php echo
$error ?></p>
29 <form method=
"post" action=
"cron.php" id=
"main" name=
"cron" >
36 <th><?php
__(
"URL"); ?></th>
37 <th><?php
__(
"Schedule"); ?></th>
38 <th><?php
__(
"User"); ?></th>
39 <th><?php
__(
"Password"); ?></th>
40 <th><?php
__(
"Email report"); ?></th>
50 <tr
class=
"<?php echo ($i%2)?"lst1
":"lst2
"; ?>">
52 <?php
if (
isset(
$lst_cron[
$i])) echo
"<input type='hidden' name='cronupdate[$i][id]' value='".
$lst_cron[$i][
'id'].
"' />"; ?>
54 <a href=
"javascript:cleancron('<?php echo $i ?>');"><img src=
"images/delete.png" alt=
"<?php __("Delete
");?>" title=
"<?php __("Delete
");?>"/></a>
57 <label
for=
"crup_url_<?php echo $i?>"><?php
__(
"Called URL"); ?> :</label><br/><input type=
"text" id=
"crup_url_<?php echo $i?>" name=
"<?php echo "cronupdate[
$i][url]
";?>" size=
"40" maxlength=
"255" value=
"<?php if (isset($lst_cron[$i]['url'])) { echo htmlentities($lst_cron[$i]['url']);} ?>"/>
60 <?php
__(
"Period:");?> <select name=
'cronupdate[<?php echo $i; ?>][schedule]'>
62 foreach ($cron->schedule() as $cs) {
63 echo
"<option value='".$cs[
'unit'].
"'";
65 echo
" selected='selected' ";
67 echo
" >".$cs[
'name'];
74 </tr><tr
class=
"<?php echo ($i%2)?"lst1
":"lst2
"; ?>">
75 <td><label
for=
"crup_user_<?php echo $i?>"><?php
__(
"HTTP user (optional)"); ?> :</label><br/><input type=
"text" id=
"crup_user_<?php echo $i?>" name=
"<?php echo "cronupdate[
$i][user]
";?>" size=
"20" maxlength=
"64" value=
"<?php if (isset($lst_cron[$i]['user'])) { echo htmlentities($lst_cron[$i]['user']);} ?>"/></td>
76 <td><label
for=
"crup_pass_<?php echo $i?>"><?php
__(
"HTTP password (optional)"); ?> :</label><br/><input type=
"text" id=
"crup_pass_<?php echo $i?>" name=
"<?php echo "cronupdate[
$i][password]
";?>" size=
"20" maxlength=
"64" value=
"<?php if (isset($lst_cron[$i]['password'])) { echo htmlentities($lst_cron[$i]['password']);} ?>"/></td>
77 <td><label
for=
"crup_mail_<?php echo $i?>"><?php
__(
"Mail address (optional)"); ?> :</label><br/><input type=
"text" id=
"crup_mail_<?php echo $i?>" name=
"<?php echo "cronupdate[
$i][email]
";?>" size=
"25" maxlength=
"64" value=
"<?php if (isset($lst_cron[$i]['email'])) { echo htmlentities($lst_cron[$i]['email']);} ?>"/></td>
81 <p><input type=
"submit" name=
"submit" class=
"inb ok" value=
"<?php __("Apply the modifications
"); ?>" /></p>
85 <script type=
"text/javascript">
87 document.getElementById(
'crup_url_'+i).value =
'';
88 document.getElementById(
'crup_user_'+i).value =
'';
89 document.getElementById(
'crup_pass_'+i).value =
'';
90 document.getElementById(
'crup_mail_'+i).value =
'';
95 <?php include_once(
"foot.php"); ?>