Documentation

config.php

Table of Contents

_DIR  = SITE_ROOT . '/view'
ADMIN_ERROR_MAIL  = 'eng.keramati@gmail.com'
AFTER_RENDER  = alse
AJAX_DIR  = APP_DIR . '/ajax'
Ajax files loaded with loadPage()
AJAX_URI  = 'xcrud_ajax.php'
APP_DIR  = SITE_ROOT . '/app'
AUTO_EDITOR_INSERTION  = rue
AUTO_XSS_FILTERING  = alse
AUTOCLEAN_TIMEOUT  = 3
AVAILABLE_DATE_RANGES  = ['next_year', 'next_month', 'today', 'this_week_today', 'this_week_full', 'last_week', 'last_2weeks', 'this_month', 'last_month', 'last_3months', 'last_6months', 'this_year', 'last_year']
BEFORE_CONSTRUCT  = alse
BENCHMARK  = rue
BUTTON_LABELS  = rue
CACHE_DIR  = SITE_ROOT . '/cache'
CLICKABLE_FILENAMES  = rue
CLICKABLE_LIST_LINKS  = rue
COLUMN_CUT  = 50
CONTROLLER_DIR  = SITE_ROOT . '/controller'
CSV_ALL_FIELDS  = rue
CSV_DELIMITER  = ''
CSV_ENCLOSURE  = '"'
DATE_FIRST_DAY  = 1
DATE_FORMAT  = 'yy/mm/dd'
DEBUGGING  = isset($_GET['trace'])
DEFAULT_COORD  = rue
DEFAULT_HEIGHT  = 300
DEFAULT_POINT  = '35.6810912,51.4015082'
DEFAULT_SEARCH  = rue
DEFAULT_SEARCH_TEXT  = 'نام محله تان را وارد کنید'
DEFAULT_TAB  = alse
DEFAULT_TEXT  = ''
DEFAULT_WIDTH  = 500
DEFAULT_ZOOM  = 18
DEMO_MODE  = alse
EDITOR_INIT_URL  = '/app/libs/js/ckeditor/adapters/jquery.js'
EDITOR_URL  = '/app/libs/js/ckeditor/ckeditor.js'
EMAIL_ENABLE_HTML  = rue
EMAIL_FROM  = 'info@mimteam.com'
EMAIL_FROM_NAME  = 'MimTeam Admin Panel'
ENABLE_CSV_EXPORT  = rue
ENABLE_LIMITLIST  = rue
ENABLE_NUMBERS  = rue
ENABLE_PAGINATION  = rue
ENABLE_PRINTOUT  = rue
ENABLE_SEARCH  = rue
ENABLE_SORTING  = rue
ENABLE_TABLE_TITLE  = alse
ENUM_AS_RADIO  = rue
ERROR_TYPES  = E_ALL
The error types to be reported
EXTERNAL_SESSION  = alse
FIXED_ACTION_BUTTONS  = alse
FORCE_EDITOR  = rue
GOOGLE_API_KEY  = 'AIzaSyDmvuT1v5CSR-RULDU-lSfDxGcDl9Sk8Ew'
IMAGES_IN_GRID  = rue
IMAGES_IN_GRID_HEIGHT  = 55
IS_WARNING_FATAL  = alse
JQUERY_NO_CONFLICT  = rue
LANG_PATH  = 'languages'
LANG_URI  = 'languages'
LIB_DIR  = APP_DIR . '/libs'
LIMIT  = 20
LIMIT_LIST  = array('20', '50', '100', 'all')
LISTS_NULL_OPT  = rue
LOAD_BOOTSTRAP  = 0
LOAD_GOOGLEMAP  = 1
LOAD_JCROP  = rue
LOAD_JQUERY  = 1
LOAD_JQUERY_UI  = 1
LOG_ERRORS  = rue
LOG_ERRORS_FILE  = SITE_ROOT . '/app/errors.log'
MAKE_CHECKBOX  = rue
MANUAL_LOAD  = rue
NESTED_IN_TAB  = rue
NESTED_READONLY_ON_VIEW  = rue
PERFORMANCE_MODE  = alse
PHP_DATE_FORMAT  = 'Y/m/d'
PHP_TIME_FORMAT  = 'H:i:s'
PLUGINS_URI  = 'plugins'
PRINT_ALL_FIELDS  = alse
PRODUCTS_COUNT_IN_CATEGORIES_PAGE  = 36
REMOVE_CONFIRM  = rue
RESOURCES_DIR  = SITE_ROOT . '/resources'
SAFE_OUTPUT  = alse
SCRIPTS_URL  = ''
SEARCH_ALL  = rue
SEARCH_OPENED  = alse
SEARCH_PATTERN  = ['%', '%']
SEND_ERROR_MAIL  = alse
SENDMAIL_FROM  = 'errors@hamechio.com'
SESSION_EXPIRE_TIME  = 120
Specifies the lifetime of the session, as well as the existence of a key safety (for example, the maximum edit-saving timeout).
SET_AS_CHECKBOXES  = rue
SHOW_PRIMARY_AI_COLUMN  = alse
SHOW_PRIMARY_AI_FIELD  = alse
SITE_GENERIC_ERROR_MESSAGE  = '<h1>مشکلی در عملکرد سایت وجود دارد، لطفا با مدیر سایت تماس بگیرید.</h1>'
Generic error message to be displayed instead of debug info (when DEBUGGING is false)
SITE_ROOT  = dirname(__FILE__, 2)
SITE_ROOT contains the full path to the Project folder
SMARTY_SPL_AUTOLOAD  = 1
SMS_SERVICE_NUMBER  = '5000282930'
SMS_SERVICE_SIGNATURE  = '9A410E94-58F3-4BFA-96E9-D9EEC2A2E476'
SMS_SERVICE_URL  = 'http://sms.parsgreen.ir'
START_MINIMIZED  = alse
STRIP_TAGS  = alse
THEMES_PATH  = 'themes'
THEMES_URI  = 'themes'
TIME_FORMAT  = 'HH:mm:ss'
TIMEZONE  = 'Asia/Tehran'
UPLOAD_FOLDER_DEF  = '../../../storage'
URLS2ABS  = rue
USE_BROWSER_INFO  = rue
VIEWS_DIR  = RESOURCES_DIR . '/views'
XSS_DISALOWED_ATTIBUTES  = array( 'ON\W*', /*'style',*/ 'xmlns', 'formaction', )
XSS_NAUGHTY_HTML  = 'alert|applet|audio|basefont|base|behavior|bgsound|blink|body|embed|expression|form|frameset|frame|head|html|ilayer|iframe|input|isindex|layer|link|meta|object|plaintext|script|textarea|title|video|xml|xss'
XSS_NAUGHTY_SCRIPTS  = 'alert|cmd|passthru|eval|exec|expression|system|fopen|fsockopen|file|file_get_contents|readfile|unlink'

