Plugin Directory

Changeset 1654000


Ignore:
Timestamp:
05/10/2017 04:05:51 AM (9 years ago)
Author:
caotu
Message:

Update plugin new version fix bug

Location:
sudo-oauth/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sudo-oauth/trunk/SudoOauth.php

    r1647027 r1654000  
    55if(!$client_id || !$client_key || $client_id == '' || $client_key == '')
    66    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 <?php
    107$access_code = $_REQUEST['access_code'];
    118if(isset($access_code) && $access_code != '') {
     
    6158                        if ( is_wp_error($user_signon) ) {
    6259                            echo $user_signon->get_error_message();
     60                            echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    6361                            die('Không thể đăng nhập');
    6462                        }else {
     
    6866                        }
    6967                    }else {
     68                        echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    7069                        die('Không thể hạn chế được danh mục đăng bài cho thành viên này');
    7170                    }
     
    7776                    if ( is_wp_error($user_signon) ) {
    7877                        echo $user_signon->get_error_message();
     78                        echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    7979                        die('Không thể đăng nhập');
    8080                    }else {
     
    8585                }
    8686            }else {
     87                echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    8788                die('Tài khoản này đã có trước khi kết nối với Sudo ID !');
    8889            }
     
    102103                    $u_id = wp_update_user( array( 'ID' => $u_id, 'role' => 'sudooauth_author' ) );
    103104                    if(is_object($u_id)) {
     105                        echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    104106                        die('Không thể set quyền cho user');   
    105107                    }
     
    119121                    $user_signon = wp_signon( array('user_login'=>$user['name'],'user_password'=>$user['password'],'remember'=>false), false );
    120122                    if ( is_wp_error($user_signon) ) {
     123                        echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    121124                        echo $user_signon->get_error_message();
    122125                        die('Không thể đăng nhập');
     
    126129                    }
    127130                }else {
     131                    echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    128132                    die('Không thể hạn chế được danh mục đăng bài cho thành viên này');
    129133                }
     
    131135        }
    132136    }else {
     137        echo '<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>';
    133138        echo $info['message'];
    134139        echo '<br />';
     
    136141    }
    137142}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 !');
    139145}
    140146?>
  • sudo-oauth/trunk/readme.txt

    r1647077 r1654000  
    3737
    3838= 2.0.1 =
     39Fix cannot modify header information - headers already sent by in pluggable
     40
     41= 2.0.1 =
    3942Big update:
    4043    - Random link follow - nofollow (30%)
  • sudo-oauth/trunk/sudo-oauth.php

    r1647028 r1654000  
    55 * 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.
    66 * Author: caotu
    7  * Version: 2.0.1
     7 * Version: 2.0.2
    88 * Author URI: http://sudo.vn
    99*/
Note: See TracChangeset for help on using the changeset viewer.