punbb-1.3.1/admin/categories.php |
punbb-1.3.2/admin/categories.php |
214: if (isset($cat_name[$cur_cat['id']]) && isset($cat_order[$cur_cat['id']])) | 214: if (isset($cat_name[$cur_cat['id']]) && isset($cat_order[$cur_cat['id']])) |
215: { | 215: { |
216: if ($cat_name[$cur_cat['id']] == '') | 216: if ($cat_name[$cur_cat['id']] == '') |
217: message($lang_admin_categories['Must enter category']); | 217: message($lang_admin_categories['Must name category']); |
218: | 218: |
219: if ($cat_order[$cur_cat['id']] < 0) | 219: if ($cat_order[$cur_cat['id']] < 0) |
220: message($lang_admin_categories['Must be integer']); | 220: message($lang_admin_categories['Must be integer']); |
punbb-1.3.1/admin/install.php |
punbb-1.3.2/admin/install.php |
10: */ | 10: */ |
11: | 11: |
12: | 12: |
13: define('FORUM_VERSION', '1.3.1'); | 13: define('FORUM_VERSION', '1.3.2'); |
14: define('FORUM_DB_REVISION', 3); | 14: define('FORUM_DB_REVISION', 3); |
15: define('MIN_PHP_VERSION', '4.3.0'); | 15: define('MIN_PHP_VERSION', '4.3.0'); |
16: define('MIN_MYSQL_VERSION', '4.1.2'); | 16: define('MIN_MYSQL_VERSION', '4.1.2'); |
punbb-1.3.1/admin/users.php |
punbb-1.3.2/admin/users.php |
817: $form = $_POST['form']; | 817: $form = $_POST['form']; |
818: $form['username'] = $_POST['username']; | 818: $form['username'] = $_POST['username']; |
819: | 819: |
| 820: //Check up for order_by and direction values |
| 821: $order_by = isset($_POST['order_by']) ? forum_trim($_POST['order_by']) : null; |
| 822: $direction = isset($_POST['direction']) ? forum_trim($_POST['direction']) : null; |
| 823: if ($order_by == null || $direction == null) |
| 824: message($lang_common['Bad request']); |
| 825: if (!in_array($order_by, array('username', 'email', 'num_posts', 'num_posts', 'registered')) || !in_array($direction, array('ASC', 'DESC'))) |
| 826: message($lang_common['Bad request']); |
| 827: |
820: ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null; | 828: ($hook = get_hook('aus_find_user_selected')) ? eval($hook) : null; |
821: | 829: |
822: // forum_trim() all elements in $form | 830: // forum_trim() all elements in $form |
829: $last_post_before = forum_trim($_POST['last_post_before']); | 837: $last_post_before = forum_trim($_POST['last_post_before']); |
830: $registered_after = forum_trim($_POST['registered_after']); | 838: $registered_after = forum_trim($_POST['registered_after']); |
831: $registered_before = forum_trim($_POST['registered_before']); | 839: $registered_before = forum_trim($_POST['registered_before']); |
832: $order_by = $_POST['order_by']; | |
833: $direction = $_POST['direction']; | |
834: $user_group = $_POST['user_group']; | 840: $user_group = $_POST['user_group']; |
835: | 841: |
836: if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less)) | 842: if ((!empty($posts_greater) || !empty($posts_less)) && !ctype_digit($posts_greater.$posts_less)) |
891: ) | 897: ) |
892: ), | 898: ), |
893: 'WHERE' => 'u.id>1 AND '.implode(' AND ', $conditions), | 899: 'WHERE' => 'u.id>1 AND '.implode(' AND ', $conditions), |
894: 'ORDER BY' => $forum_db->escape($order_by).' '.$forum_db->escape($direction) | 900: 'ORDER BY' => $order_by.' '.$direction |
895: ); | 901: ); |
896: | 902: |
897: ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null; | 903: ($hook = get_hook('aus_find_user_qr_find_users')) ? eval($hook) : null; |
punbb-1.3.1/header.php |
punbb-1.3.2/header.php |
247: if ($forum_updates['fail']) | 247: if ($forum_updates['fail']) |
248: $alert_items['update_fail'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.$lang_common['Updates failed'].'</p>'; | 248: $alert_items['update_fail'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.$lang_common['Updates failed'].'</p>'; |
249: else if (isset($forum_updates['version']) && isset($forum_updates['hotfix'])) | 249: else if (isset($forum_updates['version']) && isset($forum_updates['hotfix'])) |
250: $alert_items['update_version_hotfix'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version n hf'], $forum_updates['version']).'</p>'; | 250: $alert_items['update_version_hotfix'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version n hf'], $forum_updates['version'], forum_link($forum_url['admin_extensions_hotfixes'])).'</p>'; |
251: else if (isset($forum_updates['version'])) | 251: else if (isset($forum_updates['version'])) |
252: $alert_items['update_version'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version'], $forum_updates['version']).'</p>'; | 252: $alert_items['update_version'] = '<p><strong>'.$lang_common['Updates'].'</strong> '.sprintf($lang_common['Updates version'], $forum_updates['version']).'</p>'; |
253: else if (isset($forum_updates['hotfix'])) | 253: else if (isset($forum_updates['hotfix'])) |
punbb-1.3.1/include/essentials.php |
punbb-1.3.2/include/essentials.php |
15: exit('The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.'); | 15: exit('The constant FORUM_ROOT must be defined and point to a valid PunBB installation root directory.'); |
16: | 16: |
17: // Define the version and database revision that this code was written for | 17: // Define the version and database revision that this code was written for |
18: define('FORUM_VERSION', '1.3.1'); | 18: define('FORUM_VERSION', '1.3.2'); |
19: define('FORUM_DB_REVISION', 3); | 19: define('FORUM_DB_REVISION', 3); |
20: | 20: |
21: // Load the functions script | 21: // Load the functions script |
punbb-1.3.1/include/functions.php |
punbb-1.3.2/include/functions.php |
448: else | 448: else |
449: { | 449: { |
450: $links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>'; | 450: $links['search'] = '<li id="navsearch"'.((FORUM_PAGE == 'search') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['search']).'">'.$lang_common['Search'].'</a></li>'; |
451: $links['profile'] = '<li id="navprofile"'.((FORUM_PAGE == 'editprofile' || FORUM_PAGE == 'viewprofile') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.$lang_common['Profile'].'</a></li>'; | 451: $links['profile'] = '<li id="navprofile"'.((substr(FORUM_PAGE, 0, 7) == 'profile') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['user'], $forum_user['id']).'">'.$lang_common['Profile'].'</a></li>'; |
452: $links['logout'] = '<li id="navlogout"><a href="'.forum_link($forum_url['logout'], array($forum_user['id'], generate_form_token('logout'.$forum_user['id']))).'">'.$lang_common['Logout'].'</a></li>'; | 452: $links['logout'] = '<li id="navlogout"><a href="'.forum_link($forum_url['logout'], array($forum_user['id'], generate_form_token('logout'.$forum_user['id']))).'">'.$lang_common['Logout'].'</a></li>'; |
453: $links['admin'] = '<li id="navadmin"'.((substr(FORUM_PAGE, 0, 5) == 'admin') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['admin_index']).'">'.$lang_common['Admin'].'</a></li>'; | 453: $links['admin'] = '<li id="navadmin"'.((substr(FORUM_PAGE, 0, 5) == 'admin') ? ' class="isactive"' : '').'><a href="'.forum_link($forum_url['admin_index']).'">'.$lang_common['Admin'].'</a></li>'; |
454: } | 454: } |
punbb-1.3.1/include/parser.php |
punbb-1.3.2/include/parser.php |
681: | 681: |
682: if (strpos($text, '[quote') !== false) | 682: if (strpos($text, '[quote') !== false) |
683: { | 683: { |
| 684: $text = preg_replace('#\[quote=("|"|\'|)(.*?)\\1\]#e', '"</p><div class=\"quotebox\"><cite>".str_replace(array(\'[\', \'\\"\'), array(\'[\', \'"\'), \'$2\')." ".$lang_common[\'wrote\'].":</cite><blockquote><p>"', $text); |
684: $text = preg_replace('#\[quote\]\s*#', '</p><div class="quotebox"><blockquote><p>', $text); | 685: $text = preg_replace('#\[quote\]\s*#', '</p><div class="quotebox"><blockquote><p>', $text); |
685: $text = preg_replace('#\[quote=("|"|\'|)(.*?)\\1\]#se', '"</p><div class=\"quotebox\"><cite>".str_replace(array(\'[\', \'\\"\'), array(\'[\', \'"\'), \'$2\')." ".$lang_common[\'wrote\'].":</cite><blockquote><p>"', $text); | |
686: $text = preg_replace('#\s*\[\/quote\]#S', '</p></blockquote></div><p>', $text); | 686: $text = preg_replace('#\s*\[\/quote\]#S', '</p></blockquote></div><p>', $text); |
687: } | 687: } |
688: | 688: |
752: { | 752: { |
753: $text = ' '.$text; | 753: $text = ' '.$text; |
754: | 754: |
755: $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); | 755: $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); |
756: $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); | 756: $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); |
757: | 757: |
758: return substr($text, 1); | 758: return substr($text, 1); |
punbb-1.3.1/lang/English/common.php |
punbb-1.3.2/lang/English/common.php |
135: 'Maintenance alert' => '<strong>WARNING! Maintenance mode enabled.</strong> This board is currently in maintenance mode. <em>DO NOT</em> logout, if you do you will not be able to login again.', | 135: 'Maintenance alert' => '<strong>WARNING! Maintenance mode enabled.</strong> This board is currently in maintenance mode. <em>DO NOT</em> logout, if you do you will not be able to login again.', |
136: 'Updates' => 'PunBB updates:', | 136: 'Updates' => 'PunBB updates:', |
137: '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.', | 137: '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.', |
138: 'Updates version n hf' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>. Furthermore, one or more hotfixes are available for install on the strong>Extensions</strong> ยป <strong>Manage hotfixes</strong> tab of the admin interface.', | 138: 'Updates version n hf' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>. Furthermore, one or more hotfixes are available for install on the <a href="%s">Manage hotfixes</a> tab of the admin interface.', |
139: 'Updates version' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>.', | 139: 'Updates version' => 'A newer version of PunBB, version %s, is available for download at <a href="http://punbb.informer.com/">punbb.informer.com</a>.', |
140: 'Updates hf' => 'One or more hotfixes are available for install on the <a href="%s">Manage hotfixes</a> tab of the admin interface.', | 140: 'Updates hf' => 'One or more hotfixes are available for install on the <a href="%s">Manage hotfixes</a> tab of the admin interface.', |
141: 'Database mismatch' => 'Database version mismatch', | 141: 'Database mismatch' => 'Database version mismatch', |
punbb-1.3.1/login.php |
punbb-1.3.2/login.php |
427: <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> | 427: <div class="sf-set set<?php echo ++$forum_page['item_count'] ?>"> |
428: <div class="sf-box text required"> | 428: <div class="sf-box text required"> |
429: <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_login['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br /> | 429: <label for="fld<?php echo ++$forum_page['fld_count'] ?>"><span><?php echo $lang_login['Password'] ?> <em><?php echo $lang_common['Required'] ?></em></span></label><br /> |
430: <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password" value="<?php echo isset($_POST['req_password']) ? ($_POST['req_password']) : '' ?>" size="35" /></span> | 430: <span class="fld-input"><input type="password" id="fld<?php echo $forum_page['fld_count'] ?>" name="req_password" value="<?php echo isset($_POST['req_password']) ? forum_htmlencode($_POST['req_password']) : '' ?>" size="35" /></span> |
431: </div> | 431: </div> |
432: </div> | 432: </div> |
433: <?php ($hook = get_hook('li_login_pre_remember_me_checkbox')) ? eval($hook) : null; ?> | 433: <?php ($hook = get_hook('li_login_pre_remember_me_checkbox')) ? eval($hook) : null; ?> |
punbb-1.3.1/style/Oxygen/Oxygen.css |
punbb-1.3.2/style/Oxygen/Oxygen.css |
786: padding: 0.5em 0; | 786: padding: 0.5em 0; |
787: white-space: nowrap; | 787: white-space: nowrap; |
788: font-weight: normal; | 788: font-weight: normal; |
789: text-transform: capitalize; | 789: } |
| 790: |
| 791: .brd .item-summary strong:first-letter { |
| 792: text-transform: uppercase; |
790: } | 793: } |
791: | 794: |
792: .brd .item-summary .subject-title { | 795: .brd .item-summary .subject-title { |