Automatically exported from code.google.com/p/planningalerts
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.
|
- <?php
-
- //includes
- require_once('config.php');
- require_once('application_parser.php');
- require_once('mailer.php');
-
- if (!isset($_GET['action'])){
- print "nothing to see here.";
- }else{
- echo "starting action " . $_GET['action'];
- }
-
- $action = $_GET['action'];
-
- if($action == "scrape"){
-
- //Launch the parser
- $application_parser = new application_parser();
- $application_parser->date = getdate(strtotime("-" . SCRAPE_DELAY . " days"));
- $application_parser->run();
-
-
- }
-
- if ($action == "mail"){
- //Launch the mailer
- $mailer = new mailer();
- $mailer->run();
- }
-
-
- ?>
|