diff --git a/Upload/admin/inc/class_form.php b/Upload/admin/inc/class_form.php index 4d33aca..37e7e83 100644 --- a/Upload/admin/inc/class_form.php +++ b/Upload/admin/inc/class_form.php @@ -130,7 +130,16 @@ function generate_text_box($name, $value="", $options=array()) */ function generate_numeric_field($name, $value=0, $options=array()) { - $input = "\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; @@ -390,7 +390,7 @@ function show_login($message="", $class="success") - + - + - + EOF; // If board configuration errors @@ -1859,12 +1859,12 @@ function revertSetting(defval, inpid) } // Attempt auto-detection - if($_SERVER['HTTP_HOST']) + if(!empty($_SERVER['HTTP_HOST'])) { $hostname = $protocol.$_SERVER['HTTP_HOST']; $cookiedomain = $_SERVER['HTTP_HOST']; } - elseif($_SERVER['SERVER_NAME']) + elseif(!empty($_SERVER['SERVER_NAME'])) { $hostname = $protocol.$_SERVER['SERVER_NAME']; $cookiedomain = $_SERVER['SERVER_NAME']; @@ -1885,18 +1885,33 @@ function revertSetting(defval, inpid) $cookiedomain = ".{$cookiedomain}"; } - if($_SERVER['SERVER_PORT'] && $_SERVER['SERVER_PORT'] != 80 && !preg_match("#:[0-9]#i", $hostname)) + if(!empty($_SERVER['SERVER_PORT'])) { - $hostname .= ':'.$_SERVER['SERVER_PORT']; + $port = ":{$_SERVER['SERVER_PORT']}"; + $pos = strrpos($cookiedomain, $port); + + if($pos !== false) + { + $cookiedomain = substr($cookiedomain, 0, $pos); + } + + if($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443 && !preg_match("#:[0-9]#i", $hostname)) + { + $hostname .= $port; + } } - + $currentlocation = get_current_location('', '', true); $noinstall = substr($currentlocation, 0, strrpos($currentlocation, '/install/')); - + $cookiepath = $noinstall.'/'; $bburl = $hostname.$noinstall; $websiteurl = $hostname.'/'; - $contactemail = $_SERVER['SERVER_ADMIN']; + + if(isset($_SERVER['SERVER_ADMIN']) && filter_var($_SERVER['SERVER_ADMIN'], FILTER_VALIDATE_EMAIL)) + { + $contactemail = $_SERVER['SERVER_ADMIN']; + } } echo $lang->sprintf($lang->config_step_table, $bbname, $bburl, $websitename, $websiteurl, $cookiedomain, $cookiepath, $contactemail); @@ -1928,9 +1943,9 @@ function create_admin_user() } } $output->print_header($lang->create_admin, 'admin'); - + echo << + - + EOF; if(is_array($errors)) @@ -2274,7 +2289,7 @@ function install_done() ); $db->insert_query('users', $newuser); - $welcome_post_title = "Witamy w MyBB!"; +$welcome_post_title = "Witamy w MyBB!"; $welcome_post_message = "Dziękujemy za wybranie MyBB. Instalacja przebiegła poprawnie i Twoje forum jest gotowe do użytku. Jeżeli podczas pracy z MyBB napotkasz jakiś problem, nie bój się zapytać na forum [url=http://forum.mybboard.pl]oficjalnego Polskiego Supportu MyBB[/url]. Zachęcamy Cię także do zapoznania się z naszym [url=http://mybboard.pl]portalem[/url], gdzie możesz znaleźć najnowsze wiadomości ze świata MyBB, oraz do odwiedzenia [url=http://wiki.mybboard.pl]polskiej Wiki[/url]. Powodzenia w przygodzie z MyBB!"; $welcome_post = array( diff --git a/Upload/install/resources/mybb_theme.xml b/Upload/install/resources/mybb_theme.xml index ff20eb9..8b47fbf 100644 --- a/Upload/install/resources/mybb_theme.xml +++ b/Upload/install/resources/mybb_theme.xml @@ -1,5 +1,5 @@ - + @@ -2172,7 +2172,7 @@ ul.thread_tools li.poll { .thread_status.newlockfolder { background-position: 0 -320px; }]]> - td { border-bottom: 0; } -.tborder tbody tr:last-child td:first-child { +.tborder tbody tr:last-child > td:first-child { -moz-border-radius-bottomleft: 6px; -webkit-border-bottom-left-radius: 6px; border-bottom-left-radius: 6px; } -.tborder tbody tr:last-child td:last-child { +.tborder tbody tr:last-child > td:last-child { -moz-border-radius-bottomright: 6px; -webkit-border-bottom-right-radius: 6px; border-bottom-right-radius: 6px; @@ -3678,7 +3678,7 @@ var announcement_quickdelete_confirm = "{$lang->announcement_quickdelete_confirm -