Thank you for your reply, but unfortunately it doesn't work for me.
I try to use it in a function like this:
Code: Select all
function CheckPass($Pass) {
define('IN_PHPBB', true);
$phpbb_root_path = 'forums/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.php');
include($phpbb_root_path . 'includes/functions_user.php');
include($phpbb_root_path . 'includes/ucp/ucp_register.php');
if(phpbb_check_hash(request_var($Pass, ""), $hash)) { echo "match"; }
}
CheckPass($_POST["Password"]);
and I receive the following error message:
The config.php file could not be found.
Click here to install phpBB
What am I doing wrong? Is it possible to use it inside a function?