Constants

_DIR

public mixed _DIR = SITE_ROOT . '/view'

ADMIN_ERROR_MAIL

public mixed ADMIN_ERROR_MAIL = 'eng.keramati@gmail.com'

AFTER_RENDER

public mixed AFTER_RENDER = alse

AJAX_DIR

Ajax files loaded with loadPage()

public mixed AJAX_DIR = APP_DIR . '/ajax'

AJAX_URI

public mixed AJAX_URI = 'xcrud_ajax.php'

APP_DIR

public mixed APP_DIR = SITE_ROOT . '/app'

AUTO_EDITOR_INSERTION

public mixed AUTO_EDITOR_INSERTION = rue

AUTO_XSS_FILTERING

public mixed AUTO_XSS_FILTERING = alse

AUTOCLEAN_TIMEOUT

public mixed AUTOCLEAN_TIMEOUT = 3

AVAILABLE_DATE_RANGES

public mixed AVAILABLE_DATE_RANGES = ['next_year', 'next_month', 'today', 'this_week_today', 'this_week_full', 'last_week', 'last_2weeks', 'this_month', 'last_month', 'last_3months', 'last_6months', 'this_year', 'last_year']

BEFORE_CONSTRUCT

public mixed BEFORE_CONSTRUCT = alse

BENCHMARK

public mixed BENCHMARK = rue

BUTTON_LABELS

public mixed BUTTON_LABELS = rue

CACHE_DIR

public mixed CACHE_DIR = SITE_ROOT . '/cache'

CLICKABLE_FILENAMES

public mixed CLICKABLE_FILENAMES = rue
public mixed CLICKABLE_LIST_LINKS = rue

COLUMN_CUT

public mixed COLUMN_CUT = 50

CONTROLLER_DIR

public mixed CONTROLLER_DIR = SITE_ROOT . '/controller'

CSV_ALL_FIELDS

public mixed CSV_ALL_FIELDS = rue

CSV_DELIMITER

public mixed CSV_DELIMITER = ''

CSV_ENCLOSURE

public mixed CSV_ENCLOSURE = '"'

DATE_FIRST_DAY

public mixed DATE_FIRST_DAY = 1

