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.

26 lines
694 B

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. };
  17. if( !create_cron_task( $CTID, $CPARAM ) ){
  18. header('location: /');
  19. } else {
  20. header('location: /task_wait.php');
  21. };
  22. exit();
  23. };
  24. print_PAGE_HEADER( 1 );
  25. print_TASK_INFO();
  26. print_PAGE_BOTTOM();
  27. ?>