Unified Accounts in Chat

StubleU

Gold Member
I've had a few questions asked about why we don't have have unified accounts across all the chatrooms. I don't know specifics but knowing the way it's relatively designed...i don't see why it wouldn't be too hard to sync accounts across the rooms or posture an account across all the rooms when they register.

there's a couple things that come to mind as problems with this though...i don't use the chat much so i can't say for sure...but the obvious one is that some accounts exist across the rooms for different users, already. so reconciling those would be a problem. the other problem is the benefit the site gets from requiring every chat you want VIP in you have to pay for...rather than getting VIP once across the board.

I'm sure there's other minute differences...but the syncing could be part of the regular cron job it runs anyways. I dunno...maybe i'll look into it...and if not...make a service available to register an account in bulk to all the rooms or the ones you want specifically...as yet another 3rd party service i can provide

@Radiation thoughts?
 
just like they could block vpn usage if they actually cared?
also of note...this is the code where it can check whether the user is using a VPN using https://proxycheck.io subscription. I would assume that the 34 dollar/month package would be sufficient for that site

PHP:
/ vpn function check

function canVpn(){
    global $data;
    if($data['uvpn'] == 0){
        return true;
    }
    if(boomAllow(2)){
        return true;
    }
}
function userCanVpn($user){
    if(userBoomAllow($user, 2)){
        return true;
    }
}
function useVpn(){
    global $setting;
    if($setting['use_vpn'] > 0 && !empty($setting['vpn_key'])){
        return true;
    }
}
function useLookup(){
    global $setting;
    if(!empty($setting['vpn_key'])){
        return true;
    }
}
function checkVpn($ip){
    global $mysqli, $setting;
    if(useVpn()){
        $check_vpn = $mysqli->query("SELECT vtype FROM boom_vpn WHERE vip = '$ip'");
        if($check_vpn->num_rows > 0){
            $result = $check_vpn->fetch_assoc();
            if($result['vtype'] == 2){
                return true;
            }
        }
        else {
            $type = 1;
            $check = doCurl('http://proxycheck.io/v2/' . $ip . '?key=' . $setting['vpn_key'] . '&vpn=1&asn=1&inf=0&risk=1&days=7&tag=msg');
            $result = json_decode($check);
            if($result->status == 'ok'){
                if($result->$ip->proxy && $result->$ip->proxy == "yes"){
                    $type = 2;
                }
                $mysqli->query("INSERT INTO boom_vpn (vip, vtype, vdate) VALUES ('$ip', '$type', '" . time() . "')");
                if($type == 2){
                    return true;
                }
            }
        }
    }
}
function recheckVpn(){
    global $data;
    if(useVpn() && !canVpn()){
        $ip = getIp();
        if(!isset($_SESSION[BOOM_PREFIX . '_cip']) || $ip != $_SESSION[BOOM_PREFIX . '_cip']){
            if(checkVpn($ip)){
                systemVpnKick($data);
                return true;
            }
            else {
                $_SESSION[BOOM_PREFIX . '_cip'] = $ip;
            }
        }
    }
}
 
its honestly pretty stupid that we have a "suggestion" and a " kick/ban complaint " forum

I dont know why we even have these nobody does **** all with them.
 
what's BOOM_CRYPT? it's defined here...as nothing and the commented out part says not to touch it
PHP:
// do not modify those variables
define('BOOM_CRYPT', '');
BOOM_CRYPT fills with a unique value once a chat is setup, and it doesn't change. That value would be different for every Chat Avenue room.
 
BOOM_CRYPT fills with a unique value once a chat is setup, and it doesn't change. That value would be different for every Chat Avenue room.
what populates it? I grepped through all the files and it's definition and that instance are the only time it's referenced.
 
what populates it? I grepped through all the files and it's definition and that instance are the only time it's referenced.
Ughh, I can't remember. A chunk of the chat files are encrypted with ioncube, and I'm pretty sure the setup files that populate database.php are included in that.
 
Top