diff -urN punbb-1.3.1/admin/categories.php punbb-1.3.2/admin/categories.php --- punbb-1.3.1/admin/categories.php 2008-10-30 09:58:26.000000000 +0000 +++ punbb-1.3.2/admin/categories.php 2008-12-01 07:57:37.000000000 +0000 @@ -214,7 +214,7 @@ if (isset($cat_name[$cur_cat['id']]) && isset($cat_order[$cur_cat['id']])) { if ($cat_name[$cur_cat['id']] == '') - message($lang_admin_categories['Must enter category']); + message($lang_admin_categories['Must name category']); if ($cat_order[$cur_cat['id']] < 0) message($lang_admin_categories['Must be integer']); diff -urN punbb-1.3.1/admin/db_update.php punbb-1.3.2/admin/db_update.php --- punbb-1.3.1/admin/db_update.php 2008-11-26 14:40:11.000000000 +0000 +++ punbb-1.3.2/admin/db_update.php 2008-12-08 15:02:16.000000000 +0000 @@ -10,7 +10,7 @@ */ -define('UPDATE_TO', '1.3.1'); +define('UPDATE_TO', '1.3.2'); define('UPDATE_TO_DB_REVISION', 3); // The number of items to process per pageview (lower this if the update script times out during UTF-8 conversion) diff -urN punbb-1.3.1/admin/forums.php punbb-1.3.2/admin/forums.php --- punbb-1.3.1/admin/forums.php 2008-11-26 15:10:28.000000000 +0000 +++ punbb-1.3.2/admin/forums.php 2008-11-28 15:50:06.000000000 +0000 @@ -177,7 +177,6 @@ - 'config', - 'SET' => 'conf_value='.$input, + 'SET' => 'conf_value='.intval($input), 'WHERE' => 'conf_name=\'p_'.$forum_db->escape($key).'\'' ); diff -urN punbb-1.3.1/admin/users.php punbb-1.3.2/admin/users.php --- punbb-1.3.1/admin/users.php 2008-11-26 12:38:16.000000000 +0000 +++ punbb-1.3.2/admin/users.php 2008-12-04 16:48:51.000000000 +0000 @@ -817,6 +817,14 @@ $form = $_POST['form']; $form['username'] = $_POST['username']; + //Check up for order_by and direction values + $order_by = isset($_POST['order_by']) ? forum_trim($_POST['order_by']) : null; + $direction = isset($_POST['direction']) ? forum_trim($_POST['direction']) : null; + if ($order_by == null || $direction == null) + message($lang_common['Bad request']); + if (!in_array($order_by, array('username', 'email', 'num_posts', 'num_posts', 'registered')) || !in_array($direction, array('ASC', 'DESC'))) + message($lang_common['Bad request']); + ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null; // forum_trim() all elements in $form @@ -829,8 +837,6 @@ $last_post_before = forum_trim($_POST['last_post_before']); $registered_after = forum_trim($_POST['registered_after']); $registered_before = forum_trim($_POST['registered_before']); - $order_by = $_POST['order_by']; - $direction = $_POST['direction']; $user_group = $_POST['user_group']; if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less)) @@ -891,7 +897,7 @@ ) ), 'WHERE' => 'u.id>1 AND '.implode(' AND ', $conditions), - 'ORDER BY' => $forum_db->escape($order_by).' '.$forum_db->escape($direction) + 'ORDER BY' => $order_by.' '.$direction ); ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null; diff -urN punbb-1.3.1/header.php punbb-1.3.2/header.php --- punbb-1.3.1/header.php 2008-11-26 13:31:37.000000000 +0000 +++ punbb-1.3.2/header.php 2008-12-08 11:53:13.000000000 +0000 @@ -247,7 +247,7 @@ if ($forum_updates['fail']) $alert_items['update_fail'] = '
'.$lang_common['Updates'].' '.$lang_common['Updates failed'].'
'; else if (isset($forum_updates['version']) && isset($forum_updates['hotfix'])) - $alert_items['update_version_hotfix'] = ''.$lang_common['Updates'].' '.sprintf($lang_common['Updates version n hf'], $forum_updates['version']).'
'; + $alert_items['update_version_hotfix'] = ''.$lang_common['Updates'].' '.sprintf($lang_common['Updates version n hf'], $forum_updates['version'], forum_link($forum_url['admin_extensions_hotfixes'])).'
'; else if (isset($forum_updates['version'])) $alert_items['update_version'] = ''.$lang_common['Updates'].' '.sprintf($lang_common['Updates version'], $forum_updates['version']).'
'; else if (isset($forum_updates['hotfix'])) diff -urN punbb-1.3.1/include/essentials.php punbb-1.3.2/include/essentials.php --- punbb-1.3.1/include/essentials.php 2008-11-26 14:40:11.000000000 +0000 +++ punbb-1.3.2/include/essentials.php 2008-12-08 15:02:16.000000000 +0000 @@ -15,7 +15,7 @@ exit('The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.'); // Define the version and database revision that this code was written for -define('FORUM_VERSION', '1.3.1'); +define('FORUM_VERSION', '1.3.2'); define('FORUM_DB_REVISION', 3); // Load the functions script diff -urN punbb-1.3.1/include/functions.php punbb-1.3.2/include/functions.php --- punbb-1.3.1/include/functions.php 2008-11-26 13:31:37.000000000 +0000 +++ punbb-1.3.2/include/functions.php 2008-12-04 16:49:51.000000000 +0000 @@ -448,7 +448,7 @@ else { $links['search'] = '"', $text); $text = preg_replace('#\[quote\]\s*#', '
diff -urN punbb-1.3.1/style/Oxygen/Oxygen.css punbb-1.3.2/style/Oxygen/Oxygen.css --- punbb-1.3.1/style/Oxygen/Oxygen.css 2008-11-26 13:51:24.000000000 +0000 +++ punbb-1.3.2/style/Oxygen/Oxygen.css 2008-12-08 14:50:43.000000000 +0000 @@ -786,7 +786,10 @@ padding: 0.5em 0; white-space: nowrap; font-weight: normal; - text-transform: capitalize; + } + +.brd .item-summary strong:first-letter { + text-transform: uppercase; } .brd .item-summary .subject-title {', $text); - $text = preg_replace('#\[quote=("|"|\'|)(.*?)\\1\]#se', '"
".str_replace(array(\'[\', \'\\"\'), array(\'[\', \'"\'), \'$2\')." ".$lang_common[\'wrote\'].":"', $text); $text = preg_replace('#\s*\[\/quote\]#S', '
', $text); } @@ -752,7 +752,7 @@ { $text = ' '.$text; - $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5://$6\', \'$5://$6\', true).stripslashes(\'$4$10$11$12\')', $text); + $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-]?)?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5://$6\', \'$5://$6\', true).stripslashes(\'$4$10$11$12\')', $text); $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(www|ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5.$6\', \'$5.$6\', true).stripslashes(\'$4$10$11$12\')', $text); return substr($text, 1); diff -urN punbb-1.3.1/lang/English/common.php punbb-1.3.2/lang/English/common.php --- punbb-1.3.1/lang/English/common.php 2008-11-26 13:31:37.000000000 +0000 +++ punbb-1.3.2/lang/English/common.php 2008-12-08 11:53:13.000000000 +0000 @@ -135,7 +135,7 @@ 'Maintenance alert' => 'WARNING! Maintenance mode enabled. This board is currently in maintenance mode. DO NOT logout, if you do you will not be able to login again.', 'Updates' => 'PunBB updates:', 'Updates failed' => 'The latest attempt at checking for updates against the punbb.informer.com updates service failed. This probably just means that the service is temporarily overloaded or out of order. However, if this alert does not disappear within a day or two, you should disable the automatic check for updates and check for updates manually in the future.', -'Updates version n hf' => 'A newer version of PunBB, version %s, is available for download at punbb.informer.com. Furthermore, one or more hotfixes are available for install on the strong>Extensions ยป Manage hotfixes tab of the admin interface.', +'Updates version n hf' => 'A newer version of PunBB, version %s, is available for download at punbb.informer.com. Furthermore, one or more hotfixes are available for install on the Manage hotfixes tab of the admin interface.', 'Updates version' => 'A newer version of PunBB, version %s, is available for download at punbb.informer.com.', 'Updates hf' => 'One or more hotfixes are available for install on the Manage hotfixes tab of the admin interface.', 'Database mismatch' => 'Database version mismatch', diff -urN punbb-1.3.1/lang/English/login.php punbb-1.3.2/lang/English/login.php --- punbb-1.3.1/lang/English/login.php 2008-11-26 12:46:21.000000000 +0000 +++ punbb-1.3.2/lang/English/login.php 2008-12-08 08:12:44.000000000 +0000 @@ -1,6 +1,6 @@ ">
- +