index.php 890 B

1234567891011121314151617181920212223242526
  1. <?php
  2. if (cfr('ROOT')) {
  3. $crontab = new CrontabEditor();
  4. show_window('', wf_BackLink($crontab::URL_BACK));
  5. $hostSystem = $crontab->getSystemName(); //politically incorrect
  6. if ($hostSystem == 'FreeBSD' OR ispos($hostSystem, 'Debian')) { //yes it's discrimination. Fuck you.
  7. if (ubRouting::checkPost(array('editfilepath'))) {
  8. //something changed?
  9. $crontab->saveTempCrontab();
  10. $installResult = $crontab->installNewCrontab();
  11. if (!empty($installResult)) {
  12. show_error($installResult);
  13. } else {
  14. //its ok
  15. ubRouting::nav($crontab::URL_ME);
  16. }
  17. }
  18. show_window(__('Crontab'), $crontab->renderEditForm());
  19. } else {
  20. show_error(__('Sorry your system is currently unsupported'));
  21. }
  22. } else {
  23. show_error(__('Access denied'));
  24. }