Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reg_Name_User = raw_input("Reg User enter a username: ")
- Reg_Name_Pass = raw_input("Reg User enter a password: ")
- Reg_User_SQL = [""]
- Reg_Pass_SQL = [""] #Hashed.
- Reg_User_SQL.append(Reg_Name_User)
- Reg_Pass_SQL.append(Reg_Name_Pass) #Hashed.
- print("Server data has been saved")
- print(Reg_User_SQL , Reg_Pass_SQL);
- if Reg_Name_User and Reg_Name_Pass == Reg_User_SQL and Reg_Pass_SQL:
- print("Welcome!")
- elif Reg_Name_User and Reg_Name_Pass != Reg_User_SQL and Reg_Pass_SQL:
- print("Password has failed!")
- print("Restart the program to try again.")
- ToContinue = raw_input("Please press any key to contine")
- class MySQLQueries()
- def MySQLQuriesDefined()
- print("Loading the MySQL Query...")
- Reg_Name_SQLQueryINPUT =(Reg_User_SQL, Reg_Pass_SQL)
- ... [mysqld]
- ... user = mysql
- ... pid-file = /var/run/mysqld/mysqld.pid
- ... skip-external-locking
- ... old_passwords = 1
- ... skip-bdb
- ... skip-innodb
- ... (Reg_User_SQL, Reg_Pass_SQL)
- config = ConfigParser.RawConfigParser(allow_no_value=True)
- config.readfp(io.BytesIO(Reg_Name_SQLQueryINPUT))
- # Settings with values are treated as before:
- config.get("mysqld", "user")
- 'mysql'
- # Settings without values provide None:
- config.get("mysqld", "skip-bdb")
- if config.get("mysqld", "does-not-exist")
- Traceback (most recent call last):
- ...
- ConfigParser.NoOptionError: No option 'does-not-exist' in section: 'mysqld'
- print("SQL Quires saved and loaded")
- ToContinueNext = raw_Input("Enter any key to continue")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement