Zeile 63 | Zeile 63 |
---|
* @var string Show a post verify error */ public $show_post_verify_error = '';
|
* @var string Show a post verify error */ public $show_post_verify_error = '';
|
| /** * @var string */ public $_menu;
|
/** * Output the page header.
| /** * Output the page header.
|
Zeile 97 | Zeile 102 |
---|
echo " <title>".$title."</title>\n"; echo " <meta name=\"author\" content=\"MyBB Group\" />\n"; echo " <meta name=\"copyright\" content=\"Copyright ".COPY_YEAR." MyBB Group.\" />\n";
|
echo " <title>".$title."</title>\n"; echo " <meta name=\"author\" content=\"MyBB Group\" />\n"; echo " <meta name=\"copyright\" content=\"Copyright ".COPY_YEAR." MyBB Group.\" />\n";
|
echo " <link rel=\"stylesheet\" href=\"styles/".$this->style."/main.css?ver=1804\" type=\"text/css\" />\n"; echo " <link rel=\"stylesheet\" href=\"styles/".$this->style."/modal.css\" type=\"text/css\" />\n";
| echo " <link rel=\"stylesheet\" href=\"styles/".$this->style."/main.css?ver=1813\" type=\"text/css\" />\n"; echo " <link rel=\"stylesheet\" href=\"styles/".$this->style."/modal.css?ver=1813\" type=\"text/css\" />\n";
|
// Load stylesheet for this module if it has one if(file_exists(MYBB_ADMIN_DIR."styles/{$this->style}/{$this->active_module}.css")) { echo " <link rel=\"stylesheet\" href=\"styles/{$this->style}/{$this->active_module}.css\" type=\"text/css\" />\n";
|
// Load stylesheet for this module if it has one if(file_exists(MYBB_ADMIN_DIR."styles/{$this->style}/{$this->active_module}.css")) { echo " <link rel=\"stylesheet\" href=\"styles/{$this->style}/{$this->active_module}.css\" type=\"text/css\" />\n";
|
}
echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.js\"></script>\n"; echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.plugins.min.js\"></script>\n"; echo " <script type=\"text/javascript\" src=\"../jscripts/general.js?ver=1807\"></script>\n"; echo " <script type=\"text/javascript\" src=\"./jscripts/admincp.js\"></script>\n"; echo " <script type=\"text/javascript\" src=\"./jscripts/tabs.js\"></script>\n";
| }
echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.js?ver=1823\"></script>\n"; echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.plugins.min.js?ver=1821\"></script>\n"; echo " <script type=\"text/javascript\" src=\"../jscripts/general.js?ver=1821\"></script>\n"; echo " <script type=\"text/javascript\" src=\"./jscripts/admincp.js?ver=1821\"></script>\n"; echo " <script type=\"text/javascript\" src=\"./jscripts/tabs.js\"></script>\n";
|
echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.min.css\" />\n"; echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.structure.min.css\" />\n"; echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.theme.min.css\" />\n";
|
echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.min.css\" />\n"; echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.structure.min.css\" />\n"; echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.theme.min.css\" />\n";
|
echo " <script src=\"jscripts/jqueryui/js/jquery-ui.min.js?ver=1804\"></script>\n";
| echo " <script src=\"jscripts/jqueryui/js/jquery-ui.min.js?ver=1813\"></script>\n";
|
// Stop JS elements showing while page is loading (JS supported browsers only) echo " <style type=\"text/css\">.popup_button { display: none; } </style>\n";
| // Stop JS elements showing while page is loading (JS supported browsers only) echo " <style type=\"text/css\">.popup_button { display: none; } </style>\n";
|
Zeile 131 | Zeile 136 |
---|
var cookieDomain = '{$mybb->settings['cookiedomain']}'; var cookiePath = '{$mybb->settings['cookiepath']}'; var cookiePrefix = '{$mybb->settings['cookieprefix']}';
|
var cookieDomain = '{$mybb->settings['cookiedomain']}'; var cookiePath = '{$mybb->settings['cookiepath']}'; var cookiePrefix = '{$mybb->settings['cookieprefix']}';
|
| var cookieSecureFlag = '{$mybb->settings['cookiesecureflag']}';
|
var imagepath = '../images';
lang.unknown_error = \"{$lang->unknown_error}\";
| var imagepath = '../images';
lang.unknown_error = \"{$lang->unknown_error}\";
|
Zeile 142 | Zeile 148 |
---|
echo "<body>\n"; echo "<div id=\"container\">\n"; echo " <div id=\"logo\"><h1><span class=\"invisible\">{$lang->mybb_admin_cp}</span></h1></div>\n";
|
echo "<body>\n"; echo "<div id=\"container\">\n"; echo " <div id=\"logo\"><h1><span class=\"invisible\">{$lang->mybb_admin_cp}</span></h1></div>\n";
|
echo " <div id=\"welcome\"><span class=\"logged_in_as\">{$lang->logged_in_as} <a href=\"index.php?module=user-users&action=edit&uid={$mybb->user['uid']}\" class=\"username\">{$mybb->user['username']}</a></span> | <a href=\"{$mybb->settings['bburl']}\" target=\"_blank\" class=\"forum\">{$lang->view_board}</a> | <a href=\"index.php?action=logout&my_post_key={$mybb->post_code}\" class=\"logout\">{$lang->logout}</a></div>\n";
| $username = htmlspecialchars_uni($mybb->user['username']); echo " <div id=\"welcome\"><span class=\"logged_in_as\">{$lang->logged_in_as} <a href=\"index.php?module=user-users&action=edit&uid={$mybb->user['uid']}\" class=\"username\">{$username}</a></span> | <a href=\"{$mybb->settings['bburl']}\" target=\"_blank\" class=\"forum\">{$lang->view_board}</a> | <a href=\"index.php?action=logout&my_post_key={$mybb->post_code}\" class=\"logout\">{$lang->logout}</a></div>\n";
|
echo $this->_build_menu(); echo " <div id=\"page\">\n"; echo " <div id=\"left_menu\">\n";
| echo $this->_build_menu(); echo " <div id=\"page\">\n"; echo " <div id=\"left_menu\">\n";
|
Zeile 179 | Zeile 186 |
---|
default: $this->output_error($message['message']); break;
|
default: $this->output_error($message['message']); break;
|
} }
| } }
|
}
if($this->show_post_verify_error == true)
| }
if($this->show_post_verify_error == true)
|
Zeile 222 | Zeile 229 |
---|
echo " </div>\n"; echo " </div>\n"; echo " <br style=\"clear: both;\" />";
|
echo " </div>\n"; echo " </div>\n"; echo " <br style=\"clear: both;\" />";
|
echo " <br style=\"clear: both;\" />";
| echo " <br style=\"clear: both;\" />";
|
echo " </div>\n";
|
echo " </div>\n";
|
echo "<div id=\"footer\"><p class=\"generation\">".$lang->sprintf($lang->generated_in, $totaltime, $debuglink, $querycount, $memory_usage)."</p><p class=\"powered\">Powered By <a href=\"http://www.mybb.com/\" target=\"_blank\">MyBB</a>, © 2002-".COPY_YEAR." <a href=\"http://www.mybb.com/\" target=\"_blank\">MyBB Group</a>.</p></div>\n";
| echo "<div id=\"footer\"><p class=\"generation\">".$lang->sprintf($lang->generated_in, $totaltime, $debuglink, $querycount, $memory_usage)."</p><p class=\"powered\">Powered By <a href=\"https://mybb.com/\" target=\"_blank\" rel=\"noopener\">MyBB</a>, © 2002-".COPY_YEAR." <a href=\"https://mybb.com/\" target=\"_blank\" rel=\"noopener\">MyBB Group</a>.</p></div>\n";
|
if($mybb->debug_mode) { echo $db->explain;
| if($mybb->debug_mode) { echo $db->explain;
|
Zeile 248 | Zeile 255 |
---|
function add_breadcrumb_item($name, $url="") { $this->_breadcrumb_trail[] = array("name" => $name, "url" => $url);
|
function add_breadcrumb_item($name, $url="") { $this->_breadcrumb_trail[] = array("name" => $name, "url" => $url);
|
}
| }
|
/** * Generate a breadcrumb trail.
| /** * Generate a breadcrumb trail.
|
Zeile 288 | Zeile 295 |
---|
function output_success($message) { echo "<div class=\"success\">{$message}</div>\n";
|
function output_success($message) { echo "<div class=\"success\">{$message}</div>\n";
|
}
| }
|
/** * Output an alert/warning message.
| /** * Output an alert/warning message.
|
Zeile 313 | Zeile 320 |
---|
function output_inline_message($message) { echo "<div class=\"inline_message\">{$message}</div>\n";
|
function output_inline_message($message) { echo "<div class=\"inline_message\">{$message}</div>\n";
|
}
/**
| }
/**
|
* Output a single error message. * * @param string $error The message to output.
| * Output a single error message. * * @param string $error The message to output.
|
Zeile 329 | Zeile 336 |
---|
/** * Output one or more inline error messages.
|
/** * Output one or more inline error messages.
|
*
| *
|
* @param array $errors Array of error messages to output. */ function output_inline_error($errors)
| * @param array $errors Array of error messages to output. */ function output_inline_error($errors)
|
Zeile 376 | Zeile 383 |
---|
// If the language string for "Username" is too cramped then use this to define how much larger you want the gap to be (in px) if(isset($lang->login_field_width))
|
// If the language string for "Username" is too cramped then use this to define how much larger you want the gap to be (in px) if(isset($lang->login_field_width))
|
{ $login_label_width = " style=\"width: ".((int)$lang->login_field_width+100)."px;\"";
| { $login_label_width = " style=\"width: ".((int)$lang->login_field_width+100)."px;\"";
|
$login_container_width = " style=\"width: ".(410+((int)$lang->login_field_width))."px;\"";
|
$login_container_width = " style=\"width: ".(410+((int)$lang->login_field_width))."px;\"";
|
}
| }
|
|
|
$login_page .= <<<EOF
| $login_page = <<<EOF
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head profile="http://gmpg.org/xfn/1">
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head profile="http://gmpg.org/xfn/1">
|
Zeile 389 | Zeile 396 |
---|
<meta name="author" content="MyBB Group" /> <meta name="copyright" content="Copyright {$copy_year} MyBB Group." /> <link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />
|
<meta name="author" content="MyBB Group" /> <meta name="copyright" content="Copyright {$copy_year} MyBB Group." /> <link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />
|
<script type="text/javascript" src="../jscripts/jquery.js"></script> <script type="text/javascript" src="../jscripts/general.js?ver=1807"></script> <script type="text/javascript" src="./jscripts/admincp.js"></script>
| <script type="text/javascript" src="../jscripts/jquery.js?ver=1823"></script> <script type="text/javascript" src="../jscripts/general.js?ver=1821"></script> <script type="text/javascript" src="./jscripts/admincp.js?ver=1821"></script>
|
<script type="text/javascript"> //<![CDATA[ loading_text = '{$lang->loading_text}';
| <script type="text/javascript"> //<![CDATA[ loading_text = '{$lang->loading_text}';
|
Zeile 400 | Zeile 407 |
---|
</head> <body> <div id="container"{$login_container_width}>
|
</head> <body> <div id="container"{$login_container_width}>
|
<div id="header"> <div id="logo">
| <div id="header"> <div id="logo">
|
<h1><a href="../" title="{$lang->return_to_forum}"><span class="invisible">{$lang->mybb_acp}</span></a></h1>
</div>
| <h1><a href="../" title="{$lang->return_to_forum}"><span class="invisible">{$lang->mybb_acp}</span></a></h1>
</div>
|
Zeile 427 | Zeile 434 |
---|
switch($mybb->settings['username_method']) { case 0:
|
switch($mybb->settings['username_method']) { case 0:
|
$lang_username = $lang->username; break;
| $lang_username = $lang->username; break;
|
case 1: $lang_username = $lang->username1; break;
| case 1: $lang_username = $lang->username1; break;
|
Zeile 467 | Zeile 474 |
---|
$login_lang_string = $lang->sprintf($login_lang_string, $lang->login_username_and_password); break; }
|
$login_lang_string = $lang->sprintf($login_lang_string, $lang->login_username_and_password); break; }
|
$_SERVER['PHP_SELF'] = htmlspecialchars_uni($_SERVER['PHP_SELF']);
| $this_file = htmlspecialchars_uni($_SERVER['SCRIPT_NAME']);
|
$login_page .= <<<EOF <p>{$login_lang_string}</p>
|
$login_page .= <<<EOF <p>{$login_lang_string}</p>
|
<form method="post" action="{$_SERVER['PHP_SELF']}{$query_string}">
| <form method="post" action="{$this_file}{$query_string}">
|
<div class="form_container">
<div class="label"{$login_label_width}><label for="username">{$lang_username}</label></div>
| <div class="form_container">
<div class="label"{$login_label_width}><label for="username">{$lang_username}</label></div>
|
Zeile 497 | Zeile 504 |
---|
</body> </html> EOF;
|
</body> </html> EOF;
|
|
|
$args = array( 'this' => &$this, 'login_page' => &$login_page );
|
$args = array( 'this' => &$this, 'login_page' => &$login_page );
|
$plugins->run_hooks('admin_page_show_login_end', $args);
| $plugins->run_hooks('admin_page_show_login_end', $args);
|
echo $login_page; exit; }
function show_2fa()
|
echo $login_page; exit; }
function show_2fa()
|
{
| {
|
global $lang, $cp_style, $mybb;
|
global $lang, $cp_style, $mybb;
|
| $copy_year = COPY_YEAR;
|
$mybb2fa_page = <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| $mybb2fa_page = <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
Zeile 521 | Zeile 530 |
---|
<meta name="author" content="MyBB Group" /> <meta name="copyright" content="Copyright {$copy_year} MyBB Group." /> <link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />
|
<meta name="author" content="MyBB Group" /> <meta name="copyright" content="Copyright {$copy_year} MyBB Group." /> <link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />
|
<script type="text/javascript" src="../jscripts/jquery.js"></script> <script type="text/javascript" src="../jscripts/general.js?ver=1807"></script> <script type="text/javascript" src="./jscripts/admincp.js"></script>
| <script type="text/javascript" src="../jscripts/jquery.js?ver=1823"></script> <script type="text/javascript" src="../jscripts/general.js?ver=1821"></script> <script type="text/javascript" src="./jscripts/admincp.js?ver=1821"></script>
|
<script type="text/javascript"> //<![CDATA[ loading_text = '{$lang->loading_text}';
| <script type="text/javascript"> //<![CDATA[ loading_text = '{$lang->loading_text}';
|
Zeile 623 | Zeile 632 |
---|
global $lang, $mybb, $cp_style;
$copy_year = COPY_YEAR;
|
global $lang, $mybb, $cp_style;
$copy_year = COPY_YEAR;
|
| $login_label_width = "";
// If the language string for "Username" is too cramped then use this to define how much larger you want the gap to be (in px) if(isset($lang->login_field_width)) { $login_label_width = " style=\"width: ".((int)$lang->login_field_width+100)."px;\""; }
|
switch($mybb->settings['username_method']) { case 0:
| switch($mybb->settings['username_method']) { case 0:
|
Zeile 727 | Zeile 745 |
---|
foreach($this->_menu as $items) { foreach($items as $menu_item)
|
foreach($this->_menu as $items) { foreach($items as $menu_item)
|
{
| {
|
$menu_item['link'] = htmlspecialchars_uni($menu_item['link']); if($menu_item['id'] == $this->active_module)
|
$menu_item['link'] = htmlspecialchars_uni($menu_item['link']); if($menu_item['id'] == $this->active_module)
|
{
| {
|
$sub_menu = $menu_item['submenu']; $sub_menu_title = $menu_item['title']; $build_menu .= "<li><a href=\"{$menu_item['link']}\" class=\"active\">{$menu_item['title']}</a></li>\n";
|
$sub_menu = $menu_item['submenu']; $sub_menu_title = $menu_item['title']; $build_menu .= "<li><a href=\"{$menu_item['link']}\" class=\"active\">{$menu_item['title']}</a></li>\n";
|
}
| }
|
else { $build_menu .= "<li><a href=\"{$menu_item['link']}\">{$menu_item['title']}</a></li>\n"; }
|
else { $build_menu .= "<li><a href=\"{$menu_item['link']}\">{$menu_item['title']}</a></li>\n"; }
|
} }
| } }
|
$build_menu .= "</ul>\n</div>";
|
$build_menu .= "</ul>\n</div>";
|
if($sub_menu)
| if(!empty($sub_menu))
|
{ $this->_build_submenu($sub_menu_title, $sub_menu); }
| { $this->_build_submenu($sub_menu_title, $sub_menu); }
|
Zeile 769 | Zeile 787 |
---|
/** * Output a Javascript based tab control on to the page.
|
/** * Output a Javascript based tab control on to the page.
|
*
| *
|
* @param array $tabs Array of tabs in name => title format. Name should correspond to the name of a DIV containing the tab content. * @param boolean $observe_onload Whether or not to run the event onload or instantly * @param string $id The ID to use for the tabs for if you run multiple instances of the tabbing control in one html page
| * @param array $tabs Array of tabs in name => title format. Name should correspond to the name of a DIV containing the tab content. * @param boolean $observe_onload Whether or not to run the event onload or instantly * @param string $id The ID to use for the tabs for if you run multiple instances of the tabbing control in one html page
|
Zeile 782 | Zeile 800 |
---|
$tab_count = count($tabs); $done = 1; foreach($tabs as $anchor => $title)
|
$tab_count = count($tabs); $done = 1; foreach($tabs as $anchor => $title)
|
{
| {
|
$class = ""; if($tab_count == $done) {
| $class = ""; if($tab_count == $done) {
|
Zeile 802 | Zeile 820 |
---|
/** * Output a series of primary navigation tabs for swithcing between items within a particular module/action. *
|
/** * Output a series of primary navigation tabs for swithcing between items within a particular module/action. *
|
* @param array $tabs Nested array of tabs containing possible keys of align, link_target, link, title.
| * @param array $tabs Nested array of tabs containing possible keys of align, link_target, link_rel, link, title.
|
* @param string $active The name of the active tab. Corresponds with the key of each tab item. */ function output_nav_tabs($tabs=array(), $active='')
| * @param string $active The name of the active tab. Corresponds with the key of each tab item. */ function output_nav_tabs($tabs=array(), $active='')
|
Zeile 826 | Zeile 844 |
---|
if(isset($tab['link_target'])) { $target = " target=\"{$tab['link_target']}\"";
|
if(isset($tab['link_target'])) { $target = " target=\"{$tab['link_target']}\"";
|
| } $rel = ''; if(isset($tab['link_rel'])) { $rel = " rel=\"{$tab['link_rel']}\"";
|
} if(!isset($tab['link'])) { $tab['link'] = ''; }
|
} if(!isset($tab['link'])) { $tab['link'] = ''; }
|
echo "\t\t<li class=\"{$class}\"><a href=\"{$tab['link']}\"{$target}>{$tab['title']}</a></li>\n";
| echo "\t\t<li class=\"{$class}\"><a href=\"{$tab['link']}\"{$target}{$rel}>{$tab['title']}</a></li>\n";
|
$target = ''; } echo "\t</ul>\n";
|
$target = ''; } echo "\t</ul>\n";
|
if($tabs[$active]['description'])
| if(!empty($tabs[$active]['description']))
|
{ echo "\t<div class=\"tab_description\">{$tabs[$active]['description']}</div>\n";
|
{ echo "\t<div class=\"tab_description\">{$tabs[$active]['description']}</div>\n";
|
}
| }
|
echo "</div>"; $arguments = array('tabs' => $tabs, 'active' => $active); $plugins->run_hooks("admin_page_output_nav_tabs_end", $arguments);
| echo "</div>"; $arguments = array('tabs' => $tabs, 'active' => $active); $plugins->run_hooks("admin_page_output_nav_tabs_end", $arguments);
|
Zeile 852 | Zeile 875 |
---|
* @param string $title The title to use in the output header */ function output_confirm_action($url, $message="", $title="")
|
* @param string $title The title to use in the output header */ function output_confirm_action($url, $message="", $title="")
|
{
| {
|
global $lang, $plugins;
|
global $lang, $plugins;
|
|
|
$args = array( 'this' => &$this, 'url' => &$url, 'message' => &$message, 'title' => &$title, );
|
$args = array( 'this' => &$this, 'url' => &$url, 'message' => &$message, 'title' => &$title, );
|
|
|
$plugins->run_hooks('admin_page_output_confirm_action', $args);
if(!$message)
|
$plugins->run_hooks('admin_page_output_confirm_action', $args);
if(!$message)
|
{
| {
|
$message = $lang->confirm_action; } $this->output_header($title);
| $message = $lang->confirm_action; } $this->output_header($title);
|
Zeile 879 | Zeile 902 |
---|
echo $form->generate_submit_button($lang->no, array("name" => "no", 'class' => 'button_no')); echo "</p>\n"; echo "</div>\n";
|
echo $form->generate_submit_button($lang->no, array("name" => "no", 'class' => 'button_no')); echo "</p>\n"; echo "</div>\n";
|
|
|
$form->end(); $this->output_footer(); }
| $form->end(); $this->output_footer(); }
|
Zeile 894 | Zeile 917 |
---|
*/ function build_codebuttons_editor($bind, $editor_language, $smilies) {
|
*/ function build_codebuttons_editor($bind, $editor_language, $smilies) {
|
global $lang, $mybb, $smiliecache, $cache;
| global $lang, $mybb, $smiliecache, $smiliecount, $cache;
|
// Smilies $emoticon = "";
| // Smilies $emoticon = "";
|
Zeile 902 | Zeile 925 |
---|
if($smilies) { if($mybb->settings['smilieinserter'] && $mybb->settings['smilieinsertercols'] && $mybb->settings['smilieinsertertot'])
|
if($smilies) { if($mybb->settings['smilieinserter'] && $mybb->settings['smilieinsertercols'] && $mybb->settings['smilieinsertertot'])
|
{
| {
|
$emoticon = ",emoticon"; } $emoticons_enabled = "true";
|
$emoticon = ",emoticon"; } $emoticons_enabled = "true";
|
|
|
if(!$smiliecount)
|
if(!$smiliecount)
|
{
| {
|
$smilie_cache = $cache->read("smilies");
|
$smilie_cache = $cache->read("smilies");
|
| if(!is_array($smilie_cache)) { $smilie_cache = array(); }
|
$smiliecount = count($smilie_cache); }
| $smiliecount = count($smilie_cache); }
|
Zeile 939 | Zeile 966 |
---|
{ $finds = explode("\n", $smilie['find']); $finds_count = count($finds);
|
{ $finds = explode("\n", $smilie['find']); $finds_count = count($finds);
|
|
|
// Only show the first text to replace in the box $find = str_replace(array('\\', '"'), array('\\\\', '\"'), htmlspecialchars_uni($finds[0])); $image = str_replace(array('\\', '"'), array('\\\\', '\"'), htmlspecialchars_uni($smilie['image'])); if(substr($image, 0, 4) != "http")
|
// Only show the first text to replace in the box $find = str_replace(array('\\', '"'), array('\\\\', '\"'), htmlspecialchars_uni($finds[0])); $image = str_replace(array('\\', '"'), array('\\\\', '\"'), htmlspecialchars_uni($smilie['image'])); if(substr($image, 0, 4) != "http")
|
{
| {
|
$image = $mybb->settings['bburl']."/".$image; }
if(!$mybb->settings['smilieinserter'] || !$mybb->settings['smilieinsertercols'] || !$mybb->settings['smilieinsertertot'] || !$smilie['showclickable']) {
|
$image = $mybb->settings['bburl']."/".$image; }
if(!$mybb->settings['smilieinserter'] || !$mybb->settings['smilieinsertercols'] || !$mybb->settings['smilieinsertertot'] || !$smilie['showclickable']) {
|
$hiddensmilies .= '"'.$find.'": "'.$image.'",';
| $hiddensmilies .= '"'.$find.'": "'.$image.'",';
|
} elseif($i < $mybb->settings['smilieinsertertot']) {
| } elseif($i < $mybb->settings['smilieinsertertot']) {
|
Zeile 1034 | Zeile 1061 |
---|
<script type="text/javascript"> var partialmode = {$mybb->settings['partialmode']}, opt_editor = {
|
<script type="text/javascript"> var partialmode = {$mybb->settings['partialmode']}, opt_editor = {
|
plugins: "bbcode,undo", style: "../jscripts/sceditor/textarea_styles/jquery.sceditor.mybb.css",
| plugins: "undo", format: "bbcode", bbcodeTrim: true, style: "../jscripts/sceditor/styles/jquery.sceditor.mybb.css",
|
rtl: {$lang->settings['rtl']}, locale: "mybblang", enablePasteFiltering: true,
| rtl: {$lang->settings['rtl']}, locale: "mybblang", enablePasteFiltering: true,
|