Added logs admin viewer.

Added CMS_SETUP.is_debug: BOOLEAN  (see cms.ini   site.debug setting)
This commit is contained in:
2016-02-19 00:03:15 +01:00
parent af137629e0
commit 77e2c28d18
12 changed files with 274 additions and 21 deletions

View File

@@ -20,6 +20,9 @@ feature {NONE} -- Initialization
do
site_location := environment.path
-- Debug mode.
is_debug := attached string_8_item ("site.debug") as l_debug and then l_debug.is_case_insensitive_equal_general ("yes")
--| Site id, used to identified a site, this could be set to a uuid, or else
site_id := string_8_item_or_default ("site.id", "_ROC_CMS_NO_ID_")
@@ -259,6 +262,11 @@ feature -- Access: Site
-- Optional path defining the front page.
-- By default "" or "/".
feature -- Settings
is_debug: BOOLEAN
-- Is debug mode enabled?
feature -- Query
text_item (a_name: READABLE_STRING_GENERAL): detachable READABLE_STRING_32