Ciao, lanciando questo file php mi esce questo errore:
Parse error: syntax error, unexpected $end in C:\Program Files\EasyPHP-5.3.8.0\www\IbsRE\admin\index.php on line 113 (oltretutto la riga 113 non esiste, il file finisce alla 112)
ma non riesco a capire da cosa derivi....qualcuno può aiutarmi per favore, sto diventanto matto
Grazie
Carlo
<?php
$includeDirs = array ( "includes/", "../includes/" );
require ( "../includes/config.php" );
require ( "../includes/CGI.php" );
require ( "../includes/SQL.php" );
$cgi = new CGI ();
$sql = new SQL ( $DBusername, $DBpassword, $server, $database );
if ( ! $sql->isConnected () )
{
die ( $DatabaseError );
}
require ( "includes/Auth.php" );
$auth = new Auth ( $cgi, $sql, $admin_table );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Property Management Admin Area</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="1" cellspacing="0" width="760" align="center">
<tbody>
<tr>
<td bgcolor="#333333"> <?PHP include "header.php"; ?>
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody>
<tr>
<td colspan="4">
<table width="90%" cellpadding="0" cellspacing="0">
<tr>
<td valign="top">
<h2 align="left">[img]images/spacer.gif[/img]Property Management
Admin Area</h2>
<table width="95%" cellpadding="0" cellspacing="1" align="center">
<tr>
<td> <?PHP
if ( $auth->getUserId () )
{
print "
<font size=\"+1\" color=\"#CC0000\">Welcome</font>
You have now logged in to your Property Management Area
Please <a href=\"main.php\">click here</a> to continue to manage your properties.";
print "
</TD>
</TR>
</TABLE>";
}
else
{
?>
To login and manage your Properties, please enter your username and password below.</p></td>
</tr>
</table>
<table width="500" cellpadding="5" cellspacing="1" align="center">
<tr valign="middle">
<td bgcolor="#F3F3F3" valign="middle" align="center" height="90">
<form method="post">
<input name="op" type="hidden" value="adminlogin" />
<table width="90%" cellpadding="1" cellspacing="1">
<tr>
<td align="right">
Username:</td>
<td align="left"><input type="text" name="username" size="35" maxlength="100" /></td>
</tr>
<tr>
<td align="right">
Password:</td>
<td align="left">
<input type="password" name="password" size="20" maxlength="20" />
<input type="submit" value="Click to Login" /></td>
</tr>
</table>
</form></td>
</tr>
</table>
<?
}
?></td>
</tr>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> <?PHP include "footer.php"; ?>
</body>
</html>