Ejemplo n.º 1
0
     }
 }
 $oldtjrname = $rs1["tjrname"];
 $tjbdpv = $rs1["pv_team_regp"];
 if ($tjbdpv > 0) {
     $tjnetupstr = "";
     gettjnetupstr(trim($oldtjrname));
     $tjnetary = explode(",", $tjnetupstr);
     if ($tjnetupstr != "") {
         foreach ($tjnetary as $u => $u1) {
             updatetjnetusertdpv2($u1, -$tjbdpv);
             updatetjnettdpv($year, $month, $day, $u1, -$tjbdpv);
         }
     }
     $tjnetupstr = "";
     gettjnetupstr(trim($tousername));
     $tjnetary = explode(",", $tjnetupstr);
     if ($tjnetupstr != "") {
         foreach ($tjnetary as $u => $u1) {
             updatetjnetusertdpv2($u1, $tjbdpv);
             updatetjnettdpv($year, $month, $day, $u1, $tjbdpv);
         }
     }
 }
 $sql3 = "update {$db_prefix}users set tjrname='" . trim($tousername) . "' where username='******'";
 $db->query($sql3);
 $db->query("update {$db_prefix}users set tjnum=tjnum+1 where username='******'");
 $db->query("update {$db_prefix}users set tjnum=tjnum-1 where username='******'");
 $log_adminid = $_SESSION["glo_adminid"];
 $log_admin = $_SESSION["glo_adminname"];
 $log_type = 4;
Ejemplo n.º 2
0
     $year = date("Y", $modtime);
     $month = date("m", $modtime);
     $day = date("d", $modtime);
     editpv($year, $month, $day, trim($rr["username"]), $span_bdmoney, $span_num);
     if (trim($prename)) {
         $glnetupstr = "";
         getglnetupstr(trim($prename));
         $glnetary = explode(",", $glnetupstr);
         foreach ($glnetary as $u => $u1) {
             updateglnetusertdpv2($u1, $span_bdmoney, $span_num);
             updateglnettdpv($year, $month, $day, $u1, $span_bdmoney, $span_num);
         }
     }
     if (trim($tjrname)) {
         $tjnetupstr = "";
         gettjnetupstr(trim($tjrname));
         $tjnetary = explode(",", $tjnetupstr);
         foreach ($tjnetary as $u => $u1) {
             updatetjnetusertdpv2($u1, $span_bdmoney);
             updatetjnettdpv($year, $month, $day, $u1, $span_bdmoney);
         }
     }
     $db->query("update {$db_prefix}users set tjbdnum=tjbdnum+'{$span_num}' where username='******' limit 1");
 }
 if ($glo_sjkoumoney || $glo_sjleijipv) {
     $ysmemo = "后台修改" . $rr['username'] . "级别";
 }
 $db->query("update {$db_prefix}users set rank='{$newrank}' where username='******'username'] . "'");
 $sql = "insert into {$db_prefix}editrankrecord (username,oldrank,rank,edittime,operator,type,applytime,isapproved,sjkoumoney,sjleijipv,state) values ('" . $rr["username"] . "','{$oldrank}','{$newrank}','{$modtime}','" . $_SESSION["glo_adminname"] . "','1','{$modtime}','1','{$glo_sjkoumoney}','{$glo_sjleijipv}',1)";
 $db->query($sql);
 $username = $rr["username"];
Ejemplo n.º 3
0
function gettjnetupstr($username)
{
    global $db, $db_prefix, $tjnetupstr;
    $sql = "select id,username,tjrname from {$db_prefix}users where username='******' limit 1";
    $rs = $db->get_one($sql);
    if ($rs['id']) {
        if ($tjnetupstr != "") {
            $tjnetupstr .= ",";
        }
        $tjnetupstr .= $rs["username"];
        if (!empty($rs["tjrname"])) {
            gettjnetupstr($rs["tjrname"]);
        }
    }
}