From f3faa89ccb01b34f5fa77d2e57773eaadcaf930c Mon Sep 17 00:00:00 2001 From: Gigik Date: Tue, 15 Mar 2016 21:04:04 +0100 Subject: [PATCH] Aktualizacja PPM do wersji 1.8.7 --- Upload/admin/inc/class_form.php | 11 +- Upload/admin/inc/class_page.php | 26 +- Upload/admin/inc/functions.php | 2 +- Upload/admin/index.php | 10 +- Upload/admin/modules/config/settings.php | 83 +- Upload/admin/modules/forum/management.php | 3 +- Upload/admin/modules/style/themes.php | 23 +- Upload/admin/modules/tools/adminlog.php | 3 +- Upload/admin/modules/tools/backupdb.php | 8 +- Upload/admin/modules/tools/modlog.php | 3 +- .../admin/modules/tools/recount_rebuild.php | 8 +- Upload/admin/modules/tools/spamlog.php | 3 +- Upload/admin/modules/tools/system_health.php | 16 +- .../admin/modules/user/admin_permissions.php | 173 +-- Upload/admin/modules/user/banning.php | 5 +- Upload/admin/modules/user/groups.php | 3 +- Upload/admin/modules/user/users.php | 1026 ++++++++--------- Upload/admin/styles/default/login.css | 380 +++--- Upload/admin/styles/default/style.php | 164 +-- Upload/archive/index.php | 15 +- Upload/calendar.php | 34 +- Upload/contact.php | 2 +- Upload/editpost.php | 2 +- Upload/forumdisplay.php | 9 +- Upload/global.php | 2 +- Upload/inc/3rdparty/ayah/ayah.php | 482 -------- Upload/inc/3rdparty/ayah/index.html | 8 - Upload/inc/3rdparty/diff/Diff/Op/index.html | 14 +- .../3rdparty/diff/Diff/ThreeWay/Op/index.html | 14 +- .../3rdparty/diff/Diff/ThreeWay/index.html | 14 +- Upload/inc/cachehandlers/apc.php | 10 +- Upload/inc/cachehandlers/disk.php | 17 +- Upload/inc/cachehandlers/eaccelerator.php | 10 +- Upload/inc/cachehandlers/interface.php | 61 + Upload/inc/cachehandlers/memcache.php | 10 +- Upload/inc/cachehandlers/memcached.php | 12 +- Upload/inc/cachehandlers/xcache.php | 10 +- Upload/inc/class_captcha.php | 73 +- Upload/inc/class_core.php | 4 +- Upload/inc/class_custommoderation.php | 4 +- Upload/inc/class_datacache.php | 47 +- Upload/inc/class_error.php | 2 +- Upload/inc/class_language.php | 2 +- Upload/inc/class_mailhandler.php | 14 + Upload/inc/class_moderation.php | 6 +- Upload/inc/class_parser.php | 111 +- Upload/inc/class_session.php | 6 +- Upload/inc/datahandlers/post.php | 26 +- Upload/inc/datahandlers/user.php | 41 +- Upload/inc/datahandlers/warnings.php | 7 +- Upload/inc/db_mysql.php | 48 +- Upload/inc/db_mysqli.php | 50 +- Upload/inc/functions.php | 353 +++--- Upload/inc/functions_forumlist.php | 4 +- Upload/inc/functions_post.php | 40 +- Upload/inc/functions_search.php | 16 +- Upload/inc/functions_task.php | 13 + Upload/inc/functions_upload.php | 6 + Upload/inc/functions_user.php | 4 +- Upload/inc/functions_warnings.php | 8 +- Upload/inc/languages/polish.php | 2 +- .../polish/admin/config_settings.lang.php | 2 + .../languages/polish/admin/global.lang.php | 2 + .../polish/admin/user_banning.lang.php | 1 - Upload/inc/languages/polish/archive.lang.php | 3 +- .../languages/polish/forumdisplay.lang.php | 1 + Upload/inc/languages/polish/global.lang.php | 3 +- .../inc/languages/polish/managegroup.lang.php | 3 +- Upload/inc/languages/polish/member.lang.php | 1 - .../inc/languages/polish/memberlist.lang.php | 1 - Upload/inc/languages/polish/messages.lang.php | 11 +- Upload/inc/languages/polish/misc.lang.php | 9 +- Upload/inc/languages/polish/modcp.lang.php | 1 - .../inc/languages/polish/newthread.lang.php | 1 + Upload/inc/languages/polish/private.lang.php | 2 - Upload/inc/languages/polish/search.lang.php | 1 - Upload/inc/languages/polish/usercp.lang.php | 1 - Upload/inc/mailhandlers/php.php | 13 + Upload/inc/mailhandlers/smtp.php | 14 - Upload/inc/tasks/dailycleanup.php | 2 +- Upload/install/index.php | 49 +- Upload/install/resources/mybb_theme.xml | 215 ++-- Upload/install/resources/mysql_db_tables.php | 93 +- Upload/install/resources/output.php | 2 +- Upload/install/resources/pgsql_db_tables.php | 11 +- Upload/install/resources/settings.xml | 39 +- Upload/install/resources/sqlite_db_tables.php | 173 ++- Upload/install/resources/tasks.xml | 4 +- Upload/install/resources/upgrade13.php | 2 +- Upload/install/resources/upgrade26.php | 9 +- Upload/install/resources/upgrade35.php | 188 +++ Upload/jscripts/general.js | 21 + Upload/jscripts/inline_moderation.js | 10 +- Upload/jscripts/jeditable/jeditable.min.js | 74 +- .../editor_themes/emoticons/credits.txt | 16 +- Upload/jscripts/select2/select2.css | 6 +- Upload/managegroup.php | 13 +- Upload/member.php | 19 +- Upload/misc.php | 30 +- Upload/modcp.php | 89 +- Upload/newreply.php | 65 +- Upload/newthread.php | 25 +- Upload/polls.php | 25 +- Upload/printthread.php | 23 +- Upload/private.php | 7 - Upload/ratethread.php | 9 +- Upload/reputation.php | 4 +- Upload/search.php | 92 +- Upload/sendthread.php | 2 +- Upload/showthread.php | 2 +- Upload/usercp.php | 24 +- Upload/usercp2.php | 27 +- Upload/warnings.php | 13 +- Upload/xmlhttp.php | 5 +- 114 files changed, 2547 insertions(+), 2474 deletions(-) delete mode 100644 Upload/inc/3rdparty/ayah/ayah.php delete mode 100644 Upload/inc/3rdparty/ayah/index.html create mode 100644 Upload/inc/cachehandlers/interface.php create mode 100644 Upload/install/resources/upgrade35.php 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 -