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.

36 lines
969 B

4 years ago
​
​
​
​
​
​
​
​
​
​
3 years ago
4 years ago
​
​
​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../../scripts/sys_utils.php');
  3. require_once('../../scripts/distro_web_utils.php');
  4. $CTID = -1;
  5. $CPARAM = '';
  6. if( isset( $_GET['TID'] ) ){
  7. $CTID = intval( $_GET['TID'] );
  8. } else if( isset( $_POST['TID'] ) ){
  9. $CTID = intval( $_POST['TID'] );
  10. };
  11. if( $CTID > -1 ){
  12. switch( $CTID ){
  13. case 4: $CPARAM = intval( $_GET['CTS'] ); break;
  14. case 7: $CPARAM = $_POST['CTZ']; break;
  15. case 15: $CPARAM = $_POST['FID']; break;
  16. case 25:{
  17. $CPARAM = sprintf( "%04d-%02d-%02d %02d:%02d:%02d",
  18. intval( $_GET['CTSY'] ),
  19. intval( $_GET['CTSM'] ),
  20. intval( $_GET['CTSD'] ),
  21. intval( $_GET['CTSH'] ),
  22. intval( $_GET['CTSX'] ),
  23. intval( $_GET['CTSS'] ));
  24. break;
  25. };
  26. };
  27. if( !create_cron_task( $CTID, $CPARAM ) ){
  28. header('location: /');
  29. } else {
  30. header('location: /task_wait.php');
  31. };
  32. exit();
  33. };
  34. print_PAGE_HEADER( 1 );
  35. print_TASK_INFO();
  36. print_PAGE_BOTTOM();
  37. ?>