1 | <?php
|
---|
2 | /*
|
---|
3 | * Get The level from the capabillities name.
|
---|
4 | */
|
---|
5 | function get_role_level($capabillities){
|
---|
6 | if ($capabillities == 'default') $capabillities = get_option('default_role');;
|
---|
7 | switch($capabillities) {
|
---|
8 | case 'administrator':
|
---|
9 | return 5;
|
---|
10 | case 'editor':
|
---|
11 | return 4;
|
---|
12 | case 'author':
|
---|
13 | return 3;
|
---|
14 | case 'contributor':
|
---|
15 | return 2;
|
---|
16 | case 'subscriber':
|
---|
17 | return 1;
|
---|
18 | default:
|
---|
19 | return 0;
|
---|
20 | }
|
---|
21 | }
|
---|
22 |
|
---|
23 | /*
|
---|
24 | * The highest authority and the accompanying data
|
---|
25 | * in the WordPress authority given to the group to which the user belongs are obtained.
|
---|
26 | */
|
---|
27 | function get_xoops_group_role($uid=0){
|
---|
28 | if ($uid == 0){
|
---|
29 | return '';
|
---|
30 | }
|
---|
31 |
|
---|
32 | global $xoops_db;
|
---|
33 |
|
---|
34 | $db_groups_users_link = get_xoops_prefix() . 'groups_users_link';
|
---|
35 | $db_group_role = get_wp_prefix() . 'group_role';
|
---|
36 | $db_groups = get_xoops_prefix() . 'groups';
|
---|
37 |
|
---|
38 | $blog_id_list = array();
|
---|
39 |
|
---|
40 | if (function_exists('is_multisite') && is_multisite()){
|
---|
41 | $blog_id_sql = "SELECT blog_id FROM $db_group_role GROUP BY blog_id";
|
---|
42 | $blog_id_list = $xoops_db->get_results($blog_id_sql);
|
---|
43 | } else {
|
---|
44 | $std = new stdClass();
|
---|
45 | $std->blog_id = 1;
|
---|
46 | $blog_id_list[] = $std;
|
---|
47 | }
|
---|
48 |
|
---|
49 | $is_multiblog = xpress_is_multiblog();
|
---|
50 | if (defined('BLOG_ID_CURRENT_SITE')){
|
---|
51 | $root_blog_id = BLOG_ID_CURRENT_SITE;
|
---|
52 | } else {
|
---|
53 | $root_blog_id = 1;
|
---|
54 | }
|
---|
55 |
|
---|
56 | $ans_array = array();
|
---|
57 | foreach($blog_id_list as $blog_id){
|
---|
58 | $ans = array();
|
---|
59 | $sql = "SELECT * ";
|
---|
60 | $sql .= "FROM $db_groups_users_link ";
|
---|
61 | $sql .= "LEFT JOIN $db_group_role ON $db_groups_users_link.groupid = $db_group_role.groupid ";
|
---|
62 | $sql .= "LEFT JOIN $db_groups ON $db_groups_users_link.groupid = $db_groups.groupid ";
|
---|
63 | $sql .= "WHERE uid = $uid AND $db_group_role.blog_id = $blog_id->blog_id";
|
---|
64 | $user_groups = $xoops_db->get_results($sql);
|
---|
65 |
|
---|
66 | //default value set
|
---|
67 | $ans['blog_id'] = $blog_id->blog_id;
|
---|
68 | $ans['capabillities'] = '';
|
---|
69 | $ans['allway_update'] = 0;
|
---|
70 |
|
---|
71 | //get maximum role
|
---|
72 | foreach($user_groups as $user_group){
|
---|
73 | $is_blog_root = (!$is_multiblog || ($user_group->blog_id == $root_blog_id));
|
---|
74 | if ($user_group->group_type == 'Admin' && $is_blog_root){
|
---|
75 | $ans['capabillities'] = 'administrator';
|
---|
76 | if ($user_group->groupid =1){
|
---|
77 | //It always rewrites it as WordPress adninistrator for an initial admin group of XOOPS.
|
---|
78 | $ans['allway_update'] = 1;
|
---|
79 | } else {
|
---|
80 | // admin groups other than initial admin group of XOOPS
|
---|
81 | // It group rewrites group_type of the data base in Admin.
|
---|
82 | $ans['allway_update'] = $user_group->login_all;
|
---|
83 | }
|
---|
84 | break;
|
---|
85 | }
|
---|
86 | $before_level = get_role_level($ans['capabillities']);
|
---|
87 |
|
---|
88 | $now_level = get_role_level($user_group->role);
|
---|
89 | if ($now_level > $before_level){
|
---|
90 | $ans['capabillities'] = $user_group->role;
|
---|
91 | $ans['allway_update'] = $user_group->login_all;
|
---|
92 | }
|
---|
93 | }
|
---|
94 | $ans_array[] = $ans;
|
---|
95 | }
|
---|
96 | return $ans_array;
|
---|
97 | }
|
---|
98 |
|
---|
99 | // for Multi Blog group_role delete
|
---|
100 | function blog_group_role_delete($blog_id,$drop = false) {
|
---|
101 | global $xoops_db;
|
---|
102 |
|
---|
103 | $db_group_role = get_wp_prefix() . 'group_role';
|
---|
104 | if ($drop){
|
---|
105 | $delsql = "DELETE FROM $db_group_role WHERE blog_id = $blog_id";
|
---|
106 | $xoops_db->query($delsql);
|
---|
107 | }
|
---|
108 | }
|
---|
109 |
|
---|
110 | // for Multi Blog group_role add
|
---|
111 | function blog_group_role_add($blog_id,$uid = 0) {
|
---|
112 | global $xoops_db,$xpress_config;
|
---|
113 | $xpress_config->GroupeRoleCheck($blog_id);
|
---|
114 | }
|
---|
115 |
|
---|
116 | // check user has groupe role
|
---|
117 | function has_group_role($uid = 0) {
|
---|
118 | if (empty($uid)) return false;
|
---|
119 | $user_roles = get_xoops_group_role($uid);
|
---|
120 | foreach ($user_roles as $user_role){
|
---|
121 | if (!empty($user_role['capabillities']))
|
---|
122 | return true;
|
---|
123 | }
|
---|
124 | return false;
|
---|
125 | }
|
---|
126 |
|
---|
127 | /*
|
---|
128 | * WP User ID exists is checked..
|
---|
129 | */
|
---|
130 | function set_user_role($uid=0,$roles,$new_user = false){
|
---|
131 |
|
---|
132 | foreach($roles as $role){
|
---|
133 | $b_id = $role['blog_id'];
|
---|
134 | $capabillities_name = $role['capabillities'];
|
---|
135 | $allway_update = $role['allway_update'];
|
---|
136 | if ($allway_update || $new_user ){
|
---|
137 | $sycc_user = new WP_User($uid);
|
---|
138 | if (function_exists('is_multisite') && is_multisite()){
|
---|
139 | $sycc_user->for_blog($b_id); // for Multi blog
|
---|
140 | }
|
---|
141 | // check user role is admin
|
---|
142 | $is_blog_admin = false;
|
---|
143 | $user_roles = $sycc_user->roles;
|
---|
144 | foreach ($user_roles as $user_role){
|
---|
145 | if (strcmp($user_role , 'administrator') == 0){
|
---|
146 | $is_blog_admin = true;
|
---|
147 | break;
|
---|
148 | }
|
---|
149 | }
|
---|
150 | if (!$is_blog_admin){ // admin not change role
|
---|
151 | $sycc_user->set_role($capabillities_name);
|
---|
152 | }
|
---|
153 | }
|
---|
154 | // $message .= '...UPDATE ' . $xoops_user->uname . '(' . $capabillities_name . ')';
|
---|
155 | // $message .= '...INSERT ' . $user_login_name . '(' . $capabillities_name . ')';
|
---|
156 | }
|
---|
157 |
|
---|
158 | }
|
---|
159 |
|
---|
160 | /*
|
---|
161 | * Get User ID of WordPress from the login name.
|
---|
162 | */
|
---|
163 | function get_wp_user_id($login_name){
|
---|
164 | global $xoops_db;
|
---|
165 | $sql = "SELECT ID FROM " . get_wp_prefix() . "users WHERE user_login = '$login_name'";
|
---|
166 | $uid = $xoops_db->get_var($sql);
|
---|
167 | return $uid;
|
---|
168 | }
|
---|
169 |
|
---|
170 | /*
|
---|
171 | * WP User ID exists is checked..
|
---|
172 | */
|
---|
173 | function is_used_wp_user_id($uid){
|
---|
174 | global $xoops_db;
|
---|
175 | $sql = "SELECT ID FROM " . get_wp_prefix() . "users WHERE ID = $uid";
|
---|
176 | $uid = $xoops_db->get_var($sql);
|
---|
177 | if (empty($uid))
|
---|
178 | return false;
|
---|
179 | else
|
---|
180 | return true;
|
---|
181 | }
|
---|
182 |
|
---|
183 | /*
|
---|
184 | * The user data of XOOPS is written in the WordPress user data.
|
---|
185 | * If $sync_uid is 0, all users are written.
|
---|
186 | */
|
---|
187 | function user_sync_to_wordpress($sync_uid = 0, &$message){
|
---|
188 | global $xoops_db;
|
---|
189 |
|
---|
190 | $db_xoops_users = get_xoops_prefix() . 'users';
|
---|
191 | $db_xpress_users = get_wp_prefix() . 'users';
|
---|
192 |
|
---|
193 | $message = 'Do Sync';
|
---|
194 |
|
---|
195 | if ($sync_uid == 0) {
|
---|
196 | $xu_sql = "SELECT uid ,name ,uname ,pass ,email, url, user_regdate, user_aim, user_yim FROM $db_xoops_users";
|
---|
197 | } else {
|
---|
198 | $xu_sql = "SELECT uid ,name ,uname ,pass ,email, url, user_regdate, user_aim, user_yim FROM $db_xoops_users WHERE uid = $sync_uid";
|
---|
199 | }
|
---|
200 |
|
---|
201 | $xoops_users = $xoops_db->get_results($xu_sql);
|
---|
202 |
|
---|
203 | if (empty($xoops_users)){
|
---|
204 | $message .= '...ERR ('. $xu_sql . ')';
|
---|
205 | return false;
|
---|
206 | }
|
---|
207 |
|
---|
208 | foreach($xoops_users as $xoops_user){
|
---|
209 |
|
---|
210 | $wp_user_id = get_wp_user_id($xoops_user->uname) ;
|
---|
211 |
|
---|
212 | $roles = get_xoops_group_role($xoops_user->uid);
|
---|
213 |
|
---|
214 | $has_role = has_group_role($xoops_user->uid);
|
---|
215 | if (!$has_role){
|
---|
216 | if ($sync_uid != 0){
|
---|
217 | if ($wp_user_id) {
|
---|
218 | if ($allway_update){
|
---|
219 | $message .= '...NOT XPRESS USER ' . $xoops_user->uname;
|
---|
220 | return false;
|
---|
221 | }
|
---|
222 | } else {
|
---|
223 | $message .= '...NOT XPRESS USER ' . $xoops_user->uname;
|
---|
224 | return false;
|
---|
225 | }
|
---|
226 | } else {
|
---|
227 | $message .= "...PASS '" . $xoops_user->uname ."'[uid=".$xoops_user->uid ."](not xpress user)";
|
---|
228 | continue;
|
---|
229 | }
|
---|
230 | }
|
---|
231 |
|
---|
232 | $user_regist_time = date('Y-m-d H:i:s' , $xoops_user->user_regdate);
|
---|
233 | $user_status = 0;
|
---|
234 | $user_display_name =empty($xoops_user->name) ? $xoops_user->uname :$xoops_user->name ;
|
---|
235 |
|
---|
236 | $is_update = false;
|
---|
237 |
|
---|
238 | if ($wp_user_id){
|
---|
239 | $new_user = false;
|
---|
240 | $wu_sql = "UPDATE $db_xpress_users ";
|
---|
241 | $wu_sql .= 'SET ';
|
---|
242 | $wu_sql .= "user_pass = '$xoops_user->pass', ";
|
---|
243 | $wu_sql .= "user_email = '$xoops_user->email', ";
|
---|
244 | $wu_sql .= "user_url = '$xoops_user->url', ";
|
---|
245 | $wu_sql .= "user_nicename = '$xoops_user->uname', ";
|
---|
246 | $wu_sql .= "user_registered = '$user_regist_time', ";
|
---|
247 | $wu_sql .= "user_status = 0 ";
|
---|
248 | $wu_sql .= "WHERE (user_login = '$xoops_user->uname' )";
|
---|
249 |
|
---|
250 | $xoops_db->query($wu_sql);
|
---|
251 |
|
---|
252 | $message .= set_user_role($wp_user_id,$roles,$new_user);
|
---|
253 |
|
---|
254 | if (!check_user_meta_prefix($wp_user_id)){
|
---|
255 | repair_user_meta_prefix();
|
---|
256 | }
|
---|
257 |
|
---|
258 | $is_update = true;
|
---|
259 | }else{
|
---|
260 | $new_user = true;
|
---|
261 | if (is_used_wp_user_id($xoops_user->uid) ) { // WP User ID has already been used.
|
---|
262 | $wu_sql = "INSERT INTO $db_xpress_users ";
|
---|
263 | $wu_sql .= "(user_login , user_pass ,user_email , user_url , user_nicename " ;
|
---|
264 | $wu_sql .= " , user_registered , user_status , display_name) ";
|
---|
265 | $wu_sql .= "VALUES ";
|
---|
266 | $wu_sql .= "('$xoops_user->uname', '$xoops_user->pass', '$xoops_user->email', '$xoops_user->url', '$xoops_user->uname' ";
|
---|
267 | $wu_sql .= " , '$user_regist_time', $user_status, '$user_display_name')";
|
---|
268 | $xoops_db->query($wu_sql);
|
---|
269 | $wp_user_id = $xoops_db->insert_id;
|
---|
270 | } else { // WP User ID has not been used yet.
|
---|
271 | $wu_sql = "INSERT INTO $db_xpress_users ";
|
---|
272 | $wu_sql .= "(ID , user_login , user_pass ,user_email , user_url , user_nicename " ;
|
---|
273 | $wu_sql .= " , user_registered , user_status , display_name) ";
|
---|
274 | $wu_sql .= "VALUES ";
|
---|
275 | $wu_sql .= "('$xoops_user->uid', '$xoops_user->uname', '$xoops_user->pass', '$xoops_user->email', '$xoops_user->url', '$xoops_user->uname' ";
|
---|
276 | $wu_sql .= " , '$user_regist_time', $user_status, '$user_display_name')";
|
---|
277 | $xoops_db->query($wu_sql);
|
---|
278 | $wp_user_id = $xoops_user->uid;
|
---|
279 | }
|
---|
280 | $message .= set_user_role($wp_user_id,$roles,$new_user);
|
---|
281 | }
|
---|
282 |
|
---|
283 | $user_nickname = empty($xoops_user->name) ? $xoops_user->uname :$xoops_user->name ;
|
---|
284 | $user_rich_editing = 'true';
|
---|
285 | $user_first_name = $xoops_user->uname;
|
---|
286 | $user_last_name = '';
|
---|
287 | $user_description = '';
|
---|
288 | $user_jabber = '';
|
---|
289 |
|
---|
290 | update_usermeta( $wp_user_id,'nickname',$user_nickname);
|
---|
291 | update_usermeta( $wp_user_id,'first_name',$user_first_name);
|
---|
292 | update_usermeta( $wp_user_id,'last_name',$user_last_name);
|
---|
293 | update_usermeta( $wp_user_id,'description',$user_description);
|
---|
294 | update_usermeta( $wp_user_id,'jabber',$user_jabber);
|
---|
295 | update_usermeta( $wp_user_id,'aim',$xoops_user->user_aim);
|
---|
296 | update_usermeta( $wp_user_id,'yim',$xoops_user->user_yim);
|
---|
297 | if ($is_update === false ) {
|
---|
298 | update_usermeta( $wp_user_id,'rich_editing',$user_rich_editing);
|
---|
299 | }
|
---|
300 |
|
---|
301 | }
|
---|
302 | $message .= "...END";
|
---|
303 | return true;
|
---|
304 | }
|
---|
305 |
|
---|
306 | /*
|
---|
307 | * Get User ID of XOOPS from the login name.
|
---|
308 | */
|
---|
309 | function get_xoops_user_id($login_name){
|
---|
310 | global $xoops_db;
|
---|
311 | $sql = "SELECT uid FROM " . get_xoops_prefix() . "users WHERE uname = '$login_name'";
|
---|
312 | $uid = $xoops_db->get_var($sql);
|
---|
313 | return $uid;
|
---|
314 | }
|
---|
315 |
|
---|
316 | /*
|
---|
317 | *The user data of wordpress is written in the xoops user data.
|
---|
318 | */
|
---|
319 | function user_sync_to_xoops($user_ID){
|
---|
320 | global $xoops_db;
|
---|
321 |
|
---|
322 | $user_info = get_userdata($user_ID);
|
---|
323 | $xoops_uid = get_xoops_user_id($user_info->user_login);
|
---|
324 | $db_xoops_users = get_xoops_prefix() . "users";
|
---|
325 | $user_regdate = strtotime($user_info->user_registered);
|
---|
326 | $aim = get_usermeta($user_ID,'aim');
|
---|
327 | $yim = get_usermeta($user_ID,'yim');
|
---|
328 |
|
---|
329 | if ($xoops_uid){
|
---|
330 | $wu_sql = "UPDATE $db_xoops_users ";
|
---|
331 | $wu_sql .= 'SET ';
|
---|
332 | $wu_sql .= "uname = '$user_info->user_login', ";
|
---|
333 | $wu_sql .= "pass = '$user_info->user_pass', ";
|
---|
334 | $wu_sql .= "email = '$user_info->user_email', ";
|
---|
335 | $wu_sql .= "url = '$user_info->user_url', ";
|
---|
336 | $wu_sql .= "name = '$user_info->display_name', ";
|
---|
337 | $wu_sql .= "user_aim = '$aim', ";
|
---|
338 | $wu_sql .= "user_yim = '$yim', ";
|
---|
339 | $wu_sql .= "user_regdate = $user_regdate ";
|
---|
340 | $wu_sql .= "WHERE (uid = $xoops_uid )";
|
---|
341 | $xoops_db->query($wu_sql);
|
---|
342 | }else{
|
---|
343 | $wu_sql = "INSERT INTO $db_xoops_users ";
|
---|
344 | $wu_sql .= "(uname , pass ,email , url , name , user_aim , user_yim , user_regdate) " ;
|
---|
345 | $wu_sql .= "VALUES ";
|
---|
346 | $wu_sql .= "('$user_info->user_login', '$user_info->user_pass', '$user_info->user_email', '$user_info->user_url', '$user_info->display_name' ";
|
---|
347 | $wu_sql .= " , '$aim' , '$yim' , $user_regdate )";
|
---|
348 | $xoops_db->query($wu_sql);
|
---|
349 | // get xoops users default groupe ID
|
---|
350 | $db_xoops_group = get_xoops_prefix() . 'groups';
|
---|
351 | $default_xoops_group_id = $xoops_db->get_var("SELECT groupid FROM $db_xoops_group WHERE group_type = 'User'");
|
---|
352 | // get insert users ID
|
---|
353 | $db_xoops_group = get_xoops_prefix() . 'users';
|
---|
354 | $user_id = $xoops_db->get_var("SELECT uid FROM $db_xoops_group WHERE uname = '$user_info->user_login'");
|
---|
355 | // insert groups_users_link
|
---|
356 | $db_xoops_group_users_link = get_xoops_prefix() . 'groups_users_link';
|
---|
357 | $default_xoops_group_id = $xoops_db->get_var("INSERT INTO $db_xoops_group_users_link (groupid , uid ) VALUES ($default_xoops_group_id , $user_id)");
|
---|
358 | }
|
---|
359 | }
|
---|
360 |
|
---|
361 |
|
---|
362 | /*
|
---|
363 | * When I changed the pre-fix of the database in XOOPS Protector Module, user authority data of WordPress read it and cannot do it.
|
---|
364 | * This is because a meta_key pre-fix of the usermeta table of WordPress is not changed.
|
---|
365 | * and user_roles option_name pre-fix of the option table of WordPress is not changed.
|
---|
366 | */
|
---|
367 | function check_user_meta_prefix($uid){
|
---|
368 | global $xoops_db;
|
---|
369 | $db_xpress_usermeta = get_wp_prefix() . 'usermeta';
|
---|
370 | $user_meta_prefix = get_wp_prefix();
|
---|
371 |
|
---|
372 | $sql = "SELECT * FROM $db_xpress_usermeta WHERE user_id = $uid AND meta_key = '" . $user_meta_prefix ."user_level'" ;
|
---|
373 |
|
---|
374 | $user_level = $xoops_db->get_results($sql);
|
---|
375 | if (empty($user_level)) return false ;
|
---|
376 |
|
---|
377 | $sql = "SELECT * FROM $db_xpress_usermeta WHERE user_id = $uid AND meta_key = '" . $user_meta_prefix ."capabilities'" ;
|
---|
378 | $capabilities = $xoops_db->get_results($sql);
|
---|
379 | if (empty($capabilities)) return false ;
|
---|
380 |
|
---|
381 | return true;
|
---|
382 | }
|
---|
383 |
|
---|
384 | function repair_user_meta_prefix(){
|
---|
385 | global $xoops_db;
|
---|
386 | // repair usermeta db
|
---|
387 | $db_xpress_usermeta = get_wp_prefix() . 'usermeta';
|
---|
388 | $wp_prefix_only = get_wp_prefix_only();
|
---|
389 | $user_meta_prefix = get_wp_prefix();
|
---|
390 | $sql = "SELECT * FROM $db_xpress_usermeta WHERE meta_key LIKE '%_" . $wp_prefix_only . "%'" ;
|
---|
391 | $user_metas = $xoops_db->get_results($sql);
|
---|
392 | if(!empty($user_metas)){
|
---|
393 | foreach($user_metas as $user_meta){
|
---|
394 | if (strpos($user_meta->meta_key,$user_meta_prefix) === false) {
|
---|
395 | $new_meta_key = '';
|
---|
396 | if (strpos($user_meta->meta_key,$wp_prefix_only.'user_level'))
|
---|
397 | $new_meta_key = $user_meta_prefix . 'user_level';
|
---|
398 | if (strpos($user_meta->meta_key,$wp_prefix_only.'capabilities'))
|
---|
399 | $new_meta_key = $user_meta_prefix . 'capabilities';
|
---|
400 | if (strpos($user_meta->meta_key,$wp_prefix_only.'autosave_draft_ids'))
|
---|
401 | $new_meta_key = $user_meta_prefix . 'autosave_draft_ids';
|
---|
402 | if (strpos($user_meta->meta_key,$wp_prefix_only.'usersettings')){
|
---|
403 | if (strpos($user_meta->meta_key,$wp_prefix_only.'usersettingstime'))
|
---|
404 | $new_meta_key = $user_meta_prefix . 'usersettingstime';
|
---|
405 | else
|
---|
406 | $new_meta_key = $user_meta_prefix . 'usersettings';
|
---|
407 | }
|
---|
408 | if (!empty($new_meta_key)){
|
---|
409 | $repair_sql = "UPDATE $db_xpress_usermeta ";
|
---|
410 | $repair_sql .= 'SET ';
|
---|
411 | $repair_sql .= "meta_key = '$new_meta_key' ";
|
---|
412 | $repair_sql .= "WHERE (umeta_id = $user_meta->umeta_id )";
|
---|
413 | $xoops_db->query($repair_sql);
|
---|
414 | }
|
---|
415 | }
|
---|
416 | }
|
---|
417 | }
|
---|
418 |
|
---|
419 | // repair option db user_roles
|
---|
420 | include_once (ABSPATH . '/include/general_functions.php');
|
---|
421 |
|
---|
422 | $prefix = get_wp_prefix();
|
---|
423 | $option_tables = get_table_list($prefix,'options');
|
---|
424 | if(!empty($option_tables)){
|
---|
425 | foreach( $option_tables as $option_table){
|
---|
426 | $mid_prefix = get_multi_mid_prefix($prefix,'options' , $option_table);
|
---|
427 |
|
---|
428 | $new_option_name = $prefix .$mid_prefix . 'user_roles';
|
---|
429 | $sql = "SELECT option_id , option_name FROM $option_table WHERE option_name LIKE '%_user_roles'" ;
|
---|
430 | $option= $xoops_db->get_row($sql);
|
---|
431 | if ($option->option_name != $new_option_name){
|
---|
432 | $repair_sql = "UPDATE $db_wp_option ";
|
---|
433 | $repair_sql .= 'SET ';
|
---|
434 | $repair_sql .= "option_name = '$new_option_name' ";
|
---|
435 | $repair_sql .= "WHERE (option_id = $option->option_id )";
|
---|
436 | $xoops_db->query($repair_sql);
|
---|
437 | }
|
---|
438 | }
|
---|
439 | }
|
---|
440 | }
|
---|
441 | ?> |
---|