Jx2 bật mí 1 chút về cách đổi tên

http://103.133.109.8:6789/

anh em vào web đổi tên rồi so sánh 2 db cũ và mới xem có gì khác nhau là biết cách đổi tên nhé

Share ae file chạy win10 64bit
https://drive.google.com/file/d/18kQ...ew?usp=sharing

Hướng dẫn:
- Thêm các giá trị cần thiết vào file config.json
- Chạy file với 2 tham số. Tham số 1 là tên cũ, tham số 2 là tên mới (newname emcuahomqua emcuahientai)

Source PHP:
Mã:
[COLOR=#000000][FONT=monospace]<head>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]  <meta charset="utf-8">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]  <meta http-equiv="X-UA-Compatible" content="IE=edge">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]  <title>Đổi Tên PHP</title>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]  <!-- Tell the browser to be responsive to screen width -->[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]  <meta name="viewport" content="width=device-width, initial-scale=1">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]</head>[/FONT][/COLOR]

[COLOR=#0000BB][FONT=monospace]<?php
[/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// Ket noi de quan ly tai khoan
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'hostname'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]] = [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'localhost'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'username'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]] = [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'root'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'password'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]] = [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'123456'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'database'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]] = [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'jx2ib_database'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];

[/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]// Ket noi den host name mysql
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$conn_web [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= new [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]mysqli[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'hostname'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'username'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'password'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$config[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'database'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]);
if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$conn_web[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]connect_error[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
    die([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"ERROR: Could not connect."[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
}
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]<body class="hold-transition login-page">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]<div class="login-box">[/FONT][/COLOR]

[COLOR=#0000BB][FONT=monospace]<?php
[/FONT][/COLOR][COLOR=#007700][FONT=monospace]if (isset([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"submit"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]])) {
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$oldname   [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'oldname'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]];
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$newname   [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$_POST[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'newname'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]];
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$user      [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$conn_web[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]query[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"SELECT * FROM role WHERE RoleName = '[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$oldname[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]' "[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
    [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$account_f [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]mysqli_fetch_assoc[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$user[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
    if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$user[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data      [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]unpack[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"H*hex"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$account_f[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"FullInfo"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data      [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'hex'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]];
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_item [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]unpack[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"H*hex"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$account_f[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"ListItem"[/FONT][/COLOR][COLOR=#007700][FONT=monospace]]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_item [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_item[/FONT][/COLOR][COLOR=#007700][FONT=monospace][[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'hex'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]];
        [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]//rename
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$curl      [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]curl_init[/FONT][/COLOR][COLOR=#007700][FONT=monospace]();
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$ListItem  [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_item[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$FullInfo  [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$param     [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'oldname=' [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$oldname [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'&newname=' [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$newname [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'&ListItem=' [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$ListItem [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'&FullInfo=' [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$FullInfo[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]curl_setopt_array[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$curl[/FONT][/COLOR][COLOR=#007700][FONT=monospace], array(
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_URL [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'http://103.133.109.8:6789/renamejx2'[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_RETURNTRANSFER [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]true[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_ENCODING [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]''[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_MAXREDIRS [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]10[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_TIMEOUT [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]0[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_FOLLOWLOCATION [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]true[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_HTTP_VERSION [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURL_HTTP_VERSION_1_1[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_CUSTOMREQUEST [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'POST'[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_POSTFIELDS [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$param[/FONT][/COLOR][COLOR=#007700][FONT=monospace],
            [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]CURLOPT_HTTPHEADER [/FONT][/COLOR][COLOR=#007700][FONT=monospace]=> array(
                [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'Content-Type: application/x-www-form-urlencoded'
            [/FONT][/COLOR][COLOR=#007700][FONT=monospace])
        ));
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]curl_exec[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$curl[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]curl_close[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$curl[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
        [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]//fix json do mat source sever
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response     [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]str_replace[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"\\"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]""[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response     [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]str_replace[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"\"{"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"{"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response     [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]str_replace[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"}\"}"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"}}"[/FONT][/COLOR][COLOR=#007700][FONT=monospace], [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_x       [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]json_decode[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$response[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$new_roleInfo [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_x[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]msg2[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]FullInfo[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$new_ItemInfo [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_x[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]msg2[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]ListItem[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        [/FONT][/COLOR][COLOR=#FF8000][FONT=monospace]//end
        [/FONT][/COLOR][COLOR=#007700][FONT=monospace]if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$new_roleInfo [/FONT][/COLOR][COLOR=#007700][FONT=monospace]== [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data [/FONT][/COLOR][COLOR=#007700][FONT=monospace]|| [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$new_ItemInfo [/FONT][/COLOR][COLOR=#007700][FONT=monospace]== [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$data_item[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
            echo [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]' du lieu khong thay doi'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        }
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$update [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]false[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$update [/FONT][/COLOR][COLOR=#007700][FONT=monospace]= [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$conn_web[/FONT][/COLOR][COLOR=#007700][FONT=monospace]->[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]query[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]"UPDATE role SET RoleName = '[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$newname[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]' , FullInfo = CONVERT(0x" [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$new_roleInfo [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]", BINARY) , ListItem = CONVERT(0x" [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$new_ItemInfo [/FONT][/COLOR][COLOR=#007700][FONT=monospace]. [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]", BINARY) WHERE RoleName = '[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$oldname[/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'  "[/FONT][/COLOR][COLOR=#007700][FONT=monospace]);
    }
    if ([/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]$update[/FONT][/COLOR][COLOR=#007700][FONT=monospace]) {
        
        echo [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]' THANH CONG'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
    } else {
        echo [/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]' TEN CU KHONG TON TAI'[/FONT][/COLOR][COLOR=#007700][FONT=monospace];
        
    }
}
[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]?>[/FONT][/COLOR]



[COLOR=#000000][FONT=monospace]  <div class="card">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]    <div class="card-body login-card-body">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]      <p class="login-box-msg">ĐỔI TÊN</p>[/FONT][/COLOR]

[COLOR=#000000][FONT=monospace]      <form action="" method="post">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]        <div class="input-group mb-3">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          <input type="text" class="form-control" name="oldname" placeholder="Tên cũ" required="">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          <div class="input-group-append">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]            <div class="input-group-text">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]              <span class="fas fa-envelope"></span>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]            </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]        </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]        <div class="input-group mb-3">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          <input type="text" class="form-control" name="newname" placeholder="Tên mới" required="">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          <div class="input-group-append">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]            <div class="input-group-text">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]              <span class="fas fa-lock"></span>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]            </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]        </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]        <div class="row">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          <div class="col-6">[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]            <button type="submit" name="submit" class="btn btn-primary btn-block">Submit</button>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]          </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]        </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]      </form>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]    </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]  </div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]</div>[/FONT][/COLOR]
[COLOR=#000000][FONT=monospace]</body>[/FONT][/COLOR]


 
Chỉnh sửa lần cuối:
cái quan trọng là code để khi người dùng nhấn đổi tên thì server tự nhận và update theo
chứ nói như anh đi vào db thì user làm sao vào
vã lại lỡ anh có 1000 user đổi tên cùng lúc anh làm sao trở tay kịp
muốn hoàn hảo chỉ có như mấy ông kia làm mà họ toàn "in bốc nói chuyện" không hà
 
http://103.133.109.8:6789/

anh em vào web đổi tên rồi so sánh 2 db cũ và mới xem có gì khác nhau là biết cách đổi tên nhé

Share ae file chạy win10 64bit
https://drive.google.com/file/d/18kQ...ew?usp=sharing

Hướng dẫn:
- Thêm các giá trị cần thiết vào file config.json
- Chạy file với 2 tham số. Tham số 1 là tên cũ, tham số 2 là tên mới (newname emcuahomqua emcuahientai)

Em nhớ có lần em vẫn đổi tên trong database đựoc mà nhỉ?
Chỉ là giờ quên mất chỗ nào rồi @@
 
Bên trên