aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/acp/acp_attachments.php2
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php159
-rw-r--r--phpBB/includes/acp/acp_board.php52
-rw-r--r--phpBB/includes/acp/acp_database.php2
-rw-r--r--phpBB/includes/acp/acp_extensions.php187
-rw-r--r--phpBB/includes/acp/acp_forums.php14
-rw-r--r--phpBB/includes/acp/acp_main.php2
-rw-r--r--phpBB/includes/acp/acp_reasons.php2
-rw-r--r--phpBB/includes/acp/acp_users.php11
-rw-r--r--phpBB/includes/compatibility_globals.php8
-rw-r--r--phpBB/includes/constants.php6
-rw-r--r--phpBB/includes/functions.php388
-rw-r--r--phpBB/includes/functions_acp.php2
-rw-r--r--phpBB/includes/functions_admin.php45
-rw-r--r--phpBB/includes/functions_compatibility.php190
-rw-r--r--phpBB/includes/functions_compress.php4
-rw-r--r--phpBB/includes/functions_content.php20
-rw-r--r--phpBB/includes/functions_convert.php15
-rw-r--r--phpBB/includes/functions_display.php44
-rw-r--r--phpBB/includes/functions_download.php26
-rw-r--r--phpBB/includes/functions_module.php10
-rw-r--r--phpBB/includes/functions_posting.php34
-rw-r--r--phpBB/includes/functions_transfer.php4
-rw-r--r--phpBB/includes/functions_user.php14
-rw-r--r--phpBB/includes/questionnaire/questionnaire.php4
-rw-r--r--phpBB/includes/startup.php6
-rw-r--r--phpBB/includes/ucp/ucp_profile.php7
-rw-r--r--phpBB/includes/ucp/ucp_register.php34
-rw-r--r--phpBB/includes/ucp/ucp_remind.php174
-rw-r--r--phpBB/includes/ucp/ucp_resend.php2
30 files changed, 480 insertions, 988 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php
index 94e3660de8..feeccbe853 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -610,7 +610,6 @@ class acp_attachments
$cat_lang = array(
ATTACHMENT_CATEGORY_NONE => $user->lang['NO_FILE_CAT'],
ATTACHMENT_CATEGORY_IMAGE => $user->lang['CAT_IMAGES'],
- ATTACHMENT_CATEGORY_FLASH => $user->lang['CAT_FLASH_FILES'],
);
$group_id = $request->variable('g', 0);
@@ -1385,7 +1384,6 @@ class acp_attachments
$types = array(
ATTACHMENT_CATEGORY_NONE => $user->lang['NO_FILE_CAT'],
ATTACHMENT_CATEGORY_IMAGE => $user->lang['CAT_IMAGES'],
- ATTACHMENT_CATEGORY_FLASH => $user->lang['CAT_FLASH_FILES'],
);
if ($group_id)
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index bd8df6a63b..a67f3c54f9 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -446,144 +446,7 @@ class acp_bbcodes
function build_regexp(&$bbcode_match, &$bbcode_tpl)
{
$bbcode_match = trim($bbcode_match);
- $bbcode_tpl = trim($bbcode_tpl);
-
- // Allow unicode characters for URL|LOCAL_URL|RELATIVE_URL|INTTEXT tokens
- $utf8 = preg_match('/(URL|LOCAL_URL|RELATIVE_URL|INTTEXT)/', $bbcode_match);
-
- $fp_match = preg_quote($bbcode_match, '!');
- $fp_replace = preg_replace('#^\[(.*?)\]#', '[$1:$uid]', $bbcode_match);
- $fp_replace = preg_replace('#\[/(.*?)\]$#', '[/$1:$uid]', $fp_replace);
-
- $sp_match = preg_quote($bbcode_match, '!');
- $sp_match = preg_replace('#^\\\\\[(.*?)\\\\\]#', '\[$1:$uid\]', $sp_match);
- $sp_match = preg_replace('#\\\\\[/(.*?)\\\\\]$#', '\[/$1:$uid\]', $sp_match);
- $sp_replace = $bbcode_tpl;
-
- // @todo Make sure to change this too if something changed in message parsing
- $tokens = array(
- 'URL' => array(
- '!(?:(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('url')) . ')|(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('www_url')) . '))!ie' => "\$this->bbcode_specialchars(('\$1') ? '\$1' : 'http://\$2')"
- ),
- 'LOCAL_URL' => array(
- '!(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')!e' => "\$this->bbcode_specialchars('$1')"
- ),
- 'RELATIVE_URL' => array(
- '!(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')!e' => "\$this->bbcode_specialchars('$1')"
- ),
- 'EMAIL' => array(
- '!(' . get_preg_expression('email') . ')!ie' => "\$this->bbcode_specialchars('$1')"
- ),
- 'TEXT' => array(
- '!(.*?)!es' => "str_replace(array(\"\\r\\n\", '\\\"', '\\'', '(', ')'), array(\"\\n\", '\"', ''', '(', ')'), trim('\$1'))"
- ),
- 'SIMPLETEXT' => array(
- '!([a-zA-Z0-9-+.,_ ]+)!' => "$1"
- ),
- 'INTTEXT' => array(
- '!([\p{L}\p{N}\-+,_. ]+)!u' => "$1"
- ),
- 'IDENTIFIER' => array(
- '!([a-zA-Z0-9-_]+)!' => "$1"
- ),
- 'COLOR' => array(
- '!([a-z]+|#[0-9abcdef]+)!i' => '$1'
- ),
- 'NUMBER' => array(
- '!([0-9]+)!' => '$1'
- )
- );
-
- $sp_tokens = array(
- 'URL' => '(?i)((?:' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('url')) . ')|(?:' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('www_url')) . '))(?-i)',
- 'LOCAL_URL' => '(?i)(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')(?-i)',
- 'RELATIVE_URL' => '(?i)(' . str_replace(array('!', '\#'), array('\!', '#'), get_preg_expression('relative_url')) . ')(?-i)',
- 'EMAIL' => '(' . get_preg_expression('email') . ')',
- 'TEXT' => '(.*?)',
- 'SIMPLETEXT' => '([a-zA-Z0-9-+.,_ ]+)',
- 'INTTEXT' => '([\p{L}\p{N}\-+,_. ]+)',
- 'IDENTIFIER' => '([a-zA-Z0-9-_]+)',
- 'COLOR' => '([a-zA-Z]+|#[0-9abcdefABCDEF]+)',
- 'NUMBER' => '([0-9]+)',
- );
-
- $pad = 0;
- $modifiers = 'i';
- $modifiers .= ($utf8) ? 'u' : '';
-
- if (preg_match_all('/\{(' . implode('|', array_keys($tokens)) . ')[0-9]*\}/i', $bbcode_match, $m))
- {
- foreach ($m[0] as $n => $token)
- {
- $token_type = $m[1][$n];
-
- reset($tokens[strtoupper($token_type)]);
- list($match, $replace) = each($tokens[strtoupper($token_type)]);
-
- // Pad backreference numbers from tokens
- if (preg_match_all('/(?<!\\\\)\$([0-9]+)/', $replace, $repad))
- {
- $repad = $pad + count(array_unique($repad[0]));
- $replace = preg_replace_callback('/(?<!\\\\)\$([0-9]+)/', function ($match) use ($pad) {
- return '${' . ($match[1] + $pad) . '}';
- }, $replace);
- $pad = $repad;
- }
-
- // Obtain pattern modifiers to use and alter the regex accordingly
- $regex = preg_replace('/!(.*)!([a-z]*)/', '$1', $match);
- $regex_modifiers = preg_replace('/!(.*)!([a-z]*)/', '$2', $match);
-
- for ($i = 0, $size = strlen($regex_modifiers); $i < $size; ++$i)
- {
- if (strpos($modifiers, $regex_modifiers[$i]) === false)
- {
- $modifiers .= $regex_modifiers[$i];
-
- if ($regex_modifiers[$i] == 'e')
- {
- $fp_replace = "'" . str_replace("'", "\\'", $fp_replace) . "'";
- }
- }
-
- if ($regex_modifiers[$i] == 'e')
- {
- $replace = "'.$replace.'";
- }
- }
-
- $fp_match = str_replace(preg_quote($token, '!'), $regex, $fp_match);
- $fp_replace = str_replace($token, $replace, $fp_replace);
-
- $sp_match = str_replace(preg_quote($token, '!'), $sp_tokens[$token_type], $sp_match);
-
- // Prepend the board url to local relative links
- $replace_prepend = ($token_type === 'LOCAL_URL') ? generate_board_url() . '/' : '';
-
- $sp_replace = str_replace($token, $replace_prepend . '${' . ($n + 1) . '}', $sp_replace);
- }
-
- $fp_match = '!' . $fp_match . '!' . $modifiers;
- $sp_match = '!' . $sp_match . '!s' . (($utf8) ? 'u' : '');
-
- if (strpos($fp_match, 'e') !== false)
- {
- $fp_replace = str_replace("'.'", '', $fp_replace);
- $fp_replace = str_replace(".''.", '.', $fp_replace);
- }
- }
- else
- {
- // No replacement is present, no need for a second-pass pattern replacement
- // A simple str_replace will suffice
- $fp_match = '!' . $fp_match . '!' . $modifiers;
- $sp_match = $fp_replace;
- $sp_replace = '';
- }
-
- // Lowercase tags
$bbcode_tag = preg_replace('/.*?\[([a-z0-9_-]+).*/i', '$1', $bbcode_match);
- $bbcode_search = preg_replace('/.*?\[([a-z0-9_-]+).*/i', '$1', $bbcode_match);
if (!preg_match('/^[a-zA-Z0-9_-]+$/', $bbcode_tag))
{
@@ -591,25 +454,13 @@ class acp_bbcodes
trigger_error($user->lang['BBCODE_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
- $fp_match = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
- return strtolower($match[0]);
- }, $fp_match);
- $fp_replace = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
- return strtolower($match[0]);
- }, $fp_replace);
- $sp_match = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
- return strtolower($match[0]);
- }, $sp_match);
- $sp_replace = preg_replace_callback('#\[/?' . $bbcode_search . '#i', function ($match) {
- return strtolower($match[0]);
- }, $sp_replace);
-
return array(
'bbcode_tag' => $bbcode_tag,
- 'first_pass_match' => $fp_match,
- 'first_pass_replace' => $fp_replace,
- 'second_pass_match' => $sp_match,
- 'second_pass_replace' => $sp_replace
+ 'first_pass_match' => '/(?!)/',
+ 'first_pass_replace' => '',
+ // Use a non-matching, valid regexp to effectively disable this BBCode
+ 'second_pass_match' => '/(?!)/',
+ 'second_pass_replace' => ''
);
}
}
diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php
index 0730b4e285..2441a37edc 100644
--- a/phpBB/includes/acp/acp_board.php
+++ b/phpBB/includes/acp/acp_board.php
@@ -85,34 +85,26 @@ class acp_board
$display_vars = array(
'title' => 'ACP_BOARD_FEATURES',
'vars' => array(
- 'legend1' => 'ACP_BOARD_FEATURES',
- 'allow_privmsg' => array('lang' => 'BOARD_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'allow_topic_notify' => array('lang' => 'ALLOW_TOPIC_NOTIFY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_forum_notify' => array('lang' => 'ALLOW_FORUM_NOTIFY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_namechange' => array('lang' => 'ALLOW_NAME_CHANGE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_attachments' => array('lang' => 'ALLOW_ATTACHMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_pm_attach' => array('lang' => 'ALLOW_PM_ATTACHMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_pm_report' => array('lang' => 'ALLOW_PM_REPORT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'allow_bbcode' => array('lang' => 'ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_smilies' => array('lang' => 'ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_sig' => array('lang' => 'ALLOW_SIG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'legend1' => 'ACP_BOARD_FEATURES',
+ 'allow_privmsg' => array('lang' => 'BOARD_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'allow_topic_notify' => array('lang' => 'ALLOW_TOPIC_NOTIFY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_forum_notify' => array('lang' => 'ALLOW_FORUM_NOTIFY', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_namechange' => array('lang' => 'ALLOW_NAME_CHANGE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_attachments' => array('lang' => 'ALLOW_ATTACHMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_pm_attach' => array('lang' => 'ALLOW_PM_ATTACHMENTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_pm_report' => array('lang' => 'ALLOW_PM_REPORT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'allow_bbcode' => array('lang' => 'ALLOW_BBCODE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_smilies' => array('lang' => 'ALLOW_SMILIES', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
+ 'allow_sig' => array('lang' => 'ALLOW_SIG', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
'allow_board_notifications' => array('lang' => 'ALLOW_BOARD_NOTIFICATIONS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'allow_nocensors' => array('lang' => 'ALLOW_NO_CENSORS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'allow_bookmarks' => array('lang' => 'ALLOW_BOOKMARKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'allow_birthdays' => array('lang' => 'ALLOW_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'display_last_subject' => array('lang' => 'DISPLAY_LAST_SUBJECT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'allow_quick_reply' => array('lang' => 'ALLOW_QUICK_REPLY', 'validate' => 'bool', 'type' => 'custom', 'method' => 'quick_reply', 'explain' => true),
-
- 'legend2' => 'ACP_LOAD_SETTINGS',
- 'load_birthdays' => array('lang' => 'YES_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'load_moderators' => array('lang' => 'YES_MODERATORS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'load_jumpbox' => array('lang' => 'YES_JUMPBOX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'load_cpf_memberlist' => array('lang' => 'LOAD_CPF_MEMBERLIST', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'load_cpf_pm' => array('lang' => 'LOAD_CPF_PM', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'load_cpf_viewprofile' => array('lang' => 'LOAD_CPF_VIEWPROFILE', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
- 'load_cpf_viewtopic' => array('lang' => 'LOAD_CPF_VIEWTOPIC', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => false),
-
- 'legend3' => 'ACP_SUBMIT_CHANGES',
+ 'allow_nocensors' => array('lang' => 'ALLOW_NO_CENSORS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'allow_bookmarks' => array('lang' => 'ALLOW_BOOKMARKS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'allow_birthdays' => array('lang' => 'ALLOW_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'display_last_subject' => array('lang' => 'DISPLAY_LAST_SUBJECT', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'display_unapproved_posts' => array('lang' => 'DISPLAY_UNAPPROVED_POSTS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
+ 'allow_quick_reply' => array('lang' => 'ALLOW_QUICK_REPLY', 'validate' => 'bool', 'type' => 'custom', 'method' => 'quick_reply', 'explain' => true),
+
+ 'legend2' => 'ACP_SUBMIT_CHANGES',
)
);
break;
@@ -263,7 +255,6 @@ class acp_board
'vars' => array(
'legend1' => 'GENERAL_SETTINGS',
'max_name_chars' => array('lang' => 'USERNAME_LENGTH', 'validate' => 'int:8:180', 'type' => false, 'method' => false, 'explain' => false,),
- 'max_pass_chars' => array('lang' => 'PASSWORD_LENGTH', 'validate' => 'int:8:255', 'type' => false, 'method' => false, 'explain' => false,),
'require_activation' => array('lang' => 'ACC_ACTIVATION', 'validate' => 'int', 'type' => 'select', 'method' => 'select_acc_activation', 'explain' => true),
'new_member_post_limit' => array('lang' => 'NEW_MEMBER_POST_LIMIT', 'validate' => 'int:0:255', 'type' => 'number:0:255', 'explain' => true, 'append' => ' ' . $user->lang['POSTS']),
@@ -426,7 +417,6 @@ class acp_board
'remote_upload_verify' => array('lang' => 'UPLOAD_CERT_VALID', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'check_dnsbl' => array('lang' => 'CHECK_DNSBL', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
'email_check_mx' => array('lang' => 'EMAIL_CHECK_MX', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
- 'max_pass_chars' => array('lang' => 'PASSWORD_LENGTH', 'validate' => 'int:8:255', 'type' => false, 'method' => false, 'explain' => false,),
'min_pass_chars' => array('lang' => 'PASSWORD_LENGTH', 'validate' => 'int:1', 'type' => 'custom', 'method' => 'password_length', 'explain' => true),
'pass_complex' => array('lang' => 'PASSWORD_TYPE', 'validate' => 'string', 'type' => 'select', 'method' => 'select_password_chars', 'explain' => true),
'chg_passforce' => array('lang' => 'FORCE_PASS_CHANGE', 'validate' => 'int:0:999', 'type' => 'number:0:999', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
@@ -904,13 +894,13 @@ class acp_board
}
/**
- * Maximum/Minimum password length
+ * Minimum password length
*/
function password_length($value, $key)
{
global $user;
- return '<input id="' . $key . '" type="number" min="1" max="999" name="config[min_pass_chars]" value="' . $value . '" /> ' . $user->lang['MIN_CHARS'] . '&nbsp;&nbsp;<input type="number" min="8" max="255" name="config[max_pass_chars]" value="' . $this->new_config['max_pass_chars'] . '" /> ' . $user->lang['MAX_CHARS'];
+ return '<input id="' . $key . '" type="number" min="1" max="999" name="config[min_pass_chars]" value="' . $value . '" /> ' . $user->lang['MIN_CHARS'];
}
/**
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php
index 677fce7217..c1c748832b 100644
--- a/phpBB/includes/acp/acp_database.php
+++ b/phpBB/includes/acp/acp_database.php
@@ -248,8 +248,6 @@ class acp_database
switch ($db->get_sql_layer())
{
- case 'mysql':
- case 'mysql4':
case 'mysqli':
case 'sqlite3':
while (($sql = $fgetd($fp, ";\n", $read, $seek, $eof)) !== false)
diff --git a/phpBB/includes/acp/acp_extensions.php b/phpBB/includes/acp/acp_extensions.php
index a1cb2108e7..6ac70ce3a8 100644
--- a/phpBB/includes/acp/acp_extensions.php
+++ b/phpBB/includes/acp/acp_extensions.php
@@ -38,7 +38,7 @@ class acp_extensions
private $phpbb_container;
private $php_ini;
- function main()
+ function main($id, $mode)
{
// Start the page
global $config, $user, $template, $request, $phpbb_extension_manager, $phpbb_root_path, $phpbb_log, $phpbb_dispatcher, $phpbb_container;
@@ -172,23 +172,27 @@ class acp_extensions
}
$extension = $this->ext_manager->get_extension($ext_name);
- if (!$extension->is_enableable())
- {
- trigger_error($this->user->lang['EXTENSION_NOT_ENABLEABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
- }
+
+ $this->check_is_enableable($extension);
if ($this->ext_manager->is_enabled($ext_name))
{
redirect($this->u_action);
}
- $this->tpl_name = 'acp_ext_enable';
-
- $this->template->assign_vars(array(
- 'PRE' => true,
- 'L_CONFIRM_MESSAGE' => $this->user->lang('EXTENSION_ENABLE_CONFIRM', $md_manager->get_metadata('display-name')),
- 'U_ENABLE' => $this->u_action . '&amp;action=enable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('enable.' . $ext_name),
- ));
+ if (confirm_box(true))
+ {
+ redirect($this->u_action . '&amp;action=enable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('enable.' . $ext_name));
+ }
+ else
+ {
+ confirm_box(false, $this->user->lang('EXTENSION_ENABLE_CONFIRM', $md_manager->get_metadata('display-name')), build_hidden_fields(array(
+ 'i' => $id,
+ 'mode' => $mode,
+ 'action' => 'enable_pre',
+ 'ext_name' => $ext_name,
+ )));
+ }
break;
case 'enable':
@@ -203,10 +207,8 @@ class acp_extensions
}
$extension = $this->ext_manager->get_extension($ext_name);
- if (!$extension->is_enableable())
- {
- trigger_error($this->user->lang['EXTENSION_NOT_ENABLEABLE'] . adm_back_link($this->u_action), E_USER_WARNING);
- }
+
+ $this->check_is_enableable($extension);
try
{
@@ -215,9 +217,8 @@ class acp_extensions
// Are we approaching the time limit? If so we want to pause the update and continue after refreshing
if ((time() - $start_time) >= $safe_time_limit)
{
- $this->template->assign_var('S_NEXT_STEP', true);
-
meta_refresh(0, $this->u_action . '&amp;action=enable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('enable.' . $ext_name));
+ trigger_error('EXTENSION_ENABLE_IN_PROGRESS', E_USER_NOTICE);
}
}
@@ -233,14 +234,22 @@ class acp_extensions
}
catch (\phpbb\db\migration\exception $e)
{
- $this->template->assign_var('MIGRATOR_ERROR', $e->getLocalisedMessage($this->user));
+ trigger_error($this->user->lang('MIGRATION_EXCEPTION_ERROR', $e->getLocalisedMessage($this->user)), E_USER_WARNING);
}
- $this->tpl_name = 'acp_ext_enable';
-
- $this->template->assign_vars(array(
- 'U_RETURN' => $this->u_action . '&amp;action=list',
- ));
+ if ($this->request->is_ajax())
+ {
+ $actions = $this->output_actions('enabled', [
+ 'DISABLE' => $this->u_action . '&amp;action=disable_pre&amp;ext_name=' . urlencode($ext_name),
+ ]);
+
+ $json_response = new \phpbb\json_response;
+ $json_response->send(array(
+ 'EXT_ENABLE_SUCCESS' => true,
+ 'ACTIONS' => $actions,
+ ));
+ }
+ trigger_error($this->user->lang('EXTENSION_ENABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;
case 'disable_pre':
@@ -249,13 +258,19 @@ class acp_extensions
redirect($this->u_action);
}
- $this->tpl_name = 'acp_ext_disable';
-
- $this->template->assign_vars(array(
- 'PRE' => true,
- 'L_CONFIRM_MESSAGE' => $this->user->lang('EXTENSION_DISABLE_CONFIRM', $md_manager->get_metadata('display-name')),
- 'U_DISABLE' => $this->u_action . '&amp;action=disable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('disable.' . $ext_name),
- ));
+ if (confirm_box(true))
+ {
+ redirect($this->u_action . '&amp;action=disable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('disable.' . $ext_name));
+ }
+ else
+ {
+ confirm_box(false, $this->user->lang('EXTENSION_DISABLE_CONFIRM', $md_manager->get_metadata('display-name')), build_hidden_fields(array(
+ 'i' => $id,
+ 'mode' => $mode,
+ 'action' => 'disable_pre',
+ 'ext_name' => $ext_name,
+ )));
+ }
break;
case 'disable':
@@ -272,15 +287,25 @@ class acp_extensions
$this->template->assign_var('S_NEXT_STEP', true);
meta_refresh(0, $this->u_action . '&amp;action=disable&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('disable.' . $ext_name));
+ trigger_error('EXTENSION_DISABLE_IN_PROGRESS', E_USER_NOTICE);
}
}
$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_EXT_DISABLE', time(), array($ext_name));
- $this->tpl_name = 'acp_ext_disable';
-
- $this->template->assign_vars(array(
- 'U_RETURN' => $this->u_action . '&amp;action=list',
- ));
+ if ($this->request->is_ajax())
+ {
+ $actions = $this->output_actions('disabled', [
+ 'ENABLE' => $this->u_action . '&amp;action=enable_pre&amp;ext_name=' . urlencode($ext_name),
+ 'DELETE_DATA' => $this->u_action . '&amp;action=delete_data_pre&amp;ext_name=' . urlencode($ext_name),
+ ]);
+
+ $json_response = new \phpbb\json_response;
+ $json_response->send(array(
+ 'EXT_DISABLE_SUCCESS' => true,
+ 'ACTIONS' => $actions,
+ ));
+ }
+ trigger_error($this->user->lang('EXTENSION_DISABLE_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;
case 'delete_data_pre':
@@ -288,13 +313,20 @@ class acp_extensions
{
redirect($this->u_action);
}
- $this->tpl_name = 'acp_ext_delete_data';
- $this->template->assign_vars(array(
- 'PRE' => true,
- 'L_CONFIRM_MESSAGE' => $this->user->lang('EXTENSION_DELETE_DATA_CONFIRM', $md_manager->get_metadata('display-name')),
- 'U_PURGE' => $this->u_action . '&amp;action=delete_data&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('delete_data.' . $ext_name),
- ));
+ if (confirm_box(true))
+ {
+ redirect($this->u_action . '&amp;action=delete_data&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('delete_data.' . $ext_name));
+ }
+ else
+ {
+ confirm_box(false, $this->user->lang('EXTENSION_DELETE_DATA_CONFIRM', $md_manager->get_metadata('display-name')), build_hidden_fields(array(
+ 'i' => $id,
+ 'mode' => $mode,
+ 'action' => 'delete_data_pre',
+ 'ext_name' => $ext_name,
+ )));
+ }
break;
case 'delete_data':
@@ -313,20 +345,29 @@ class acp_extensions
$this->template->assign_var('S_NEXT_STEP', true);
meta_refresh(0, $this->u_action . '&amp;action=delete_data&amp;ext_name=' . urlencode($ext_name) . '&amp;hash=' . generate_link_hash('delete_data.' . $ext_name));
+ trigger_error('EXTENSION_DELETE_DATA_IN_PROGRESS', E_USER_NOTICE);
}
}
$this->log->add('admin', $this->user->data['user_id'], $this->user->ip, 'LOG_EXT_PURGE', time(), array($ext_name));
}
catch (\phpbb\db\migration\exception $e)
{
- $this->template->assign_var('MIGRATOR_ERROR', $e->getLocalisedMessage($this->user));
+ trigger_error($this->user->lang('MIGRATION_EXCEPTION_ERROR', $e->getLocalisedMessage($this->user)), E_USER_WARNING);
}
- $this->tpl_name = 'acp_ext_delete_data';
-
- $this->template->assign_vars(array(
- 'U_RETURN' => $this->u_action . '&amp;action=list',
- ));
+ if ($this->request->is_ajax())
+ {
+ $actions = $this->output_actions('disabled', [
+ 'ENABLE' => $this->u_action . '&amp;action=enable_pre&amp;ext_name=' . urlencode($ext_name),
+ ]);
+
+ $json_response = new \phpbb\json_response;
+ $json_response->send(array(
+ 'EXT_DELETE_DATA_SUCCESS' => true,
+ 'ACTIONS' => $actions,
+ ));
+ }
+ trigger_error($this->user->lang('EXTENSION_DELETE_DATA_SUCCESS') . adm_back_link($this->u_action), E_USER_NOTICE);
break;
case 'details':
@@ -605,17 +646,37 @@ class acp_extensions
*
* @param string $block
* @param array $actions
+ * @return array List of actions to be performed on the extension
*/
private function output_actions($block, $actions)
{
- foreach ($actions as $lang => $url)
+ $vars_ary = array();
+ foreach ($actions as $lang => $options)
{
- $this->template->assign_block_vars($block . '.actions', array(
+ $url = $options;
+ if (is_array($options))
+ {
+ $url = $options['url'];
+ }
+
+ $vars = array(
'L_ACTION' => $this->user->lang('EXTENSION_' . $lang),
'L_ACTION_EXPLAIN' => (isset($this->user->lang['EXTENSION_' . $lang . '_EXPLAIN'])) ? $this->user->lang('EXTENSION_' . $lang . '_EXPLAIN') : '',
'U_ACTION' => $url,
- ));
+ 'ACTION_AJAX' => 'ext_' . strtolower($lang),
+ );
+
+ if (isset($options['color']))
+ {
+ $vars['COLOR'] = $options['color'];
+ }
+
+ $this->template->assign_block_vars($block . '.actions', $vars);
+
+ $vars_ary[] = $vars;
}
+
+ return $vars_ary;
}
/**
@@ -662,4 +723,28 @@ class acp_extensions
));
}
}
+
+ /**
+ * Checks whether the extension can be enabled. Triggers error if not.
+ * Error message can be set by the extension.
+ *
+ * @param \phpbb\extension\extension_interface $extension Extension to check
+ */
+ protected function check_is_enableable(\phpbb\extension\extension_interface $extension)
+ {
+ $message = $extension->is_enableable();
+ if ($message !== true)
+ {
+ if (empty($message))
+ {
+ $message = $this->user->lang('EXTENSION_NOT_ENABLEABLE');
+ }
+ else if (is_array($message))
+ {
+ $message = implode('<br>', $message);
+ }
+
+ trigger_error($message . adm_back_link($this->u_action), E_USER_WARNING);
+ }
+ }
}
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index 22c775b7c3..ba3901f67a 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -131,11 +131,12 @@ class acp_forums
'forum_rules_link' => $request->variable('forum_rules_link', ''),
'forum_image' => $request->variable('forum_image', ''),
'forum_style' => $request->variable('forum_style', 0),
- 'display_subforum_list' => $request->variable('display_subforum_list', false),
- 'display_on_index' => $request->variable('display_on_index', false),
+ 'display_subforum_list' => $request->variable('display_subforum_list', true),
+ 'display_subforum_limit'=> $request->variable('display_subforum_limit', false),
+ 'display_on_index' => $request->variable('display_on_index', true),
'forum_topics_per_page' => $request->variable('topics_per_page', 0),
'enable_indexing' => $request->variable('enable_indexing', true),
- 'enable_icons' => $request->variable('enable_icons', false),
+ 'enable_icons' => $request->variable('enable_icons', true),
'enable_prune' => $request->variable('enable_prune', false),
'enable_post_review' => $request->variable('enable_post_review', true),
'enable_quick_reply' => $request->variable('enable_quick_reply', false),
@@ -454,10 +455,11 @@ class acp_forums
'forum_image' => '',
'forum_style' => 0,
'display_subforum_list' => true,
- 'display_on_index' => false,
+ 'display_subforum_limit' => false,
+ 'display_on_index' => true,
'forum_topics_per_page' => 0,
'enable_indexing' => true,
- 'enable_icons' => false,
+ 'enable_icons' => true,
'enable_prune' => false,
'prune_days' => 7,
'prune_viewed' => 7,
@@ -676,6 +678,7 @@ class acp_forums
'S_ENABLE_INDEXING' => ($forum_data['enable_indexing']) ? true : false,
'S_TOPIC_ICONS' => ($forum_data['enable_icons']) ? true : false,
'S_DISPLAY_SUBFORUM_LIST' => ($forum_data['display_subforum_list']) ? true : false,
+ 'S_DISPLAY_SUBFORUM_LIMIT' => ($forum_data['display_subforum_limit']) ? true : false,
'S_DISPLAY_ON_INDEX' => ($forum_data['display_on_index']) ? true : false,
'S_PRUNE_ENABLE' => ($forum_data['enable_prune']) ? true : false,
'S_PRUNE_SHADOW_ENABLE' => ($forum_data['enable_shadow_prune']) ? true : false,
@@ -1901,7 +1904,6 @@ class acp_forums
switch ($db->get_sql_layer())
{
- case 'mysql4':
case 'mysqli':
// Delete everything else and thank MySQL for offering multi-table deletion
diff --git a/phpBB/includes/acp/acp_main.php b/phpBB/includes/acp/acp_main.php
index 8f169d15a7..27fac54777 100644
--- a/phpBB/includes/acp/acp_main.php
+++ b/phpBB/includes/acp/acp_main.php
@@ -657,7 +657,7 @@ class acp_main
}
// Warn if install is still present
- if (file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install'))
+ if (!defined('IN_INSTALL') && !$phpbb_container->getParameter('allow_install_dir') && file_exists($phpbb_root_path . 'install') && !is_file($phpbb_root_path . 'install'))
{
$template->assign_var('S_REMOVE_INSTALL', true);
}
diff --git a/phpBB/includes/acp/acp_reasons.php b/phpBB/includes/acp/acp_reasons.php
index dfb2ccbfd3..f3f82bdfca 100644
--- a/phpBB/includes/acp/acp_reasons.php
+++ b/phpBB/includes/acp/acp_reasons.php
@@ -222,8 +222,6 @@ class acp_reasons
{
// The ugly one!
case 'mysqli':
- case 'mysql4':
- case 'mysql':
// Change the reports using this reason to 'other'
$sql = 'UPDATE ' . REPORTS_TABLE . '
SET reason_id = ' . $other_reason_id . ", report_text = CONCAT('" . $db->sql_escape($reason_row['reason_description']) . "\n\n', report_text)
diff --git a/phpBB/includes/acp/acp_users.php b/phpBB/includes/acp/acp_users.php
index fd4b5e8c24..6993c86279 100644
--- a/phpBB/includes/acp/acp_users.php
+++ b/phpBB/includes/acp/acp_users.php
@@ -844,9 +844,9 @@ class acp_users
// Validation data - we do not check the password complexity setting here
$check_ary = array(
'new_password' => array(
- array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
+ array('string', true, $config['min_pass_chars'], 0),
array('password')),
- 'password_confirm' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
+ 'password_confirm' => array('string', true, $config['min_pass_chars'], 0),
);
// Check username if altered
@@ -966,10 +966,7 @@ class acp_users
if ($update_email !== false)
{
- $sql_ary += array(
- 'user_email' => $update_email,
- 'user_email_hash' => phpbb_email_hash($update_email),
- );
+ $sql_ary += ['user_email' => $update_email];
$phpbb_log->add('user', $user->data['user_id'], $user->ip, 'LOG_USER_UPDATE_EMAIL', false, array(
'reportee_id' => $user_id,
@@ -1130,7 +1127,7 @@ class acp_users
$template->assign_vars(array(
'L_NAME_CHARS_EXPLAIN' => $user->lang($config['allow_name_chars'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_name_chars']), $user->lang('CHARACTERS', (int) $config['max_name_chars'])),
- 'L_CHANGE_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars']), $user->lang('CHARACTERS', (int) $config['max_pass_chars'])),
+ 'L_CHANGE_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars'])),
'L_POSTS_IN_QUEUE' => $user->lang('NUM_POSTS_IN_QUEUE', $user_row['posts_in_queue']),
'S_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
diff --git a/phpBB/includes/compatibility_globals.php b/phpBB/includes/compatibility_globals.php
index ad394e3782..15880d4bc8 100644
--- a/phpBB/includes/compatibility_globals.php
+++ b/phpBB/includes/compatibility_globals.php
@@ -18,6 +18,14 @@ if (!defined('IN_PHPBB'))
exit;
}
+//
+// Deprecated globals
+//
+define('ATTACHMENT_CATEGORY_WM', 2); // Windows Media Files - Streaming - @deprecated 3.2
+define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming - @deprecated 3.2
+define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files - @deprecated 3.2
+define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files - @deprecated 3.3
+
/**
* Sets compatibility globals in the global scope
*
diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index a2e7d92f7d..493399bd71 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -28,7 +28,7 @@ if (!defined('IN_PHPBB'))
*/
// phpBB Version
-@define('PHPBB_VERSION', '3.2.9-dev');
+@define('PHPBB_VERSION', '3.3.0-RC1-dev');
// QA-related
// define('PHPBB_QA', 1);
@@ -171,11 +171,7 @@ define('CONFIRM_REPORT', 4);
// Categories - Attachments
define('ATTACHMENT_CATEGORY_NONE', 0);
define('ATTACHMENT_CATEGORY_IMAGE', 1); // Inline Images
-define('ATTACHMENT_CATEGORY_WM', 2); // Windows Media Files - Streaming - @deprecated 3.2
-define('ATTACHMENT_CATEGORY_RM', 3); // Real Media Files - Streaming - @deprecated 3.2
define('ATTACHMENT_CATEGORY_THUMB', 4); // Not used within the database, only while displaying posts
-define('ATTACHMENT_CATEGORY_FLASH', 5); // Flash/SWF files
-define('ATTACHMENT_CATEGORY_QUICKTIME', 6); // Quicktime/Mov files - @deprecated 3.2
// BBCode UID length
define('BBCODE_UID_LEN', 8);
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index c9f589c174..c1f77a817b 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -52,18 +52,6 @@ function phpbb_load_extensions_autoloaders($phpbb_root_path)
}
/**
-* Casts a variable to the given type.
-*
-* @deprecated
-*/
-function set_var(&$result, $var, $type, $multibyte = false)
-{
- // no need for dependency injection here, if you have the object, call the method yourself!
- $type_cast_helper = new \phpbb\request\type_cast_helper();
- $type_cast_helper->set_var($result, $var, $type, $multibyte);
-}
-
-/**
* Generates an alphanumeric random string of given length
*
* @param int $num_chars Length of random string, defaults to 8.
@@ -276,18 +264,6 @@ function still_on_time($extra_time = 15)
}
/**
-* Hashes an email address to a big integer
-*
-* @param string $email Email address
-*
-* @return string Unsigned Big Integer
-*/
-function phpbb_email_hash($email)
-{
- return sprintf('%u', crc32(strtolower($email))) . strlen($email);
-}
-
-/**
* Wrapper for version_compare() that allows using uppercase A and B
* for alpha and beta releases.
*
@@ -2528,11 +2504,14 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
$s_hidden_fields = build_hidden_fields($s_hidden_fields);
+ /** @var \phpbb\controller\helper $controller_helper */
+ $controller_helper = $phpbb_container->get('controller.helper');
+
$login_box_template_data = array(
'LOGIN_ERROR' => $err,
'LOGIN_EXPLAIN' => $l_explain,
- 'U_SEND_PASSWORD' => ($config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=sendpassword') : '',
+ 'U_SEND_PASSWORD' => ($config['email_enable']) ? $controller_helper->route('phpbb_ucp_forgot_password_controller') : '',
'U_RESEND_ACTIVATION' => ($config['require_activation'] == USER_ACTIVATION_SELF && $config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=resend_act') : '',
'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),
@@ -2860,10 +2839,13 @@ function get_preg_expression($mode)
// Whoa these look impressive!
// The code to generate the following two regular expressions which match valid IPv4/IPv6 addresses
// can be found in the develop directory
+
+ // @deprecated
case 'ipv4':
return '#^(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$#';
break;
+ // @deprecated
case 'ipv6':
return '#^(?:(?:(?:[\dA-F]{1,4}:){6}(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:::(?:[\dA-F]{1,4}:){0,5}(?:[\dA-F]{1,4}(?::[\dA-F]{1,4})?|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:(?:[\dA-F]{1,4}:):(?:[\dA-F]{1,4}:){4}(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:(?:[\dA-F]{1,4}:){1,2}:(?:[\dA-F]{1,4}:){3}(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:(?:[\dA-F]{1,4}:){1,3}:(?:[\dA-F]{1,4}:){2}(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:(?:[\dA-F]{1,4}:){1,4}:(?:[\dA-F]{1,4}:)(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:(?:[\dA-F]{1,4}:){1,5}:(?:[\dA-F]{1,4}:[\dA-F]{1,4}|(?:(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.){3}(?:\d{1,2}|1\d\d|2[0-4]\d|25[0-5])))|(?:(?:[\dA-F]{1,4}:){1,6}:[\dA-F]{1,4})|(?:(?:[\dA-F]{1,4}:){1,7}:)|(?:::))$#i';
break;
@@ -2989,331 +2971,26 @@ function short_ipv6($ip, $length)
* @return mixed false if specified address is not valid,
* string otherwise
*/
-function phpbb_ip_normalise($address)
+function phpbb_ip_normalise(string $address)
{
- $address = trim($address);
+ $ip_normalised = false;
- if (empty($address) || !is_string($address))
+ if (filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
{
- return false;
+ $ip_normalised = $address;
}
-
- if (preg_match(get_preg_expression('ipv4'), $address))
+ else if (filter_var($address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
{
- return $address;
- }
-
- return phpbb_inet_ntop(phpbb_inet_pton($address));
-}
+ $ip_normalised = inet_ntop(inet_pton($address));
-/**
-* Wrapper for inet_ntop()
-*
-* Converts a packed internet address to a human readable representation
-* inet_ntop() is supported by PHP since 5.1.0, since 5.3.0 also on Windows.
-*
-* @param string $in_addr A 32bit IPv4, or 128bit IPv6 address.
-*
-* @return mixed false on failure,
-* string otherwise
-*/
-function phpbb_inet_ntop($in_addr)
-{
- $in_addr = bin2hex($in_addr);
-
- switch (strlen($in_addr))
- {
- case 8:
- return implode('.', array_map('hexdec', str_split($in_addr, 2)));
-
- case 32:
- if (substr($in_addr, 0, 24) === '00000000000000000000ffff')
- {
- return phpbb_inet_ntop(pack('H*', substr($in_addr, 24)));
- }
-
- $parts = str_split($in_addr, 4);
- $parts = preg_replace('/^0+(?!$)/', '', $parts);
- $ret = implode(':', $parts);
-
- $matches = array();
- preg_match_all('/(?<=:|^)(?::?0){2,}/', $ret, $matches, PREG_OFFSET_CAPTURE);
- $matches = $matches[0];
-
- if (empty($matches))
- {
- return $ret;
- }
-
- $longest_match = '';
- $longest_match_offset = 0;
- foreach ($matches as $match)
- {
- if (strlen($match[0]) > strlen($longest_match))
- {
- $longest_match = $match[0];
- $longest_match_offset = $match[1];
- }
- }
-
- $ret = substr_replace($ret, '', $longest_match_offset, strlen($longest_match));
-
- if ($longest_match_offset == strlen($ret))
- {
- $ret .= ':';
- }
-
- if ($longest_match_offset == 0)
- {
- $ret = ':' . $ret;
- }
-
- return $ret;
-
- default:
- return false;
- }
-}
-
-/**
-* Wrapper for inet_pton()
-*
-* Converts a human readable IP address to its packed in_addr representation
-* inet_pton() is supported by PHP since 5.1.0, since 5.3.0 also on Windows.
-*
-* @param string $address A human readable IPv4 or IPv6 address.
-*
-* @return mixed false if address is invalid,
-* in_addr representation of the given address otherwise (string)
-*/
-function phpbb_inet_pton($address)
-{
- $ret = '';
- if (preg_match(get_preg_expression('ipv4'), $address))
- {
- foreach (explode('.', $address) as $part)
- {
- $ret .= ($part <= 0xF ? '0' : '') . dechex($part);
- }
-
- return pack('H*', $ret);
- }
-
- if (preg_match(get_preg_expression('ipv6'), $address))
- {
- $parts = explode(':', $address);
- $missing_parts = 8 - count($parts) + 1;
-
- if (substr($address, 0, 2) === '::')
- {
- ++$missing_parts;
- }
-
- if (substr($address, -2) === '::')
- {
- ++$missing_parts;
- }
-
- $embedded_ipv4 = false;
- $last_part = end($parts);
-
- if (preg_match(get_preg_expression('ipv4'), $last_part))
+ // If is ipv4
+ if (stripos($ip_normalised, '::ffff:') === 0)
{
- $parts[count($parts) - 1] = '';
- $last_part = phpbb_inet_pton($last_part);
- $embedded_ipv4 = true;
- --$missing_parts;
+ $ip_normalised = substr($ip_normalised, 7);
}
-
- foreach ($parts as $i => $part)
- {
- if (strlen($part))
- {
- $ret .= str_pad($part, 4, '0', STR_PAD_LEFT);
- }
- else if ($i && $i < count($parts) - 1)
- {
- $ret .= str_repeat('0000', $missing_parts);
- }
- }
-
- $ret = pack('H*', $ret);
-
- if ($embedded_ipv4)
- {
- $ret .= $last_part;
- }
-
- return $ret;
}
- return false;
-}
-
-/**
-* Wrapper for php's checkdnsrr function.
-*
-* @param string $host Fully-Qualified Domain Name
-* @param string $type Resource record type to lookup
-* Supported types are: MX (default), A, AAAA, NS, TXT, CNAME
-* Other types may work or may not work
-*
-* @return mixed true if entry found,
-* false if entry not found,
-* null if this function is not supported by this environment
-*
-* Since null can also be returned, you probably want to compare the result
-* with === true or === false,
-*/
-function phpbb_checkdnsrr($host, $type = 'MX')
-{
- // The dot indicates to search the DNS root (helps those having DNS prefixes on the same domain)
- if (substr($host, -1) == '.')
- {
- $host_fqdn = $host;
- $host = substr($host, 0, -1);
- }
- else
- {
- $host_fqdn = $host . '.';
- }
- // $host has format some.host.example.com
- // $host_fqdn has format some.host.example.com.
-
- // If we're looking for an A record we can use gethostbyname()
- if ($type == 'A' && function_exists('gethostbyname'))
- {
- return (@gethostbyname($host_fqdn) == $host_fqdn) ? false : true;
- }
-
- if (function_exists('checkdnsrr'))
- {
- return checkdnsrr($host_fqdn, $type);
- }
-
- if (function_exists('dns_get_record'))
- {
- // dns_get_record() expects an integer as second parameter
- // We have to convert the string $type to the corresponding integer constant.
- $type_constant = 'DNS_' . $type;
- $type_param = (defined($type_constant)) ? constant($type_constant) : DNS_ANY;
-
- // dns_get_record() might throw E_WARNING and return false for records that do not exist
- $resultset = @dns_get_record($host_fqdn, $type_param);
-
- if (empty($resultset) || !is_array($resultset))
- {
- return false;
- }
- else if ($type_param == DNS_ANY)
- {
- // $resultset is a non-empty array
- return true;
- }
-
- foreach ($resultset as $result)
- {
- if (
- isset($result['host']) && $result['host'] == $host &&
- isset($result['type']) && $result['type'] == $type
- )
- {
- return true;
- }
- }
-
- return false;
- }
-
- // If we're on Windows we can still try to call nslookup via exec() as a last resort
- if (DIRECTORY_SEPARATOR == '\\' && function_exists('exec'))
- {
- @exec('nslookup -type=' . escapeshellarg($type) . ' ' . escapeshellarg($host_fqdn), $output);
-
- // If output is empty, the nslookup failed
- if (empty($output))
- {
- return NULL;
- }
-
- foreach ($output as $line)
- {
- $line = trim($line);
-
- if (empty($line))
- {
- continue;
- }
-
- // Squash tabs and multiple whitespaces to a single whitespace.
- $line = preg_replace('/\s+/', ' ', $line);
-
- switch ($type)
- {
- case 'MX':
- if (stripos($line, "$host MX") === 0)
- {
- return true;
- }
- break;
-
- case 'NS':
- if (stripos($line, "$host nameserver") === 0)
- {
- return true;
- }
- break;
-
- case 'TXT':
- if (stripos($line, "$host text") === 0)
- {
- return true;
- }
- break;
-
- case 'CNAME':
- if (stripos($line, "$host canonical name") === 0)
- {
- return true;
- }
- break;
-
- default:
- case 'AAAA':
- // AAAA records returned by nslookup on Windows XP/2003 have this format.
- // Later Windows versions use the A record format below for AAAA records.
- if (stripos($line, "$host AAAA IPv6 address") === 0)
- {
- return true;
- }
- // No break
-
- case 'A':
- if (!empty($host_matches))
- {
- // Second line
- if (stripos($line, "Address: ") === 0)
- {
- return true;
- }
- else
- {
- $host_matches = false;
- }
- }
- else if (stripos($line, "Name: $host") === 0)
- {
- // First line
- $host_matches = true;
- }
- break;
- }
- }
-
- return false;
- }
-
- return NULL;
+ return $ip_normalised;
}
// Handler, header and footer
@@ -3325,6 +3002,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
{
global $cache, $db, $auth, $template, $config, $user, $request;
global $phpbb_root_path, $msg_title, $msg_long_text, $phpbb_log;
+ global $phpbb_container;
// Do not display notices if we suppress them via @
if (error_reporting() == 0 && $errno != E_USER_ERROR && $errno != E_USER_WARNING && $errno != E_USER_NOTICE)
@@ -3345,7 +3023,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
// Check the error reporting level and return if the error level does not match
// If DEBUG is defined the default level is E_ALL
- if (($errno & ((defined('DEBUG')) ? E_ALL : error_reporting())) == 0)
+ if (($errno & ($phpbb_container->getParameter('debug.show_errors') ? E_ALL : error_reporting())) == 0)
{
return;
}
@@ -3403,7 +3081,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
$log_text .= '<br /><br />BACKTRACE<br />' . $backtrace;
}
- if (defined('IN_INSTALL') || defined('DEBUG') || isset($auth) && $auth->acl_get('a_'))
+ if (defined('IN_INSTALL') || ($phpbb_container != null && $phpbb_container->getParameter('debug.show_errors')) || isset($auth) && $auth->acl_get('a_'))
{
$msg_text = $log_text;
@@ -4291,7 +3969,8 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
}
else
{
- $u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login');
+ $redirect = $request->variable('redirect', rawurlencode($user->page['page']));
+ $u_login_logout = append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login&amp;redirect=' . $redirect);
$l_login_logout = $user->lang['LOGIN'];
}
@@ -4566,7 +4245,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
'T_STYLESHEET_LINK' => "{$web_path}styles/" . rawurlencode($user->style['style_path']) . '/theme/stylesheet.css?assets_version=' . $config['assets_version'],
'T_STYLESHEET_LANG_LINK'=> "{$web_path}styles/" . rawurlencode($user->style['style_path']) . '/theme/' . $user->lang_name . '/stylesheet.css?assets_version=' . $config['assets_version'],
'T_FONT_AWESOME_LINK' => !empty($config['allow_cdn']) && !empty($config['load_font_awesome_url']) ? $config['load_font_awesome_url'] : "{$web_path}assets/css/font-awesome.min.css?assets_version=" . $config['assets_version'],
- 'T_JQUERY_LINK' => !empty($config['allow_cdn']) && !empty($config['load_jquery_url']) ? $config['load_jquery_url'] : "{$web_path}assets/javascript/jquery.min.js?assets_version=" . $config['assets_version'],
+ 'T_JQUERY_LINK' => !empty($config['allow_cdn']) && !empty($config['load_jquery_url']) ? $config['load_jquery_url'] : "{$web_path}assets/javascript/jquery-3.4.1.min.js?assets_version=" . $config['assets_version'],
'S_ALLOW_CDN' => !empty($config['allow_cdn']),
'S_COOKIE_NOTICE' => !empty($config['cookie_notice']),
@@ -4638,7 +4317,9 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
*/
function phpbb_check_and_display_sql_report(\phpbb\request\request_interface $request, \phpbb\auth\auth $auth, \phpbb\db\driver\driver_interface $db)
{
- if ($request->variable('explain', false) && $auth->acl_get('a_') && defined('DEBUG'))
+ global $phpbb_container;
+
+ if ($phpbb_container->getParameter('debug.sql_explain') && $request->variable('explain', false) && $auth->acl_get('a_'))
{
$db->sql_report('display');
}
@@ -4656,19 +4337,22 @@ function phpbb_check_and_display_sql_report(\phpbb\request\request_interface $re
*/
function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \phpbb\config\config $config, \phpbb\auth\auth $auth, \phpbb\user $user, \phpbb\event\dispatcher_interface $phpbb_dispatcher)
{
+ global $phpbb_container;
+
$debug_info = array();
// Output page creation time
- if (defined('PHPBB_DISPLAY_LOAD_TIME'))
+ if ($phpbb_container->getParameter('debug.load_time'))
{
if (isset($GLOBALS['starttime']))
{
$totaltime = microtime(true) - $GLOBALS['starttime'];
$debug_info[] = sprintf('<span title="SQL time: %.3fs / PHP time: %.3fs">Time: %.3fs</span>', $db->get_sql_time(), ($totaltime - $db->get_sql_time()), $totaltime);
}
+ }
- $debug_info[] = sprintf('<span title="Cached: %d">Queries: %d</span>', $db->sql_num_queries(true), $db->sql_num_queries());
-
+ if ($phpbb_container->getParameter('debug.memory'))
+ {
$memory_usage = memory_get_peak_usage();
if ($memory_usage)
{
@@ -4676,16 +4360,18 @@ function phpbb_generate_debug_output(\phpbb\db\driver\driver_interface $db, \php
$debug_info[] = 'Peak Memory Usage: ' . $memory_usage;
}
- }
- if (defined('DEBUG'))
- {
$debug_info[] = 'GZIP: ' . (($config['gzip_compress'] && @extension_loaded('zlib')) ? 'On' : 'Off');
if ($user->load)
{
$debug_info[] = 'Load: ' . $user->load;
}
+ }
+
+ if ($phpbb_container->getParameter('debug.sql_explain'))
+ {
+ $debug_info[] = sprintf('<span title="Cached: %d">Queries: %d</span>', $db->sql_num_queries(true), $db->sql_num_queries());
if ($auth->acl_get('a_'))
{
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php
index a2014a7d5b..4926351461 100644
--- a/phpBB/includes/functions_acp.php
+++ b/phpBB/includes/functions_acp.php
@@ -177,7 +177,7 @@ function adm_page_footer($copyright_html = true)
'TRANSLATION_INFO' => (!empty($user->lang['TRANSLATION_INFO'])) ? $user->lang['TRANSLATION_INFO'] : '',
'S_COPYRIGHT_HTML' => $copyright_html,
'CREDIT_LINE' => $user->lang('POWERED_BY', '<a href="https://www.phpbb.com/">phpBB</a>&reg; Forum Software &copy; phpBB Limited'),
- 'T_JQUERY_LINK' => !empty($config['allow_cdn']) && !empty($config['load_jquery_url']) ? $config['load_jquery_url'] : "{$phpbb_root_path}assets/javascript/jquery.min.js",
+ 'T_JQUERY_LINK' => !empty($config['allow_cdn']) && !empty($config['load_jquery_url']) ? $config['load_jquery_url'] : "{$phpbb_root_path}assets/javascript/jquery-3.4.1.min.js",
'S_ALLOW_CDN' => !empty($config['allow_cdn']),
'VERSION' => $config['version'])
);
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index cc82fdbda3..4629706048 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -1191,28 +1191,6 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
}
/**
-* Delete Attachments
-*
-* @deprecated 3.2.0-a1 (To be removed: 3.4.0)
-*
-* @param string $mode can be: post|message|topic|attach|user
-* @param mixed $ids can be: post_ids, message_ids, topic_ids, attach_ids, user_ids
-* @param bool $resync set this to false if you are deleting posts or topics
-*/
-function delete_attachments($mode, $ids, $resync = true)
-{
- global $phpbb_container;
-
- /** @var \phpbb\attachment\manager $attachment_manager */
- $attachment_manager = $phpbb_container->get('attachment.manager');
- $num_deleted = $attachment_manager->delete($mode, $ids, $resync);
-
- unset($attachment_manager);
-
- return $num_deleted;
-}
-
-/**
* Deletes shadow topics pointing to a specified forum.
*
* @param int $forum_id The forum id
@@ -1324,23 +1302,6 @@ function update_posted_info(&$topic_ids)
}
/**
-* Delete attached file
-*
-* @deprecated 3.2.0-a1 (To be removed: 3.4.0)
-*/
-function phpbb_unlink($filename, $mode = 'file', $entry_removed = false)
-{
- global $phpbb_container;
-
- /** @var \phpbb\attachment\manager $attachment_manager */
- $attachment_manager = $phpbb_container->get('attachment.manager');
- $unlink = $attachment_manager->unlink($filename, $mode, $entry_removed);
- unset($attachment_manager);
-
- return $unlink;
-}
-
-/**
* All-encompasing sync function
*
* Exaples:
@@ -1423,7 +1384,6 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = false,
$db->sql_transaction('begin');
switch ($db->get_sql_layer())
{
- case 'mysql4':
case 'mysqli':
$sql = 'DELETE FROM ' . TOPICS_TABLE . '
USING ' . TOPICS_TABLE . ' t1, ' . TOPICS_TABLE . " t2
@@ -2722,8 +2682,7 @@ function phpbb_update_foes($db, $auth, $group_id = false, $user_id = false)
switch ($db->get_sql_layer())
{
case 'mysqli':
- case 'mysql4':
- $sql = 'DELETE ' . (($db->get_sql_layer() === 'mysqli' || version_compare($db->sql_server_info(true), '4.1', '>=')) ? 'z.*' : ZEBRA_TABLE) . '
+ $sql = 'DELETE z.*
FROM ' . ZEBRA_TABLE . ' z, ' . USER_GROUP_TABLE . ' ug
WHERE z.zebra_id = ug.user_id
AND z.foe = 1
@@ -2879,8 +2838,6 @@ function get_database_size()
// This code is heavily influenced by a similar routine in phpMyAdmin 2.2.0
switch ($db->get_sql_layer())
{
- case 'mysql':
- case 'mysql4':
case 'mysqli':
$sql = 'SELECT VERSION() AS mysql_version';
$result = $db->sql_query($sql);
diff --git a/phpBB/includes/functions_compatibility.php b/phpBB/includes/functions_compatibility.php
index e95fa40a58..92e24c055c 100644
--- a/phpBB/includes/functions_compatibility.php
+++ b/phpBB/includes/functions_compatibility.php
@@ -22,7 +22,7 @@ if (!defined('IN_PHPBB'))
/**
* Get user avatar
*
-* @deprecated 3.1.0-a1 (To be removed: 3.3.0)
+* @deprecated 3.1.0-a1 (To be removed: 4.0.0)
*
* @param string $avatar Users assigned avatar name
* @param int $avatar_type Type of avatar
@@ -50,7 +50,7 @@ function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $
/**
* Hash the password
*
-* @deprecated 3.1.0-a2 (To be removed: 3.3.0)
+* @deprecated 3.1.0-a2 (To be removed: 4.0.0)
*
* @param string $password Password to be hashed
*
@@ -68,7 +68,7 @@ function phpbb_hash($password)
/**
* Check for correct password
*
-* @deprecated 3.1.0-a2 (To be removed: 3.3.0)
+* @deprecated 3.1.0-a2 (To be removed: 4.0.0)
*
* @param string $password The password in plain text
* @param string $hash The stored password hash
@@ -92,7 +92,7 @@ function phpbb_check_hash($password, $hash)
* @param string $path Path to clean
* @return string Cleaned path
*
-* @deprecated 3.1.0 (To be removed: 3.3.0)
+* @deprecated 3.1.0 (To be removed: 4.0.0)
*/
function phpbb_clean_path($path)
{
@@ -136,7 +136,7 @@ function phpbb_clean_path($path)
*
* @return string Returns the options for timezone selector only
*
-* @deprecated 3.1.0 (To be removed: 3.3.0)
+* @deprecated 3.1.0 (To be removed: 4.0.0)
*/
function tz_select($default = '', $truncate = false)
{
@@ -150,7 +150,7 @@ function tz_select($default = '', $truncate = false)
* via admin_permissions. Changes of usernames and group names
* must be carried through for the moderators table.
*
-* @deprecated 3.1.0 (To be removed: 3.3.0)
+* @deprecated 3.1.0 (To be removed: 4.0.0)
* @return null
*/
function cache_moderators()
@@ -162,7 +162,7 @@ function cache_moderators()
/**
* Removes moderators and administrators from foe lists.
*
-* @deprecated 3.1.0 (To be removed: 3.3.0)
+* @deprecated 3.1.0 (To be removed: 4.0.0)
* @param array|bool $group_id If an array, remove all members of this group from foe lists, or false to ignore
* @param array|bool $user_id If an array, remove this user from foe lists, or false to ignore
* @return null
@@ -182,7 +182,7 @@ function update_foes($group_id = false, $user_id = false)
* @param string &$rank_img the rank image as full img tag is stored here after execution
* @param string &$rank_img_src the rank image source is stored here after execution
*
-* @deprecated 3.1.0-RC5 (To be removed: 3.3.0)
+* @deprecated 3.1.0-RC5 (To be removed: 4.0.0)
*
* Note: since we do not want to break backwards-compatibility, this function will only properly assign ranks to guests if you call it for them with user_posts == false
*/
@@ -232,7 +232,7 @@ function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port
*
* @return int|bool Returns the log_id, if the entry was added to the database, false otherwise.
*
- * @deprecated 3.1.0 (To be removed: 3.3.0)
+ * @deprecated 3.1.0 (To be removed: 4.0.0)
*/
function add_log()
{
@@ -280,7 +280,7 @@ function add_log()
*
* @return null
*
- * @deprecated 3.1.0 (To be removed: 3.3.0)
+ * @deprecated 3.1.0 (To be removed: 4.0.0)
*/
function set_config($config_name, $config_value, $is_dynamic = false, \phpbb\config\config $set_config = null)
{
@@ -310,7 +310,7 @@ function set_config($config_name, $config_value, $is_dynamic = false, \phpbb\con
*
* @return null
*
- * @deprecated 3.1.0 (To be removed: 3.3.0)
+ * @deprecated 3.1.0 (To be removed: 4.0.0)
*/
function set_config_count($config_name, $increment, $is_dynamic = false, \phpbb\config\config $set_config = null)
{
@@ -331,7 +331,7 @@ function set_config_count($config_name, $increment, $is_dynamic = false, \phpbb\
* See {@link \phpbb\request\request_interface::variable \phpbb\request\request_interface::variable} for
* documentation of this function's use.
*
- * @deprecated 3.1.0 (To be removed: 3.3.0)
+ * @deprecated 3.1.0 (To be removed: 4.0.0)
* @param mixed $var_name The form variable's name from which data shall be retrieved.
* If the value is an array this may be an array of indizes which will give
* direct access to a value at any depth. E.g. if the value of "var" is array(1 => "a")
@@ -389,7 +389,7 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false, $
/**
* Get tables of a database
*
- * @deprecated 3.1.0 (To be removed: 3.3.0)
+ * @deprecated 3.1.0 (To be removed: 4.0.0)
*/
function get_tables($db)
{
@@ -492,7 +492,7 @@ function phpbb_realpath($path)
* @param $number int|float The number we want to get the plural case for. Float numbers are floored.
* @return int The plural-case we need to use for the number plural-rule combination
*
- * @deprecated 3.2.0-dev (To be removed: 3.3.0)
+ * @deprecated 3.2.0-dev (To be removed: 4.0.0)
*/
function phpbb_get_plural_form($rule, $number)
{
@@ -511,3 +511,165 @@ function phpbb_pcre_utf8_support()
{
return true;
}
+
+/**
+ * Casts a variable to the given type.
+ *
+ * @deprecated 3.1 (To be removed 4.0.0)
+ */
+function set_var(&$result, $var, $type, $multibyte = false)
+{
+ // no need for dependency injection here, if you have the object, call the method yourself!
+ $type_cast_helper = new \phpbb\request\type_cast_helper();
+ $type_cast_helper->set_var($result, $var, $type, $multibyte);
+}
+
+/**
+ * Delete Attachments
+ *
+ * @deprecated 3.2.0-a1 (To be removed: 4.0.0)
+ *
+ * @param string $mode can be: post|message|topic|attach|user
+ * @param mixed $ids can be: post_ids, message_ids, topic_ids, attach_ids, user_ids
+ * @param bool $resync set this to false if you are deleting posts or topics
+ */
+function delete_attachments($mode, $ids, $resync = true)
+{
+ global $phpbb_container;
+
+ /** @var \phpbb\attachment\manager $attachment_manager */
+ $attachment_manager = $phpbb_container->get('attachment.manager');
+ $num_deleted = $attachment_manager->delete($mode, $ids, $resync);
+
+ unset($attachment_manager);
+
+ return $num_deleted;
+}
+
+/**
+ * Delete attached file
+ *
+ * @deprecated 3.2.0-a1 (To be removed: 4.0.0)
+ */
+function phpbb_unlink($filename, $mode = 'file', $entry_removed = false)
+{
+ global $phpbb_container;
+
+ /** @var \phpbb\attachment\manager $attachment_manager */
+ $attachment_manager = $phpbb_container->get('attachment.manager');
+ $unlink = $attachment_manager->unlink($filename, $mode, $entry_removed);
+ unset($attachment_manager);
+
+ return $unlink;
+}
+
+/**
+ * Display reasons
+ *
+ * @deprecated 3.2.0-dev (To be removed: 4.0.0)
+ */
+function display_reasons($reason_id = 0)
+{
+ global $phpbb_container;
+
+ $phpbb_container->get('phpbb.report.report_reason_list_provider')->display_reasons($reason_id);
+}
+
+/**
+ * Upload Attachment - filedata is generated here
+ * Uses upload class
+ *
+ * @deprecated 3.2.0-a1 (To be removed: 4.0.0)
+ *
+ * @param string $form_name The form name of the file upload input
+ * @param int $forum_id The id of the forum
+ * @param bool $local Whether the file is local or not
+ * @param string $local_storage The path to the local file
+ * @param bool $is_message Whether it is a PM or not
+ * @param array $local_filedata A filespec object created for the local file
+ *
+ * @return array File data array
+ */
+function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false)
+{
+ global $phpbb_container;
+
+ /** @var \phpbb\attachment\manager $attachment_manager */
+ $attachment_manager = $phpbb_container->get('attachment.manager');
+ $file = $attachment_manager->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
+ unset($attachment_manager);
+
+ return $file;
+}
+
+/**
+* Wrapper for php's checkdnsrr function.
+*
+* @param string $host Fully-Qualified Domain Name
+* @param string $type Resource record type to lookup
+* Supported types are: MX (default), A, AAAA, NS, TXT, CNAME
+* Other types may work or may not work
+*
+* @return mixed true if entry found,
+* false if entry not found,
+* null if this function is not supported by this environment
+*
+* Since null can also be returned, you probably want to compare the result
+* with === true or === false,
+*
+* @deprecated 3.3.0-b2 (To be removed: 4.0.0)
+*/
+function phpbb_checkdnsrr($host, $type = 'MX')
+{
+ return checkdnsrr($host, $type);
+}
+
+/*
+ * Wrapper for inet_ntop()
+ *
+ * Converts a packed internet address to a human readable representation
+ * inet_ntop() is supported by PHP since 5.1.0, since 5.3.0 also on Windows.
+ *
+ * @param string $in_addr A 32bit IPv4, or 128bit IPv6 address.
+ *
+ * @return mixed false on failure,
+ * string otherwise
+ *
+ * @deprecated 3.3.0-b2 (To be removed: 4.0.0)
+ */
+function phpbb_inet_ntop($in_addr)
+{
+ return inet_ntop($in_addr);
+}
+
+/**
+ * Wrapper for inet_pton()
+ *
+ * Converts a human readable IP address to its packed in_addr representation
+ * inet_pton() is supported by PHP since 5.1.0, since 5.3.0 also on Windows.
+ *
+ * @param string $address A human readable IPv4 or IPv6 address.
+ *
+ * @return mixed false if address is invalid,
+ * in_addr representation of the given address otherwise (string)
+ *
+ * @deprecated 3.3.0-b2 (To be removed: 4.0.0)
+ */
+function phpbb_inet_pton($address)
+{
+ return inet_pton($address);
+}
+
+/**
+ * Hashes an email address to a big integer
+ *
+ * @param string $email Email address
+ *
+ * @return string Unsigned Big Integer
+ *
+ * @deprecated 3.3.0-b2 (To be removed: 4.0.0)
+ */
+function phpbb_email_hash($email)
+{
+ return sprintf('%u', crc32(strtolower($email))) . strlen($email);
+}
diff --git a/phpBB/includes/functions_compress.php b/phpBB/includes/functions_compress.php
index e86da77b38..56d64d37fb 100644
--- a/phpBB/includes/functions_compress.php
+++ b/phpBB/includes/functions_compress.php
@@ -305,8 +305,8 @@ class compress_zip extends compress
}
}
}
- // This is a directory, we are not writting files
- continue;
+ // This is a directory, we are not writing files
+ continue 2;
}
else
{
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 2542be5e02..fd014c741e 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -1245,11 +1245,6 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a
$display_cat = ATTACHMENT_CATEGORY_NONE;
}
- if ($display_cat == ATTACHMENT_CATEGORY_FLASH && !$user->optionget('viewflash'))
- {
- $display_cat = ATTACHMENT_CATEGORY_NONE;
- }
-
$download_link = append_sid("{$phpbb_root_path}download/file.$phpEx", 'id=' . $attachment['attach_id']);
$l_downloaded_viewed = 'VIEWED_COUNTS';
@@ -1281,21 +1276,6 @@ function parse_attachments($forum_id, &$message, &$attachments, &$update_count_a
$update_count_ary[] = $attachment['attach_id'];
break;
- // Macromedia Flash Files
- case ATTACHMENT_CATEGORY_FLASH:
- list($width, $height) = @getimagesize($filename);
-
- $block_array += array(
- 'S_FLASH_FILE' => true,
- 'WIDTH' => $width,
- 'HEIGHT' => $height,
- 'U_VIEW_LINK' => $download_link . '&amp;view=1',
- );
-
- // Viewed/Heared File ... update the download count
- $update_count_ary[] = $attachment['attach_id'];
- break;
-
default:
$l_downloaded_viewed = 'DOWNLOAD_COUNTS';
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php
index 2cfbe9541d..df4c9b1875 100644
--- a/phpBB/includes/functions_convert.php
+++ b/phpBB/includes/functions_convert.php
@@ -207,16 +207,6 @@ function get_group_id($group_name)
}
/**
-* Generate the email hash stored in the users table
-*
-* Note: Deprecated, calls should directly go to phpbb_email_hash()
-*/
-function gen_email_hash($email)
-{
- return phpbb_email_hash($email);
-}
-
-/**
* Convert a boolean into the appropriate phpBB constant indicating whether the topic is locked
*/
function is_topic_locked($bool)
@@ -1647,11 +1637,6 @@ function mass_auth($ug_type, $forum_id, $ug_id, $acl_list, $setting = ACL_NO)
case 'insert':
switch ($db->get_sql_layer())
{
- case 'mysql':
- case 'mysql4':
- $sql = 'VALUES ' . implode(', ', preg_replace('#^(.*?)$#', '(\1)', $sql_subary));
- break;
-
case 'sqlite3':
case 'mssqlnative':
$sql = implode(' UNION ALL ', preg_replace('#^(.*?)$#', 'SELECT \1', $sql_subary));
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index e4adce14fc..44478dbe49 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -30,6 +30,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
$forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array();
$parent_id = $visible_forums = 0;
+ $parent_subforum_limit = false;
// Mark forums read?
$mark_read = $request->variable('mark', '');
@@ -266,6 +267,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
// Direct child of current branch
$parent_id = $forum_id;
+ $parent_subforum_limit = $row['display_subforum_limit'];
$forum_rows[$forum_id] = $row;
if ($row['forum_type'] == FORUM_CAT && $row['parent_id'] == $root_data['forum_id'])
@@ -278,7 +280,7 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
}
else if ($row['forum_type'] != FORUM_CAT)
{
- $subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
+ $subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index'] && (!$parent_subforum_limit || $parent_id == $row['parent_id']));
$subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
$subforums[$parent_id][$forum_id]['children'] = array();
@@ -786,25 +788,25 @@ function generate_forum_nav(&$forum_data_ary)
}
$navlinks_parents[] = array(
- 'S_IS_CAT' => ($parent_type == FORUM_CAT) ? true : false,
- 'S_IS_LINK' => ($parent_type == FORUM_LINK) ? true : false,
- 'S_IS_POST' => ($parent_type == FORUM_POST) ? true : false,
- 'FORUM_NAME' => $parent_name,
- 'FORUM_ID' => $parent_forum_id,
- 'MICRODATA' => $microdata_attr . '="' . $parent_forum_id . '"',
- 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $parent_forum_id),
+ 'S_IS_CAT' => ($parent_type == FORUM_CAT) ? true : false,
+ 'S_IS_LINK' => ($parent_type == FORUM_LINK) ? true : false,
+ 'S_IS_POST' => ($parent_type == FORUM_POST) ? true : false,
+ 'BREADCRUMB_NAME' => $parent_name,
+ 'FORUM_ID' => $parent_forum_id,
+ 'MICRODATA' => $microdata_attr . '="' . $parent_forum_id . '"',
+ 'U_BREADCRUMB' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $parent_forum_id),
);
}
}
$navlinks = array(
- 'S_IS_CAT' => ($forum_data_ary['forum_type'] == FORUM_CAT) ? true : false,
- 'S_IS_LINK' => ($forum_data_ary['forum_type'] == FORUM_LINK) ? true : false,
- 'S_IS_POST' => ($forum_data_ary['forum_type'] == FORUM_POST) ? true : false,
- 'FORUM_NAME' => $forum_data_ary['forum_name'],
- 'FORUM_ID' => $forum_data_ary['forum_id'],
- 'MICRODATA' => $microdata_attr . '="' . $forum_data_ary['forum_id'] . '"',
- 'U_VIEW_FORUM' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data_ary['forum_id']),
+ 'S_IS_CAT' => ($forum_data_ary['forum_type'] == FORUM_CAT) ? true : false,
+ 'S_IS_LINK' => ($forum_data_ary['forum_type'] == FORUM_LINK) ? true : false,
+ 'S_IS_POST' => ($forum_data_ary['forum_type'] == FORUM_POST) ? true : false,
+ 'BREADCRUMB_NAME' => $forum_data_ary['forum_name'],
+ 'FORUM_ID' => $forum_data_ary['forum_id'],
+ 'MICRODATA' => $microdata_attr . '="' . $forum_data_ary['forum_id'] . '"',
+ 'U_BREADCRUMB' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $forum_data_ary['forum_id']),
);
$forum_template_data = array(
@@ -1151,18 +1153,6 @@ function display_custom_bbcodes()
}
/**
-* Display reasons
-*
-* @deprecated 3.2.0-dev
-*/
-function display_reasons($reason_id = 0)
-{
- global $phpbb_container;
-
- $phpbb_container->get('phpbb.report.report_reason_list_provider')->display_reasons($reason_id);
-}
-
-/**
* Display user activity (action forum/topic)
*/
function display_user_activity(&$userdata_ary)
diff --git a/phpBB/includes/functions_download.php b/phpBB/includes/functions_download.php
index 1f409be58c..d2d3924dd8 100644
--- a/phpBB/includes/functions_download.php
+++ b/phpBB/includes/functions_download.php
@@ -206,28 +206,20 @@ function send_file_to_browser($attachment, $upload_dir, $category)
header('X-Content-Type-Options: nosniff');
}
- if ($category == ATTACHMENT_CATEGORY_FLASH && $request->variable('view', 0) === 1)
+ if (empty($user->browser) || ((strpos(strtolower($user->browser), 'msie') !== false) && !phpbb_is_greater_ie_version($user->browser, 7)))
{
- // We use content-disposition: inline for flash files and view=1 to let it correctly play with flash player 10 - any other disposition will fail to play inline
- header('Content-Disposition: inline');
+ header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
+ if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
+ {
+ header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
+ }
}
else
{
- if (empty($user->browser) || ((strpos(strtolower($user->browser), 'msie') !== false) && !phpbb_is_greater_ie_version($user->browser, 7)))
- {
- header('Content-Disposition: attachment; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
- if (empty($user->browser) || (strpos(strtolower($user->browser), 'msie 6.0') !== false))
- {
- header('Expires: ' . gmdate('D, d M Y H:i:s', time()) . ' GMT');
- }
- }
- else
+ header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'attachment') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
+ if (phpbb_is_greater_ie_version($user->browser, 7) && (strpos($attachment['mimetype'], 'image') !== 0))
{
- header('Content-Disposition: ' . ((strpos($attachment['mimetype'], 'image') === 0) ? 'inline' : 'attachment') . '; ' . header_filename(htmlspecialchars_decode($attachment['real_filename'])));
- if (phpbb_is_greater_ie_version($user->browser, 7) && (strpos($attachment['mimetype'], 'image') !== 0))
- {
- header('X-Download-Options: noopen');
- }
+ header('X-Download-Options: noopen');
}
}
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php
index 88dafc4300..510d98ec11 100644
--- a/phpBB/includes/functions_module.php
+++ b/phpBB/includes/functions_module.php
@@ -123,7 +123,7 @@ class p_master
// We "could" build a true tree with this function - maybe mod authors want to use this...
// Functions for traversing and manipulating the tree are not available though
- // We might re-structure the module system to use true trees in 3.2.x...
+ // We might re-structure the module system to use true trees in 4.0
// $tree = $this->build_tree($this->module_cache['modules'], $this->module_cache['parents']);
// Clean up module cache array to only let survive modules the user can access
@@ -933,6 +933,14 @@ class p_master
'U_TITLE' => $u_title
);
+ if (isset($this->module_cache['parents'][$item_ary['id']]) || $item_ary['id'] == $this->p_id)
+ {
+ $template->assign_block_vars('navlinks', array(
+ 'BREADCRUMB_NAME' => $item_ary['lang'],
+ 'U_BREADCRUMB' => $u_title,
+ ));
+ }
+
$template->assign_block_vars($use_tabular_offset, array_merge($tpl_ary, array_change_key_case($item_ary, CASE_UPPER)));
}
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 1956f65666..45eda4ba17 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -433,34 +433,6 @@ function posting_gen_topic_types($forum_id, $cur_topic_type = POST_NORMAL)
//
// Attachment related functions
//
-
-/**
-* Upload Attachment - filedata is generated here
-* Uses upload class
-*
-* @deprecated 3.2.0-a1 (To be removed: 3.4.0)
-*
-* @param string $form_name The form name of the file upload input
-* @param int $forum_id The id of the forum
-* @param bool $local Whether the file is local or not
-* @param string $local_storage The path to the local file
-* @param bool $is_message Whether it is a PM or not
-* @param array $local_filedata A filespec object created for the local file
-*
-* @return array File data array
-*/
-function upload_attachment($form_name, $forum_id, $local = false, $local_storage = '', $is_message = false, $local_filedata = false)
-{
- global $phpbb_container;
-
- /** @var \phpbb\attachment\manager $attachment_manager */
- $attachment_manager = $phpbb_container->get('attachment.manager');
- $file = $attachment_manager->upload($form_name, $forum_id, $local, $local_storage, $is_message, $local_filedata);
- unset($attachment_manager);
-
- return $file;
-}
-
/**
* Calculate the needed size for Thumbnail
*/
@@ -677,12 +649,6 @@ function create_thumbnail($source, $destination, $mimetype)
imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
}
- // If we are in safe mode create the destination file prior to using the gd functions to circumvent a PHP bug
- if (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on')
- {
- @touch($destination);
- }
-
switch ($type['format'])
{
case IMG_GIF:
diff --git a/phpBB/includes/functions_transfer.php b/phpBB/includes/functions_transfer.php
index 7427b89917..f0070b4b1e 100644
--- a/phpBB/includes/functions_transfer.php
+++ b/phpBB/includes/functions_transfer.php
@@ -810,7 +810,7 @@ class ftp_fsock extends transfer
$server_ip = substr($socket_name, 0, strrpos($socket_name, ':'));
}
- if (!isset($server_ip) || preg_match(get_preg_expression('ipv4'), $server_ip))
+ if (isset($server_ip) && filter_var($server_ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) // ipv4
{
// Passive mode
$this->_send_command('PASV', '', false);
@@ -831,7 +831,7 @@ class ftp_fsock extends transfer
$server_ip = $temp[0] . '.' . $temp[1] . '.' . $temp[2] . '.' . $temp[3];
$server_port = $temp[4] * 256 + $temp[5];
}
- else
+ else // ipv6
{
// Extended Passive Mode - RFC2428
$this->_send_command('EPSV', '', false);
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index e0b6a9d0c6..dc6e09268a 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -204,7 +204,6 @@ function user_add($user_row, $cp_data = false, $notifications_data = null)
'username_clean' => $username_clean,
'user_password' => (isset($user_row['user_password'])) ? $user_row['user_password'] : '',
'user_email' => strtolower($user_row['user_email']),
- 'user_email_hash' => phpbb_email_hash($user_row['user_email']),
'group_id' => $user_row['group_id'],
'user_type' => $user_row['user_type'],
);
@@ -1455,12 +1454,7 @@ function user_unban($mode, $ban)
*/
function user_ipwhois($ip)
{
- if (empty($ip))
- {
- return '';
- }
-
- if (!preg_match(get_preg_expression('ipv4'), $ip) && !preg_match(get_preg_expression('ipv6'), $ip))
+ if (!filter_var($ip, FILTER_VALIDATE_IP))
{
return '';
}
@@ -1910,7 +1904,7 @@ function phpbb_validate_email($email, $config = null)
{
list(, $domain) = explode('@', $email);
- if (phpbb_checkdnsrr($domain, 'A') === false && phpbb_checkdnsrr($domain, 'MX') === false)
+ if (checkdnsrr($domain, 'A') === false && checkdnsrr($domain, 'MX') === false)
{
return 'DOMAIN_NO_MX_RECORD';
}
@@ -1953,9 +1947,9 @@ function validate_user_email($email, $allowed_email = false)
if (!$config['allow_emailreuse'])
{
- $sql = 'SELECT user_email_hash
+ $sql = 'SELECT user_email
FROM ' . USERS_TABLE . "
- WHERE user_email_hash = " . $db->sql_escape(phpbb_email_hash($email));
+ WHERE user_email = '" . $db->sql_escape($email) . "'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
diff --git a/phpBB/includes/questionnaire/questionnaire.php b/phpBB/includes/questionnaire/questionnaire.php
index 2f80582918..95036a95bc 100644
--- a/phpBB/includes/questionnaire/questionnaire.php
+++ b/phpBB/includes/questionnaire/questionnaire.php
@@ -110,7 +110,6 @@ class phpbb_questionnaire_php_data_provider
'version' => PHP_VERSION,
'sapi' => PHP_SAPI,
'int_size' => defined('PHP_INT_SIZE') ? PHP_INT_SIZE : '',
- 'safe_mode' => (int) @ini_get('safe_mode'),
'open_basedir' => (int) @ini_get('open_basedir'),
'memory_limit' => @ini_get('memory_limit'),
'allow_url_fopen' => (int) @ini_get('allow_url_fopen'),
@@ -121,8 +120,6 @@ class phpbb_questionnaire_php_data_provider
'disable_functions' => @ini_get('disable_functions'),
'disable_classes' => @ini_get('disable_classes'),
'enable_dl' => (int) @ini_get('enable_dl'),
- 'magic_quotes_gpc' => (int) @ini_get('magic_quotes_gpc'),
- 'register_globals' => (int) @ini_get('register_globals'),
'filter.default' => @ini_get('filter.default'),
'zend.ze1_compatibility_mode' => (int) @ini_get('zend.ze1_compatibility_mode'),
'unicode.semantics' => (int) @ini_get('unicode.semantics'),
@@ -405,7 +402,6 @@ class phpbb_questionnaire_phpbb_data_provider
'max_login_attempts' => true,
'max_name_chars' => true,
'max_num_search_keywords' => true,
- 'max_pass_chars' => true,
'max_poll_options' => true,
'max_post_chars' => true,
'max_post_font_size' => true,
diff --git a/phpBB/includes/startup.php b/phpBB/includes/startup.php
index 66f85657a5..d42ae58c42 100644
--- a/phpBB/includes/startup.php
+++ b/phpBB/includes/startup.php
@@ -23,11 +23,11 @@ $level = E_ALL & ~E_NOTICE & ~E_DEPRECATED;
error_reporting($level);
/**
-* Minimum Requirement: PHP 5.4.0
+* Minimum Requirement: PHP 7.1.0
*/
-if (version_compare(PHP_VERSION, '5.4') < 0)
+if (version_compare(PHP_VERSION, '7.1') < 0)
{
- die('You are running an unsupported PHP version. Please upgrade to PHP 5.4.0 or higher before trying to install or update to phpBB 3.2');
+ die('You are running an unsupported PHP version. Please upgrade to PHP 7.1.0 or higher before trying to install or update to phpBB 3.3');
}
// Register globals and magic quotes have been dropped in PHP 5.4 so no need for extra checks
diff --git a/phpBB/includes/ucp/ucp_profile.php b/phpBB/includes/ucp/ucp_profile.php
index 36ab3d0463..dca7e7eeb7 100644
--- a/phpBB/includes/ucp/ucp_profile.php
+++ b/phpBB/includes/ucp/ucp_profile.php
@@ -70,9 +70,9 @@ class ucp_profile
// Do not check cur_password, it is the old one.
$check_ary = array(
'new_password' => array(
- array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
+ array('string', true, $config['min_pass_chars'], 0),
array('password')),
- 'password_confirm' => array('string', true, $config['min_pass_chars'], $config['max_pass_chars']),
+ 'password_confirm' => array('string', true, $config['min_pass_chars'], 0),
'email' => array(
array('string', false, 6, 60),
array('user_email')),
@@ -131,7 +131,6 @@ class ucp_profile
'username' => ($auth->acl_get('u_chgname') && $config['allow_namechange']) ? $data['username'] : $user->data['username'],
'username_clean' => ($auth->acl_get('u_chgname') && $config['allow_namechange']) ? utf8_clean_string($data['username']) : $user->data['username_clean'],
'user_email' => ($auth->acl_get('u_chgemail')) ? $data['email'] : $user->data['user_email'],
- 'user_email_hash' => ($auth->acl_get('u_chgemail')) ? phpbb_email_hash($data['email']) : $user->data['user_email_hash'],
'user_password' => ($auth->acl_get('u_chgpasswd') && $data['new_password']) ? $passwords_manager->hash($data['new_password']) : $user->data['user_password'],
);
@@ -267,7 +266,7 @@ class ucp_profile
'CUR_PASSWORD' => '',
'L_USERNAME_EXPLAIN' => $user->lang($config['allow_name_chars'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_name_chars']), $user->lang('CHARACTERS', (int) $config['max_name_chars'])),
- 'L_CHANGE_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars']), $user->lang('CHARACTERS', (int) $config['max_pass_chars'])),
+ 'L_CHANGE_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars'])),
'S_FORCE_PASSWORD' => ($auth->acl_get('u_chgpasswd') && $config['chg_passforce'] && $user->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400)) ? true : false,
'S_CHANGE_USERNAME' => ($config['allow_namechange'] && $auth->acl_get('u_chgname')) ? true : false,
diff --git a/phpBB/includes/ucp/ucp_register.php b/phpBB/includes/ucp/ucp_register.php
index 54e418d58c..694aaf1351 100644
--- a/phpBB/includes/ucp/ucp_register.php
+++ b/phpBB/includes/ucp/ucp_register.php
@@ -273,9 +273,9 @@ class ucp_register
array('string', false, $config['min_name_chars'], $config['max_name_chars']),
array('username', '')),
'new_password' => array(
- array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
+ array('string', false, $config['min_pass_chars'], 0),
array('password')),
- 'password_confirm' => array('string', false, $config['min_pass_chars'], $config['max_pass_chars']),
+ 'password_confirm' => array('string', false, $config['min_pass_chars'], 0),
'email' => array(
array('string', false, 6, 60),
array('user_email')),
@@ -449,6 +449,9 @@ class ucp_register
{
$message = $user->lang['ACCOUNT_ADDED'];
$email_template = 'user_welcome';
+
+ // Autologin after registration
+ $user->session_create($user_id, 0, false, 1);
}
if ($config['email_enable'])
@@ -597,6 +600,31 @@ class ucp_register
break;
}
+ /* @var $provider_collection \phpbb\auth\provider_collection */
+ $provider_collection = $phpbb_container->get('auth.provider_collection');
+ $auth_provider = $provider_collection->get_provider();
+
+ $auth_provider_data = $auth_provider->get_login_data();
+ if ($auth_provider_data)
+ {
+ if (isset($auth_provider_data['VARS']))
+ {
+ $template->assign_vars($auth_provider_data['VARS']);
+ }
+
+ if (isset($auth_provider_data['BLOCK_VAR_NAME']))
+ {
+ foreach ($auth_provider_data['BLOCK_VARS'] as $block_vars)
+ {
+ $template->assign_block_vars($auth_provider_data['BLOCK_VAR_NAME'], $block_vars);
+ }
+ }
+
+ $template->assign_vars(array(
+ 'PROVIDER_TEMPLATE_FILE' => $auth_provider_data['TEMPLATE_FILE'],
+ ));
+ }
+
// Assign template vars for timezone select
phpbb_timezone_select($template, $user, $data['tz'], true);
@@ -608,7 +636,7 @@ class ucp_register
'L_REG_COND' => $l_reg_cond,
'L_USERNAME_EXPLAIN' => $user->lang($config['allow_name_chars'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_name_chars']), $user->lang('CHARACTERS', (int) $config['max_name_chars'])),
- 'L_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars']), $user->lang('CHARACTERS', (int) $config['max_pass_chars'])),
+ 'L_PASSWORD_EXPLAIN' => $user->lang($config['pass_complex'] . '_EXPLAIN', $user->lang('CHARACTERS', (int) $config['min_pass_chars'])),
'S_LANG_OPTIONS' => language_select($data['lang']),
'S_TZ_PRESELECT' => !$submit,
diff --git a/phpBB/includes/ucp/ucp_remind.php b/phpBB/includes/ucp/ucp_remind.php
deleted file mode 100644
index e50428bfea..0000000000
--- a/phpBB/includes/ucp/ucp_remind.php
+++ /dev/null
@@ -1,174 +0,0 @@
-<?php
-/**
-*
-* This file is part of the phpBB Forum Software package.
-*
-* @copyright (c) phpBB Limited <https://www.phpbb.com>
-* @license GNU General Public License, version 2 (GPL-2.0)
-*
-* For full copyright and license information, please see
-* the docs/CREDITS.txt file.
-*
-*/
-
-/**
-* @ignore
-*/
-if (!defined('IN_PHPBB'))
-{
- exit;
-}
-
-/**
-* ucp_remind
-* Sending password reminders
-*/
-class ucp_remind
-{
- var $u_action;
-
- function main($id, $mode)
- {
- global $config, $phpbb_root_path, $phpEx, $request;
- global $db, $user, $template, $phpbb_container, $phpbb_dispatcher;
-
- if (!$config['allow_password_reset'])
- {
- trigger_error($user->lang('UCP_PASSWORD_RESET_DISABLED', '<a href="mailto:' . htmlspecialchars($config['board_contact']) . '">', '</a>'));
- }
-
- $username = $request->variable('username', '', true);
- $email = strtolower($request->variable('email', ''));
- $submit = (isset($_POST['submit'])) ? true : false;
-
- add_form_key('ucp_remind');
-
- if ($submit)
- {
- if (!check_form_key('ucp_remind'))
- {
- trigger_error('FORM_INVALID');
- }
-
- if (empty($email))
- {
- trigger_error('NO_EMAIL_USER');
- }
-
- $sql_array = array(
- 'SELECT' => 'user_id, username, user_permissions, user_email, user_jabber, user_notify_type, user_type, user_lang, user_inactive_reason',
- 'FROM' => array(USERS_TABLE => 'u'),
- 'WHERE' => "user_email_hash = '" . $db->sql_escape(phpbb_email_hash($email)) . "'" .
- (!empty($username) ? " AND username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : ''),
- );
-
- /**
- * Change SQL query for fetching user data
- *
- * @event core.ucp_remind_modify_select_sql
- * @var string email User's email from the form
- * @var string username User's username from the form
- * @var array sql_array Fully assembled SQL query with keys SELECT, FROM, WHERE
- * @since 3.1.11-RC1
- */
- $vars = array(
- 'email',
- 'username',
- 'sql_array',
- );
- extract($phpbb_dispatcher->trigger_event('core.ucp_remind_modify_select_sql', compact($vars)));
-
- $sql = $db->sql_build_query('SELECT', $sql_array);
- $result = $db->sql_query_limit($sql, 2); // don't waste resources on more rows than we need
- $rowset = $db->sql_fetchrowset($result);
-
- if (count($rowset) > 1)
- {
- $db->sql_freeresult($result);
-
- $template->assign_vars(array(
- 'USERNAME_REQUIRED' => true,
- 'EMAIL' => $email,
- ));
- }
- else
- {
- $message = $user->lang['PASSWORD_UPDATED_IF_EXISTED'] . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
-
- if (empty($rowset))
- {
- trigger_error($message);
- }
-
- $user_row = $rowset[0];
- $db->sql_freeresult($result);
-
- if (!$user_row)
- {
- trigger_error($message);
- }
-
- if ($user_row['user_type'] == USER_IGNORE || $user_row['user_type'] == USER_INACTIVE)
- {
- trigger_error($message);
- }
-
- // Check users permissions
- $auth2 = new \phpbb\auth\auth();
- $auth2->acl($user_row);
-
- if (!$auth2->acl_get('u_chgpasswd'))
- {
- trigger_error($message);
- }
-
- $server_url = generate_board_url();
-
- // Make password at least 8 characters long, make it longer if admin wants to.
- // gen_rand_string() however has a limit of 12 or 13.
- $user_password = gen_rand_string_friendly(max(8, mt_rand((int) $config['min_pass_chars'], (int) $config['max_pass_chars'])));
-
- // For the activation key a random length between 6 and 10 will do.
- $user_actkey = gen_rand_string(mt_rand(6, 10));
-
- // Instantiate passwords manager
- /* @var $manager \phpbb\passwords\manager */
- $passwords_manager = $phpbb_container->get('passwords.manager');
-
- $sql = 'UPDATE ' . USERS_TABLE . "
- SET user_newpasswd = '" . $db->sql_escape($passwords_manager->hash($user_password)) . "', user_actkey = '" . $db->sql_escape($user_actkey) . "'
- WHERE user_id = " . $user_row['user_id'];
- $db->sql_query($sql);
-
- include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
-
- $messenger = new messenger(false);
-
- $messenger->template('user_activate_passwd', $user_row['user_lang']);
-
- $messenger->set_addresses($user_row);
-
- $messenger->anti_abuse_headers($config, $user);
-
- $messenger->assign_vars(array(
- 'USERNAME' => htmlspecialchars_decode($user_row['username']),
- 'PASSWORD' => htmlspecialchars_decode($user_password),
- 'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u={$user_row['user_id']}&k=$user_actkey")
- );
-
- $messenger->send($user_row['user_notify_type']);
-
- trigger_error($message);
- }
- }
-
- $template->assign_vars(array(
- 'USERNAME' => $username,
- 'EMAIL' => $email,
- 'S_PROFILE_ACTION' => append_sid($phpbb_root_path . 'ucp.' . $phpEx, 'mode=sendpassword'))
- );
-
- $this->tpl_name = 'ucp_remind';
- $this->page_title = 'UCP_REMIND';
- }
-}
diff --git a/phpBB/includes/ucp/ucp_resend.php b/phpBB/includes/ucp/ucp_resend.php
index 44c54100cd..55923668d4 100644
--- a/phpBB/includes/ucp/ucp_resend.php
+++ b/phpBB/includes/ucp/ucp_resend.php
@@ -47,7 +47,7 @@ class ucp_resend
$sql = 'SELECT user_id, group_id, username, user_email, user_type, user_lang, user_actkey, user_inactive_reason
FROM ' . USERS_TABLE . "
- WHERE user_email_hash = '" . $db->sql_escape(phpbb_email_hash($email)) . "'
+ WHERE user_email = '" . $db->sql_escape($email) . "'
AND username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'";
$result = $db->sql_query($sql);
$user_row = $db->sql_fetchrow($result);
4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228
# Translation of DrakX.po to Estonian.
# Copyright (C) 2003 Free Software Foundation, Inc.
# Riho Kurg <rx@linux.ee>, 1999-2003.
# Marek Laane <bald@starman.ee>, 2002-2008.
#
msgid ""
msgstr ""
"Project-Id-Version: DrakX-et\n"
"POT-Creation-Date: 2008-09-19 15:04+0200\n"
"PO-Revision-Date: 2008-09-30 21:14+0200\n"
"Last-Translator: Marek Laane <bald@starman.ee>\n"
"Language-Team: Estonian <et@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.3\n"

#: any.pm:252 any.pm:855 diskdrake/interactive.pm:580
#: diskdrake/interactive.pm:767 diskdrake/interactive.pm:811
#: diskdrake/interactive.pm:897 diskdrake/interactive.pm:1151
#: diskdrake/interactive.pm:1203 do_pkgs.pm:221 do_pkgs.pm:267
#: harddrake/sound.pm:285 interactive.pm:584 pkgs.pm:258
#, c-format
msgid "Please wait"
msgstr "Palun oodake"

#: any.pm:252
#, c-format
msgid "Bootloader installation in progress"
msgstr "Paigaldatakse alglaadurit..."

#: any.pm:263
#, c-format
msgid ""
"LILO wants to assign a new Volume ID to drive %s.  However, changing\n"
"the Volume ID of a Windows NT, 2000, or XP boot disk is a fatal Windows "
"error.\n"
"This caution does not apply to Windows 95 or 98, or to NT data disks.\n"
"\n"
"Assign a new Volume ID?"
msgstr ""
"LiLo soovib anda kettale %s uut ID-d. Samas toob Windows NT,\n"
"2000 või XP alglaadimisketta ID muutmine kaasa saatusliku\n"
"Windowsi vea.\n"
"See hoiatus ei käi Windows 95, 98 ega NT andmeketaste kohta.\n"
"\n"
"Kas anda kettale uus ID?"

#: any.pm:274
#, c-format
msgid "Installation of bootloader failed. The following error occurred:"
msgstr "Alglaaduri paigaldamine ebaõnnestus. Tekkis järgmine viga:"

#: any.pm:280
#, c-format
msgid ""
"You may need to change your Open Firmware boot-device to\n"
" enable the bootloader.  If you do not see the bootloader prompt at\n"
" reboot, hold down Command-Option-O-F at reboot and enter:\n"
" setenv boot-device %s,\\\\:tbxi\n"
" Then type: shut-down\n"
"At your next boot you should see the bootloader prompt."
msgstr ""
"Alglaaduri võimaldamiseks tuleb Teil muuta oma Open Firmware\n"
" alglaadimisseadet.  Hoidke taaskäivituse ajal all klahve\n"
" Command-Option-O-F ja kirjutage:\n"
" setenv boot-device %s,\\\\:tbxi\n"
" Seejärel kirjutage: shut-down\n"
"Järgmisel käivitusel peaksite nägema alglaaduri käsurida."

#: any.pm:320
#, c-format
msgid ""
"You decided to install the bootloader on a partition.\n"
"This implies you already have a bootloader on the hard drive you boot (eg: "
"System Commander).\n"
"\n"
"On which drive are you booting?"
msgstr ""
"Otsustasite paigaldada alglaaduri partitsioonile.\n"
"See eeldab, et Teil on juba alglaadur kõvakettal, millelt Te alglaadimise "
"sooritate (nt System Commander).\n"
"\n"
"Milliselt kettalt Te alglaadimise teete?"

#: any.pm:346
#, c-format
msgid "First sector (MBR) of drive %s"
msgstr "Ketta %s algusesse (MBR)"

#: any.pm:348
#, c-format
msgid "First sector of drive (MBR)"
msgstr "Ketta algusesse (MBR)"

#: any.pm:350
#, c-format
msgid "First sector of the root partition"
msgstr "Juurpartitsiooni algusesse"

#: any.pm:352
#, c-format
msgid "On Floppy"
msgstr "Disketil"

#: any.pm:354 pkgs.pm:254
#, c-format
msgid "Skip"
msgstr "Jäta vahele"

#: any.pm:358
#, c-format
msgid "Bootloader Installation"
msgstr "Alglaaduri paigaldamine"

#: any.pm:362
#, c-format
msgid "Where do you want to install the bootloader?"
msgstr "Kuhu soovite alglaaduri paigaldada?"

#: any.pm:388
#, c-format
msgid "Boot Style Configuration"
msgstr "Alglaaduri stiil"

#: any.pm:398 any.pm:427 any.pm:428
#, c-format
msgid "Bootloader main options"
msgstr "Alglaaduri põhiseadistused"

#: any.pm:402
#, c-format
msgid "Bootloader"
msgstr "Alglaadur"

#: any.pm:403 any.pm:431
#, c-format
msgid "Bootloader to use"
msgstr "Eelistatav alglaadur"

#: any.pm:405 any.pm:433
#, c-format
msgid "Boot device"
msgstr "Alglaadimisseade"

#: any.pm:407
#, c-format
msgid "Main options"
msgstr "Põhivalikud"

#: any.pm:408
#, c-format
msgid "Delay before booting default image"
msgstr "Ooteaeg alglaadimisel"

#: any.pm:409
#, c-format
msgid "Enable ACPI"
msgstr "ACPI lubamine"

#: any.pm:410
#, c-format
msgid "Enable APIC"
msgstr "APIC lubamine"

#: any.pm:411
#, c-format
msgid "Enable Local APIC"
msgstr "Kohaliku APIC lubamine"

#: any.pm:413 any.pm:802 any.pm:817 authentication.pm:245
#: diskdrake/smbnfs_gtk.pm:181
#, c-format
msgid "Password"
msgstr "Parool"

#: any.pm:415 authentication.pm:256
#, c-format
msgid "The passwords do not match"
msgstr "Paroolid ei klapi"

#: any.pm:415 authentication.pm:256 diskdrake/interactive.pm:1375
#, c-format
msgid "Please try again"
msgstr "Palun proovige veel"

#: any.pm:416
#, c-format
msgid "You can not use a password with %s"
msgstr "Te ei saa %s korral kasutada parooli"

#: any.pm:419 any.pm:804 any.pm:819 authentication.pm:246
#, c-format
msgid "Password (again)"
msgstr "Parool (uuesti)"

#: any.pm:420
#, c-format
msgid "Restrict command line options"
msgstr "Piiratakse käsurea võtmeid"

#: any.pm:420
#, c-format
msgid "restrict"
msgstr "piiratud"

#: any.pm:421
#, c-format
msgid ""
"Option ``Restrict command line options'' is of no use without a password"
msgstr ""
"Võtit \"Piiratakse käsurea võtmeid\" ei saa kasutada parooli sisestamata"

#: any.pm:423
#, c-format
msgid "Clean /tmp at each boot"
msgstr "/tmp puhastatakse igal käivitumisel"

#: any.pm:432
#, c-format
msgid "Init Message"
msgstr "Initsialiseerimisteade"

#: any.pm:434
#, c-format
msgid "Open Firmware Delay"
msgstr "Open Firmware viivitus"

#: any.pm:435
#, c-format
msgid "Kernel Boot Timeout"
msgstr "Ajapiirang kerneli laadimisel"

#: any.pm:436
#, c-format
msgid "Enable CD Boot?"
msgstr "CD-lt laadimine lubatud?"

#: any.pm:437
#, c-format
msgid "Enable OF Boot?"
msgstr "OF laadimine lubatud?"

#: any.pm:438
#, c-format
msgid "Default OS?"
msgstr "Vaikimisi OS?"

#: any.pm:506
#, c-format
msgid "Image"
msgstr "Laadefail"

#: any.pm:507 any.pm:520
#, c-format
msgid "Root"
msgstr "Juurpartitsioon"

#: any.pm:508 any.pm:533
#, c-format
msgid "Append"
msgstr "Lisaargumendid"

#: any.pm:510
#, c-format
msgid "Xen append"
msgstr "Xen'i lisaargument"

#: any.pm:513
#, c-format
msgid "Video mode"
msgstr "Ekraanilahutus"

#: any.pm:515
#, c-format
msgid "Initrd"
msgstr "Initrd"

#: any.pm:516
#, c-format
msgid "Network profile"
msgstr "Võrguprofiil"

#: any.pm:525 any.pm:530 any.pm:532 diskdrake/interactive.pm:400
#, c-format
msgid "Label"
msgstr "Nimi"

#: any.pm:527 any.pm:535 harddrake/v4l.pm:438
#, c-format
msgid "Default"
msgstr "Vaikimisi"

#: any.pm:534
#, c-format
msgid "NoVideo"
msgstr "NoVideo"

#: any.pm:545
#, c-format
msgid "Empty label not allowed"
msgstr "Nimi ei tohi puududa"

#: any.pm:546
#, c-format
msgid "You must specify a kernel image"
msgstr "Teil peab olema kerneli laadepilt"

#: any.pm:546
#, c-format
msgid "You must specify a root partition"
msgstr "Teil peab olema juurpartitsioon"

#: any.pm:547
#, c-format
msgid "This label is already used"
msgstr "Selline nimi on juba kasutusel"

#: any.pm:565
#, c-format
msgid "Which type of entry do you want to add?"
msgstr "Millist kirjet soovite lisada?"

#: any.pm:566
#, c-format
msgid "Linux"
msgstr "Linux"

#: any.pm:566
#, c-format
msgid "Other OS (SunOS...)"
msgstr "Muu OS (SunOS...)"

#: any.pm:567
#, c-format
msgid "Other OS (MacOS...)"
msgstr "Muu OS (MacOS...)"

#: any.pm:567
#, c-format
msgid "Other OS (Windows...)"
msgstr "Muu OS (Windows...)"

#: any.pm:594
#, c-format
msgid "Bootloader Configuration"
msgstr "Alglaaduri seadistamine"

#: any.pm:595
#, c-format
msgid ""
"Here are the entries on your boot menu so far.\n"
"You can create additional entries or change the existing ones."
msgstr ""
"Praegu on kasutusel sellised kirjed.\n"
"Te võite neid lisada ning olemasolevaid muuta."

#: any.pm:763
#, c-format
msgid "access to X programs"
msgstr "ligipääs X'i rakendustele"

#: any.pm:764
#, c-format
msgid "access to rpm tools"
msgstr "ligipääs rpm-tööriistadele"

#: any.pm:765
#, c-format
msgid "allow \"su\""
msgstr "\"su\" lubamine"

#: any.pm:766
#, c-format
msgid "access to administrative files"
msgstr "ligipääs administreerimisfailidele"

#: any.pm:767
#, c-format
msgid "access to network tools"
msgstr "ligipääs võrgutööriistadele"

#: any.pm:768
#, c-format
msgid "access to compilation tools"
msgstr "ligipääs kompileerimistööriistadele"

#: any.pm:774
#, c-format
msgid "(already added %s)"
msgstr "(juba lisatud %s)"

#: any.pm:780
#, c-format
msgid "Please give a user name"
msgstr "Palun andke kasutajanimi"

#: any.pm:781
#, c-format
msgid ""
"The user name must contain only lower cased letters, numbers, `-' and `_'"
msgstr ""
"Kasutajanimi tohib sisaldada ainult väikesi tähti, numbreid ning märke \"-\" "
"ja \"_\""

#: any.pm:782
#, c-format
msgid "The user name is too long"
msgstr "See kasutajanimi on liiga pikk"

#: any.pm:783
#, c-format
msgid "This user name has already been added"
msgstr "See kasutajanimi on juba lisatud"

#: any.pm:789 any.pm:821
#, c-format
msgid "User ID"
msgstr "Kasutaja ID"

#: any.pm:789 any.pm:822
#, c-format
msgid "Group ID"
msgstr "Grupi ID"

#: any.pm:790
#, c-format
msgid "%s must be a number"
msgstr "%s peab olema arv"

#: any.pm:791
#, c-format
msgid "%s should be above 500. Accept anyway?"
msgstr "%s peab olema suurem kui 500. Kas ikkagi lisada?"

#: any.pm:795
#, c-format
msgid "User management"
msgstr "Kasutajate haldamine"

#: any.pm:801 authentication.pm:232
#, c-format
msgid "Set administrator (root) password"
msgstr "Administraatori (root) parool"

#: any.pm:806
#, c-format
msgid "Enter a user"
msgstr "Kasutaja lisamine"

#: any.pm:808
#, c-format
msgid "Icon"
msgstr "Ikoon"

#: any.pm:811
#, c-format
msgid "Real name"
msgstr "Pärisnimi"

#: any.pm:815
#, c-format
msgid "Login name"
msgstr "Kasutajatunnus"

#: any.pm:820
#, c-format
msgid "Shell"
msgstr "Shell"

#: any.pm:855
#, c-format
msgid "Please wait, adding media..."
msgstr "Palun oodake, lisatakse andmekandja..."

#: any.pm:883 security/l10n.pm:14
#, c-format
msgid "Autologin"
msgstr "Automaatne sisselogimine"

#: any.pm:884
#, c-format
msgid "I can set up your computer to automatically log on one user."
msgstr ""
"Teie arvutis saab määrata kasutaja, kel on lubatud automaatselt sisse logida."

#: any.pm:885
#, c-format
msgid "Use this feature"
msgstr "Selle võimaluse lubamine"

#: any.pm:886
#, c-format
msgid "Choose the default user:"
msgstr "Valige kasutaja:"

#: any.pm:887
#, c-format
msgid "Choose the window manager to run:"
msgstr "Valige käivitatav aknahaldur:"

#: any.pm:898 any.pm:918 any.pm:979
#, c-format
msgid "Release Notes"
msgstr "Info väljalaske kohta"

#: any.pm:925 any.pm:1271 interactive/gtk.pm:797
#, c-format
msgid "Close"
msgstr "Sulge"

#: any.pm:965
#, c-format
msgid "License agreement"
msgstr "Lõppkasutaja litsentsileping"

#: any.pm:967 diskdrake/dav.pm:26
#, c-format
msgid "Quit"
msgstr "Välju"

#: any.pm:974
#, c-format
msgid "Do you accept this license ?"
msgstr "Kas olete selle litsentsiga nõus?"

#: any.pm:975
#, c-format
msgid "Accept"
msgstr "Nõustun"

#: any.pm:975
#, c-format
msgid "Refuse"
msgstr "Keeldun"

#: any.pm:1001 any.pm:1067
#, c-format
msgid "Please choose a language to use"
msgstr "Valige palun kasutatav keel"

#: any.pm:1030
#, c-format
msgid ""
"Mandriva Linux can support multiple languages. Select\n"
"the languages you would like to install. They will be available\n"
"when your installation is complete and you restart your system."
msgstr ""
"Mandriva Linux toetab paljusid keeli. Valige keeled, mida\n"
"soovite paigaldada. Kui paigaldamine on lõpetatud ja Te teete\n"
"süsteemile taaskäivituse, saate neid kasutada."

#: any.pm:1033
#, c-format
msgid "Multi languages"
msgstr "Palju keeli"

#: any.pm:1044 any.pm:1076
#, c-format
msgid "Old compatibility (non UTF-8) encoding"
msgstr "Varasemaga ühilduv kodeering (mitte-UTF-8)"

#: any.pm:1046
#, c-format
msgid "All languages"
msgstr "Kõik keeled"

#: any.pm:1068
#, c-format
msgid "Language choice"
msgstr "Keelevalik"

#: any.pm:1122
#, c-format
msgid "Country / Region"
msgstr "Riik / Piirkond"

#: any.pm:1123
#, c-format
msgid "Please choose your country"
msgstr "Palun valige oma riik"

#: any.pm:1125
#, c-format
msgid "Here is the full list of available countries"
msgstr "See on kõigi riikide täielik nimekiri"

#: any.pm:1126
#, c-format
msgid "Other Countries"
msgstr "Muud riigid"

#: any.pm:1126 interactive.pm:485 interactive/gtk.pm:445
#, c-format
msgid "Advanced"
msgstr "Edasijõudnuile"

#: any.pm:1132
#, c-format
msgid "Input method:"
msgstr "Sisestusmeetod:"

#: any.pm:1135
#, c-format
msgid "None"
msgstr "Puudub"

#: any.pm:1216
#, c-format
msgid "No sharing"
msgstr "Jagamiseta"

#: any.pm:1216
#, c-format
msgid "Allow all users"
msgstr "Lubatud kõigile kasutajatele"

#: any.pm:1216
#, c-format
msgid "Custom"
msgstr "Kohandatud"

#: any.pm:1220
#, c-format
msgid ""
"Would you like to allow users to share some of their directories?\n"
"Allowing this will permit users to simply click on \"Share\" in konqueror "
"and nautilus.\n"
"\n"
"\"Custom\" permit a per-user granularity.\n"
msgstr ""
"Kas lubada kasutajatel jagada mõningaid oma katalooge?\n"
"Lubamine võimaldab kasutajal seda teha lihtsalt klõpsuga sildil \"Jaga\" "
"Konqueroris ja Nautiluses.\n"
"\n"
"\"Kohandatud\" lubab määrata seda kasutajate kaupa.\n"

#: any.pm:1232
#, c-format
msgid ""
"NFS: the traditional Unix file sharing system, with less support on Mac and "
"Windows."
msgstr ""
"NFS: UNIX-i traditsiooniline failijagamissüsteem, mida Mac ja Windows eriti "
"ei toeta."

#: any.pm:1235
#, c-format
msgid ""
"SMB: a file sharing system used by Windows, Mac OS X and many modern Linux "
"systems."
msgstr ""
"SMB: failijagamissüsteem, mida toetavad Windows, Mac OS X ja enamik moodsaid "
"Linuxi süsteeme."

#: any.pm:1243
#, c-format
msgid ""
"You can export using NFS or SMB. Please select which you would like to use."
msgstr "Eksportida saab NFS või SMB abil. Palun valige, kumba kasutada."

#: any.pm:1271
#, c-format
msgid "Launch userdrake"
msgstr "Userdrake käivitamine"

#: any.pm:1273
#, c-format
msgid ""
"The per-user sharing uses the group \"fileshare\". \n"
"You can use userdrake to add a user to this group."
msgstr ""
"Kasutaja kaupa jagamise lubamine rakendab gruppi \"fileshare\". \n"
"Sellesse gruppi kasutajate lisamiseks saab tarvitada userdraket."

#: any.pm:1366
#, c-format
msgid "Please log out and then use Ctrl-Alt-BackSpace"
msgstr "Palun väljuge ja vajutage siis Ctrl+Alt+BackSpace"

#: any.pm:1370
#, c-format
msgid "You need to log out and back in again for changes to take effect"
msgstr "Muudatuste rakendamiseks tuleb end uuesti sisse logida"

#: any.pm:1405
#, c-format
msgid "Timezone"
msgstr "Ajavöönd"

#: any.pm:1405
#, c-format
msgid "Which is your timezone?"
msgstr "Millises ajavöötmes asute?"

#: any.pm:1428 any.pm:1430
#, c-format
msgid "Date, Clock & Time Zone Settings"
msgstr "Kuupäeva, kellaaja ja ajavööndi seadistamine"

#: any.pm:1431
#, c-format
msgid "What is the best time?"
msgstr "Milline on korrektne aeg?"

#: any.pm:1435
#, c-format
msgid "%s (hardware clock set to UTC)"
msgstr "%s (arvuti sisekell on seatud GMT ajale)"

#: any.pm:1436
#, c-format
msgid "%s (hardware clock set to local time)"
msgstr "%s (arvuti sisekell on seatud kohalikule ajale)"

#: any.pm:1438
#, c-format
msgid "NTP Server"
msgstr "NTP server"

#: any.pm:1439
#, c-format
msgid "Automatic time synchronization (using NTP)"
msgstr "Aja automaatne sünkroniseerimine (NTP abil)"

#: authentication.pm:25
#, c-format
msgid "Local file"
msgstr "Kohalik fail"

#: authentication.pm:26
#, c-format
msgid "LDAP"
msgstr "LDAP"

#: authentication.pm:27
#, c-format
msgid "NIS"
msgstr "NIS"

#: authentication.pm:28
#, c-format
msgid "Smart Card"
msgstr "Kiipkaart"

#: authentication.pm:29 authentication.pm:211
#, c-format
msgid "Windows Domain"
msgstr "Windowsi domeen"

#: authentication.pm:30
#, c-format
msgid "Kerberos 5"
msgstr "Kerberos 5"

#: authentication.pm:64
#, c-format
msgid "Local file:"
msgstr "Kohalik fail:"

#: authentication.pm:64
#, c-format
msgid ""
"Use local for all authentication and information user tell in local file"
msgstr "Kohaliku faili kasutamine kogu autentimiseks ja kasutaja antud teabeks"

#: authentication.pm:65
#, c-format
msgid "LDAP:"
msgstr "LDAP:"

#: authentication.pm:65
#, c-format
msgid ""
"Tells your computer to use LDAP for some or all authentication. LDAP "
"consolidates certain types of information within your organization."
msgstr ""
"Paneb arvuti vähemalt osaliselt kasutama autentimiseks LDAP-i. LDAP sisaldab "
"reeglina teatud laadi organisatsioonisisest infot."

#: authentication.pm:66
#, c-format
msgid "NIS:"
msgstr "NIS:"

#: authentication.pm:66
#, c-format
msgid ""
"Allows you to run a group of computers in the same Network Information "
"Service domain with a common password and group file."
msgstr ""
"Võimaldab rühmal arvutitel töötada samas võrguinfoteenuse (NIS) domeenis "
"ühise parooli- ja grupifailiga."

#: authentication.pm:67
#, c-format
msgid "Windows Domain:"
msgstr "Windowsi domeen:"

#: authentication.pm:67
#, c-format
msgid ""
"Winbind allows the system to retrieve information and authenticate users in "
"a Windows domain."
msgstr ""
"Winbind võimaldab süsteemil hankida infot ja autentida kasutajaid Windowsi "
"domeenis."

#: authentication.pm:68
#, c-format
msgid "Kerberos 5 :"
msgstr "Kerberos 5: "

#: authentication.pm:68
#, c-format
msgid "With Kerberos and Ldap for authentication in Active Directory Server "
msgstr "Kerberose ja LDAP-iga autentimiseks Active Directory serveris "

#: authentication.pm:102 authentication.pm:136 authentication.pm:155
#: authentication.pm:156 authentication.pm:182 authentication.pm:206
#: authentication.pm:884
#, c-format
msgid " "
msgstr " "

#: authentication.pm:103 authentication.pm:137 authentication.pm:183
#: authentication.pm:207
#, c-format
msgid "Welcome to the Authentication Wizard"
msgstr "Tere tulemast kasutama autentimisnõustajat"

#: authentication.pm:105
#, c-format
msgid ""
"You have selected LDAP authentication. Please review the configuration "
"options below "
msgstr ""
"Olete valinud LDAP-autentimise. Palun vaadake allpool üle seadistamisvalikud."

#: authentication.pm:107 authentication.pm:162
#, c-format
msgid "LDAP Server"
msgstr "LDAP-server"

#: authentication.pm:108 authentication.pm:163
#, c-format
msgid "Base dn"
msgstr "Baas-DN"

#: authentication.pm:109
#, c-format
msgid "Fetch base Dn "
msgstr "Hangi baas-DN "

#: authentication.pm:111 authentication.pm:166
#, c-format
msgid "Use encrypt connection with TLS "
msgstr "TLS-iga krüptitud ühenduse kasutamine "

#: authentication.pm:112 authentication.pm:167
#, c-format
msgid "Download CA Certificate "
msgstr "SK sertifikaadi allalaadimine "

#: authentication.pm:114 authentication.pm:147
#, c-format
msgid "Use Disconnect mode "
msgstr "Lahutatud režiimi kasutamine "

#: authentication.pm:115 authentication.pm:168
#, c-format
msgid "Use anonymous BIND "
msgstr "Anonüümse BIND-i kasutamine "

#: authentication.pm:116 authentication.pm:119 authentication.pm:121
#: authentication.pm:125
#, c-format
msgid "  "
msgstr "  "

#: authentication.pm:117 authentication.pm:169
#, c-format
msgid "Bind DN "
msgstr "BIND-i DN "

#: authentication.pm:118 authentication.pm:170
#, c-format
msgid "Bind Password "
msgstr "BIND-i parool "

#: authentication.pm:120
#, c-format
msgid "Advanced path for group "
msgstr "Grupi täpsem asukoht "

#: authentication.pm:122
#, c-format
msgid "Password base"
msgstr "Parooli baas"

#: authentication.pm:123
#, c-format
msgid "Group base"
msgstr "Grupi baas"

#: authentication.pm:124
#, c-format
msgid "Shadow base"
msgstr "Variparooli baas"

#: authentication.pm:139
#, c-format
msgid ""
"You have selected Kerberos 5 authentication. Please review the configuration "
"options below "
msgstr ""
"Olete valinud Kerberos 5 autentimise. Palun vaadake allpool üle "
"seadistamisvalikud."

#: authentication.pm:141
#, c-format
msgid "Realm "
msgstr "Valdus "

#: authentication.pm:143
#, c-format
msgid "KDCs Servers"
msgstr "KDC serverid"

#: authentication.pm:145
#, c-format
msgid "Use DNS to resolve hosts for realms "
msgstr "DNS-i kasutamine valduse masinate lahendamiseks "

#: authentication.pm:146
#, c-format
msgid "Use DNS to resolve KDCs for realms "
msgstr "DNS-i kasutamine valduse KDC-de lahendamiseks "

#: authentication.pm:151
#, c-format
msgid "Use local file for users information"
msgstr "Kohaliku faili kasutamine kasutaja teabe hankimiseks"

#: authentication.pm:152
#, c-format
msgid "Use Ldap for users information"
msgstr "LDAP kasutamine kasutaja teabe hankimiseks"

#: authentication.pm:158
#, c-format
msgid ""
"You have selected Kerberos 5 for authentication, now you must choose the "
"type of users information "
msgstr ""
"Olete valinud autentimiseks Kerberos 5, nüüd tuleb valida kasutaja teabe "
"tüüp "

#: authentication.pm:164
#, c-format
msgid "Fecth base Dn "
msgstr "Hangi baas-DN "

#: authentication.pm:185
#, c-format
msgid ""
"You have selected NIS authentication. Please review the configuration "
"options below "
msgstr ""
"Olete valinud NIS-autentimise. Palun vaadake allpool üle seadistamisvalikud "

#: authentication.pm:187
#, c-format
msgid "NIS Domain"
msgstr "NIS domeen"

#: authentication.pm:188
#, c-format
msgid "NIS Server"
msgstr "NIS server"

#: authentication.pm:209
#, c-format
msgid ""
"You have selected Windows Domain authentication. Please review the "
"configuration options below "
msgstr ""
"Olete valinud Windowsi domeeni autentimise. Palun vaadake allpool üle "
"seadistamisvalikud "

#: authentication.pm:213
#, c-format
msgid "Domain Model "
msgstr "Domeeni mudel "

#: authentication.pm:215
#, c-format
msgid "Active Directory Realm "
msgstr "Active Directory võrk "

#: authentication.pm:231 authentication.pm:247
#, c-format
msgid "Authentication"
msgstr "Autentimisviis"

#: authentication.pm:233
#, c-format
msgid "Authentication method"
msgstr "Autentimisviis"

#. -PO: keep this short or else the buttons will not fit in the window
#: authentication.pm:238
#, c-format
msgid "No password"
msgstr "Parool puudub"

#: authentication.pm:259
#, c-format
msgid "This password is too short (it must be at least %d characters long)"
msgstr "Parool on liiga lühike (peaks olema vähemalt %d tähemärki)"

#: authentication.pm:364
#, c-format
msgid "Can not use broadcast with no NIS domain"
msgstr "Üldlevi kasutamine on ilma NIS domeenita võimatu"

#: authentication.pm:879
#, c-format
msgid "Select file"
msgstr "Valige fail"

#: authentication.pm:885
#, c-format
msgid "Domain Windows for authentication : "
msgstr "Windowsi domeen autentimiseks: "

#: authentication.pm:887
#, c-format
msgid "Domain Admin User Name"
msgstr "Domeeni administraatori kasutajatunnus"

#: authentication.pm:888
#, c-format
msgid "Domain Admin Password"
msgstr "Domeeni administraatori parool"

# NOTE: this message will be displayed at boot time; that is# only the ascii charset will be available on most machines# so use only 7bit for this message (and do transliteration or# leave it in English, as it is the best for your language)
#. -PO: these messages will be displayed at boot time in the BIOS, use only ASCII (7bit)
#: bootloader.pm:925
#, c-format
msgid ""
"Welcome to the operating system chooser!\n"
"\n"
"Choose an operating system from the list above or\n"
"wait for default boot.\n"
"\n"
msgstr ""
"Tere tulemast! Arvuti hakkab end laadima!\n"
"\n"
"Valige nimekirjast eelistatav OS\n"
"ehk oodake, kuni laetakse vaikimisi valitu.\n"
"\n"

#: bootloader.pm:1093
#, c-format
msgid "LILO with text menu"
msgstr "LiLo tekstirežiimis"

#: bootloader.pm:1094
#, c-format
msgid "GRUB with graphical menu"
msgstr "GRUB graafilises režiimis"

#: bootloader.pm:1095
#, c-format
msgid "GRUB with text menu"
msgstr "GRUB tekstirežiimis"

#: bootloader.pm:1096
#, c-format
msgid "Yaboot"
msgstr "Yaboot"

#: bootloader.pm:1097
#, c-format
msgid "SILO"
msgstr "SILO"

#: bootloader.pm:1178
#, c-format
msgid "not enough room in /boot"
msgstr "/boot on liiga täis"

#: bootloader.pm:1826
#, c-format
msgid "You can not install the bootloader on a %s partition\n"
msgstr "Alglaadurit ei ole võimalik paigaldada partitsioonile %s\n"

#: bootloader.pm:1947
#, c-format
msgid ""
"Your bootloader configuration must be updated because partition has been "
"renumbered"
msgstr "Alglaaduri seadistust tuleb uuendada, sest partitsioon on ümber seatud"

#: bootloader.pm:1960
#, c-format
msgid ""
"The bootloader can not be installed correctly. You have to boot rescue and "
"choose \"%s\""
msgstr ""
"Alglaadurit ei ole võimalik korrektselt paigaldada. Teil tuleb ette võtta "
"alglaadimine päästerežiimis (rescue) ja valida \"%s\""

#: bootloader.pm:1961
#, c-format
msgid "Re-install Boot Loader"
msgstr "Alglaaduri taaspaigaldamine"

#: common.pm:142
#, c-format
msgid "B"
msgstr "B"

#: common.pm:142
#, c-format
msgid "KB"
msgstr "KB"

#: common.pm:142
#, c-format
msgid "MB"
msgstr "MB"

#: common.pm:142
#, c-format
msgid "GB"
msgstr "GB"

#: common.pm:142 common.pm:151
#, c-format
msgid "TB"
msgstr "TB"

#: common.pm:159
#, c-format
msgid "%d minutes"
msgstr "%d minutit"

#: common.pm:161
#, c-format
msgid "1 minute"
msgstr "1 minut"

#: common.pm:163
#, c-format
msgid "%d seconds"
msgstr "%d sekundit"

#: common.pm:383
#, c-format
msgid "command %s missing"
msgstr "käsk %s puudub"

#: diskdrake/dav.pm:17
#, c-format
msgid ""
"WebDAV is a protocol that allows you to mount a web server's directory\n"
"locally, and treat it like a local filesystem (provided the web server is\n"
"configured as a WebDAV server). If you would like to add WebDAV mount\n"
"points, select \"New\"."
msgstr ""
"WebDAV on protokoll, mis võimaldab haakida veebiserveri kataloogi\n"
"kohalikult ning käsitleda seda kui kohalikku failisüsteemi (eeldusel, et\n"
"veebiserver on seadistatud WebDAV-serverina). Kui soovite lisada\n"
"WebDAVi haakepunkte, klõpsake nupule \"Uus\"."

#: diskdrake/dav.pm:25
#, c-format
msgid "New"
msgstr "Uus"

#: diskdrake/dav.pm:61 diskdrake/interactive.pm:407 diskdrake/smbnfs_gtk.pm:75
#, c-format
msgid "Unmount"
msgstr "Lahuta"

#: diskdrake/dav.pm:62 diskdrake/interactive.pm:403 diskdrake/smbnfs_gtk.pm:76
#, c-format
msgid "Mount"
msgstr "Haagi"

#: diskdrake/dav.pm:63
#, c-format
msgid "Server"
msgstr "Server"

#: diskdrake/dav.pm:64 diskdrake/interactive.pm:397
#: diskdrake/interactive.pm:639 diskdrake/interactive.pm:657
#: diskdrake/interactive.pm:661 diskdrake/removable.pm:23
#: diskdrake/smbnfs_gtk.pm:79
#, c-format
msgid "Mount point"
msgstr "Haakepunkt"

#: diskdrake/dav.pm:65 diskdrake/interactive.pm:399
#: diskdrake/interactive.pm:1045 diskdrake/removable.pm:24
#: diskdrake/smbnfs_gtk.pm:80
#, c-format
msgid "Options"
msgstr "Eelistused"

#: diskdrake/dav.pm:66 diskdrake/hd_gtk.pm:183 diskdrake/removable.pm:26
#: diskdrake/smbnfs_gtk.pm:82 interactive/http.pm:151
#, c-format
msgid "Done"
msgstr "Tehtud"

#: diskdrake/dav.pm:75 diskdrake/hd_gtk.pm:123 diskdrake/hd_gtk.pm:290
#: diskdrake/interactive.pm:244 diskdrake/interactive.pm:257
#: diskdrake/interactive.pm:506 diskdrake/interactive.pm:511
#: diskdrake/interactive.pm:629 diskdrake/interactive.pm:915
#: diskdrake/interactive.pm:1091 diskdrake/interactive.pm:1104
#: diskdrake/interactive.pm:1107 diskdrake/interactive.pm:1375
#: diskdrake/smbnfs_gtk.pm:42 do_pkgs.pm:23 do_pkgs.pm:28 do_pkgs.pm:44
#: do_pkgs.pm:60 do_pkgs.pm:65 fsedit.pm:237 interactive/http.pm:117
#: interactive/http.pm:118 modules/interactive.pm:19 scanner.pm:94
#: scanner.pm:105 scanner.pm:112 scanner.pm:119 wizards.pm:95 wizards.pm:99
#: wizards.pm:121
#, c-format
msgid "Error"
msgstr "Viga"

#: diskdrake/dav.pm:83
#, c-format
msgid "Please enter the WebDAV server URL"
msgstr "Palun sisestage WebDAV-serveri URL"

#: diskdrake/dav.pm:87
#, c-format
msgid "The URL must begin with http:// or https://"
msgstr "URL peab algama kas http:// või https://"

#: diskdrake/dav.pm:109
#, c-format
msgid "Server: "
msgstr "Server: "

#: diskdrake/dav.pm:110 diskdrake/interactive.pm:479
#: diskdrake/interactive.pm:1250 diskdrake/interactive.pm:1335
#, c-format
msgid "Mount point: "
msgstr "Haakepunkt: "

#: diskdrake/dav.pm:111 diskdrake/interactive.pm:1342
#, c-format
msgid "Options: %s"
msgstr "Eelistused: %s"

#: diskdrake/hd_gtk.pm:54 diskdrake/interactive.pm:295
#: diskdrake/smbnfs_gtk.pm:22 fs/mount_point.pm:106
#: fs/partitioning_wizard.pm:51 fs/partitioning_wizard.pm:206
#: fs/partitioning_wizard.pm:211 fs/partitioning_wizard.pm:250
#: fs/partitioning_wizard.pm:269 fs/partitioning_wizard.pm:274
#, c-format
msgid "Partitioning"
msgstr "Kõvaketta jagamine"

#: diskdrake/hd_gtk.pm:68
#, c-format
msgid "Click on a partition, choose a filesystem type then choose an action"
msgstr "Klõpsake partitsioonil, valige failisüsteemi tüüp ja seejärel toiming"

#: diskdrake/hd_gtk.pm:105 diskdrake/interactive.pm:1066
#: diskdrake/interactive.pm:1076 diskdrake/interactive.pm:1129
#, c-format
msgid "Read carefully"
msgstr "Lugege hoolega"

#: diskdrake/hd_gtk.pm:105
#, c-format
msgid "Please make a backup of your data first"
msgstr "Palun tehke oma andmetest kõigepealt varukoopia"

#: diskdrake/hd_gtk.pm:106 diskdrake/interactive.pm:237
#, c-format
msgid "Exit"
msgstr "Välju"

#: diskdrake/hd_gtk.pm:106
#, c-format
msgid "Continue"
msgstr "Jätka"

#: diskdrake/hd_gtk.pm:178 interactive.pm:650 interactive/gtk.pm:789
#: interactive/gtk.pm:807 interactive/gtk.pm:828 ugtk2.pm:938
#, c-format
msgid "Help"
msgstr "Abi"

#: diskdrake/hd_gtk.pm:224
#, c-format
msgid ""
"You have one big Microsoft Windows partition.\n"
"I suggest you first resize that partition\n"
"(click on it, then click on \"Resize\")"
msgstr ""
"Teil on üks suur FAT partitsioon\n"
"(tavaliselt kasutab sellist MS DOS/Windows)\n"
"Soovitame Teil esmalt selle suurust muuta\n"
"(klõpsake ja siis valige \"Muuda\")"

#: diskdrake/hd_gtk.pm:226
#, c-format
msgid "Please click on a partition"
msgstr "Palun valige partitsioon"

#: diskdrake/hd_gtk.pm:240 diskdrake/smbnfs_gtk.pm:63
#, c-format
msgid "Details"
msgstr "Üksikasjad"

#: diskdrake/hd_gtk.pm:290
#, c-format
msgid "No hard drives found"
msgstr "Kõvakettaid ei leitud"

#: diskdrake/hd_gtk.pm:317
#, c-format
msgid "Unknown"
msgstr "Tundmatu"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "Ext3"
msgstr "Ext3"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "XFS"
msgstr "XFS"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "Swap"
msgstr "Saaleala"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "SunOS"
msgstr "SunOS"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "HFS"
msgstr "HFS"

#: diskdrake/hd_gtk.pm:379
#, c-format
msgid "Windows"
msgstr "Windows"

#: diskdrake/hd_gtk.pm:380 services.pm:158
#, c-format
msgid "Other"
msgstr "Muu"

#: diskdrake/hd_gtk.pm:380 diskdrake/interactive.pm:1265
#, c-format
msgid "Empty"
msgstr "Tühi"

#: diskdrake/hd_gtk.pm:387
#, c-format
msgid "Filesystem types:"
msgstr "Failisüsteemi tüübid: "

#: diskdrake/hd_gtk.pm:408 diskdrake/interactive.pm:300
#: diskdrake/interactive.pm:385 diskdrake/interactive.pm:536
#: diskdrake/interactive.pm:720 diskdrake/interactive.pm:778
#: diskdrake/interactive.pm:895 diskdrake/interactive.pm:937
#: diskdrake/interactive.pm:938 diskdrake/interactive.pm:1188
#: diskdrake/interactive.pm:1226 diskdrake/interactive.pm:1374 do_pkgs.pm:19
#: do_pkgs.pm:39 do_pkgs.pm:57 harddrake/sound.pm:422
#, c-format
msgid "Warning"
msgstr "Hoiatus"

#: diskdrake/hd_gtk.pm:408
#, c-format
msgid "This partition is already empty"
msgstr "See partitsioon on juba tühi"

#: diskdrake/hd_gtk.pm:417
#, c-format
msgid "Use ``Unmount'' first"
msgstr "Kasutage enne \"Lahuta\""

#: diskdrake/hd_gtk.pm:417
#, c-format
msgid "Use ``%s'' instead (in expert mode)"
msgstr "Kasutage pigem \"%s\" (ekspertrežiimis)"

#: diskdrake/hd_gtk.pm:417 diskdrake/interactive.pm:398
#: diskdrake/interactive.pm:574 diskdrake/removable.pm:25
#: diskdrake/removable.pm:48
#, c-format
msgid "Type"
msgstr "Tüüp"

#: diskdrake/interactive.pm:208
#, c-format
msgid "Choose another partition"
msgstr "Valige muu partitsioon"

#: diskdrake/interactive.pm:208
#, c-format
msgid "Choose a partition"
msgstr "Valige partitsioon"

#: diskdrake/interactive.pm:270 diskdrake/interactive.pm:376
#: interactive/curses.pm:512
#, c-format
msgid "More"
msgstr "Veel..."

#: diskdrake/interactive.pm:278 diskdrake/interactive.pm:288
#: diskdrake/interactive.pm:1173
#, c-format
msgid "Confirmation"
msgstr "Kinnitus"

#: diskdrake/interactive.pm:278
#, c-format
msgid "Continue anyway?"
msgstr "Kas ikkagi jätkata?"

#: diskdrake/interactive.pm:283
#, c-format
msgid "Quit without saving"
msgstr "Välju ilma salvestamata"

#: diskdrake/interactive.pm:283
#, c-format
msgid "Quit without writing the partition table?"
msgstr "Kas väljuda partitsioonitabelit salvestamata?"

#: diskdrake/interactive.pm:288
#, c-format
msgid "Do you want to save /etc/fstab modifications"
msgstr "Kas salvestada /etc/fstab muudatused"

#: diskdrake/interactive.pm:295 fs/partitioning_wizard.pm:250
#, c-format
msgid "You need to reboot for the partition table modifications to take place"
msgstr "Partitsioonitabeli säilitamiseks vajate alglaadimist"

#: diskdrake/interactive.pm:300
#, c-format
msgid ""
"You should format partition %s.\n"
"Otherwise no entry for mount point %s will be written in fstab.\n"
"Quit anyway?"
msgstr ""
"Teil tuleks vormindada partitsioon %s.\n"
"Vastasel juhul ei kirjutata fstab-i haakepunktile %s üldse kirjet.\n"
"Kas sellele vaatamata väljuda?"

#: diskdrake/interactive.pm:313
#, c-format
msgid "Clear all"
msgstr "Kustuta kõik"

#: diskdrake/interactive.pm:314
#, c-format
msgid "Auto allocate"
msgstr "Automaatne jagamine"

#: diskdrake/interactive.pm:320
#, c-format
msgid "Toggle to normal mode"
msgstr "Lülitu tavarežiimi"

#: diskdrake/interactive.pm:320
#, c-format
msgid "Toggle to expert mode"
msgstr "Lülitu ekspertrežiimi"

#: diskdrake/interactive.pm:332
#, c-format
msgid "Hard drive information"
msgstr "Kõvaketta info"

#: diskdrake/interactive.pm:365
#, c-format
msgid "All primary partitions are used"
msgstr "Kõik primaarsed partitsioonid on kasutusel"

#: diskdrake/interactive.pm:366
#, c-format
msgid "I can not add any more partitions"
msgstr "Partitsioone ei saa enam lisada"

#: diskdrake/interactive.pm:367
#, c-format
msgid ""
"To have more partitions, please delete one to be able to create an extended "
"partition"
msgstr ""
"Et saada rohkem partitsioone, kustutage palun üks, et luua laiendatud "
"partitsioon"

#: diskdrake/interactive.pm:378
#, c-format
msgid "Reload partition table"
msgstr "Laadi partitsioonitabel uuesti"

#: diskdrake/interactive.pm:385
#, c-format
msgid "Detailed information"
msgstr "Üksikasjalik info"

#: diskdrake/interactive.pm:401 diskdrake/interactive.pm:733
#, c-format
msgid "Resize"
msgstr "Muuda suurust"

#: diskdrake/interactive.pm:402
#, c-format
msgid "Format"
msgstr "Vorminda"

#: diskdrake/interactive.pm:404 diskdrake/interactive.pm:843
#, c-format
msgid "Add to RAID"
msgstr "Lisa RAIDi"

#: diskdrake/interactive.pm:405 diskdrake/interactive.pm:861
#, c-format
msgid "Add to LVM"
msgstr "Lisa LVMi"

#: diskdrake/interactive.pm:406
#, c-format
msgid "Use"
msgstr "Kasuta"

#: diskdrake/interactive.pm:408
#, c-format
msgid "Delete"
msgstr "Kustuta"

#: diskdrake/interactive.pm:409
#, c-format
msgid "Remove from RAID"
msgstr "Eemalda RAIDist"

#: diskdrake/interactive.pm:410
#, c-format
msgid "Remove from LVM"
msgstr "Eemalda LVMist"

#: diskdrake/interactive.pm:411
#, c-format
msgid "Remove from dm"
msgstr "Eemalda dm-ist"

#: diskdrake/interactive.pm:412
#, c-format
msgid "Modify RAID"
msgstr "Modifitseeri RAIDi"

#: diskdrake/interactive.pm:413
#, c-format
msgid "Use for loopback"
msgstr "Kasuta loopback-ina"

#: diskdrake/interactive.pm:424
#, c-format
msgid "Create"
msgstr "Tekita"

#: diskdrake/interactive.pm:468 diskdrake/interactive.pm:470
#, c-format
msgid "Create a new partition"
msgstr "Loo uus partitsioon"

#: diskdrake/interactive.pm:472
#, c-format
msgid "Start sector: "
msgstr "Algsektor: "

#: diskdrake/interactive.pm:475 diskdrake/interactive.pm:930
#, c-format
msgid "Size in MB: "
msgstr "Suurus (MB): "

#: diskdrake/interactive.pm:477 diskdrake/interactive.pm:931
#, c-format
msgid "Filesystem type: "
msgstr "Failisüsteemi tüüp: "

#: diskdrake/interactive.pm:483
#, c-format
msgid "Preference: "
msgstr "Eelistus: "

#: diskdrake/interactive.pm:486
#, c-format
msgid "Logical volume name "
msgstr "Loogilise ketta nimi "

#: diskdrake/interactive.pm:506
#, c-format
msgid ""
"You can not create a new partition\n"
"(since you reached the maximal number of primary partitions).\n"
"First remove a primary partition and create an extended partition."
msgstr ""
"Uut partitsiooni ei saa luua\n"
"(sest primaarseid partitsioone on juba maksimaalne arv).\n"
"Eemaldage kõigepealt mõni primaarne partitsioon ja \n"
"tekitage laiendatud partitsioon."

#: diskdrake/interactive.pm:536
#, c-format
msgid "Remove the loopback file?"
msgstr "Kas eemaldada loopback-fail?"

#: diskdrake/interactive.pm:558
#, c-format
msgid ""
"After changing type of partition %s, all data on this partition will be lost"
msgstr "Partitsiooni %s tüübi muutmisel hävivad kõik seal olnud andmed"

#: diskdrake/interactive.pm:571
#, c-format
msgid "Change partition type"
msgstr "Muuda partitsiooni tüüpi"

#: diskdrake/interactive.pm:573 diskdrake/removable.pm:47
#, c-format
msgid "Which filesystem do you want?"
msgstr "Millist failisüsteemi soovite kasutada?"

#: diskdrake/interactive.pm:580
#, c-format
msgid "Switching from %s to %s"
msgstr "%s vahetamine %s vastu"

#: diskdrake/interactive.pm:606 diskdrake/interactive.pm:609
#, c-format
msgid "Which volume label?"
msgstr "Milline köitenimi?"

#: diskdrake/interactive.pm:610
#, c-format
msgid "Label:"
msgstr "Nimi:"

#: diskdrake/interactive.pm:624
#, c-format
msgid "Where do you want to mount the loopback file %s?"
msgstr "Kuhu soovite haakida loopback-faili %s?"

#: diskdrake/interactive.pm:625
#, c-format
msgid "Where do you want to mount device %s?"
msgstr "Kuhu soovite haakida seadme %s?"

#: diskdrake/interactive.pm:630
#, c-format
msgid ""
"Can not unset mount point as this partition is used for loop back.\n"
"Remove the loopback first"
msgstr ""
"Seda haakepunkti ei saa eemaldada, sest partitsioon on kasutusel\n"
"loopback'ina. Eemaldage esmalt loopback"

#: diskdrake/interactive.pm:660
#, c-format
msgid "Where do you want to mount %s?"
msgstr "Kuhu soovite haakida %s?"

#: diskdrake/interactive.pm:684 diskdrake/interactive.pm:767
#: fs/partitioning_wizard.pm:146 fs/partitioning_wizard.pm:178
#, c-format
msgid "Resizing"
msgstr "Muudetakse suurust"

#: diskdrake/interactive.pm:684
#, c-format
msgid "Computing FAT filesystem bounds"
msgstr "Arvutatakse FAT-failisüsteemi piire"

#: diskdrake/interactive.pm:720
#, c-format
msgid "This partition is not resizeable"
msgstr "See partitsioon ei ole muudetav"

#: diskdrake/interactive.pm:725
#, c-format
msgid "All data on this partition should be backed-up"
msgstr "Selle partitsiooni andmetest võiks olla varukoopia"

#: diskdrake/interactive.pm:727
#, c-format
msgid "After resizing partition %s, all data on this partition will be lost"
msgstr "Partitsiooni %s suuruse muutmisel hävivad sellel kõik andmed"

#: diskdrake/interactive.pm:734
#, c-format
msgid "Choose the new size"
msgstr "Valige uus suurus"

#: diskdrake/interactive.pm:735
#, c-format
msgid "New size in MB: "
msgstr "Uus suurus (MB): "

#: diskdrake/interactive.pm:736
#, c-format
msgid "Minimum size: %s MB"
msgstr "Min. suurus: %s MB"

#: diskdrake/interactive.pm:737
#, c-format
msgid "Maximum size: %s MB"
msgstr "Maks. suurus: %s MB"

#: diskdrake/interactive.pm:778 fs/partitioning_wizard.pm:186
#, c-format
msgid ""
"To ensure data integrity after resizing the partition(s), \n"
"filesystem checks will be run on your next boot into Microsoft Windows®"
msgstr ""
"Andmete terviklikkuse tagamiseks pärast partitsiooni(de) suuruse muutmist \n"
"kontrollitakse järgmisel Windows(TM) alglaadimisel failisüsteemi"

#: diskdrake/interactive.pm:826 diskdrake/interactive.pm:1370
#, c-format
msgid "Filesystem encryption key"
msgstr "Failisüsteemi krüptovõti"

#: diskdrake/interactive.pm:827
#, c-format
msgid "Enter your filesystem encryption key"
msgstr "Sisestage failisüsteemi krüptovõti"

#: diskdrake/interactive.pm:828 diskdrake/interactive.pm:1378
#, c-format
msgid "Encryption key"
msgstr "Krüptovõti"

#: diskdrake/interactive.pm:835
#, c-format
msgid "Invalid key"
msgstr "Vigane võti"

#: diskdrake/interactive.pm:843
#, c-format
msgid "Choose an existing RAID to add to"
msgstr "Valige olemasolev RAID, millele lisada"

#: diskdrake/interactive.pm:845 diskdrake/interactive.pm:863
#, c-format
msgid "new"
msgstr "uus"

#: diskdrake/interactive.pm:861
#, c-format
msgid "Choose an existing LVM to add to"
msgstr "Valige olemasolev LVM, millele lisada"

#: diskdrake/interactive.pm:868
#, c-format
msgid "LVM name?"
msgstr "LVM nimi?"

#: diskdrake/interactive.pm:895
#, c-format
msgid ""
"Physical volume %s is still in use.\n"
"Do you want to move used physical extents on this volume to other volumes?"
msgstr ""
"Füüsiline ketas %s on veel kasutusel.\n"
"Kas soovite liigutada selle ketta füüsilise osad teistele ketastele?"

#: diskdrake/interactive.pm:897
#, c-format
msgid "Moving physical extents"
msgstr "Füüsiliste osade liigutamine"

#: diskdrake/interactive.pm:915
#, c-format
msgid "This partition can not be used for loopback"
msgstr "Seda partitsiooni ei saa loopback-ina kasutada"

#: diskdrake/interactive.pm:928
#, c-format
msgid "Loopback"
msgstr "Loopback"

#: diskdrake/interactive.pm:929
#, c-format
msgid "Loopback file name: "
msgstr "Loopback faili nimi:"

#: diskdrake/interactive.pm:934
#, c-format
msgid "Give a file name"
msgstr "Failinimi"

#: diskdrake/interactive.pm:937
#, c-format
msgid "File is already used by another loopback, choose another one"
msgstr "See fail on juba loopback-ina kasutusel, valige mõni muu"

#: diskdrake/interactive.pm:938
#, c-format
msgid "File already exists. Use it?"
msgstr "Fail on juba olemas. Kas kasutada seda?"

#: diskdrake/interactive.pm:970 diskdrake/interactive.pm:973
#, c-format
msgid "Mount options"
msgstr "Haakimise valikud"

#: diskdrake/interactive.pm:980
#, c-format
msgid "Various"
msgstr "Mitmesugust"

#: diskdrake/interactive.pm:1047
#, c-format
msgid "device"
msgstr "seade"

#: diskdrake/interactive.pm:1048
#, c-format
msgid "level"
msgstr "tase"

#: diskdrake/interactive.pm:1049
#, c-format
msgid "chunk size in KiB"
msgstr "ühiku suurus (KiB)"

#: diskdrake/interactive.pm:1067
#, c-format
msgid "Be careful: this operation is dangerous."
msgstr "Vaadake ette: see võib olla ohtlik."

#: diskdrake/interactive.pm:1082
#, c-format
msgid "Partitioning Type"
msgstr "Jagamise tüüp"

#: diskdrake/interactive.pm:1082
#, c-format
msgid "What type of partitioning?"
msgstr "Mis tüüpi partitsioonid teete?"

#: diskdrake/interactive.pm:1120
#, c-format
msgid "You'll need to reboot before the modification can take place"
msgstr "Muudatuste rakendamiseks vajate alglaadimist"

#: diskdrake/interactive.pm:1129
#, c-format
msgid "Partition table of drive %s is going to be written to disk"
msgstr "Ketta %s partitsioonitabel salvestatakse"

#: diskdrake/interactive.pm:1151 fs/format.pm:63 fs/format.pm:70
#, c-format
msgid "Formatting partition %s"
msgstr "Partitsiooni %s vormindamine"

#: diskdrake/interactive.pm:1164
#, c-format
msgid "After formatting partition %s, all data on this partition will be lost"
msgstr "Partitsiooni %s vormindamisel hävivad sellel kõik andmed"

#: diskdrake/interactive.pm:1173 fs/partitioning.pm:48
#, c-format
msgid "Check bad blocks?"
msgstr "Plokkide kontroll?"

#: diskdrake/interactive.pm:1187
#, c-format
msgid "Move files to the new partition"
msgstr "Liiguta failid uuele partitsioonile"

#: diskdrake/interactive.pm:1187
#, c-format
msgid "Hide files"
msgstr "Failide peitmine"

#: diskdrake/interactive.pm:1188
#, c-format
msgid ""
"Directory %s already contains data\n"
"(%s)\n"
"\n"
"You can either choose to move the files into the partition that will be "
"mounted there or leave them where they are (which results in hiding them by "
"the contents of the mounted partition)"
msgstr ""
"Kataloog %s sisaldab juba andmeid\n"
"(%s)\n"
"\n"
"Te võite liigutada failid partitsioonile, mis haagitakse seal, või jätta nad "
"sinna, kus nad on (mille tulemusel haagitud partitsiooni sisu varjab need)"

#: diskdrake/interactive.pm:1203
#, c-format
msgid "Moving files to the new partition"
msgstr "Failide liigutamine uuele partitsioonile"

#: diskdrake/interactive.pm:1207
#, c-format
msgid "Copying %s"
msgstr "%s kopeerimine"

#: diskdrake/interactive.pm:1211
#, c-format
msgid "Removing %s"
msgstr "%s eemaldamine"

#: diskdrake/interactive.pm:1225
#, c-format
msgid "partition %s is now known as %s"
msgstr "partitsioon %s kannab nüüd nime %s"

#: diskdrake/interactive.pm:1226
#, c-format
msgid "Partitions have been renumbered: "
msgstr "Partitsioone on muudetud: "

#: diskdrake/interactive.pm:1251 diskdrake/interactive.pm:1319
#, c-format
msgid "Device: "
msgstr "Seade: "

#: diskdrake/interactive.pm:1252
#, c-format
msgid "Volume label: "
msgstr "Kettatähis: "

#: diskdrake/interactive.pm:1253
#, c-format
msgid "UUID: "
msgstr "UUID: "

#: diskdrake/interactive.pm:1254
#, c-format
msgid "DOS drive letter: %s (just a guess)\n"
msgstr "DOS kettatähis: %s (arvatavasti)\n"

#: diskdrake/interactive.pm:1258 diskdrake/interactive.pm:1267
#: diskdrake/interactive.pm:1338
#, c-format
msgid "Type: "
msgstr "Tüüp: "

#: diskdrake/interactive.pm:1262 diskdrake/interactive.pm:1323
#, c-format
msgid "Name: "
msgstr "Nimi: "

#: diskdrake/interactive.pm:1269
#, c-format
msgid "Start: sector %s\n"
msgstr "Algus: sektor %s\n"

#: diskdrake/interactive.pm:1270
#, c-format
msgid "Size: %s"
msgstr "Suurus: %s"

#: diskdrake/interactive.pm:1272
#, c-format
msgid ", %s sectors"
msgstr ", %s sektorit"

#: diskdrake/interactive.pm:1274
#, c-format
msgid "Cylinder %d to %d\n"
msgstr "Silindrid %d kuni %d\n"

#: diskdrake/interactive.pm:1275
#, c-format
msgid "Number of logical extents: %d\n"
msgstr "Loogiliste partitsioonide arv: %d\n"

#: diskdrake/interactive.pm:1276
#, c-format
msgid "Formatted\n"
msgstr "Vormindatud\n"

#: diskdrake/interactive.pm:1277
#, c-format
msgid "Not formatted\n"
msgstr "Vormindamata\n"

#: diskdrake/interactive.pm:1278
#, c-format
msgid "Mounted\n"
msgstr "Haagitud\n"

#: diskdrake/interactive.pm:1279
#, c-format
msgid "RAID %s\n"
msgstr "RAID %s\n"

#: diskdrake/interactive.pm:1281
#, c-format
msgid "Encrypted"
msgstr "Krüptitud"

#: diskdrake/interactive.pm:1281
#, c-format
msgid " (mapped on %s)"
msgstr " (seotud asukohaga %s)"

#: diskdrake/interactive.pm:1282
#, c-format
msgid " (to map on %s)"
msgstr " (sidumaks asukohaga %s)"

#: diskdrake/interactive.pm:1283
#, c-format
msgid " (inactive)"
msgstr " (mitteaktiivne)"

#: diskdrake/interactive.pm:1289
#, c-format
msgid ""
"Loopback file(s):\n"
"   %s\n"
msgstr ""
"Loopback-fail(id):\n"
"   %s\n"

#: diskdrake/interactive.pm:1290
#, c-format
msgid ""
"Partition booted by default\n"
"    (for MS-DOS boot, not for lilo)\n"
msgstr ""
"Partitsioonilt toimub alglaadimine\n"
"    (MS-DOS-i, mitte LiLo jaoks)\n"

#: diskdrake/interactive.pm:1292
#, c-format
msgid "Level %s\n"
msgstr "Tase %s\n"

#: diskdrake/interactive.pm:1293
#, c-format
msgid "Chunk size %d KiB\n"
msgstr "Ühiku suurus %d KiB\n"

#: diskdrake/interactive.pm:1294
#, c-format
msgid "RAID-disks %s\n"
msgstr "RAID-kettad %s\n"

#: diskdrake/interactive.pm:1296
#, c-format
msgid "Loopback file name: %s"
msgstr "Loopback faili nimi: %s"

#: diskdrake/interactive.pm:1299
#, c-format
msgid ""
"\n"
"Chances are, this partition is\n"
"a Driver partition. You should\n"
"probably leave it alone.\n"
msgstr ""
"\n"
"Võimalik, et on tegemist\n"
"juhtpartitsiooniga, parem oleks\n"
"seda mitte puutuda.\n"

#: diskdrake/interactive.pm:1302
#, c-format
msgid ""
"\n"
"This special Bootstrap\n"
"partition is for\n"
"dual-booting your system.\n"
msgstr ""
"\n"
"See on eriline, alglaadimisel\n"
"kasutatav partitsioon, mis\n"
"võimaldab mitme operatsioonisüsteemi\n"
"laadimist.\n"

#: diskdrake/interactive.pm:1311
#, c-format
msgid "Free space on %s (%s)"
msgstr "Vaba ruum %s peal (%s)"

#: diskdrake/interactive.pm:1320
#, c-format
msgid "Read-only"
msgstr "Ainult lugemisõigusega"

#: diskdrake/interactive.pm:1321
#, c-format
msgid "Size: %s\n"
msgstr "Suurus: %s\n"

#: diskdrake/interactive.pm:1322
#, c-format
msgid "Geometry: %s cylinders, %s heads, %s sectors\n"
msgstr "Geomeetria: %s silindrit, %s pead, %s sektorit\n"

#: diskdrake/interactive.pm:1324
#, c-format
msgid "Medium type: "
msgstr "Andmekandja tüüp: "

#: diskdrake/interactive.pm:1325
#, c-format
msgid "LVM-disks %s\n"
msgstr "LVM-kettad %s\n"

#: diskdrake/interactive.pm:1326
#, c-format
msgid "Partition table type: %s\n"
msgstr "Partitsioonitabeli tüüp: %s\n"

#: diskdrake/interactive.pm:1327
#, c-format
msgid "on channel %d id %d\n"
msgstr "kanalil %d id %d\n"

#: diskdrake/interactive.pm:1371
#, c-format
msgid "Choose your filesystem encryption key"
msgstr "Valige failisüsteemi krüptovõti"

#: diskdrake/interactive.pm:1374
#, c-format
msgid "This encryption key is too simple (must be at least %d characters long)"
msgstr "See krüptovõti on liiga lihtne (peaks olema vähemalt %d märki)"

#: diskdrake/interactive.pm:1375
#, c-format
msgid "The encryption keys do not match"
msgstr "Krüptovõtmed ei klapi"

#: diskdrake/interactive.pm:1379
#, c-format
msgid "Encryption key (again)"
msgstr "Krüptovõti (uuesti)"

#: diskdrake/interactive.pm:1381
#, c-format
msgid "Encryption algorithm"
msgstr "Krüptoalgoritm"

#: diskdrake/removable.pm:46
#, c-format
msgid "Change type"
msgstr "Muuda tüüpi"

#: diskdrake/smbnfs_gtk.pm:81 interactive.pm:129 interactive.pm:547
#: interactive/curses.pm:260 interactive/http.pm:104 interactive/http.pm:160
#: interactive/stdio.pm:39 interactive/stdio.pm:148 ugtk2.pm:417 ugtk2.pm:519
#: ugtk2.pm:528 ugtk2.pm:814
#, c-format
msgid "Cancel"
msgstr "Loobu"

#: diskdrake/smbnfs_gtk.pm:164
#, c-format
msgid "Can not login using username %s (bad password?)"
msgstr "Sisselogimine kasutajanimega %s ebaõnnestus (vale parool?)"

#: diskdrake/smbnfs_gtk.pm:168 diskdrake/smbnfs_gtk.pm:177
#, c-format
msgid "Domain Authentication Required"
msgstr "Nõutav on domeeni autentimine"

#: diskdrake/smbnfs_gtk.pm:169
#, c-format
msgid "Which username"
msgstr "Milline kasutajanimi"

#: diskdrake/smbnfs_gtk.pm:169
#, c-format
msgid "Another one"
msgstr "Veel üks"

#: diskdrake/smbnfs_gtk.pm:178
#, c-format
msgid ""
"Please enter your username, password and domain name to access this host."
msgstr ""
"Palun sisestage selle masina kasutamiseks oma kasutajanimi, parool ja "
"domeeni nimi."

#: diskdrake/smbnfs_gtk.pm:180
#, c-format
msgid "Username"
msgstr "Kasutajanimi"

#: diskdrake/smbnfs_gtk.pm:182
#, c-format
msgid "Domain"
msgstr "Domeen"

#: diskdrake/smbnfs_gtk.pm:206
#, c-format
msgid "Search servers"
msgstr "Serverite otsing"

#: diskdrake/smbnfs_gtk.pm:211
#, c-format
msgid "Search new servers"
msgstr "Uute serverite otsing"

#: do_pkgs.pm:19 do_pkgs.pm:57
#, c-format
msgid "The package %s needs to be installed. Do you want to install it?"
msgstr "Pakett %s tuleks kindlasti paigaldada. Kas soovite seda teha?"

#: do_pkgs.pm:23 do_pkgs.pm:44 do_pkgs.pm:60
#, c-format
msgid "Could not install the %s package!"
msgstr "Ei õnnestunud paigaldada %s paketti!"

#: do_pkgs.pm:28 do_pkgs.pm:65
#, c-format
msgid "Mandatory package %s is missing"
msgstr "Puudub kohustuslik pakett %s"

#: do_pkgs.pm:39
#, c-format
msgid "The following packages need to be installed:\n"
msgstr "Paigaldada tuleb järgmised paketid:\n"

#: do_pkgs.pm:221
#, c-format
msgid "Installing packages..."
msgstr "Pakettide paigaldamine..."

#: do_pkgs.pm:267 pkgs.pm:258
#, c-format
msgid "Removing packages..."
msgstr "Pakettide eemaldamine..."

#: fs/any.pm:17
#, c-format
msgid ""
"An error occurred - no valid devices were found on which to create new "
"filesystems. Please check your hardware for the cause of this problem"
msgstr ""
"Tekkis viga: failisüsteemi loomiseks ei leitud ühtki seadet. Palun "
"kontrollige oma riistvara."

#: fs/any.pm:75 fs/partitioning_wizard.pm:59
#, c-format
msgid "You must have a FAT partition mounted in /boot/efi"
msgstr "Teil peab olema FAT-partitsioon haagitud asukohas /boot/efi"

#: fs/format.pm:67
#, c-format
msgid "Creating and formatting file %s"
msgstr "Faili %s loomine ja vormindamine"

#: fs/format.pm:122
#, c-format
msgid "I do not know how to format %s in type %s"
msgstr "Ei oska seadet %s vormindada tüüpi %s"

#: fs/format.pm:127 fs/format.pm:129
#, c-format
msgid "%s formatting of %s failed"
msgstr "%s vormindamine seadmel %s ebaõnnestus"

#: fs/loopback.pm:24
#, c-format
msgid "Circular mounts %s\n"
msgstr "Ringühendus %s\n"

#: fs/mount.pm:79
#, c-format
msgid "Mounting partition %s"
msgstr "Partitsiooni %s haakimine"

#: fs/mount.pm:80
#, c-format
msgid "mounting partition %s in directory %s failed"
msgstr "partitsiooni %s haakimine kataloogis %s ebaõnnestus"

#: fs/mount.pm:85 fs/mount.pm:102
#, c-format
msgid "Checking %s"
msgstr "%s kontrollimine"

#: fs/mount.pm:119 partition_table.pm:404
#, c-format
msgid "error unmounting %s: %s"
msgstr "viga %s lahutamisel: %s"

#: fs/mount.pm:134
#, c-format
msgid "Enabling swap partition %s"
msgstr "Vormindan saaleala %s"

#: fs/mount_options.pm:115
#, c-format
msgid "Use an encrypted file system"
msgstr "Krüptitud failisüsteemi kasutamine"

#: fs/mount_options.pm:117
#, c-format
msgid "Flush write cache on file close"
msgstr "Kirjutamispuhvri tühjendamine faili sulgemisel"

#: fs/mount_options.pm:119
#, c-format
msgid "Enable group disk quota accounting and optionally enforce limits"
msgstr ""
"Ketta grupikvootide arvestuse ja võimalusel limiitide kehtestamise lubamine"

#: fs/mount_options.pm:121
#, c-format
msgid ""
"Do not update inode access times on this file system\n"
"(e.g, for faster access on the news spool to speed up news servers)."
msgstr ""
"Inode juurdepääsu kordi sellel failisüsteemil ei värskendata\n"
"(nt. kiiremaks juurdepääsuks uudistepuhvrile uudisteserveri kiirendamiseks)."

#: fs/mount_options.pm:124
#, c-format
msgid ""
"Update inode access times on this filesystem in a more efficient way\n"
"(e.g, for faster access on the news spool to speed up news servers)."
msgstr ""
"Inode juurdepääsu kordi sellel failisüsteemil värskendatakse tõhusamalt\n"
"(nt. kiiremaks juurdepääsuks uudistepuhvrile uudisteserveri kiirendamiseks)."

#: fs/mount_options.pm:127
#, c-format
msgid ""
"Can only be mounted explicitly (i.e.,\n"
"the -a option will not cause the file system to be mounted)."
msgstr ""
"Haagitakse ainult otsesel märkimisel\n"
"(s.t. võti -a ei haagi failisüsteemi)."

#: fs/mount_options.pm:130
#, c-format
msgid "Do not interpret character or block special devices on the file system."
msgstr "Failisüsteemis ei interpreteerita märgi- või blokieriseadmeid."

#: fs/mount_options.pm:132
#, c-format
msgid ""
"Do not allow execution of any binaries on the mounted\n"
"file system. This option might be useful for a server that has file systems\n"
"containing binaries for architectures other than its own."
msgstr ""
"Ei lubata ühegi binaarfaili käivitamist haagitud failisüsteemis.\n"
"See on kasulik serveritel, mille failisüsteemides on süsteemist\n"
"erineva arhitektuuriga binaarfaile."

#: fs/mount_options.pm:136
#, c-format
msgid ""
"Do not allow set-user-identifier or set-group-identifier\n"
"bits to take effect. (This seems safe, but is in fact rather unsafe if you\n"
"have suidperl(1) installed.)"
msgstr ""
"Ei lubata toimida bittidel set-user-identifier või set-group-identifier\n"
"(see võib tunduda turvaline, aga tegelikult ei ole, eriti kui on\n"
"paigaldatud suidperl(1).)"

#: fs/mount_options.pm:140
#, c-format
msgid "Mount the file system read-only."
msgstr "Failisüsteem haagitakse ainult lugemisõigusega."

#: fs/mount_options.pm:142
#, c-format
msgid "All I/O to the file system should be done synchronously."
msgstr "Kogu failisüsteemi I/O sooritatakse sünkroonselt."

#: fs/mount_options.pm:144
#, c-format
msgid "Allow every user to mount and umount the file system."
msgstr "Igal kasutajal lubatakse failisüsteemi haakida ja lahti ühendada."

#: fs/mount_options.pm:146
#, c-format
msgid "Allow an ordinary user to mount the file system."
msgstr "Tavalisel kasutajal lubatakse failisüsteemi haakida."

#: fs/mount_options.pm:148
#, c-format
msgid "Enable user disk quota accounting, and optionally enforce limits"
msgstr ""
"Ketta kasutajakvootide arvestuse ja võimalusel limiitide kehtestamise "
"lubamine"

#: fs/mount_options.pm:150
#, c-format
msgid "Support \"user.\" extended attributes"
msgstr "\"user.\" laiendatud atribuutide toetus"

#: fs/mount_options.pm:152
#, c-format
msgid "Give write access to ordinary users"
msgstr "Kirjutamisõiguse andmine tavakasutajale"

#: fs/mount_options.pm:154
#, c-format
msgid "Give read-only access to ordinary users"
msgstr "Lugemisõiguse andmine tavakasutajale"

#: fs/mount_point.pm:80
#, c-format
msgid "Duplicate mount point %s"
msgstr "Haakepunkt %s on määratud topelt"

#: fs/mount_point.pm:95
#, c-format
msgid "No partition available"
msgstr "Partitsioone ei leitud"

#: fs/mount_point.pm:98
#, c-format
msgid "Scanning partitions to find mount points"
msgstr "Partitsioonidelt haakepunktide otsimine"

#: fs/mount_point.pm:105
#, c-format
msgid "Choose the mount points"
msgstr "Valige haakepunktid"

#: fs/partitioning.pm:46
#, c-format
msgid "Choose the partitions you want to format"
msgstr "Valige partitsioonid, mida soovite vormindada"

#: fs/partitioning.pm:75
#, c-format
msgid ""
"Failed to check filesystem %s. Do you want to repair the errors? (beware, "
"you can lose data)"
msgstr ""
"Failisüsteemi %s kontroll ebaõnnestus. Kas soovite vigu parandada? "
"(Ettevaatust, võite kaotada andmed!)"

#: fs/partitioning.pm:78
#, c-format
msgid "Not enough swap space to fulfill installation, please add some"
msgstr "Saaleala on paigaldamiseks liiga väike, palun suurendage seda"

#: fs/partitioning_wizard.pm:51
#, c-format
msgid ""
"You must have a root partition.\n"
"For this, create a partition (or click on an existing one).\n"
"Then choose action ``Mount point'' and set it to `/'"
msgstr ""
"Teil peab olema juurpartitsioon.\n"
"Selleks looge uus partitsioon (või valige üks olemasolevatest).\n"
"Siis valige tegevus \"Haakepunkt\" ja määrake see kui \"/\""

#: fs/partitioning_wizard.pm:56
#, c-format
msgid ""
"You do not have a swap partition.\n"
"\n"
"Continue anyway?"
msgstr ""
"Saaleala ei ole määratud.\n"
"\n"
"Kas ikkagi jätkata?"

#: fs/partitioning_wizard.pm:84
#, c-format
msgid "Use free space"
msgstr "Vaba ruumi kasutamine"

#: fs/partitioning_wizard.pm:86
#, c-format
msgid "Not enough free space to allocate new partitions"
msgstr "Ei ole piisavalt ruumi uute partitsioonide jaoks"

#: fs/partitioning_wizard.pm:94
#, c-format
msgid "Use existing partitions"
msgstr "Olemasolevate partitsioonide kasutamine"

#: fs/partitioning_wizard.pm:96
#, c-format
msgid "There is no existing partition to use"
msgstr "Kasutatavat partitsiooni ei leitud"

#: fs/partitioning_wizard.pm:103
#, c-format
msgid "Use the Microsoft Windows® partition for loopback"
msgstr "Microsoft Windows® partitsiooni kasutamine loopback'ina"

#: fs/partitioning_wizard.pm:106
#, c-format
msgid "Which partition do you want to use for Linux4Win?"
msgstr "Millisele partitsioonile soovite paigaldada Linux4Win?"

#: fs/partitioning_wizard.pm:108
#, c-format
msgid "Choose the sizes"
msgstr "Valige suurused"

#: fs/partitioning_wizard.pm:109
#, c-format
msgid "Root partition size in MB: "
msgstr "Juurpartitsiooni suurus (MB): "

#: fs/partitioning_wizard.pm:110
#, c-format
msgid "Swap partition size in MB: "
msgstr "Saaleala suurus (MB): "

#: fs/partitioning_wizard.pm:119
#, c-format
msgid "There is no FAT partition to use as loopback (or not enough space left)"
msgstr ""
"Sobivat FAT-partitsiooni loopback'ina kasutamiseks ei leitud (ei ole "
"piisavalt ruumi)"

#: fs/partitioning_wizard.pm:127
#, c-format
msgid "Use the free space on a Microsoft Windows® partition"
msgstr "Vaba ruumi kasutamine Microsoft Windows® partitsioonil"

#: fs/partitioning_wizard.pm:129
#, c-format
msgid "Which partition do you want to resize?"
msgstr "Millist partitsiooni soovite muuta?"

#: fs/partitioning_wizard.pm:143
#, c-format
msgid ""
"The FAT resizer is unable to handle your partition, \n"
"the following error occurred: %s"
msgstr ""
"FAT-partitsiooni suurust ei õnnestunud muuta, \n"
"ilmnes selline viga: %s"

#: fs/partitioning_wizard.pm:146
#, c-format
msgid "Computing the size of the Microsoft Windows® partition"
msgstr "Vaba ruumi arvutamine Microsoft Windows® partitsioonil"

#: fs/partitioning_wizard.pm:153
#, c-format
msgid ""
"Your Microsoft Windows® partition is too fragmented. Please reboot your "
"computer under Microsoft Windows®, run the ``defrag'' utility, then restart "
"the Mandriva Linux installation."
msgstr ""
"Teie Microsoft Windows® partitsioon on fragmenteerunud. Palun tehke arvutile "
"uus alglaadimine, käivitage Microsoft Windows® ja seejärel utiliit \"defrag"
"\" ning tulge siis Mandriva Linuxi paigaldamise juurde tagasi."

#: fs/partitioning_wizard.pm:156
#, c-format
msgid ""
"WARNING!\n"
"\n"
"\n"
"Your Microsoft Windows® partition will be now resized.\n"
"\n"
"\n"
"Be careful: this operation is dangerous. If you have not already done so, "
"you first need to exit the installation, run \"chkdsk c:\" from a Command "
"Prompt under Microsoft Windows® (beware, running graphical program \"scandisk"
"\" is not enough, be sure to use \"chkdsk\" in a Command Prompt!), "
"optionally run defrag, then restart the installation. You should also backup "
"your data.\n"
"\n"
"\n"
"When sure, press %s."
msgstr ""
"HOIATUS!\n"
"\n"
"\n"
"DrakX hakkab Teie Microsoft Windows® partitsiooni suurust muutma.\n"
"\n"
"\n"
"Olge ettevaatlik: see operatsioon võib olla ohtlik Teie failidele. Palun "
"käivitage enne seda, kui asute paigaldamise juurde, Microsoft Windows® "
"käsurealt \"chkdsk c:\" (arvestage, et graafilisest rakendusest \"scandisk\" "
"ei piisa, seepärast kasutage kindlasti käsurealt käivitatavat \"chkdsk\"!). "
"Lisaks sellele defragmenteerige ketas ja alles siis asuge taas paigaldamise "
"kallale. Kasulik oleks juba Windowsis ka oma andmetest tagavarakoopia teha.\n"
"\n"
"\n"
"Kui olete oma otsuses kindel, klõpsake nupule \"%s\"."

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: fs/partitioning_wizard.pm:165 interactive.pm:546 interactive/curses.pm:263
#: ugtk2.pm:521
#, c-format
msgid "Next"
msgstr "Edasi"

#: fs/partitioning_wizard.pm:168
#, c-format
msgid "Partitionning"
msgstr "Kõvaketta jagamine"

#: fs/partitioning_wizard.pm:168
#, c-format
msgid "Which size do you want to keep for Microsoft Windows® on partition %s?"
msgstr "Kui palju ruumi jätta Microsoft Windows® jaoks partitsioonil %s?"

#: fs/partitioning_wizard.pm:169
#, c-format
msgid "Size"
msgstr "Suurus"

#: fs/partitioning_wizard.pm:178
#, c-format
msgid "Resizing Microsoft Windows® partition"
msgstr "Arvutatakse Microsoft Windows® failisüsteemi piire"

#: fs/partitioning_wizard.pm:183
#, c-format
msgid "FAT resizing failed: %s"
msgstr "FAT-i suuruse muutmine ebaõnnestus: %s"

#: fs/partitioning_wizard.pm:198
#, c-format
msgid "There is no FAT partition to resize (or not enough space left)"
msgstr "Sobivat FAT-partitsiooni ei leitud (ei ole piisavalt ruumi)"

#: fs/partitioning_wizard.pm:203
#, c-format
msgid "Remove Microsoft Windows®"
msgstr "Microsoft Windows® eemaldamine"

#: fs/partitioning_wizard.pm:203
#, c-format
msgid "Erase and use entire disk"
msgstr "Kogu ketta tühjendamine ja kasutamine"

#: fs/partitioning_wizard.pm:205
#, c-format
msgid "You have more than one hard drive, which one do you install linux on?"
msgstr "Teil on rohkem kui üks kõvaketas, millisele neist paigaldate Linuxi?"

#: fs/partitioning_wizard.pm:210 fsedit.pm:590
#, c-format
msgid "ALL existing partitions and their data will be lost on drive %s"
msgstr "Kettal %s hävivad KÕIK partitsioonid ja andmed"

#: fs/partitioning_wizard.pm:220
#, c-format
msgid "Custom disk partitioning"
msgstr "Ketta jagamine oma tahtmist mööda"

#: fs/partitioning_wizard.pm:226
#, c-format
msgid "Use fdisk"
msgstr "Fdisk'i kasutamine"

#: fs/partitioning_wizard.pm:229
#, c-format
msgid ""
"You can now partition %s.\n"
"When you are done, do not forget to save using `w'"
msgstr ""
"Nüüd saate jagada %s kõvaketta\n"
"Kui olete valmis, salvestage käsuga \"w\""

#: fs/partitioning_wizard.pm:269
#, c-format
msgid "I can not find any room for installing"
msgstr "Paigaldamiseks ei ole üldse ruumi"

#: fs/partitioning_wizard.pm:278
#, c-format
msgid "The DrakX Partitioning wizard found the following solutions:"
msgstr "DrakX kettajagamise nõustaja leidis sellised lahendused:"

#: fs/partitioning_wizard.pm:287
#, c-format
msgid "Partitioning failed: %s"
msgstr "Ketta jagamine ebaõnnestus: %s"

#: fs/type.pm:378
#, c-format
msgid "You can not use JFS for partitions smaller than 16MB"
msgstr "JFS ei ole kasutatav alla 16MB partitsioonidel"

#: fs/type.pm:379
#, c-format
msgid "You can not use ReiserFS for partitions smaller than 32MB"
msgstr "ReiserFS ei ole kasutatav alla 32MB partitsioonidel"

#: fsedit.pm:23
#, c-format
msgid "simple"
msgstr "lihtne"

#: fsedit.pm:27
#, c-format
msgid "with /usr"
msgstr "koos /usr-ga"

#: fsedit.pm:32
#, c-format
msgid "server"
msgstr "server"

#: fsedit.pm:131
#, c-format
msgid "BIOS software RAID detected on disks %s. Activate it?"
msgstr "Ketastel %s tuvastati BIOS-e tarkvaraline RAID. Kas aktiveerida see?"

#: fsedit.pm:238
#, c-format
msgid ""
"I can not read the partition table of device %s, it's too corrupted for me :"
"(\n"
"I can try to go on, erasing over bad partitions (ALL DATA will be lost!).\n"
"The other solution is to not allow DrakX to modify the partition table.\n"
"(the error is %s)\n"
"\n"
"Do you agree to lose all the partitions?\n"
msgstr ""
"Partitsioonitabel seadmel %s on loetamatu, liiga rikutud DrakX'i jaoks :(\n"
"Proovin loetamatud kirjed puhastada, kuid ANDMED NEIL HÄVIVAD.\n"
"Teine võimalus on keelata DrakX'il partitsioonitabeli muutmine.\n"
"(Viga oli selline: %s)\n"
"\n"
"Kas olete nõus kõigi partitsioonide kaotamisega?\n"

#: fsedit.pm:415
#, c-format
msgid "Mount points must begin with a leading /"
msgstr "Haakepunktid peavad algama kaldkriipsuga (/)"

#: fsedit.pm:416
#, c-format
msgid "Mount points should contain only alphanumerical characters"
msgstr "Haakepunkti nimi tohib sisaldada vaid tähti ja numbreid"

#: fsedit.pm:417
#, c-format
msgid "There is already a partition with mount point %s\n"
msgstr "Haakepunktile %s on juba partitsioon määratud\n"

#: fsedit.pm:421
#, c-format
msgid ""
"You've selected a software RAID partition as root (/).\n"
"No bootloader is able to handle this without a /boot partition.\n"
"Please be sure to add a /boot partition"
msgstr ""
"Olete valinud juurpartitsiooniks (/) tarkvaralise RAID-i.\n"
"Ilma /boot-partitsioonita ei ole võimalik sellist süsteemi laadida.\n"
"Lisage kindlasti /boot-partitsioon!"

#: fsedit.pm:427
#, c-format
msgid ""
"You can not use the LVM Logical Volume for mount point %s since it spans "
"physical volumes"
msgstr ""
"LVM loogilist ketast ei saa kasutada haakepunkti %s jaoks, sest see ketas "
"hõlmab mitut füüsilist ketast"

#: fsedit.pm:429
#, c-format
msgid ""
"You've selected the LVM Logical Volume as root (/).\n"
"The bootloader is not able to handle this when the volume spans physical "
"volumes.\n"
"You should create a /boot partition first"
msgstr ""
"Valisite juurpartitsiooniks (/) LVM loogilise ketta.\n"
"Alglaadur ei suuda seda käsitleda, kui ketas hõlmab mitut füüsilist ketast.\n"
"Kõigepealt tuleks luua partitsioon /boot"

#: fsedit.pm:433 fsedit.pm:435
#, c-format
msgid "This directory should remain within the root filesystem"
msgstr "See kataloog peab jääma kokku juurfailisüsteemiga"

#: fsedit.pm:437 fsedit.pm:439
#, c-format
msgid ""
"You need a true filesystem (ext2/ext3, reiserfs, xfs, or jfs) for this mount "
"point\n"
msgstr ""
"See haakepunkt vajab tõelist (ext2/ext3, reiserfs, xfs või jfs) "
"failisüsteemi\n"

#: fsedit.pm:441
#, c-format
msgid "You can not use an encrypted file system for mount point %s"
msgstr "Te ei saa haakepunkti %s jaoks kasutada krüptitud failisüsteemi"

#: fsedit.pm:506
#, c-format
msgid "Not enough free space for auto-allocating"
msgstr "Ei ole piisavalt ruumi automaatpaigutuseks"

#: fsedit.pm:508
#, c-format
msgid "Nothing to do"
msgstr "Pole midagi teha"

#: harddrake/data.pm:64
#, c-format
msgid "SATA controllers"
msgstr "SATA kontrollerid"

#: harddrake/data.pm:73
#, c-format
msgid "RAID controllers"
msgstr "RAID kontrollerid"

#: harddrake/data.pm:83
#, c-format
msgid "(E)IDE/ATA controllers"
msgstr "(E)IDE/ATA kontrollerid"

#: harddrake/data.pm:93
#, c-format
msgid "Card readers"
msgstr "Kaardilugejad"

#: harddrake/data.pm:102
#, c-format
msgid "Firewire controllers"
msgstr "FireWire kontrollerid"

#: harddrake/data.pm:111
#, c-format
msgid "PCMCIA controllers"
msgstr "PCMCIA kontrollerid"

#: harddrake/data.pm:120
#, c-format
msgid "SCSI controllers"
msgstr "SCSI kontrollerid"

#: harddrake/data.pm:129
#, c-format
msgid "USB controllers"
msgstr "USB kontrollerid"

#: harddrake/data.pm:138
#, c-format
msgid "USB ports"
msgstr "USB pordid"

#: harddrake/data.pm:147
#, c-format
msgid "SMBus controllers"
msgstr "SMBus kontrollerid"

#: harddrake/data.pm:156
#, c-format
msgid "Bridges and system controllers"
msgstr "Sillad ja kontrollerid"

#: harddrake/data.pm:168
#, c-format
msgid "Floppy"
msgstr "Diskett"

#: harddrake/data.pm:178
#, c-format
msgid "Zip"
msgstr "Zip"

#: harddrake/data.pm:194
#, c-format
msgid "Hard Disk"
msgstr "Ketas"

#: harddrake/data.pm:204
#, c-format
msgid "USB Mass Storage Devices"
msgstr "USB-salvestusseadmed"

#: harddrake/data.pm:213
#, c-format
msgid "CDROM"
msgstr "CD-lugeja"

#: harddrake/data.pm:223
#, c-format
msgid "CD/DVD burners"
msgstr "CD/DVD-kirjutid"

#: harddrake/data.pm:233
#, c-format
msgid "DVD-ROM"
msgstr "DVD-lugeja"

#: harddrake/data.pm:243
#, c-format
msgid "Tape"
msgstr "Lint"

#: harddrake/data.pm:254
#, c-format
msgid "AGP controllers"
msgstr "AGP kontrollerid"

#: harddrake/data.pm:263
#, c-format
msgid "Videocard"
msgstr "Graafikakaart"

#: harddrake/data.pm:272
#, c-format
msgid "DVB card"
msgstr "DVB-kaart"

#: harddrake/data.pm:280
#, c-format
msgid "Tvcard"
msgstr "TV-kaart"

#: harddrake/data.pm:290
#, c-format
msgid "Other MultiMedia devices"
msgstr "Muud multimeediaseadmed"

#: harddrake/data.pm:299
#, c-format
msgid "Soundcard"
msgstr "Helikaart"

#: harddrake/data.pm:312
#, c-format
msgid "Webcam"
msgstr "Veebikaamera"

#: harddrake/data.pm:326
#, c-format
msgid "Processors"
msgstr "Protsessorid"

#: harddrake/data.pm:336
#, c-format
msgid "ISDN adapters"
msgstr "ISDN-kaardid"

#: harddrake/data.pm:347
#, c-format
msgid "USB sound devices"
msgstr "USB-heliseadmed"

#: harddrake/data.pm:356
#, c-format
msgid "Radio cards"
msgstr "Raadiokaardid"

#: harddrake/data.pm:365
#, c-format
msgid "ATM network cards"
msgstr "ATM-võrgukaardid"

#: harddrake/data.pm:374
#, c-format
msgid "WAN network cards"
msgstr "WAN-võrgukaardid"

#: harddrake/data.pm:383
#, c-format
msgid "Bluetooth devices"
msgstr "Bluetoothi seadmed"

#: harddrake/data.pm:392
#, c-format
msgid "Ethernetcard"
msgstr "Võrgukaart"

#: harddrake/data.pm:409
#, c-format
msgid "Modem"
msgstr "Modem"

#: harddrake/data.pm:419
#, c-format
msgid "ADSL adapters"
msgstr "ADSL-kaardid"

#: harddrake/data.pm:431
#, c-format
msgid "Memory"
msgstr "Mälu"

#: harddrake/data.pm:440
#, c-format
msgid "Printer"
msgstr "Printer"

#. -PO: these are joysticks controllers:
#: harddrake/data.pm:454
#, c-format
msgid "Game port controllers"
msgstr "Mängupordi kontrollerid"

#: harddrake/data.pm:463
#, c-format
msgid "Joystick"
msgstr "Juhtkang"

#: harddrake/data.pm:473
#, c-format
msgid "Keyboard"
msgstr "Klaviatuur"

#: harddrake/data.pm:486
#, c-format
msgid "Tablet and touchscreen"
msgstr "Tahvelarvuti ja puuteekraan"

#: harddrake/data.pm:495
#, c-format
msgid "Mouse"
msgstr "Hiir"

#: harddrake/data.pm:509
#, c-format
msgid "Biometry"
msgstr "Biomeetria"

#: harddrake/data.pm:517
#, c-format
msgid "UPS"
msgstr "UPS"

#: harddrake/data.pm:526
#, c-format
msgid "Scanner"
msgstr "Skänner"

#: harddrake/data.pm:537
#, c-format
msgid "Unknown/Others"
msgstr "Tundmatu/Muu"

#: harddrake/data.pm:565
#, c-format
msgid "cpu # "
msgstr "cpu # "

#: harddrake/sound.pm:285
#, c-format
msgid "Please Wait... Applying the configuration"
msgstr "Palun oodake... Rakendatakse seadistused"

#: harddrake/sound.pm:346
#, c-format
msgid "Enable PulseAudio"
msgstr "PulseAudio lubamine"

#: harddrake/sound.pm:350
#, c-format
msgid "Automatic routing from ALSA to PulseAudio"
msgstr "Automaatne ümbersuunamine ALSA-lt PulseAudiole"

#: harddrake/sound.pm:355
#, c-format
msgid "Enable 5.1 sound with Pulse Audio"
msgstr "5.1 heli lubamine PulseAudio puhul"

#: harddrake/sound.pm:360
#, c-format
msgid "Enable user switching for audio applications"
msgstr "Kasutajate lülitamise lubamine helirakendustele"

#: harddrake/sound.pm:365
#, c-format
msgid "Reset sound mixer to default values"
msgstr "Helimikseri väärtuste lähtestamine"

#: harddrake/sound.pm:370
#, c-format
msgid "Trouble shooting"
msgstr "Probleemi otsimine"

#: harddrake/sound.pm:377
#, c-format
msgid "No alternative driver"
msgstr "Alternatiivne fraiver puudub"

#: harddrake/sound.pm:378
#, c-format
msgid ""
"There's no known OSS/ALSA alternative driver for your sound card (%s) which "
"currently uses \"%s\""
msgstr ""
"Pole teada ühtegi alternatiivset OSS/ALSA draiverit Teie helikaardile (%s), "
"millel praegu on kasutusel \"%s\""

#: harddrake/sound.pm:385
#, c-format
msgid "Sound configuration"
msgstr "Heliseadistused"

#: harddrake/sound.pm:387
#, c-format
msgid ""
"Here you can select an alternative driver (either OSS or ALSA) for your "
"sound card (%s)."
msgstr ""
"Siin saate valida alternatiivse draiveri (OSS või ALSA) oma helikaardile (%"
"s)."

#. -PO: here the first %s is either "OSS" or "ALSA", 
#. -PO: the second %s is the name of the current driver
#. -PO: and the third %s is the name of the default driver
#: harddrake/sound.pm:392
#, c-format
msgid ""
"\n"
"\n"
"Your card currently use the %s\"%s\" driver (default driver for your card is "
"\"%s\")"
msgstr ""
"\n"
"\n"
"Teie helikaart kasutab praegu %s\"%s\" draiverit (selle kaardi vaikedraiver "
"on \"%s\")"

#: harddrake/sound.pm:394
#, c-format
msgid ""
"OSS (Open Sound System) was the first sound API. It's an OS independent "
"sound API (it's available on most UNIX(tm) systems) but it's a very basic "
"and limited API.\n"
"What's more, OSS drivers all reinvent the wheel.\n"
"\n"
"ALSA (Advanced Linux Sound Architecture) is a modularized architecture "
"which\n"
"supports quite a large range of ISA, USB and PCI cards.\n"
"\n"
"It also provides a much higher API than OSS.\n"
"\n"
"To use alsa, one can either use:\n"
"- the old compatibility OSS api\n"
"- the new ALSA api that provides many enhanced features but requires using "
"the ALSA library.\n"
msgstr ""
"OSS (Open Sound System) oli esimene heli-API. See on op-süsteemist sõltumatu "
"heli-API (saadaval enamiku UNIX-süsteemide tarbeks), kuid samas väga "
"elementaarne ja piiratud.\n"
"Ja pealegi kipuvad OSS-draiverid kogu aeg jalgratast uuesti leiutama.\n"
"\n"
"ALSA (Advanced Linux Sound Architecture) kujutab endast moodulistatud\n"
"arhitektuuri, mis toetab päris suurt hulka ISA-, USB- ja PCI-kaarte.\n"
"\n"
"See pakub ka palju arenenumat API-t kui OSS.\n"
"\n"
"Alsa kasutamiseks võib tarvitada:\n"
" -vana ühilduvat OSS API-t\n"
"- uut ALSA API-t, mis pakub hulga täiustatud võimalusi, kuid nõuab ALSA "
"teegi kasutamist.\n"

#: harddrake/sound.pm:408 harddrake/sound.pm:491
#, c-format
msgid "Driver:"
msgstr "Draiver: "

#: harddrake/sound.pm:422
#, c-format
msgid ""
"The old \"%s\" driver is blacklisted.\n"
"\n"
"It has been reported to oops the kernel on unloading.\n"
"\n"
"The new \"%s\" driver will only be used on next bootstrap."
msgstr ""
"Vana \"%s\" draiver on mustas nimekirjas.\n"
"\n"
"On teatatud, et see tekitab mahalaadimisel kernelile jama.\n"
"\n"
"Uut \"%s\" draiverit kasutatakse järgmisel alglaadimisel."

#: harddrake/sound.pm:430
#, c-format
msgid "No open source driver"
msgstr "Vabavara-draiver puudub"

#: harddrake/sound.pm:431
#, c-format
msgid ""
"There's no free driver for your sound card (%s), but there's a proprietary "
"driver at \"%s\"."
msgstr ""
"Pole teada ühtegi vabavara-draiverit Teie helikaardile (%s), kuid on olemas "
"tootja draiver, mille asukoht on \"%s\"."

#: harddrake/sound.pm:434
#, c-format
msgid "No known driver"
msgstr "Draiverit ei õnnestunud tuvastada"

#: harddrake/sound.pm:435
#, c-format
msgid "There's no known driver for your sound card (%s)"
msgstr "Teie helikaardile (%s) ei õnnestunud tuvastada draiverit"

#: harddrake/sound.pm:450
#, c-format
msgid "Sound trouble shooting"
msgstr "Heliprobleemide lahendamine"

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: harddrake/sound.pm:453
#, c-format
msgid ""
"The classic bug sound tester is to run the following commands:\n"
"\n"
"\n"
"- \"lspcidrake -v | fgrep -i AUDIO\" will tell you which driver your card "
"uses\n"
"by default\n"
"\n"
"- \"grep sound-slot /etc/modprobe.conf\" will tell you what driver it\n"
"currently uses\n"
"\n"
"- \"/sbin/lsmod\" will enable you to check if its module (driver) is\n"
"loaded or not\n"
"\n"
"- \"/sbin/chkconfig --list sound\" and \"/sbin/chkconfig --list alsa\" will\n"
"tell you if sound and alsa services are configured to be run on\n"
"initlevel 3\n"
"\n"
"- \"aumix -q\" will tell you if the sound volume is muted or not\n"
"\n"
"- \"/sbin/fuser -v /dev/dsp\" will tell which program uses the sound card.\n"
msgstr ""
"Klassikaline võimalus Teie arvuti heliprobleeme kindlaks teha on käivitada "
"järgmised käsud:\n"
"\n"
"\n"
"- \"lspcidrake -v | fgrep -i AUDIO\" näitab, millist draiverit Teie\n"
"helikaart vaikimisi kasutab\n"
"\n"
"- \"grep sound-slot /etc/modprobe.conf\" näitab, millist draiverit\n"
"praegu kasutatakse\n"
"\n"
"- \"/sbin/lsmod\" näitab, kas vastav moodul (draiver) on hetkel laetud\n"
"\n"
"- \"/sbin/chkconfig --list sound\" ja \"/sbin/chkconfig --list alsa\"\n"
"näitavad, kas teenused \"sound\" ja \"alsa\" käivituvad.\n"
"\n"
"- \"aumix -q\" näitab, kas heli pole mitte summutatud (M - mute)\n"
"\n"
"- \"/sbin/fuser -v /dev/dsp\" näitab, milline programm hetkel\n"
"helikaarti kasutab.\n"

#: harddrake/sound.pm:480
#, c-format
msgid "Let me pick any driver"
msgstr "Suvalise draiveri valimine"

#: harddrake/sound.pm:483
#, c-format
msgid "Choosing an arbitrary driver"
msgstr "Suvalise draiveri valimine"

#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX
#: harddrake/sound.pm:486
#, c-format
msgid ""
"If you really think that you know which driver is the right one for your "
"card\n"
"you can pick one in the above list.\n"
"\n"
"The current driver for your \"%s\" sound card is \"%s\" "
msgstr ""
"Kui Te tõesti arvate, et teate, milline draiver Teie helikaardile\n"
"tegelikult sobib, võite valida selle ülaltoodud nimekirjast.\n"
"\n"
"Teie praegune helikaart \"%s\" kasutab draiverit \"%s\" "

#: harddrake/v4l.pm:12
#, c-format
msgid "Auto-detect"
msgstr "Automaattuvastus"

#: harddrake/v4l.pm:97 harddrake/v4l.pm:285 harddrake/v4l.pm:337
#, c-format
msgid "Unknown|Generic"
msgstr "Tundmatu|Tavaline"

#: harddrake/v4l.pm:130
#, c-format
msgid "Unknown|CPH05X (bt878) [many vendors]"
msgstr "Tundmatu|CPH05X (bt878) [paljud tootjad]"

#: harddrake/v4l.pm:131
#, c-format
msgid "Unknown|CPH06X (bt878) [many vendors]"
msgstr "Tundmatu|CPH06X (bt878) [paljud tootjad]"

#: harddrake/v4l.pm:475
#, c-format
msgid ""
"For most modern TV cards, the bttv module of the GNU/Linux kernel just auto-"
"detect the rights parameters.\n"
"If your card is misdetected, you can force the right tuner and card types "
"here. Just select your tv card parameters if needed."
msgstr ""
"Enamiku moodsate TV-kaartide puhul tuvastab GNU/Linuxi kerneli bttv-moodul "
"automaatselt õiged parameetrid.\n"
"Kui kaart siiski valesti tuvastati, võite siin määrata õige tuuneri ja "
"kaardi tüübi. Valige vajadusel korral sobivad TV-kaardi parameetrid."

#: harddrake/v4l.pm:478
#, c-format
msgid "Card model:"
msgstr "Kaardi mudel:"

#: harddrake/v4l.pm:479
#, c-format
msgid "Tuner type:"
msgstr "Tuuneri tüüp:"

#: interactive.pm:128 interactive.pm:546 interactive/curses.pm:263
#: interactive/http.pm:103 interactive/http.pm:156 interactive/stdio.pm:39
#: interactive/stdio.pm:148 interactive/stdio.pm:149 ugtk2.pm:423 ugtk2.pm:521
#: ugtk2.pm:814 ugtk2.pm:837
#, c-format
msgid "Ok"
msgstr "Olgu"

#: interactive.pm:228 modules/interactive.pm:71 ugtk2.pm:813 wizards.pm:156
#, c-format
msgid "Yes"
msgstr "Jah"

#: interactive.pm:228 modules/interactive.pm:71 ugtk2.pm:813 wizards.pm:156
#, c-format
msgid "No"
msgstr "Ei"

#: interactive.pm:262
#, c-format
msgid "Choose a file"
msgstr "Valige fail"