[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 03/05: Correct bug with NOALYSS_INCLUDE (doub
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 03/05: Correct bug with NOALYSS_INCLUDE (double define) Add the ENABLE_CACHE option |
Date: |
Sat, 29 Aug 2015 08:56:35 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9b6a3a09332f9348f6f6b24718fb4196c3c2d3fb
Author: Dany De Bontridder <address@hidden>
Date: Sat Aug 29 10:40:52 2015 +0200
Correct bug with NOALYSS_INCLUDE (double define)
Add the ENABLE_CACHE option
---
include/constant.php | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/include/constant.php b/include/constant.php
index 105a5c9..5fc532c 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -37,12 +37,14 @@ $g_include_dir=$dirname;
$g_ext_dir = $dirname."/ext";
$g_template_dir = $dirname."/template";
+if (file_exists($dirname.'/config.inc.php')) require_once
$dirname.'/config.inc.php';
+
if ( !defined("NOALYSS_HOME")) define
("NOALYSS_HOME",dirname($dirname)."/html");
if ( !defined("NOALYSS_PLUGIN")) define ("NOALYSS_PLUGIN",$g_ext_dir);
if ( !defined("NOALYSS_INCLUDE")) define ("NOALYSS_INCLUDE",$g_include_dir);
if ( !defined("NOALYSS_TEMPLATE")) define ("NOALYSS_TEMPLATE",$g_template_dir);
+if ( !defined("ENABLE_CACHE")) define ("ENABLE_CACHE",'YES');
-if (file_exists(NOALYSS_INCLUDE.'/config.inc.php')) require_once
NOALYSS_INCLUDE.'/config.inc.php';
require_once NOALYSS_INCLUDE.'/constant.security.php';
if ( strpos($inc_path,";") != 0 ) {
- [Noalyss-commit] [noalyss] branch master updated (abcf724 -> bd05d8d), Dany De Bontridder, 2015/08/29
- [Noalyss-commit] [noalyss] 01/05: Add transparency, Dany De Bontridder, 2015/08/29
- [Noalyss-commit] [noalyss] 02/05: performance : Some script are included from scriptaculous, so we comment them in the function load_all_script, Dany De Bontridder, 2015/08/29
- [Noalyss-commit] [noalyss] 03/05: Correct bug with NOALYSS_INCLUDE (double define) Add the ENABLE_CACHE option,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 04/05: Add the ENABLE_CACHE option, Dany De Bontridder, 2015/08/29
- [Noalyss-commit] [noalyss] 05/05: add version + alert if password or user not correct, Dany De Bontridder, 2015/08/29