Class: GeneralSettings
Source Location: /blogs/inc/MODEL/settings/_generalsettings.class.php
Class GeneralSettings
Class Overview
|
Class to handle the global settings. Located in /blogs/inc/MODEL/settings/_generalsettings.class.php [line 46] AbstractSettings | --GeneralSettings |
[ Top ]
Inherited Properties, Constants, and Methods
| Inherited Properties | Inherited Methods | Inherited Constants |
|---|---|---|
|
Inherited From AbstractSettings |
Inherited From AbstractSettings
|
[ Top ]
Property Summary
Method Summary
Properties
array
$_defaults
= array(
'admin_skin' => 'legacy',
'antispam_last_update' => '2000-01-01 00:00:00',
'antispam_threshold_publish' => '-90',
'antispam_threshold_delete' => '100', // do not delete by default!
'antispam_block_spam_referers' => '1',
'archive_mode' => 'monthly',
'AutoBR' => '0',
'auto_prune_stats' => '30', // days (T_hitlog and T_sessions)
'fm_enabled' => '1',
'fm_enable_create_dir' => '1',
'fm_enable_create_file' => '0',
'fm_enable_roots_blog' => '1',
// 'fm_enable_roots_group' => '0', // TO DO
'fm_enable_roots_user' => '0',
'fm_showtypes' => '0',
'fm_showfsperms' => '0',
'fm_default_chmod_file' => '664', // Needs UI
'fm_default_chmod_dir' => '775', // Needs UI
'links_extrapath' => '0',
'newusers_canregister' => '0',
'newusers_mustvalidate' => '1',
'newusers_revalidate_emailchg' => '0',
'newusers_level' => '1',
'permalink_type' => 'urltitle',
'posts_per_page' => '5',
'regexp_filename' => '^[a-zA-Z0-9\-_.]+$', // TODO: accept spaces and special chars / do full testing on this
'regexp_dirname' => '^[a-zA-Z0-9\-_]+$', // TODO: accept spaces and special chars / do full testing on this
'reloadpage_timeout' => '300',
'time_difference' => '0',
'timeout_sessions' => '604800', // seconds (604800 == 7 days)
'upload_enabled' => '1',
'upload_maxkb' => '100',
'user_minpwdlen' => '5',
'what_to_show' => 'posts',
'webhelp_enabled' => '1',
) [line 56]
'admin_skin' => 'legacy',
'antispam_last_update' => '2000-01-01 00:00:00',
'antispam_threshold_publish' => '-90',
'antispam_threshold_delete' => '100', // do not delete by default!
'antispam_block_spam_referers' => '1',
'archive_mode' => 'monthly',
'AutoBR' => '0',
'auto_prune_stats' => '30', // days (T_hitlog and T_sessions)
'fm_enabled' => '1',
'fm_enable_create_dir' => '1',
'fm_enable_create_file' => '0',
'fm_enable_roots_blog' => '1',
// 'fm_enable_roots_group' => '0', // TO DO
'fm_enable_roots_user' => '0',
'fm_showtypes' => '0',
'fm_showfsperms' => '0',
'fm_default_chmod_file' => '664', // Needs UI
'fm_default_chmod_dir' => '775', // Needs UI
'links_extrapath' => '0',
'newusers_canregister' => '0',
'newusers_mustvalidate' => '1',
'newusers_revalidate_emailchg' => '0',
'newusers_level' => '1',
'permalink_type' => 'urltitle',
'posts_per_page' => '5',
'regexp_filename' => '^[a-zA-Z0-9\-_.]+$', // TODO: accept spaces and special chars / do full testing on this
'regexp_dirname' => '^[a-zA-Z0-9\-_]+$', // TODO: accept spaces and special chars / do full testing on this
'reloadpage_timeout' => '300',
'time_difference' => '0',
'timeout_sessions' => '604800', // seconds (604800 == 7 days)
'upload_enabled' => '1',
'upload_maxkb' => '100',
'user_minpwdlen' => '5',
'what_to_show' => 'posts',
'webhelp_enabled' => '1',
) [line 56]
The default settings to use, when a setting is not given in the database.
API Tags:| Access: | protected |
Information Tags:
| Todo: | Allow overriding from /conf/_config_TEST.php? |
Redefinition of:
- AbstractSettings::$_defaults
- Default settings.
[ Top ]
Methods
Constructor GeneralSettings [line 115]
|
Constructor.
This loads the general settings and checks db_version.
It will also turn off error-reporting/halting of the DB object temporarily to present a more decent error message if tables do not exist yet.
Because the DB object itself creates a connection when it gets created "Error selecting database" occurs before we can check for it here.
[ Top ]
