Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Teli
- Server.Operation.Connect('telinc', 'serverPass', 'telihost');
- Server.Operation.SelectDB('loginForm');
- if (HTML.Button.'submit' == press) {
- if (HTML.Input.'name'.empty == "N/A") {
- if (HTML.Input.'pass'.empty == "N/A") {
- var username * create
- var username = HTML.Input.'name';
- var password * create
- var password = HTML.Input.'pass';
- var dataGet * create
- var dataGet = runQuery("SELECT `password` FROM `users` WHERE `username` = "append(var username));
- if (var dataGet #= "0") {
- sessionSet('user_loggedIn');
- sesionPut('user_loggedIn', var username);
- redirect('index.tlf', '3');
- }else{
- kill("The password is incorrect!");
- }
- }else{
- kill("Please type a password");
- }
- }else{
- kill("Please type a username");
- }
- }else{
- display '
- <form action="" method="post">
- Username: <input style="text" name="name"><br />
- Password: <input style="password" name="pass"><br />
- <input type="submit" value="Login!" name="submit">
- </form>
- ';
- }
- >
- <html>
- <head>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement