mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-18 22:58:10 +01:00
Load and cpu saving
git-svn-id: file:///svn/phpbb/trunk@3840 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9f8bc2a0df
commit
d9dcb502a9
@ -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)
|
||||
<td class="row2"><input type="radio" name="browser_check" value="1" <?php echo $browser_yes; ?> /> <?php echo $user->lang['YES']; ?> <input type="radio" name="browser_check" value="0" <?php echo $browser_no; ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['LIMIT_LOAD']; ?>: <br /><span class="gensmall"><?php echo $user->lang['LIMIT_LOAD_EXPLAIN']; ?></span></td>
|
||||
<td class="row1"><?php echo $user->lang['ENABLE_GZIP']; ?>: </td>
|
||||
<td class="row2"><input type="radio" name="gzip_compress" value="1" <?php echo $gzip_yes; ?> /> <?php echo $user->lang['YES']; ?> <input type="radio" name="gzip_compress" value="0" <?php echo $gzip_no; ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['SMILIES_PATH']; ?>: <br /><span class="gensmall"><?php echo $user->lang['SMILIES_PATH_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="text" size="20" maxlength="255" name="smilies_path" value="<?php echo $new['smilies_path']; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['ICONS_PATH']; ?>: <br /><span class="gensmall"><?php echo $user->lang['ICONS_PATH_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="text" size="20" maxlength="255" name="icons_path" value="<?php echo $new['icons_path']; ?>" /></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
case 'load':
|
||||
|
||||
$load_online_yes = ($new['load_online']) ? 'checked="checked"' : '';
|
||||
$load_online_no = (!$new['load_online']) ? 'checked="checked"' : '';
|
||||
$moderators_yes = ($new['load_moderators']) ? 'checked="checked"' : '';
|
||||
$moderators_no = (!$new['load_moderators']) ? 'checked="checked"' : '';
|
||||
$search_yes = ($new['load_search']) ? 'checked="checked"' : '';
|
||||
$search_no = (!$new['load_search']) ? 'checked="checked"' : '';
|
||||
$search_update_yes = ($new['load_search_upd']) ? 'checked="checked"' : '';
|
||||
$search_update_no = (!$new['load_search_upd']) ? 'checked="checked"' : '';
|
||||
$search_phrase_yes = ($new['load_search_phr']) ? 'checked="checked"' : '';
|
||||
$search_phrase_no = (!$new['load_search_phr']) ? 'checked="checked"' : '';
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="row1" width="50%"><?php echo $user->lang['LIMIT_LOAD']; ?>: <br /><span class="gensmall"><?php echo $user->lang['LIMIT_LOAD_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="text" size="4" maxlength="4" name="limit_load" value="<?php echo $new['limit_load']; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -515,16 +548,28 @@ switch ($mode)
|
||||
<td class="row2"><input type="text" size="4" maxlength="4" name="active_sessions" value="<?php echo $new['active_sessions']; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['ENABLE_GZIP']; ?>: </td>
|
||||
<td class="row2"><input type="radio" name="gzip_compress" value="1" <?php echo $gzip_yes; ?> /> <?php echo $user->lang['YES']; ?> <input type="radio" name="gzip_compress" value="0" <?php echo $gzip_no; ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
<td class="row1"><?php echo $user->lang['VIEW_ONLINE_TIME']; ?>: <br /><span class="gensmall"><?php echo $user->lang['VIEW_ONLINE_TIME_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="text" size="4" maxlength="3" name="load_online_time" value="<?php echo $new['load_online_time']; ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['SMILIES_PATH']; ?>: <br /><span class="gensmall"><?php echo $user->lang['SMILIES_PATH_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="text" size="20" maxlength="255" name="smilies_path" value="<?php echo $new['smilies_path']; ?>" /></td>
|
||||
<td class="row1"><?php echo $user->lang['YES_ONLINE']; ?>: <br /><span class="gensmall"><?php echo $user->lang['YES_ONLINE_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="radio" name="load_online" value="1"<?php echo $load_online_yes ?> /><?php echo $user->lang['YES'] ?> <input type="radio" name="load_online" value="0" <?php echo $load_online_no ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['ICONS_PATH']; ?>: <br /><span class="gensmall"><?php echo $user->lang['ICONS_PATH_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="text" size="20" maxlength="255" name="icons_path" value="<?php echo $new['icons_path']; ?>" /></td>
|
||||
<td class="row1"><?php echo $user->lang['YES_MODERATORS']; ?>: </td>
|
||||
<td class="row2"><input type="radio" name="load_moderators" value="1"<?php echo $moderators_yes ?> /><?php echo $user->lang['YES'] ?> <input type="radio" name="load_moderators" value="0" <?php echo $moderators_no ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['YES_SEARCH']; ?>: <br /><span class="gensmall"><?php echo $user->lang['YES_SEARCH_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="radio" name="load_search" value="1"<?php echo $search_yes ?> /><?php echo $user->lang['YES'] ?> <input type="radio" name="load_search" value="0" <?php echo $search_no ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['YES_SEARCH_UPDATE']; ?>: <br /><span class="gensmall"><?php echo $user->lang['YES_SEARCH_UPDATE_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="radio" name="load_search_upd" value="1"<?php echo $search_update_yes ?> /><?php echo $user->lang['YES'] ?> <input type="radio" name="load_search_upd" value="0" <?php echo $search_update_no ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1"><?php echo $user->lang['YES_SEARCH_PHRASE']; ?>: <br /><span class="gensmall"><?php echo $user->lang['YES_SEARCH_PHRASE_EXPLAIN']; ?></span></td>
|
||||
<td class="row2"><input type="radio" name="load_search_phr" value="1"<?php echo $search_phrase_yes ?> /><?php echo $user->lang['YES'] ?> <input type="radio" name="load_search_phr" value="0" <?php echo $search_phrase_no ?> /> <?php echo $user->lang['NO']; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
|
@ -51,7 +51,8 @@ $lang = array_merge($lang, array(
|
||||
'COOKIE_SETTINGS' => '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.',
|
||||
|
Loading…
x
Reference in New Issue
Block a user