CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/local/rvglobalsoft/rvsitebuilder7/public_html/js/
Upload File :
Current File : //proc/2/root/usr/local/rvglobalsoft/rvsitebuilder7/public_html/js/admintools.js

$("input[name='readwebmail']").change(function(){
    var setting = $("input[name='readwebmail']:checked").val();
    $('#readwebmailwait').show();
    ajaxsetemaillist('readwebmail_skipicon',setting,function(error, success) {
        if (success == '1') {
            $('#readwebmailwait').hide();
            $('#readwebmailok').show();
            setTimeout(function() { 
                $('#readwebmailok').hide();
            }, 2000);           
            return;
        }      
    });
    ajaxGATracking('screenview','edit_email');
});
$("input[name='editemailquota']").change(function(){
    var setting = $("input[name='editemailquota']:checked").val();
    $('#editemailwait').show();
    ajaxsetemaillist('editemailquota_skipicon',setting,function(error, success) {
        if (success == '1') {
            $('#editemailwait').hide();
            $('#editemailok').show();
            setTimeout(function() { 
                $('#editemailok').hide();
            }, 2000);           
            return;
        }      
    });  
    ajaxGATracking('screenview','edit_email');
});
$("input[name='changeemailpassword']").change(function(){
    var setting = $("input[name='changeemailpassword']:checked").val();
    $('#changepasswdwait').show();
    ajaxsetemaillist('changeemailpassword_skipicon',setting,function(error, success) {
        if (success == '1') {
            $('#changepasswdwait').hide();
            $('#changepasswdok').show();
            setTimeout(function() { 
                $('#changepasswdok').hide();
            }, 2000);           
            return;
        }      
    });
    ajaxGATracking('screenview','edit_email');
});
$("input[name='resell_inheritemail']").change(function(){
    var setting = $("input[name='resell_inheritemail']:checked").val();
    $('#resellerinherwait').show();
    ajaxsetemaillist('resell_inheritemail',setting,function(error, success) {
        if (success == '1') {
            $('#resellerinherwait').hide();
            $('#resellerinherok').show();
            setTimeout(function() { 
                $('#resellerinherok').hide();
            }, 2000);           
            return;
        }      
    });  
});

$("input[name='outlook']").change(function(){
    var setting = $("input[name='outlook']:checked").val();
    $('#outlookwait').show();
    ajaxsetemaillist('outlook_skipicon',setting,function(error, success) {
        if (success == '1') {
            $('#outlookwait').hide();
            $('#outlookok').show();
            setTimeout(function() { 
                $('#outlookok').hide();
            }, 2000);           
            return;
        }      
    });  
    ajaxGATracking('screenview','edit_email');
});

$("input[name='skip_gen_full_backup']").change(function(){
    var setting = $("input[name='skip_gen_full_backup']:checked").val();
    $('#disfullbackupwait').show();
    ajaxsetemaillist('skip_gen_full_backup',setting,function(error, success) {
        if (success == '1') {
            $('#disfullbackupwait').hide();
            $('#disfullbackupok').show();
            setTimeout(function() { 
                $('#disfullbackupok').hide();
            }, 2000);           
            return;
        }      
    });  
    ajaxGATracking('screenview','full_backup');
});

$("input[name='mysqlremote']").change(function(){
    var setting = $("input[name='mysqlremote']:checked").val();
    $('#mysqlremotewait').show();
    ajaxsetmysqlremote(setting,function(error, success) {
        if (success == '1') {
            $('#mysqlremotewait').hide();
            $('#mysqlremoteok').show();
            setTimeout(function() { 
                $('#mysqlremoteok').hide();
            }, 2000);           
            return;
        }      
    });  
    ajaxGATracking('screenview','mysql_remote');
});

$("input[name='mysqlremote_resell']").change(function(){
    var setting = $("input[name='mysqlremote_resell']:checked").val();
    $('#mysqlremote_resellwait').show();
    ajaxsetmysqlremote_resell(setting,function(error, success) {
        if (success == '1') {
            $('#mysqlremote_resellwait').hide();
            $('#mysqlremote_resellok').show();
            setTimeout(function() { 
                $('#mysqlremote_resellok').hide();
            }, 2000);           
            return;
        }      
    });
});

