Ciao a tutti.. ho scaricato uno script ho configurato il database e quando faccio login mi spunta questo: Fatal error: main() [function.require]: Failed opening required '../Connections/globalarea.php' (include_path='.:') in /membri/universal3000/areariserv/login.php on line 1. Qui metto il pezzo di codice
Codice HTML:
<?php require_once('../Connections/globalarea.php'); ?>
<?php
// *** Validate request to login to this site.
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) {
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');
}
if (isset($_POST['username'])) {
$loginUsername=$_POST['username'];
$password=$_POST['password'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "privata.php";
$MM_redirectLoginFailed = "errore.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_globalarea, $globalarea);
$LoginRS__query=sprintf("SELECT username, password FROM accesso WHERE username='%s' AND password='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $globalarea) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup;
Se potete risolvere x favore.. Grazie!!