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.
 
 
 
 

37 lines
969 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;
case 25:{
$CPARAM = sprintf( "%04d-%02d-%02d %02d:%02d:%02d",
intval( $_GET['CTSY'] ),
intval( $_GET['CTSM'] ),
intval( $_GET['CTSD'] ),
intval( $_GET['CTSH'] ),
intval( $_GET['CTSX'] ),
intval( $_GET['CTSS'] ));
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();
?>