Automatically exported from code.google.com/p/planningalerts
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

33 行
710 B

  1. <?php
  2. //includes
  3. require_once('config.php');
  4. require_once('application_parser.php');
  5. require_once('mailer.php');
  6. if (!isset($_GET['action'])){
  7. print "nothing to see here.";
  8. }else{
  9. echo "starting action " . $_GET['action'];
  10. }
  11. $action = $_GET['action'];
  12. if($action == "scrape"){
  13. //Launch the parser
  14. $application_parser = new application_parser();
  15. $application_parser->date = getdate(strtotime("-" . SCRAPE_DELAY . " days"));
  16. $application_parser->run();
  17. }
  18. if ($action == "mail"){
  19. //Launch the mailer
  20. $mailer = new mailer();
  21. $mailer->run();
  22. }
  23. ?>