Example #1
0
function backup_save()
{
    $EnableBackupAccount = $_GET["EnableBackupAccount"];
    $computer = new computers($_GET["uid"] . '$');
    $computer->EnableBackupAccount = $EnableBackupAccount;
    $computer->save_EnableBackupAccount();
    $ini = new Bs_IniHandler();
    $ini->_params["BACKUP_PROTO"]["enable_smb"] = $_GET["enable_smb"];
    $ini->_params["ACCOUNT"]["USERNAME"] = $_GET["username"];
    $ini->_params["ACCOUNT"]["PASSWORD"] = $_GET["password"];
    $computer->ComputerCryptedInfos = $ini->toString();
    $computer->SaveCryptedInfos();
}