Zeile 97 | Zeile 97 |
---|
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"))
| // Load stylesheet for this module if it has one if(file_exists(MYBB_ADMIN_DIR."styles/{$this->style}/{$this->active_module}.css"))
|
Zeile 106 | Zeile 106 |
---|
echo " <link rel=\"stylesheet\" href=\"styles/{$this->style}/{$this->active_module}.css\" type=\"text/css\" />\n"; }
|
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=1806\"></script>\n";
| echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.js?ver=1813\"></script>\n"; echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.plugins.min.js?ver=1813\"></script>\n"; echo " <script type=\"text/javascript\" src=\"../jscripts/general.js?ver=1813\"></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 " <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 type=\"text/javascript\" src=\"./jscripts/admincp.js\"></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 " <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 131 |
---|
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 143 |
---|
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 224 | Zeile 226 |
---|
echo " <br style=\"clear: both;\" />"; echo " <br style=\"clear: both;\" />"; echo " </div>\n";
|
echo " <br style=\"clear: both;\" />"; echo " <br style=\"clear: both;\" />"; 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 389 | Zeile 391 |
---|
<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=1806"></script>
| <script type="text/javascript" src="../jscripts/jquery.js?ver=1813"></script> <script type="text/javascript" src="../jscripts/general.js?ver=1813"></script>
|
<script type="text/javascript" src="./jscripts/admincp.js"></script> <script type="text/javascript"> //<![CDATA[
| <script type="text/javascript" src="./jscripts/admincp.js"></script> <script type="text/javascript"> //<![CDATA[
|
Zeile 521 | Zeile 523 |
---|
<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=1806"></script>
| <script type="text/javascript" src="../jscripts/jquery.js?ver=1813"></script> <script type="text/javascript" src="../jscripts/general.js?ver=1813"></script>
|
<script type="text/javascript" src="./jscripts/admincp.js"></script> <script type="text/javascript"> //<![CDATA[
| <script type="text/javascript" src="./jscripts/admincp.js"></script> <script type="text/javascript"> //<![CDATA[
|
Zeile 764 | Zeile 766 |
---|
$sidebar = new sideBarItem($title); $sidebar->add_menu_items($items, $this->active_action); $this->submenu .= $sidebar->get_markup();
|
$sidebar = new sideBarItem($title); $sidebar->add_menu_items($items, $this->active_action); $this->submenu .= $sidebar->get_markup();
|
} }
/** * Switch between two different alternating background colours. * * @return string */ function get_alt_bg() { static $alt_bg; if($alt_bg == "alt1") { $alt_bg = "alt2"; return "alt1"; } else { $alt_bg = "alt1"; return $alt_bg;
| |
} }
| } }
|
Zeile 809 | Zeile 791 |
---|
$class .= " last"; } if($done == 1)
|
$class .= " last"; } if($done == 1)
|
{
| {
|
$class .= " first"; } ++$done;
| $class .= " first"; } ++$done;
|
Zeile 822 | Zeile 804 |
---|
/** * 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 846 | Zeile 828 |
---|
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";
|
Zeile 922 | Zeile 909 |
---|
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";
|
$emoticon = ",emoticon";
|
}
| }
|
$emoticons_enabled = "true";
|
$emoticons_enabled = "true";
|
|
|
if(!$smiliecount) { $smilie_cache = $cache->read("smilies");
| if(!$smiliecount) { $smilie_cache = $cache->read("smilies");
|
Zeile 938 | Zeile 925 |
---|
if(!is_array($smilie_cache)) { $smilie_cache = $cache->read("smilies");
|
if(!is_array($smilie_cache)) { $smilie_cache = $cache->read("smilies");
|
}
| }
|
foreach($smilie_cache as $smilie)
|
foreach($smilie_cache as $smilie)
|
{
| {
|
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']); $smiliecache[$smilie['sid']] = $smilie; } }
|
$smilie['image'] = str_replace("{theme}", "images", $smilie['image']); $smiliecache[$smilie['sid']] = $smilie; } }
|
|
|
unset($smilie);
if(is_array($smiliecache)) { reset($smiliecache);
|
unset($smilie);
if(is_array($smiliecache)) { reset($smiliecache);
|
|
|
$dropdownsmilies = $moresmilies = $hiddensmilies = ""; $i = 0;
| $dropdownsmilies = $moresmilies = $hiddensmilies = ""; $i = 0;
|
Zeile 959 | Zeile 946 |
---|
{ $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']));
| // 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']));
|
Zeile 970 | Zeile 957 |
---|
if(!$mybb->settings['smilieinserter'] || !$mybb->settings['smilieinsertercols'] || !$mybb->settings['smilieinsertertot'] || !$smilie['showclickable']) {
|
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']) {
|