$("input[name='skip_spam_box']").change(function(){
    var setting = $("input[name='skip_spam_box']:checked").val();
    $('#skip_spam_box_wait').show();
    ajaxsetskipspambox(setting,function(error, success) {
        if (success == '1') {
            $('#skip_spam_box_wait').hide();
            $('#skip_spam_box_ok').show();
            setTimeout(function() { 
                $('#skip_spam_box_ok').hide();
            }, 2000);           
            return;
        }      
    });
    ajaxGATracking('screenview','skip_spambox');
});

$("input[name='resellerdisable']").change(function(){
    var setting = $("input[name='resellerdisable']:checked").val();
    $('#skip_spam_box_resell_wait').show();
    ajaxsetskipspambox_resell(setting,function(error, success) {
        if (success == '1') {
            $('#skip_spam_box_resell_wait').hide();
            $('#skip_spam_box_resell_ok').show();
            setTimeout(function() { 
                $('#skip_spam_box_resell_ok').hide();
            }, 2000);           
            return;
        }      
    });  
});

$("#submitAOL").click(function(){
    var dataaol = $('textarea#AOLdataarea').val();
    $('#aolwait').show();
    ajaxsetaoldata(dataaol,function(error, success) {
        if (success == '1') {
            $('#aolwait').hide();
            $('#aolok').show();
            setTimeout(function() { 
                $('#aolok').hide();
            }, 2000);           
            return;
        }      
    }); 
    ajaxGATracking('screenview','email_forwarder_setup');
});

function ajaxsetaoldata(setting,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/saveaoldata',
            data : {
                'valset' : setting,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}

$("#submitCronlimit").click(function(){
    var cronlimit = $("#cronlimit").val();
    $('#cronlimitwait').show();
    ajaxsetcron(cronlimit,function(error, success) {
        if (success == '1') {
            $('#cronlimitwait').hide();
            $('#cronlimitok').show();
            setTimeout(function() { 
                $('#cronlimitok').hide();
            }, 2000);           
            return;
        }      
    });
    ajaxGATracking('screenview','submit_cron');
});


function ajaxsetcron(setting,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/savecronlimit',
            data : {
                'valset' : setting,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}


function ajaxsetskipspambox(setting,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/savespambox',
            data : {
                'valset' : setting,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}

function ajaxsetskipspambox_resell(setting,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/savespambox_resell',
            data : {
                'valset' : setting,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}

function ajaxsetmysqlremote(setting,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/savemysqlaccesshost',
            data : {
                'valset' : setting,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}

function ajaxsetmysqlremote_resell(setting,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/savemysqlaccesshost_resell',
            data : {
                'valset' : setting,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}

function ajaxsetemaillist(key,valset,callback) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/saveemailallowlist',
            data : {
                'key' : key,
                'valset' : valset,             
            },
            cache : false,
            type : "post",
            error : function() {
                callback("error", null);
            },
            success : function(data) {
                callback(null, data.resp.complete);
            }
    });
}

$(document).ready(function(){
    //if error log text area exist
    if($('#errorlogData').length){
        $('#errorlogData').scrollTop($('#errorlogData')[0].scrollHeight);
        setInterval(function() {
            $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/getcpanelerrorlog',
            data : {                          
            },
            cache : false,
            type : "post",
            error : function() {
               
            },
            success : function(data) {
                $("#errorlogData").val(data.resp.logdata);
            }
        });
        },5500); 
    }
});

$(document).ready(function(){
    //remove whm testbuild div
    $('.trialLicenseWarning').remove();
});


//sent google analytic
function ajaxGATracking(viewtype,apptype) { 
    $.ajax({
            url : 'index.cgi?/rvadmintools/rvadmintools/action/gatracking',
            data : {
            	'viewtype' : viewtype,
                'apptype'  : apptype,
            },
            cache : false,
            type : "post",
            error : function() {
                console.log("error can't sent data to analytic");
            },
            success : function(data) {
            	console.log("sent data analytic completed "+ data.resp.complete);
            }
    });
}


Copyright 2K16 - 2K18 Indonesian Hacker Rulez