From d9dcb502a96744ce19127f92f08572a56a7bdf2a Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 15 Apr 2003 22:48:59 +0000 Subject: [PATCH] Load and cpu saving git-svn-id: file:///svn/phpbb/trunk@3840 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/admin_board.php | 59 ++++++++++++++++++++++++++++---- phpBB/language/en/lang_admin.php | 27 +++++++++++---- 2 files changed, 73 insertions(+), 13 deletions(-) diff --git a/phpBB/adm/admin_board.php b/phpBB/adm/admin_board.php index 85e3bc6e22..fef4397cdb 100644 --- a/phpBB/adm/admin_board.php +++ b/phpBB/adm/admin_board.php @@ -29,6 +29,7 @@ if (!empty($setmodules)) $module['GENERAL']['EMAIL_SETTINGS'] = ($auth->acl_get('a_server')) ? "$file$SID&mode=email" : ''; $module['GENERAL']['SERVER_SETTINGS'] = ($auth->acl_get('a_server')) ? "$file$SID&mode=server" : ''; $module['GENERAL']['AUTH_SETTINGS'] = ($auth->acl_get('a_server')) ? "$file$SID&mode=auth" : ''; + $module['GENERAL']['LOAD_SETTINGS'] = ($auth->acl_get('a_server')) ? "$file$SID&mode=load" : ''; return; } @@ -68,6 +69,10 @@ switch ($mode) $l_title = 'SERVER_SETTINGS'; $which_auth = 'a_server'; break; + case 'load': + $l_title = 'LOAD_SETTINGS'; + $which_auth = 'a_server'; + break; case 'auth': $l_title = 'AUTH_SETTINGS'; $which_auth = 'a_server'; @@ -503,7 +508,35 @@ switch ($mode) /> lang['YES']; ?>   /> lang['NO']; ?> - lang['LIMIT_LOAD']; ?>:
lang['LIMIT_LOAD_EXPLAIN']; ?> + lang['ENABLE_GZIP']; ?>: + /> lang['YES']; ?>   /> lang['NO']; ?> + + + lang['SMILIES_PATH']; ?>:
lang['SMILIES_PATH_EXPLAIN']; ?> + + + + lang['ICONS_PATH']; ?>:
lang['ICONS_PATH_EXPLAIN']; ?> + + + + + lang['LIMIT_LOAD']; ?>:
lang['LIMIT_LOAD_EXPLAIN']; ?> @@ -515,16 +548,28 @@ switch ($mode) - lang['ENABLE_GZIP']; ?>: - /> lang['YES']; ?>   /> lang['NO']; ?> + lang['VIEW_ONLINE_TIME']; ?>:
lang['VIEW_ONLINE_TIME_EXPLAIN']; ?> + - lang['SMILIES_PATH']; ?>:
lang['SMILIES_PATH_EXPLAIN']; ?> - + lang['YES_ONLINE']; ?>:
lang['YES_ONLINE_EXPLAIN']; ?> + />lang['YES'] ?>    /> lang['NO']; ?> - lang['ICONS_PATH']; ?>:
lang['ICONS_PATH_EXPLAIN']; ?> - + lang['YES_MODERATORS']; ?>: + />lang['YES'] ?>    /> lang['NO']; ?> + + + lang['YES_SEARCH']; ?>:
lang['YES_SEARCH_EXPLAIN']; ?> + />lang['YES'] ?>    /> lang['NO']; ?> + + + lang['YES_SEARCH_UPDATE']; ?>:
lang['YES_SEARCH_UPDATE_EXPLAIN']; ?> + />lang['YES'] ?>    /> lang['NO']; ?> + + + lang['YES_SEARCH_PHRASE']; ?>:
lang['YES_SEARCH_PHRASE_EXPLAIN']; ?> + />lang['YES'] ?>    /> lang['NO']; ?> 'Cookie Settings', 'EMAIL_SETTINGS' => 'Email Settings', 'MASS_EMAIL' => 'Mass Email', - 'SERVER_SETTINGS' => 'Server Settings', + 'SERVER_SETTINGS' => 'Server Settings', + 'LOAD_SETTINGS' => 'Load Settings', 'EVENTS' => 'Events', 'CRON' => 'Cronjobs', 'PHP_INFO' => 'PHP Information', @@ -438,11 +439,6 @@ $lang = array_merge($lang, array( 'CLASS_B' => 'A.B', 'BROWSER_VALID' => 'Validate browser', 'BROWSER_VALID_EXPLAIN' => 'Enables browser validation for each session inproving security.', - 'LIMIT_LOAD' => 'Limit system load', - 'LIMIT_LOAD_EXPLAIN' => 'If the 1 minute system load exceeds this value the board will go offline, 1.0 equals ~100% utilisation of one processor. This only functions on UNIX based servers.', - 'SESSION_LENGTH' => 'Session length [ seconds ]', - 'LIMIT_SESSIONS' => 'Limit sessions', - 'LIMIT_SESSIONS_EXPLAIN' => 'If the number of sessions exceeds this value within a one minute period the board will go offline. Set to 0 for unlimited sessions.', 'ENABLE_GZIP' => 'Enable GZip Compression', 'SMILIES_PATH' => 'Smilies storage path', 'SMILIES_PATH_EXPLAIN' => 'Path under your phpBB root dir, e.g. images/smilies', @@ -450,6 +446,25 @@ $lang = array_merge($lang, array( 'ICONS_PATH_EXPLAIN' => 'Path under your phpBB root dir, e.g. images/icons', + 'LOAD_SETTINGS_EXPLAIN' => 'Here you can enable and disable certain board functions to reduce the amount of processing required. On most servers there is no need to disable any functions. However on certain systems or in shared hosting environments it may be beneficial to disable capabilities you do not really need. You can also specify limits for system load and active sessions beyond which the board will go offline.', + 'LIMIT_LOAD' => 'Limit system load', + 'LIMIT_LOAD_EXPLAIN' => 'If the 1 minute system load exceeds this value the board will go offline, 1.0 equals ~100% utilisation of one processor. This only functions on UNIX based servers.', + 'LIMIT_SESSIONS' => 'Limit sessions', + 'LIMIT_SESSIONS_EXPLAIN' => 'If the number of sessions exceeds this value within a one minute period the board will go offline. Set to 0 for unlimited sessions.', + 'SESSION_LENGTH' => 'Session length [ seconds ]', + 'VIEW_ONLINE_TIME' => 'View online time span [ minutes ]', + 'VIEW_ONLINE_TIME_EXPLAIN' => 'How long before users drop out of the viewonline listings, lower equals less processing.', + 'YES_ONLINE' => 'Enable pagewise online list', + 'YES_ONLINE_EXPLAIN' => 'Display users browsing on index, forum and topic pages.', + 'YES_MODERATORS' => 'Enable display of Moderators', + 'YES_SEARCH' => 'Enable search facilities', + 'YES_SEARCH_EXPLAIN' => 'User and backend search functions including fulltext updates when posting.', + 'YES_SEARCH_UPDATE' => 'Enable fulltext updating', + 'YES_SEARCH_UPDATE_EXPLAIN' => 'Updating of fulltext indexes when posting, overriden if search is disabled.', + 'YES_SEARCH_PHRASE' => 'Enable phrase searching', + 'YES_SEARCH_PHRASE_EXPLAIN' => 'Searching for phrases requires additional processing.', + + 'EMAIL_SETTINGS_EXPLAIN' => 'This information is used when the board sends emails to your users. Please ensure the email address you specify is valid, any bounced or undeliverable messages will likely be sent to that address. If your host does not provide a native (PHP based) email service you can instead send messages directly using SMTP. This requires the address of an appropriate server (ask your provider if necessary), do not specify any old name here! If the server requires authentication (and only if it does) enter the necessary username and password. Please note only basic authentication is offered, different authentication implementations are not currently supported.', 'ENABLE_EMAIL' => 'Enable board-wide emails', 'ENABLE_EMAIL_EXPLAIN' => 'If this is set to disabled no emails will be sent by the board at all.',