Changeset 1654000
- Timestamp:
- 05/10/2017 04:05:51 AM (9 years ago)
- Location:
- sudo-oauth/trunk
- Files:
-
- 3 edited
-
SudoOauth.php (modified) (10 diffs)
-
readme.txt (modified) (1 diff)
-
sudo-oauth.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sudo-oauth/trunk/SudoOauth.php
r1647027 r1654000 5 5 if(!$client_id || !$client_key || $client_id == '' || $client_key == '') 6 6 die('Bạn chưa nhập thông tin Client mà ID đã cấp !'); 7 ?>8 <meta http-equiv="content-type" content="text/html; charset=UTF-8">9 <?php10 7 $access_code = $_REQUEST['access_code']; 11 8 if(isset($access_code) && $access_code != '') { … … 61 58 if ( is_wp_error($user_signon) ) { 62 59 echo $user_signon->get_error_message(); 60 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 63 61 die('Không thể đăng nhập'); 64 62 }else { … … 68 66 } 69 67 }else { 68 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 70 69 die('Không thể hạn chế được danh mục đăng bài cho thành viên này'); 71 70 } … … 77 76 if ( is_wp_error($user_signon) ) { 78 77 echo $user_signon->get_error_message(); 78 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 79 79 die('Không thể đăng nhập'); 80 80 }else { … … 85 85 } 86 86 }else { 87 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 87 88 die('Tài khoản này đã có trước khi kết nối với Sudo ID !'); 88 89 } … … 102 103 $u_id = wp_update_user( array( 'ID' => $u_id, 'role' => 'sudooauth_author' ) ); 103 104 if(is_object($u_id)) { 105 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 104 106 die('Không thể set quyền cho user'); 105 107 } … … 119 121 $user_signon = wp_signon( array('user_login'=>$user['name'],'user_password'=>$user['password'],'remember'=>false), false ); 120 122 if ( is_wp_error($user_signon) ) { 123 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 121 124 echo $user_signon->get_error_message(); 122 125 die('Không thể đăng nhập'); … … 126 129 } 127 130 }else { 131 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 128 132 die('Không thể hạn chế được danh mục đăng bài cho thành viên này'); 129 133 } … … 131 135 } 132 136 }else { 137 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 133 138 echo $info['message']; 134 139 echo '<br />'; … … 136 141 } 137 142 }else { 138 die('Không tìm thấy Access Code !'); 143 echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>'; 144 die('Không tìm thấy Access Code !'); 139 145 } 140 146 ?> -
sudo-oauth/trunk/readme.txt
r1647077 r1654000 37 37 38 38 = 2.0.1 = 39 Fix cannot modify header information - headers already sent by in pluggable 40 41 = 2.0.1 = 39 42 Big update: 40 43 - Random link follow - nofollow (30%) -
sudo-oauth/trunk/sudo-oauth.php
r1647028 r1654000 5 5 * Description: Plugin support to connect to ID Sudo system - a management account system. If you want to build a management account system for SEO, Manager staff please contact me. 6 6 * Author: caotu 7 * Version: 2.0. 17 * Version: 2.0.2 8 8 * Author URI: http://sudo.vn 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.