constants.php 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. define('FRESHRSS_VERSION', '1.8.1-dev');
  3. define('FRESHRSS_WEBSITE', 'https://freshrss.org');
  4. define('FRESHRSS_WIKI', 'https://freshrss.github.io/FreshRSS/');
  5. define('FRESHRSS_USERAGENT', 'FreshRSS/' . FRESHRSS_VERSION . ' (' . PHP_OS . '; ' . FRESHRSS_WEBSITE . ')');
  6. // PHP text output compression http://php.net/ob_gzhandler (better to do it at Web server level)
  7. define('PHP_COMPRESSION', false);
  8. // maximum log file size, before it will be purged (defaults to 512000 = 500kB)
  9. define('MAX_LOG_SIZE', 512000);
  10. // Constantes de chemins
  11. define('FRESHRSS_PATH', dirname(__FILE__));
  12. define('PUBLIC_PATH', FRESHRSS_PATH . '/p');
  13. define('PUBLIC_TO_INDEX_PATH', '/i');
  14. define('INDEX_PATH', PUBLIC_PATH . PUBLIC_TO_INDEX_PATH);
  15. define('PUBLIC_RELATIVE', '..');
  16. define('DATA_PATH', FRESHRSS_PATH . '/data');
  17. define('UPDATE_FILENAME', DATA_PATH . '/update.php');
  18. define('USERS_PATH', DATA_PATH . '/users');
  19. define('CACHE_PATH', DATA_PATH . '/cache');
  20. define('PSHB_PATH', DATA_PATH . '/PubSubHubbub');
  21. define('LIB_PATH', FRESHRSS_PATH . '/lib');
  22. define('APP_PATH', FRESHRSS_PATH . '/app');
  23. define('EXTENSIONS_PATH', FRESHRSS_PATH . '/extensions');
  24. define('TMP_PATH', sys_get_temp_dir());