Beispiel #1
0
        public void InsertFBAccount(string Usernaem, string password, string proxiaddress, string proxyport, string proxyName, string proxypassword, string friendcount, string profilename)
        {
            try
            {
                this.strUsernaem      = Usernaem;
                this.strPassword      = password;
                this.strProxiaddress  = proxiaddress;
                this.strProxyport     = proxyport;
                this.strProxyName     = proxyName;
                this.strProxypassword = proxypassword;
                this.strProfileStatus = "";

                string strQuery = "INSERT INTO tb_FBAccount VALUES ('" + Usernaem + "','" + password + "','" + proxiaddress + "','" + proxyport + "','" + proxyName + "','" + proxypassword + "','" + friendcount + "','" + profilename + "','" + strProfileStatus + "') ";

                DataBaseHandler.InsertQuery(strQuery, "tb_FBAccount");
            }
            catch (Exception)
            {
                try
                {
                    UpdateFBAccount(strUsernaem, strPassword, strProxiaddress, strProxyport, strProxyName, strProxypassword);
                }
                catch (Exception)
                {
                    throw;
                }
            }
        }
Beispiel #2
0
        public void InsertDBCData(string username, string DeathByCaptcha, string password)
        {
            try
            {
                string strQuery = "INSERT INTO tb_Setting VALUES ('" + username + "','" + DeathByCaptcha + "','" + password + "') ";

                DataBaseHandler.InsertQuery(strQuery, "tb_Setting");
            }
            catch (Exception)
            {
                UpdateSettingData(Upmodule, Upfiletype, Upfilepath);
            }
        }
Beispiel #3
0
        public void InsertDecaptcherData(string server, string port, string username, string password, string Decaptcher)
        {
            try
            {
                string strQuery = "INSERT INTO tb_Setting VALUES ('" + server + "<:>" + port + "','" + Decaptcher + "','" + username + "<:>" + password + "') ";

                DataBaseHandler.InsertQuery(strQuery, "tb_Setting");
            }
            catch (Exception)
            {
                UpdateSettingData(Upmodule, Upfiletype, Upfilepath);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Inserts Settings in DataBase
        /// Updates if Settings already present
        /// </summary>
        /// <param name="module"></param>
        /// <param name="filetype"></param>
        /// <param name="filepath"></param>
        public void InsertOrUpdateSetting(string module, string filetype, string filepath)
        {
            try
            {
                this.Upmodule   = module;
                this.Upfiletype = filetype;
                this.Upfilepath = filepath;

                string Upmodule   = module;
                string UPfiletype = filetype;
                string strQuery   = "INSERT INTO tb_Setting VALUES ('" + module + "','" + filetype + "','" + filepath + "') ";

                DataBaseHandler.InsertQuery(strQuery, "tb_Setting");
            }
            catch (Exception)
            {
                UpdateSettingData(Upmodule, Upfiletype, Upfilepath);
            }
        }