actualize_script.php 816 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. // Constantes de chemins
  3. define ('PUBLIC_PATH', realpath (dirname (__FILE__) . '/public'));
  4. define ('LIB_PATH', realpath (PUBLIC_PATH . '/../lib'));
  5. define ('APP_PATH', realpath (PUBLIC_PATH . '/../app'));
  6. define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log'));
  7. define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache'));
  8. $_GET['c'] = 'feed';
  9. $_GET['a'] = 'actualize';
  10. $_GET['force'] = true;
  11. $_SERVER['HTTP_HOST'] = '';
  12. set_include_path (get_include_path ()
  13. . PATH_SEPARATOR
  14. . LIB_PATH
  15. . PATH_SEPARATOR
  16. . LIB_PATH . '/minz'
  17. . PATH_SEPARATOR
  18. . APP_PATH);
  19. require (APP_PATH . '/App_FrontController.php');
  20. $front_controller = new App_FrontController ();
  21. $front_controller->init ();
  22. Session::_param('mail', true); // permet de se passer de la phase de connexion
  23. $front_controller->run ();