diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/data/Configuration.array.php | 20 | ||||
| -rwxr-xr-x | public/index.php | 12 |
2 files changed, 26 insertions, 6 deletions
diff --git a/public/data/Configuration.array.php b/public/data/Configuration.array.php new file mode 100644 index 000000000..52850adf0 --- /dev/null +++ b/public/data/Configuration.array.php @@ -0,0 +1,20 @@ +<?php +return array ( + 0 => array ( + 'posts_per_page' => 20, + 'default_view' => 'all', + 'display_posts' => 'no', + 'sort_order' => 'low_to_high', + 'old_entries' => 3, + 'shortcuts' => array ( + 'mark_read' => 'r', + 'mark_favorite' => 'f', + 'go_website' => 'enter', + 'next_entry' => 'page_down', + 'prev_entry' => 'page_up', + 'next_page' => 'right', + 'prev_page' => 'left', + ), + 'mail_login' => '', + ), +); diff --git a/public/index.php b/public/index.php index 8d7dc4ae4..91146dc14 100755 --- a/public/index.php +++ b/public/index.php @@ -19,11 +19,11 @@ # ***** END LICENSE BLOCK ***** // Constantes de chemins -define ('PUBLIC_PATH', realpath (dirname(__FILE__))); -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')); +define ('PUBLIC_PATH', realpath (dirname (__FILE__))); +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')); set_include_path (get_include_path () . PATH_SEPARATOR @@ -31,7 +31,7 @@ set_include_path (get_include_path () . PATH_SEPARATOR . APP_PATH); -require_once(APP_PATH.'/App_FrontController.php'); +require (APP_PATH . '/App_FrontController.php'); $front_controller = new App_FrontController (); $front_controller->init (); |
