Prueba esto:
config.php
archivo.php
Código PHP:
Ver originalinclude "config.php";
include("../../../foro/includes/functions.php");
$result=mysql_query("select * from foro_users where username ='".$usuario."'",$link); if(!phpbb_check_hash((string) $password, $row['user_password'])){
header ("Location: index.php?error=si"); }else{
$_SESSION["Aut"]= $row['username'];
header ("Location: Autentificado.php"); }