Okay das Problem ist gelöst.
Nun neues Problem beim Editieren:
MySQL wird nicht geupdatet.
Ich krieg die Meldung:
Notice: Undefined variable: cron_id in /var/www/ispcp/gui/client/cronjobs_edit.php on line 320
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8
Und kriege eine ERROR Mail von ISPCP.
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8
File: /var/www/ispcp/gui/client/cronjobs_edit.php (Line: 226) Function: exec_query
File: /var/www/ispcp/gui/client/cronjobs_edit.php (Line: 320) Function: gen_cron_job
Betroffene Bereiche:
PHP Code:
function gen_cron_job(&$tpl, &$sql, $cron_id, $user_id, &$new_value) {
$query = "
SELECT
`id`, `domain`, `name`, `coment`, `min`, `hour`, `day`, `mon`, `dow`, `cmd`, `runonce`,`lastrun`, `activ`
FROM
`hcrondtab`
WHERE
domain = $user_id
AND
id = $cron_id
";
$rs = exec_query($sql, $query, $cron_id);
if ($rs->RecordCount() == 0) {
set_page_message(tr('No CronJob with this ID!'));
header('Location: cronjobs_overview.php');
exit(0);
}
und
PHP Code:
if (isset($_GET['cron_id']) && is_numeric($_GET['cron_id']) && isset($_POST['Submit'])) update_cron_job($tpl, $sql, $_GET['cron_id'], $_SESSION['user_id'], $min, $hour, $day_of_month, $month, $day_of_week, $file_type);
gen_cron_job($tpl, $sql, $cron_id, $_SESSION['user_id'], $new_value);
Gruß WU