Thanks again.
Now I can access the page, but the problems are either:
I got "Fatal error: Class 'XenForo_Application' not found in /home/myusername/domains/mydomain/public_html/forum/test.php on line 10" when the code was:
require($filedir . 'library/XenForo/Autoloader.php')...
Thanks for your support.
Here is my script:
<?php
$username = $_POST['username'];
$password = $_POST['password'];
$password = sha1(sha1($password) . salt);
$con = mysql_connect("localhost","*****","*****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}...
I used:
sha1(sha1($password) . salt)
Was this correct?
They're running on the same server.
The error was an Internal error. Seemed like the server could not define SHA256. So, the stored passwords should be SHA1-encrypted, shouldn't they?
How does XenForo Password Encryption work?
I'm trying to code a PHP script to check whether or not the input password matches with the password stored in the database.
I've tried [' sha1(sha1($password) . salt) '] but didn't work.
What exactly the formula is?