DATE_FORMAT

public mixed DATE_FORMAT = 'yy/mm/dd'

DEBUGGING

public mixed DEBUGGING = isset($_GET['trace'])

DEFAULT_COORD

public mixed DEFAULT_COORD = rue

DEFAULT_HEIGHT

public mixed DEFAULT_HEIGHT = 300

DEFAULT_POINT

public mixed DEFAULT_POINT = '35.6810912,51.4015082'
public mixed DEFAULT_SEARCH = rue

DEFAULT_SEARCH_TEXT

public mixed DEFAULT_SEARCH_TEXT = 'نام محله تان را وارد کنید'

DEFAULT_TAB

public mixed DEFAULT_TAB = alse

DEFAULT_TEXT

public mixed DEFAULT_TEXT = ''

DEFAULT_WIDTH

public mixed DEFAULT_WIDTH = 500

DEFAULT_ZOOM

public mixed DEFAULT_ZOOM = 18

DEMO_MODE

public mixed DEMO_MODE = alse

EDITOR_INIT_URL

public mixed EDITOR_INIT_URL = '/app/libs/js/ckeditor/adapters/jquery.js'

EDITOR_URL

public mixed EDITOR_URL = '/app/libs/js/ckeditor/ckeditor.js'

EMAIL_ENABLE_HTML

public mixed EMAIL_ENABLE_HTML = rue

EMAIL_FROM

public mixed EMAIL_FROM = 'info@mimteam.com'

EMAIL_FROM_NAME

public mixed EMAIL_FROM_NAME = 'MimTeam Admin Panel'

ENABLE_CSV_EXPORT

public mixed ENABLE_CSV_EXPORT = rue

ENABLE_LIMITLIST

public mixed ENABLE_LIMITLIST = rue

ENABLE_NUMBERS

public mixed ENABLE_NUMBERS = rue

ENABLE_PAGINATION

public mixed ENABLE_PAGINATION = rue

ENABLE_PRINTOUT

public mixed ENABLE_PRINTOUT = rue
public mixed ENABLE_SEARCH = rue

ENABLE_SORTING

public mixed ENABLE_SORTING = rue

ENABLE_TABLE_TITLE

public mixed ENABLE_TABLE_TITLE = alse

ENUM_AS_RADIO

public mixed ENUM_AS_RADIO = rue

ERROR_TYPES

The error types to be reported

public mixed ERROR_TYPES = E_ALL

EXTERNAL_SESSION

public mixed EXTERNAL_SESSION = alse

FIXED_ACTION_BUTTONS

public mixed FIXED_ACTION_BUTTONS = alse

FORCE_EDITOR

public mixed FORCE_EDITOR = rue

GOOGLE_API_KEY

public mixed GOOGLE_API_KEY = 'AIzaSyDmvuT1v5CSR-RULDU-lSfDxGcDl9Sk8Ew'

IMAGES_IN_GRID

public mixed IMAGES_IN_GRID = rue

IMAGES_IN_GRID_HEIGHT

public mixed IMAGES_IN_GRID_HEIGHT = 55

IS_WARNING_FATAL

public mixed IS_WARNING_FATAL = alse

JQUERY_NO_CONFLICT

public mixed JQUERY_NO_CONFLICT = rue

LANG_PATH

public mixed LANG_PATH = 'languages'

LANG_URI

public mixed LANG_URI = 'languages'

LIB_DIR

public mixed LIB_DIR = APP_DIR . '/libs'

LIMIT_LIST

public mixed LIMIT_LIST = array('20', '50', '100', 'all')

LISTS_NULL_OPT

public mixed LISTS_NULL_OPT = rue

LOAD_BOOTSTRAP

public mixed LOAD_BOOTSTRAP = 0

LOAD_GOOGLEMAP

public mixed LOAD_GOOGLEMAP = 1

LOAD_JCROP

public mixed LOAD_JCROP = rue

LOAD_JQUERY

public mixed LOAD_JQUERY = 1

LOAD_JQUERY_UI

public mixed LOAD_JQUERY_UI = 1

LOG_ERRORS

public mixed LOG_ERRORS = rue

LOG_ERRORS_FILE

public mixed LOG_ERRORS_FILE = SITE_ROOT . '/app/errors.log'

MAKE_CHECKBOX

public mixed MAKE_CHECKBOX = rue

MANUAL_LOAD

public mixed MANUAL_LOAD = rue

NESTED_IN_TAB

public mixed NESTED_IN_TAB = rue

NESTED_READONLY_ON_VIEW

