From 5963221249cfa9ebce3e788cb1a78a15e50ac4c6 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 2 May 2013 10:18:48 +0200 Subject: Fix issue #65 : création d'un vrai script de mise à jour permettant de mettre tous les flux à jour via CRON MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actualize_script.php | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 actualize_script.php (limited to 'actualize_script.php') diff --git a/actualize_script.php b/actualize_script.php new file mode 100755 index 000000000..cb4cbf351 --- /dev/null +++ b/actualize_script.php @@ -0,0 +1,45 @@ +. +# +# ***** END LICENSE BLOCK ***** + +// Constantes de chemins +define ('PUBLIC_PATH', realpath (dirname (__FILE__) . '/public')); +define ('LIB_PATH', realpath (PUBLIC_PATH . '/../lib')); +define ('APP_PATH', realpath (PUBLIC_PATH . '/../app')); +define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log')); +define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache')); + +$_GET['c'] = 'feed'; +$_GET['a'] = 'actualize'; +$_GET['force'] = true; +$_SERVER['HTTP_HOST'] = ''; + +set_include_path (get_include_path () + . PATH_SEPARATOR + . LIB_PATH + . PATH_SEPARATOR + . LIB_PATH . '/minz' + . PATH_SEPARATOR + . APP_PATH); + +require (APP_PATH . '/App_FrontController.php'); + +$front_controller = new App_FrontController (); +$front_controller->init (); +$front_controller->run (); -- cgit v1.2.3 From 91281814757239c1bfe67e93edfbb6cabe8d0a65 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Thu, 2 May 2013 10:19:46 +0200 Subject: Suppression du bloc licence dans actualize_script.php --- actualize_script.php | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'actualize_script.php') diff --git a/actualize_script.php b/actualize_script.php index cb4cbf351..76bbe2e4f 100755 --- a/actualize_script.php +++ b/actualize_script.php @@ -1,22 +1,4 @@ . -# -# ***** END LICENSE BLOCK ***** // Constantes de chemins define ('PUBLIC_PATH', realpath (dirname (__FILE__) . '/public')); -- cgit v1.2.3