Heey!
I'm creating a Webinterface to control the bot vía Web with PHP and showing some things.
I do this for fun and testing and after I finished it I'll share this with you
Actually it's germany only for developing but I'll add english translation soon!
Here you can take a "first look" ( Control is disabled
)
http://xkamikaze.de/tsbot/control/
So here me question:
I do the login to the bot via php but with hard coded data like this:
But I want that the user have to login. Thats the form:
So.. Lets say they'll enter (User -> Paul / Pass -> 123) but if password is wrong he still log in. So how I can check/verify the entered password?
I know the data is stored in C:\SinusBot\data\db\xxxxxx.sqlite
But the passwords are crypted so i cant compare them with entered password.
Any Ideas?
You can answere in english and german
I'm creating a Webinterface to control the bot vía Web with PHP and showing some things.
I do this for fun and testing and after I finished it I'll share this with you

Actually it's germany only for developing but I'll add english translation soon!
Here you can take a "first look" ( Control is disabled

http://xkamikaze.de/tsbot/control/
So here me question:
I do the login to the bot via php but with hard coded data like this:
PHP:
<?php
include("sinusbot.class.php");
// Domain und Port zum Webinterface
$sinusbot = new SinusBot("http://xkamikaze.de:8087");
// Login-Name und Passwort zum Webinterface
$sinusbot->login("user", "pass");
// Select Bot by UUID
$sinusbot->selectInstance("1234567890");
?>
But I want that the user have to login. Thats the form:
HTML:
<form action="?login=1" method="post">
Benutzer:<br>
<input type="Benutzer" size="20" maxlength="250" name="benutzer" /><br><br>
Passwort:<br>
<input type="password" size="20" maxlength="250" name="passwort" /><br>
<input type="submit" value="Login">
</form>
So.. Lets say they'll enter (User -> Paul / Pass -> 123) but if password is wrong he still log in. So how I can check/verify the entered password?
I know the data is stored in C:\SinusBot\data\db\xxxxxx.sqlite
But the passwords are crypted so i cant compare them with entered password.
Any Ideas?
You can answere in english and german
