Changeset 5115
- Timestamp:
- 03/26/2007 11:39:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xmlrpc.php
r5107 r5115 567 567 $this->escape($args); 568 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 569 $user_login = $args[1]; 570 $user_pass = $args[2]; 571 572 if (!$this->login_pass_ok($user_login, $user_pass)) { 573 return $this->error; 574 } 575 576 set_current_user(0, $user_login); 577 $is_admin = current_user_can('level_8'); 578 579 $struct = array( 580 'isAdmin' => $is_admin, 581 'url' => get_option('home') . '/', 582 'blogid' => '1', 583 'blogName' => get_option('blogname') 584 ); 585 586 return array($struct); 587 587 } 588 588
Note: See TracChangeset
for help on using the changeset viewer.