Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- define("LOGIN_SSH", "spirit"); // identifiant SSH
- define("PASS_SSH", ""); // le mot de passe
- define("HOST_SSH", "localhost"); // ne rien changer ^^
- define("PATH_BOT", "/home/spirit/invite_script/");
- define("SQL_HOST", 'localhost');
- define("SQL_USER", "auto_invite");
- define("SQL_BDD", "auto_invite");
- define("SQL_PASS", '');
- function connect_sql() {
- $conn = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS);
- mysql_select_db(SQL_BDD) or die("Impossible d'ouvrir la base de donnee \n");
- }
- function GetInfo($base)
- {
- $requete = "SELECT * FROM `invite_configuration` WHERE options='".$base."' LIMIT 0,1";
- $result = mysql_query($requete);
- if (mysql_num_rows($result) == 1)
- {
- $resultat = mysql_fetch_array($result);
- return $resultat["value"];
- }
- else
- return NULL;
- }
- function validate_steam($steam)
- {
- define('STEAM_FORMAT', "/^STEAM_[0-9]:[0-9]:[0-9]+$/");
- return preg_match(STEAM_FORMAT, $steam) ? true : false;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement