Zeile 44 | Zeile 44 |
---|
{ $info = str_replace("\\", "\\\\", $info); $info = str_replace('$', '\$', $info);
|
{ $info = str_replace("\\", "\\\\", $info); $info = str_replace('$', '\$', $info);
|
|
|
if($key == 'admin' || $key == 'rtl') { $info = (int)$info; }
|
if($key == 'admin' || $key == 'rtl') { $info = (int)$info; }
|
|
|
$newlanginfo[$key] = str_replace("\"", '\"', $info); }
| $newlanginfo[$key] = str_replace("\"", '\"', $info); }
|
Zeile 178 | Zeile 178 |
---|
}
if($mybb->input['action'] == "quick_phrases")
|
}
if($mybb->input['action'] == "quick_phrases")
|
{ // Validate input $editlang = basename($mybb->input['lang']); $folder = MYBB_ROOT."inc/languages/".$editlang."/";
$page->add_breadcrumb_item(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]), "index.php?module=config-languages&action=quick_edit&lang={$editlang}");
| { // Validate input $editlang = basename($mybb->input['lang']); $folder = MYBB_ROOT."inc/languages/".$editlang."/";
$page->add_breadcrumb_item(preg_replace("<\?|\?>", "<span>?</span>", $languages[$editlang]), "index.php?module=config-languages&action=quick_edit&lang={$editlang}");
|
// Validate that this language pack really exists if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))
| // Validate that this language pack really exists if(file_exists(MYBB_ROOT."inc/languages/".$editlang.".php"))
|
Zeile 244 | Zeile 244 |
---|
// Lets make nice credits header in language file $lang_file_credits = "<?php\n/**\n"; $lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";
|
// Lets make nice credits header in language file $lang_file_credits = "<?php\n/**\n"; $lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";
|
$lang_file_credits .= " * Website: http://www.mybb.com\n"; $lang_file_credits .= " * License: http://www.mybb.com/about/license\n *\n */\n\n";
| $lang_file_credits .= " * Website: https://mybb.com\n"; $lang_file_credits .= " * License: https://mybb.com/about/license\n *\n */\n\n";
|
$lang_file_credits .= "// ".str_repeat('-',80)."\n"; $lang_file_credits .= "// MyBB Language Pack File.\n"; $lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";
| $lang_file_credits .= "// ".str_repeat('-',80)."\n"; $lang_file_credits .= "// MyBB Language Pack File.\n"; $lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";
|
Zeile 323 | Zeile 323 |
---|
}
if($no_write)
|
}
if($no_write)
|
{
| {
|
$page->output_alert($lang->alert_note_cannot_write); }
| $page->output_alert($lang->alert_note_cannot_write); }
|
Zeile 451 | Zeile 451 |
---|
// Lets make nice credits header in language file $lang_file_credits = "<?php\n/**\n"; $lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";
|
// Lets make nice credits header in language file $lang_file_credits = "<?php\n/**\n"; $lang_file_credits .= " * MyBB Copyright 2014 MyBB Group, All Rights Reserved\n *\n";
|
$lang_file_credits .= " * Website: http://www.mybb.com\n"; $lang_file_credits .= " * License: http://www.mybb.com/about/license\n *\n */\n\n";
| $lang_file_credits .= " * Website: https://mybb.com\n"; $lang_file_credits .= " * License: https://mybb.com/about/license\n *\n */\n\n";
|
$lang_file_credits .= "// ".str_repeat('-',80)."\n"; $lang_file_credits .= "// MyBB Language Pack File.\n"; $lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";
| $lang_file_credits .= "// ".str_repeat('-',80)."\n"; $lang_file_credits .= "// MyBB Language Pack File.\n"; $lang_file_credits .= "// This file has been generated by MyBB - buildin language pack editor.\n";
|
Zeile 601 | Zeile 601 |
---|
{ $editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $editvars[$key]); }
|
{ $editvars[$key] = preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return "&#".hexdec($matches[1]).";";'), $editvars[$key]); }
|
|
|
$form_container->output_row("", "", "", "", array('width' => '50%', 'skip_construct' => true)); $form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $editvars[$key], array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%')); }
| $form_container->output_row("", "", "", "", array('width' => '50%', 'skip_construct' => true)); $form_container->output_row($key, "", $form->generate_text_area("edit[$key]", $editvars[$key], array('id' => 'lang_'.$key, 'rows' => 2, 'class' => "langeditor_textarea_edit {$editlang_dir_class}")), 'lang_'.$key, array('width' => '50%')); }
|
Zeile 990 | Zeile 990 |
---|
); $sub_tabs['find_language'] = array( 'title' => $lang->find_language_packs,
|
); $sub_tabs['find_language'] = array( 'title' => $lang->find_language_packs,
|
'link' => "http://community.mybb.com/mods.php?action=browse&category=19",
| 'link' => "https://community.mybb.com/mods.php?action=browse&category=19",
|
'target' => "_blank" );
| 'target' => "_blank" );
|