aboutsummaryrefslogtreecommitdiff
path: root/constants.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:35:06 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:35:06 +0100
commitb8c4afadf4bff7ac282ac5933eedccb1c666d873 (patch)
treeaef58395f1aecf027532fdc579b73084edfb8aa8 /constants.php
parenta532a023633ac692bd573d4ec29b7871e8e4c19f (diff)
Nouveau fichier constants.php
En particulier pour stocker le numéro de version de FreshRSS utilisé entre autres par https://github.com/marienfressinaud/FreshRSS/issues/174 et centraliser les constantes de chemins Implémente https://github.com/marienfressinaud/FreshRSS/issues/271
Diffstat (limited to 'constants.php')
-rw-r--r--constants.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/constants.php b/constants.php
new file mode 100644
index 000000000..260f01986
--- /dev/null
+++ b/constants.php
@@ -0,0 +1,10 @@
+<?php
+define('FRESHRSS_VERSION', '0.7-dev');
+define('FRESHRSS_WEBSITE', 'http://marienfressinaud.github.io/FreshRSS/');
+
+// Constantes de chemins
+define ('PUBLIC_PATH', realpath (dirname (__FILE__) . '/public'));
+define ('LIB_PATH', realpath (dirname (__FILE__) . '/lib'));
+define ('APP_PATH', realpath (dirname (__FILE__) . '/app'));
+define ('LOG_PATH', realpath (dirname (__FILE__) . '/log'));
+define ('CACHE_PATH', realpath (dirname (__FILE__) . '/cache'));