public mixed NESTED_READONLY_ON_VIEW = rue

PERFORMANCE_MODE

public mixed PERFORMANCE_MODE = alse

PHP_DATE_FORMAT

public mixed PHP_DATE_FORMAT = 'Y/m/d'

PHP_TIME_FORMAT

public mixed PHP_TIME_FORMAT = 'H:i:s'

PLUGINS_URI

public mixed PLUGINS_URI = 'plugins'

PRINT_ALL_FIELDS

public mixed PRINT_ALL_FIELDS = alse

PRODUCTS_COUNT_IN_CATEGORIES_PAGE

public mixed PRODUCTS_COUNT_IN_CATEGORIES_PAGE = 36

REMOVE_CONFIRM

public mixed REMOVE_CONFIRM = rue

RESOURCES_DIR

public mixed RESOURCES_DIR = SITE_ROOT . '/resources'

SAFE_OUTPUT

public mixed SAFE_OUTPUT = alse

SCRIPTS_URL

public mixed SCRIPTS_URL = ''

SEARCH_ALL

public mixed SEARCH_ALL = rue

SEARCH_OPENED

public mixed SEARCH_OPENED = alse

SEARCH_PATTERN

public mixed SEARCH_PATTERN = ['%', '%']

SEND_ERROR_MAIL

public mixed SEND_ERROR_MAIL = alse

SENDMAIL_FROM

public mixed SENDMAIL_FROM = 'errors@hamechio.com'

SESSION_EXPIRE_TIME

Specifies the lifetime of the session, as well as the existence of a key safety (for example, the maximum edit-saving timeout).

public mixed SESSION_EXPIRE_TIME = 120

SET_AS_CHECKBOXES

public mixed SET_AS_CHECKBOXES = rue

SHOW_PRIMARY_AI_COLUMN

public mixed SHOW_PRIMARY_AI_COLUMN = alse

SHOW_PRIMARY_AI_FIELD

public mixed SHOW_PRIMARY_AI_FIELD = alse

SITE_GENERIC_ERROR_MESSAGE

Generic error message to be displayed instead of debug info (when DEBUGGING is false)

public mixed SITE_GENERIC_ERROR_MESSAGE = '<h1>مشکلی در عملکرد سایت وجود دارد، لطفا با مدیر سایت تماس بگیرید.</h1>'

SITE_ROOT

SITE_ROOT contains the full path to the Project folder

public mixed SITE_ROOT = dirname(__FILE__, 2)

SMARTY_SPL_AUTOLOAD

public mixed SMARTY_SPL_AUTOLOAD = 1

SMS_SERVICE_NUMBER

public mixed SMS_SERVICE_NUMBER = '5000282930'

SMS_SERVICE_SIGNATURE

public mixed SMS_SERVICE_SIGNATURE = '9A410E94-58F3-4BFA-96E9-D9EEC2A2E476'

SMS_SERVICE_URL

public mixed SMS_SERVICE_URL = 'http://sms.parsgreen.ir'

START_MINIMIZED

public mixed START_MINIMIZED = alse

STRIP_TAGS

public mixed STRIP_TAGS = alse

THEMES_PATH

public mixed THEMES_PATH = 'themes'

THEMES_URI

public mixed THEMES_URI = 'themes'

TIME_FORMAT

public mixed TIME_FORMAT = 'HH:mm:ss'

TIMEZONE

public mixed TIMEZONE = 'Asia/Tehran'

UPLOAD_FOLDER_DEF

public mixed UPLOAD_FOLDER_DEF = '../../../storage'

URLS2ABS

public mixed URLS2ABS = rue

USE_BROWSER_INFO

public mixed USE_BROWSER_INFO = rue

VIEWS_DIR

public mixed VIEWS_DIR = RESOURCES_DIR . '/views'

XSS_DISALOWED_ATTIBUTES

public mixed XSS_DISALOWED_ATTIBUTES = array( 'ON\W*', /*'style',*/ 'xmlns', 'formaction', )

XSS_NAUGHTY_HTML

public mixed XSS_NAUGHTY_HTML = 'alert|applet|audio|basefont|base|behavior|bgsound|blink|body|embed|expression|form|frameset|frame|head|html|ilayer|iframe|input|isindex|layer|link|meta|object|plaintext|script|textarea|title|video|xml|xss'

XSS_NAUGHTY_SCRIPTS

public mixed XSS_NAUGHTY_SCRIPTS = 'alert|cmd|passthru|eval|exec|expression|system|fopen|fsockopen|file|file_get_contents|readfile|unlink'

Search results