Installer/Updater
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.

45 lines
1.1 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. case 27:
  27. case 28:
  28. case 29:
  29. case 30:
  30. case 31:
  31. case 32: $CPARAM = $_GET['MID']; break;
  32. case 33:
  33. case 34:
  34. case 35: $CPARAM = $_GET['MID'] .':'. $_GET['AUX']; break;
  35. };
  36. if( !create_cron_task( $CTID, $CPARAM ) ){
  37. header('location: /');
  38. } else {
  39. header('location: /task_wait.php');
  40. };
  41. exit();
  42. };
  43. print_PAGE_HEADER( 1 );
  44. print_TASK_INFO();
  45. print_PAGE_BOTTOM();
  46. ?>