Changeset 702 for trunk/forum/includes/acp/acp_groups.php
- Timestamp:
- Mar 31, 2010, 6:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/includes/acp/acp_groups.php
r400 r702 3 3 * 4 4 * @package acp 5 * @version $Id : acp_groups.php 9053 2008-11-09 15:10:40Z acydburn$5 * @version $Id$ 6 6 * @copyright (c) 2005 phpBB Group 7 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License … … 310 310 'max_recipients' => request_var('group_max_recipients', 0), 311 311 'founder_manage' => 0, 312 'skip_auth' => request_var('group_skip_auth', 0), 312 313 ); 313 314 … … 401 402 402 403 $group_attributes = array(); 403 $test_variables = array('rank', 'colour', 'avatar', 'avatar_type', 'avatar_width', 'avatar_height', 'receive_pm', 'legend', 'message_limit', 'max_recipients', 'founder_manage'); 404 foreach ($test_variables as $test) 404 $test_variables = array( 405 'rank' => 'int', 406 'colour' => 'string', 407 'avatar' => 'string', 408 'avatar_type' => 'int', 409 'avatar_width' => 'int', 410 'avatar_height' => 'int', 411 'receive_pm' => 'int', 412 'legend' => 'int', 413 'message_limit' => 'int', 414 'max_recipients'=> 'int', 415 'founder_manage'=> 'int', 416 'skip_auth' => 'int', 417 ); 418 419 foreach ($test_variables as $test => $type) 405 420 { 406 421 if (isset($submit_ary[$test]) && ($action == 'add' || $group_row['group_' . $test] != $submit_ary[$test])) 407 422 { 423 settype($submit_ary[$test], $type); 408 424 $group_attributes['group_' . $test] = $group_row['group_' . $test] = $submit_ary[$test]; 409 425 } … … 563 579 'GROUP_MAX_RECIPIENTS' => (isset($group_row['group_max_recipients'])) ? $group_row['group_max_recipients'] : 0, 564 580 'GROUP_COLOUR' => (isset($group_row['group_colour'])) ? $group_row['group_colour'] : '', 565 581 'GROUP_SKIP_AUTH' => (!empty($group_row['group_skip_auth'])) ? ' checked="checked"' : '', 566 582 567 583 'S_DESC_BBCODE_CHECKED' => $group_desc_data['allow_bbcode'], … … 592 608 'U_ACTION' => "{$this->u_action}&action=$action&g=$group_id", 593 609 'L_AVATAR_EXPLAIN' => sprintf($user->lang['AVATAR_EXPLAIN'], $config['avatar_max_width'], $config['avatar_max_height'], round($config['avatar_filesize'] / 1024)), 594 ) 595 ); 610 )); 596 611 597 612 return; … … 608 623 609 624 // Grab the leaders - always, on every page... 610 $sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_regdate, u.user_ posts, u.group_id, ug.group_leader, ug.user_pending625 $sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_regdate, u.user_colour, u.user_posts, u.group_id, ug.group_leader, ug.user_pending 611 626 FROM ' . USERS_TABLE . ' u, ' . USER_GROUP_TABLE . " ug 612 627 WHERE ug.group_id = $group_id … … 622 637 623 638 'USERNAME' => $row['username'], 639 'USERNAME_COLOUR' => $row['user_colour'], 624 640 'S_GROUP_DEFAULT' => ($row['group_id'] == $group_id) ? true : false, 625 641 'JOINED' => ($row['user_regdate']) ? $user->format_date($row['user_regdate']) : ' - ', 626 642 'USER_POSTS' => $row['user_posts'], 627 'USER_ID' => $row['user_id'] )628 ) ;643 'USER_ID' => $row['user_id'], 644 )); 629 645 } 630 646 $db->sql_freeresult($result); … … 663 679 664 680 // Grab the members 665 $sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_ regdate, u.user_posts, u.group_id, ug.group_leader, ug.user_pending681 $sql = 'SELECT u.user_id, u.username, u.username_clean, u.user_colour, u.user_regdate, u.user_posts, u.group_id, ug.group_leader, ug.user_pending 666 682 FROM ' . USERS_TABLE . ' u, ' . USER_GROUP_TABLE . " ug 667 683 WHERE ug.group_id = $group_id … … 688 704 689 705 'USERNAME' => $row['username'], 706 'USERNAME_COLOUR' => $row['user_colour'], 690 707 'S_GROUP_DEFAULT' => ($row['group_id'] == $group_id) ? true : false, 691 708 'JOINED' => ($row['user_regdate']) ? $user->format_date($row['user_regdate']) : ' - ', … … 764 781 'GROUP_NAME' => $group_name, 765 782 'TOTAL_MEMBERS' => $row['total_members'], 766 ) 767 ); 783 )); 768 784 } 769 785 }
Note:
See TracChangeset
for help on using the changeset viewer.