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.
 
 
 
 

46 lines
1.1 KiB

<?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;
};
case 27:
case 28:
case 29:
case 30:
case 31:
case 32: $CPARAM = $_GET['MID']; break;
case 33:
case 34:
case 35: $CPARAM = $_GET['MID'] .':'. $_GET['AUX']; 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();
?>