KWeb
6.4
|
Public Member Functions | |
__destruct () | |
getDomainSetting ($domainOrId, $name=false, $useCurrentSettings=false, $default=null) | |
Returns a setting specific to specified domain. | |
Static Public Member Functions | |
static | instance ($create=true) |
Data Fields | |
$version_kweb = 1610629123 | |
Version of KWeb. | |
$version_local = 268435456 | |
Version of website. | |
$kweb_modules | |
List of modules for version management. | |
$kweb_item_files = array('art', 'dir', 'download', 'file', 'file', 'group', 'image', 'mmedia', 'inc', 'newsletter', 'newsletter_gen', 'newslist', 'redirect', 'right', 'special', 'user') | |
Possible KWebItem types to use. | |
$kweb_core_item_files = array('special', 'user', 'group', 'right') | |
Core, required KWebItem types. | |
$kweb_objects | |
All object types that should be used with KWebObjects::$inst->loadAllClasses() | |
$kweb_attribute_files = array() | |
$kweb_accessible_genre = array(GENRE_ITEM, GENRE_LINK, GENRE_COMMENT, GENRE_TASK) | |
Genres that are accesible from direct URLs. | |
$host | |
Currently used host (www.domain.com) | |
$localreferer | |
Domain (as regular expression) used to check if the request originated from this website. | |
$official_url | |
Full url of the website. | |
$tmp_path = 'tmp/' | |
Absolute path to private (web inaccessible) temporary folder (suffixed with '/') | |
$tmp_public_path = 'tmpub/' | |
Absolute path to public (web accessible) temporary folder (suffixed with '/') | |
$chmod_public = 0777 | |
Chmod to set on public (web/apache readable) files and folders. | |
$chmod_private = 0777 | |
Chmod to issue on private (server/commandline/fcgi readable) files and folders. | |
$home_path | |
Full path to kweb installation (suffixed with '/'), same as KWEB_PATH. | |
$public_path | |
Full path to public files (suffixed with '/'), same as KWEB_PUBLIC_PATH. | |
$server_path = '/' | |
Web path (suffixed with '/'), like '/', or '/subfolder/', declared later as KWEB_WEB_PATH. | |
$root_url | |
Root url, without $server_path (http://www.domain.com). | |
$production = false | |
TRUE on production server. | |
$main_script = 'index.php' | |
Entry script. | |
$use_main_script = false | |
TRUE if $main_script should prefix all URLs (required if there is no mod_rewrite) | |
$url_suffix = '.html' | |
Default Suffix for URLs. | |
$url_prefix = '' | |
Default Prefix for URLs - after $server_path and $main_script. | |
$url_index = 'index.html' | |
Default URL used. | |
$url_view = 'view/full' | |
Default view. | |
$url_safechar = '-' | |
Safe character to be used in urls. | |
$url_static_paths = array('files', 'tmp', 'tmpub', 'local', 'kweb', 'cached') | |
Paths that are accesses statically, URLs should not start with those paths, controller will not parse requests starting from these paths either... | |
$url_request_categories = array('page', 'object') | |
Request categories that are language independent. | |
$url_declared_views | |
Views that can be used directly in urls, combined with long item paths (eg. | |
$php_cli = 'php' | |
PHP Command Line Interpreter command. | |
$pear_path | |
Full path to PEAR (suffixed with '/') | |
$zend_path | |
Full path to ZEND (suffixed with '/') | |
$sections_init | |
Sections data. | |
$sections_by_path = false | |
TRUE if section should be applied by opened path instead of default object anscestry. | |
$sections_mapping_page | |
Section mapping for pages as RegExp => SectionId. | |
$sections_mapping_view | |
Section override mapping for object views as RegExp => SectionId. | |
$lang_set | |
Available languages. | |
$lang_routing = array('en') | |
Language routing, every language will be initialized with these languages. | |
$lang_default = 'pl' | |
Default language. | |
$lang_newitem_default = false | |
Default language for new items. | |
$lang_needed = false | |
Is translation needed to show the item in current language? | |
$inc_deny = '#(?:^(?:local)/)|(?:^_|/_)#' | |
Denied template files to be accessed by direct url (/path/ or /page/path/) (Regular expression) | |
$charset_in = 'utf-8' | |
$charset_out = 'utf-8' | |
$domains = array() | |
Array of domains handled by this site. | |
$domain = null | |
Current domain data. | |
$host_force = false | |
Is host enforced? | |
$cache_path = 'cache/' | |
Full path to cache files (suffixed with '/') | |
$cache_type = 'php' | |
Type of cache to use in KWebCache. | |
$cache_off = false | |
TRUE if all caches should be turned off. | |
$cache_objects_expire = 600 | |
$cache_item_expire = 600 | |
$cache_data_expire = 600 | |
$cache_link_expire = 600 | |
$cache_block_expire = 100 | |
$cache_response_expire = 100 | |
Expiry time of whole responses cache. | |
$cache_filediscovery_expire = 0 | |
Expiry time of file state caches. | |
$cache_search_expire = 300 | |
$cache_pages_path = 'cached/' | |
Absolute path to cached static pages. | |
$cache_names = true | |
Should all item names be cached? | |
$cache_collection_prefetch = 50 | |
How many objects should be prefetched for collections. | |
$cache_collection_release = 200 | |
After how many read objects, should releaseObject be called on them. | |
$db_default = 'kweb' | |
Default DB identifier for KDB::instance() | |
$db_query_time_limit = 0 | |
Time limit in seconds after which KDB::EVENT_TIMEOUT is dispatched (and a warning logged) | |
$db_kweb | |
$log_path = 'log/' | |
Absolute path to log files. | |
$log_stacktrace = false | |
TRUE if stack trace on errors should be logged. | |
$log_disabled = false | |
Disables logging - log works outside of transactions, so logging should be disabled for previewing and testing work. | |
$debug = 0 | |
$debug_long_response = 0 | |
Time in seconds to qualify a response as long and log a warning. | |
$debug_redirects = false | |
If TRUE, redirects will print a jumpbox instead of redirecting. | |
$tmpl_siteinfo = '' | |
Site name to show in backoffice. | |
$tmpl_title = '' | |
Global title prefix. | |
$iface_path_temp | |
Absolute path to temp used by templates Set to tmp_pub_path. | |
$iface_path_ico = 'kweb/img/ico/' | |
Relative path to icons. | |
$tmpl_global_prefix = array() | |
Array of global template prefixes. | |
$tmpl_box_default_list = '_box/layout_list' | |
Default layout used for boxes. | |
$tmpl_box_default_box = '_box/box' | |
Default box template. | |
$cron_on_open_uri = true | |
TRUE if cron jobs should be triggered by web requests, instead of server's cron service. | |
$cron_time_limit = 60 | |
Time limit in seconds for cron operations. | |
$time_limit = 30 | |
Advisive time limit in seconds for standard operations. | |
$time_limit_long = 300 | |
Advisive time limit in seconds for long operations. | |
$time_limit_hard = 100000 | |
Time limit in seconds for long operations. | |
$tmpl_allow_empty_body = false | |
TRUE if empty body is allowed (and header/footer will be printed in such case) | |
$navbar_default_template = 'nav/_navbar' | |
Default navbar template. | |
$tmpl_css_less_compile = false | |
Enables .less files compiling. | |
$tmpl_minify_enabled = false | |
Enables minification of CSS and JS files. | |
$upload_path = 'files/' | |
Relative path to uploaded files (suffixed with '/') | |
$upload_img_path = 'files/img/' | |
Relative path to uploaded images (suffixed with '/') | |
$upload_mmedia_path = 'files/mmedia/' | |
Relative path to uploaded videos (suffixed with '/') | |
$sponsored_file_size = 200000 | |
Minimum file size to use Mirrors. | |
$upload_mmedia_limit = 31457280 | |
Video file filesize limit. | |
$upload_img_limit = 1024000 | |
Image file filesize limit. | |
$upload_temp_path = 'upload/' | |
Absolute temporary upload path Will be prefixed with tmp_path if not set to absolute path. | |
$upload_temp_limit = 1048576000 | |
Temporary uploads directory size limit. | |
$upload_limit = 5242880000 | |
All uploads directory size limit. | |
$upload_file_limit = 20971520 | |
Single file filesize limit. | |
$imgpreview_maxsafeimagesize = 5000000 | |
Maximum image size (width * height) for generating previews. | |
$imgpreview_path = 'prev/' | |
Absolute path to previews folder Will be prefixed with tmp_pub_path. | |
$imgpreview | |
Settings for ImgPreview instances as instance_id => array(param => value, ...) | |
$dropbox_path = 'dropbox/' | |
Absolute dropbox path This will be prefixed with tmp_path. | |
$dropbox_limit = 104857600 | |
$dropbox_file_limit = 20971520 | |
$dropbox_allow = '/\\.(tmp|tgz|zip|gz|bz2|jpg|png|gif|avi|mpe?g|mov|wmv|xml|doc|pdf|mp3|wma|ogg)$/i' | |
$mirror_enabled = false | |
$email_admin = '' | |
$email_moderator = '' | |
$email_contact = '' | |
$email_reply = '' | |
$email_test = '' | |
$mail_send_type = 'mail' | |
Type of Mail Factory to use for sending emails. | |
$mail_send_params = array () | |
Mail factory parameters to use for sending emails. | |
$session_cookie = 'KWeb_S' | |
Name of session cookie. | |
$session_valid = 0 | |
Session expiry time. | |
$session_user_timeout = 576000 | |
Login expiry time (0 - same as session expiry) | |
$session_cookie_timeout = 0 | |
Session cookie expiry time (0 - will invalidate on browser close...) | |
$session_domain = false | |
Session cookie domain. | |
$session_builtin = false | |
Use PHP builtin sessions... | |
$session_always_store = false | |
Always store sessions in database. | |
$session_p3p = array('cp' => '.') | |
P3P headers to use like policyref pointing to policy XML or cp for compact policies like: array('cp' => 'NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM'); or: array('cp' => 'We dont use p3p');. | |
$session_errorstacks = array('', 'notify', 'edit') | |
List of error stacks to store between redirects. | |
$token_path = 'token/' | |
Absolute token path This will be prefixed with tmp_pub_path. | |
$token_ttf_path = 'kweb/img/ttf/' | |
Relative token fonts path. | |
$token_ttf_count = 7 | |
Fonts count. | |
$recaptcha_key_public = '6LcyYMcSAAAAAPGavqbU3jGq1vWTs5QGV6blVPi6' | |
$recaptcha_key_private = '6LcyYMcSAAAAAAzWN-12K-Mm05A4QY7SVZZXIh8W' | |
$script_settings_deny = '/pass/i' | |
Dennied settings to read by KScript. | |
$dbsettings_version_db = 'kweb' | |
$dbsettings_version_cache = true | |
$aggregators = array() | |
Aggregators list. | |
$password_hash_iter = 8 | |
$password_hash_portable = false | |
$rating_ip_limit = 10 | |
Amount of allowed ratings from one IP per minute. | |
$rating_allow_change = true | |
Allow to change the rating afterwards... | |
$rating_options = array() | |
Default options for rating objects as [rating_id] => options. | |
$rating_ranks = array() | |
List of rankings to calculate. | |
$search_default_indexer = 'content' | |
Default indexer used on searches. | |
$search_schedule_reindexing = true | |
TRUE if changed and removed elements should be refreshed in the indexes automatically. | |
$search_indexers = array() | |
Indexers configuration as array( INDEX_NAME => array( 'contents' => array( array( 'genre' => GENRE 'adapterOptions' => ADAPTER_OPTIONS ) ) ) ) | |
$search_index_path = 'search/' | |
Absolute path to search indexes Will be prefixed with tmp_path if not set to absolute path. | |
$edit_attr_item_flags | |
$edit_inset_paths | |
List of paths to allow to inset images and files from 'path without / prefix and suffix' => array('title' => 'Title', icon => 'image_path.png') | |
$edit_inset_types | |
List of inset types to use 'type' => array('title' => 'Title', icon => 'image_path.png') | |
$edit_wysiwyg_css_rules = array() | |
Lst of CSS rules as array( '.css_class' => 'title' ) | |
$edit_wysiwyg_css_class = '' | |
Class to set on the entire WYSIWYG body. | |
$edit_html_cleanup = true | |
TRUE if all HTML should be cleaned by default. | |
$edit_menu_views = array() | |
List of views accessible by editors as $view => array('icon' => $icon, 'right' => $righToUse, 'user' => $userToCheckWith, 'flag' => NEcessary flags, 'noflag' => Without flags),. | |
$edit_publish_preview_views | |
Views allowed for publish_preview. | |
$edit_add_create_draft = false | |
TRUE if empty draft should be stored in database before editing new items. | |
Static Public Attributes | |
static | $inst = null |
Protected Member Functions | |
__construct () |
KWebSetting::__construct | ( | ) | [protected] |
Reimplemented from KSetting.
KWebSetting::__destruct | ( | ) |
Reimplemented from KSetting.
KWebSetting::getDomainSetting | ( | $ | domainOrId, |
$ | name = false , |
||
$ | useCurrentSettings = false , |
||
$ | default = null |
||
) |
Returns a setting specific to specified domain.
$name | - name of the setting, or false to return all settings |
static KWebSetting::instance | ( | $ | create = true | ) | [static] |
Reimplemented from KSetting.
KWebSetting::$aggregators = array() |
Aggregators list.
KWebSetting::$cache_block_expire = 100 |
KWebSetting::$cache_collection_prefetch = 50 |
How many objects should be prefetched for collections.
KWebSetting::$cache_collection_release = 200 |
After how many read objects, should releaseObject be called on them.
KWebSetting::$cache_data_expire = 600 |
KWebSetting::$cache_filediscovery_expire = 0 |
Expiry time of file state caches.
0 means no expiry, anything below 10 (like -1) will disable the cache entirely...
KWebSetting::$cache_item_expire = 600 |
KWebSetting::$cache_link_expire = 600 |
KWebSetting::$cache_names = true |
Should all item names be cached?
KWebSetting::$cache_objects_expire = 600 |
KWebSetting::$cache_off = false |
TRUE if all caches should be turned off.
KWebSetting::$cache_pages_path = 'cached/' |
Absolute path to cached static pages.
KWebSetting::$cache_path = 'cache/' |
Full path to cache files (suffixed with '/')
KWebSetting::$cache_response_expire = 100 |
Expiry time of whole responses cache.
Anything below 0 will disable whole response caching
KWebSetting::$cache_search_expire = 300 |
KWebSetting::$cache_type = 'php' |
Type of cache to use in KWebCache.
KWebSetting::$charset_in = 'utf-8' |
KWebSetting::$charset_out = 'utf-8' |
KWebSetting::$chmod_private = 0777 |
Chmod to issue on private (server/commandline/fcgi readable) files and folders.
For files, the execution bit will be always removed
KWebSetting::$chmod_public = 0777 |
Chmod to set on public (web/apache readable) files and folders.
For files, the execution bit will be always removed
KWebSetting::$cron_on_open_uri = true |
TRUE if cron jobs should be triggered by web requests, instead of server's cron service.
KWebSetting::$cron_time_limit = 60 |
Time limit in seconds for cron operations.
After this time, no more cron tasks should be launched
KWebSetting::$db_default = 'kweb' |
Default DB identifier for KDB::instance()
KWebSetting::$db_kweb |
array( 'host' => 'localhost', 'user' => false, 'pass' => false, 'database' => false, 'encoding' => false, 'transactions' => true, )
KWebSetting::$db_query_time_limit = 0 |
Time limit in seconds after which KDB::EVENT_TIMEOUT is dispatched (and a warning logged)
KWebSetting::$dbsettings_version_cache = true |
KWebSetting::$dbsettings_version_db = 'kweb' |
KWebSetting::$debug = 0 |
KWebSetting::$debug_long_response = 0 |
Time in seconds to qualify a response as long and log a warning.
KWebSetting::$debug_redirects = false |
If TRUE, redirects will print a jumpbox instead of redirecting.
KWebSetting::$domain = null |
Current domain data.
KWebSetting::$domains = array() |
Array of domains handled by this site.
Every entry can contain:
id = ID of domain match = regular expression matching $_SERVER['SERVER_NAME'] host = host to be set as $host, $localreferer and $official_url host_force = should the host be enforced? prefix = $tmpl_global_prefix to use index = $url_index to use view = $url_view to use config = config inc file to open path = path to prepend to request (without trailing slash) settings = settings to import to KWebSetting
KWebSetting::$dropbox_allow = '/\\.(tmp|tgz|zip|gz|bz2|jpg|png|gif|avi|mpe?g|mov|wmv|xml|doc|pdf|mp3|wma|ogg)$/i' |
KWebSetting::$dropbox_file_limit = 20971520 |
KWebSetting::$dropbox_limit = 104857600 |
KWebSetting::$dropbox_path = 'dropbox/' |
Absolute dropbox path This will be prefixed with tmp_path.
KWebSetting::$edit_add_create_draft = false |
TRUE if empty draft should be stored in database before editing new items.
KWebSetting::$edit_attr_item_flags |
KWebSetting::$edit_html_cleanup = true |
TRUE if all HTML should be cleaned by default.
KWebSetting::$edit_inset_paths |
array( )
List of paths to allow to inset images and files from 'path without / prefix and suffix' => array('title' => 'Title', icon => 'image_path.png')
KWebSetting::$edit_inset_types |
array( )
List of inset types to use 'type' => array('title' => 'Title', icon => 'image_path.png')
KWebSetting::$edit_menu_views = array() |
List of views accessible by editors as $view => array('icon' => $icon, 'right' => $righToUse, 'user' => $userToCheckWith, 'flag' => NEcessary flags, 'noflag' => Without flags),.
KWebSetting::$edit_publish_preview_views |
Views allowed for publish_preview.
KWebSetting::$edit_wysiwyg_css_class = '' |
Class to set on the entire WYSIWYG body.
KWebSetting::$edit_wysiwyg_css_rules = array() |
Lst of CSS rules as array( '.css_class' => 'title' )
KWebSetting::$email_admin = '' |
KWebSetting::$email_contact = '' |
KWebSetting::$email_moderator = '' |
KWebSetting::$email_reply = '' |
KWebSetting::$email_test = '' |
KWebSetting::$home_path |
Full path to kweb installation (suffixed with '/'), same as KWEB_PATH.
KWebSetting::$host |
Currently used host (www.domain.com)
KWebSetting::$host_force = false |
Is host enforced?
KWebSetting::$iface_path_ico = 'kweb/img/ico/' |
Relative path to icons.
KWebSetting::$iface_path_temp |
Absolute path to temp used by templates Set to tmp_pub_path.
KWebSetting::$imgpreview |
array(
'main' => array(),
)
Settings for ImgPreview instances as instance_id => array(param => value, ...)
KWebSetting::$imgpreview_maxsafeimagesize = 5000000 |
Maximum image size (width * height) for generating previews.
KWebSetting::$imgpreview_path = 'prev/' |
Absolute path to previews folder Will be prefixed with tmp_pub_path.
KWebSetting::$inc_deny = '#(?:^(?:local)/)|(?:^_|/_)#' |
Denied template files to be accessed by direct url (/path/ or /page/path/) (Regular expression)
KWebSetting::$kweb_accessible_genre = array(GENRE_ITEM, GENRE_LINK, GENRE_COMMENT, GENRE_TASK) |
Genres that are accesible from direct URLs.
KWebSetting::$kweb_attribute_files = array() |
KWebSetting::$kweb_core_item_files = array('special', 'user', 'group', 'right') |
Core, required KWebItem types.
KWebSetting::$kweb_item_files = array('art', 'dir', 'download', 'file', 'file', 'group', 'image', 'mmedia', 'inc', 'newsletter', 'newsletter_gen', 'newslist', 'redirect', 'right', 'special', 'user') |
Possible KWebItem types to use.
KWebSetting::$kweb_modules |
array( 'kweb' => array('title' => 'KWeb'), 'local' => array('title' => 'Local'), )
List of modules for version management.
KWebSetting::$kweb_objects |
array( GENRE_ITEM => array(), GENRE_COMMENT => array(0), )
All object types that should be used with KWebObjects::$inst->loadAllClasses()
KWebSetting::$lang_default = 'pl' |
Default language.
KWebSetting::$lang_needed = false |
Is translation needed to show the item in current language?
KWebSetting::$lang_newitem_default = false |
Default language for new items.
FALSE will set current language
KWebSetting::$lang_routing = array('en') |
Language routing, every language will be initialized with these languages.
KWebSetting::$lang_set |
array ( 'pl' => 'Polski', 'en' => 'English', )
Available languages.
KWebSetting::$localreferer |
Domain (as regular expression) used to check if the request originated from this website.
KWebSetting::$log_disabled = false |
Disables logging - log works outside of transactions, so logging should be disabled for previewing and testing work.
KWebSetting::$log_path = 'log/' |
Absolute path to log files.
KWebSetting::$log_stacktrace = false |
TRUE if stack trace on errors should be logged.
KWebSetting::$mail_send_params = array () |
Mail factory parameters to use for sending emails.
KWebSetting::$mail_send_type = 'mail' |
Type of Mail Factory to use for sending emails.
KWebSetting::$main_script = 'index.php' |
Entry script.
KWebSetting::$mirror_enabled = false |
KWebSetting::$navbar_default_template = 'nav/_navbar' |
Default navbar template.
KWebSetting::$official_url |
Full url of the website.
KWebSetting::$password_hash_iter = 8 |
KWebSetting::$password_hash_portable = false |
KWebSetting::$pear_path |
Full path to PEAR (suffixed with '/')
KWebSetting::$php_cli = 'php' |
PHP Command Line Interpreter command.
KWebSetting::$production = false |
TRUE on production server.
KWebSetting::$public_path |
Full path to public files (suffixed with '/'), same as KWEB_PUBLIC_PATH.
KWebSetting::$rating_allow_change = true |
Allow to change the rating afterwards...
KWebSetting::$rating_ip_limit = 10 |
Amount of allowed ratings from one IP per minute.
KWebSetting::$rating_options = array() |
Default options for rating objects as [rating_id] => options.
KWebSetting::$rating_ranks = array() |
List of rankings to calculate.
KWebSetting::$recaptcha_key_private = '6LcyYMcSAAAAAAzWN-12K-Mm05A4QY7SVZZXIh8W' |
KWebSetting::$recaptcha_key_public = '6LcyYMcSAAAAAPGavqbU3jGq1vWTs5QGV6blVPi6' |
KWebSetting::$root_url |
Root url, without $server_path (http://www.domain.com).
Filled in append.php
KWebSetting::$script_settings_deny = '/pass/i' |
Dennied settings to read by KScript.
KWebSetting::$search_default_indexer = 'content' |
Default indexer used on searches.
KWebSetting::$search_index_path = 'search/' |
Absolute path to search indexes Will be prefixed with tmp_path if not set to absolute path.
KWebSetting::$search_indexers = array() |
Indexers configuration as array( INDEX_NAME => array( 'contents' => array( array( 'genre' => GENRE 'adapterOptions' => ADAPTER_OPTIONS ) ) ) )
KWebSetting::$search_schedule_reindexing = true |
TRUE if changed and removed elements should be refreshed in the indexes automatically.
KWebSetting::$sections_by_path = false |
TRUE if section should be applied by opened path instead of default object anscestry.
KWebSetting::$sections_init |
Sections data.
KWebSetting::$sections_mapping_page |
array( '#^edit/#' => SECTION_EDIT, '#^dev/#' => SECTION_DEV, '#.*#' => SECTION_MAIN, )
Section mapping for pages as RegExp => SectionId.
KWebSetting::$sections_mapping_view |
array( '#^edit/#' => SECTION_EDIT, )
Section override mapping for object views as RegExp => SectionId.
KWebSetting::$server_path = '/' |
Web path (suffixed with '/'), like '/', or '/subfolder/', declared later as KWEB_WEB_PATH.
KWebSetting::$session_always_store = false |
Always store sessions in database.
KWebSetting::$session_builtin = false |
Use PHP builtin sessions...
KWebSetting::$session_cookie = 'KWeb_S' |
Name of session cookie.
KWebSetting::$session_cookie_timeout = 0 |
Session cookie expiry time (0 - will invalidate on browser close...)
KWebSetting::$session_domain = false |
Session cookie domain.
KWebSetting::$session_errorstacks = array('', 'notify', 'edit') |
List of error stacks to store between redirects.
KWebSetting::$session_p3p = array('cp' => '.') |
P3P headers to use like policyref pointing to policy XML or cp for compact policies like: array('cp' => 'NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM'); or: array('cp' => 'We dont use p3p');.
KWebSetting::$session_user_timeout = 576000 |
Login expiry time (0 - same as session expiry)
KWebSetting::$session_valid = 0 |
Session expiry time.
KWebSetting::$sponsored_file_size = 200000 |
Minimum file size to use Mirrors.
KWebSetting::$time_limit = 30 |
Advisive time limit in seconds for standard operations.
Scripts should check KWeb::$inst->timeElapsed() and break execution.
KWebSetting::$time_limit_hard = 100000 |
Time limit in seconds for long operations.
After this time, execution will be broken by php!
KWebSetting::$time_limit_long = 300 |
Advisive time limit in seconds for long operations.
Scripts should check KWeb::$inst->timeElapsed() and break execution.
KWebSetting::$tmp_path = 'tmp/' |
Absolute path to private (web inaccessible) temporary folder (suffixed with '/')
KWebSetting::$tmp_public_path = 'tmpub/' |
Absolute path to public (web accessible) temporary folder (suffixed with '/')
KWebSetting::$tmpl_allow_empty_body = false |
TRUE if empty body is allowed (and header/footer will be printed in such case)
KWebSetting::$tmpl_box_default_box = '_box/box' |
Default box template.
KWebSetting::$tmpl_box_default_list = '_box/layout_list' |
Default layout used for boxes.
KWebSetting::$tmpl_css_less_compile = false |
Enables .less files compiling.
Otherwise lib/less.js is included
KWebSetting::$tmpl_global_prefix = array() |
Array of global template prefixes.
Every prefix should be suffixed with '/'
KWebSetting::$tmpl_minify_enabled = false |
Enables minification of CSS and JS files.
KWebSetting::$tmpl_siteinfo = '' |
Site name to show in backoffice.
KWebSetting::$tmpl_title = '' |
Global title prefix.
KWebSetting::$token_path = 'token/' |
Absolute token path This will be prefixed with tmp_pub_path.
KWebSetting::$token_ttf_count = 7 |
Fonts count.
KWebSetting::$token_ttf_path = 'kweb/img/ttf/' |
Relative token fonts path.
KWebSetting::$upload_file_limit = 20971520 |
Single file filesize limit.
KWebSetting::$upload_img_limit = 1024000 |
Image file filesize limit.
KWebSetting::$upload_img_path = 'files/img/' |
Relative path to uploaded images (suffixed with '/')
KWebSetting::$upload_limit = 5242880000 |
All uploads directory size limit.
KWebSetting::$upload_mmedia_limit = 31457280 |
Video file filesize limit.
KWebSetting::$upload_mmedia_path = 'files/mmedia/' |
Relative path to uploaded videos (suffixed with '/')
KWebSetting::$upload_path = 'files/' |
Relative path to uploaded files (suffixed with '/')
KWebSetting::$upload_temp_limit = 1048576000 |
Temporary uploads directory size limit.
KWebSetting::$upload_temp_path = 'upload/' |
Absolute temporary upload path Will be prefixed with tmp_path if not set to absolute path.
KWebSetting::$url_declared_views |
array('view' => array( 'full' => true, 'print' => true, 'download' => true, 'index' => true, 'print' => true, 'prev' => true, 'publish_preview' => true, 'xml' => true, ))
Views that can be used directly in urls, combined with long item paths (eg.
/view/print/long/item/path) . Currently only short, single element view/TEMPLATE views are supported (like "view/print") Stored as hashmaps of views ([view] => [subview] => [subsubview] => true
These views are final, they can not have any subviews
KWebSetting::$url_index = 'index.html' |
Default URL used.
KWebSetting::$url_prefix = '' |
Default Prefix for URLs - after $server_path and $main_script.
KWebSetting::$url_request_categories = array('page', 'object') |
Request categories that are language independent.
KWebSetting::$url_safechar = '-' |
Safe character to be used in urls.
KWebSetting::$url_static_paths = array('files', 'tmp', 'tmpub', 'local', 'kweb', 'cached') |
Paths that are accesses statically, URLs should not start with those paths, controller will not parse requests starting from these paths either...
KWebSetting::$url_suffix = '.html' |
Default Suffix for URLs.
KWebSetting::$url_view = 'view/full' |
Default view.
KWebSetting::$use_main_script = false |
TRUE if $main_script should prefix all URLs (required if there is no mod_rewrite)
KWebSetting::$version_kweb = 1610629123 |
Version of KWeb.
KWebSetting::$version_local = 268435456 |
Version of website.
KWebSetting::$zend_path |
Full path to ZEND (suffixed with '/')