Esempio n. 1
0
                public static bool Access(string database, string user)
                {
                    SimpleWeb sWeb      = new SimpleWeb();
                    string    param_url = api_loc + "class=user" + "&call=access" + "&user="******"&db=" + database;

                    return(sWeb.bRecv(param_url));
                }
Esempio n. 2
0
                public static bool Banned(string user)
                {
                    SimpleWeb sWeb      = new SimpleWeb();
                    string    param_url = api_loc + "class=user" + "&call=banned" + "&user=" + user;

                    return(sWeb.bRecv(param_url));
                }
Esempio n. 3
0
                public static bool Login(string user, string pass, bool silent = false)
                {
                    SimpleWeb sWeb      = new SimpleWeb();
                    string    param_url = api_loc + "class=user" + "&call=login" + "&user="******"&pass="******"Guard Login Successful", "Guard . Dialog", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        return(true);

                    case false:
                        if (!silent)
                        {
                            MessageBox.Show("Guard Login Failure", "Guard . Dialog", MessageBoxButtons.OK, MessageBoxIcon.Error);
                        }
                        return(false);
                    }
                    return(false);
                }