You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
694 B

<?php
require_once('../../scripts/sys_utils.php');
require_once('../../scripts/distro_web_utils.php');
$CTID = -1;
$CPARAM = '';
if( isset( $_GET['TID'] ) ){
$CTID = intval( $_GET['TID'] );
} else if( isset( $_POST['TID'] ) ){
$CTID = intval( $_POST['TID'] );
};
if( $CTID > -1 ){
switch( $CTID ){
case 4: $CPARAM = intval( $_GET['CTS'] ); break;
case 7: $CPARAM = $_POST['CTZ']; break;
case 15: $CPARAM = $_POST['FID']; break;
};
if( !create_cron_task( $CTID, $CPARAM ) ){
header('location: /');
} else {
header('location: /task_wait.php');
};
exit();
};
print_PAGE_HEADER( 1 );
print_TASK_INFO();
print_PAGE_BOTTOM();
?>