import.php 574 B

123456789101112131415161718192021
  1. <?php
  2. header('Access-Control-Allow-Origin: *');
  3. header('Cache-Control: no-cache, must-revalidate');
  4. header('Content-type: application/json');
  5. require_once (dirname(__FILE__). "/ImportController.php");
  6. $database['connect'] = 'mysql:host=localhost;dbname=tasks';
  7. $database['user'] = 'root';
  8. $database['password'] = 'gc01mysql';
  9. $imap['server'] = "{imap.1und1.de:993/imap/ssl}INBOX";
  10. $imap['user'] = "status@global-cube.de";
  11. $imap['password'] = "gc01smtp";
  12. $importCtrl = new ImportController($database, $imap);
  13. $importCtrl->Workflow();
  14. if ($importCtrl->fail) {
  15. die(23);
  16. }