Linje fejl 72
Hvad kan skyldes denne linje fejl.Parse error: parse error in C:\Programmer\Apache Group\Apache2\htdocs\websted\admin\test.php on line 72
<?php
session_start();
require_once('../Connections/cms.php');
$user = $_SESSION['MM_Username'];
$query = mysql_query("select * from brugere WHERE brugernavn = '$user'") or die (mysql_error());
$row=mysql_fetch_array($query);
if ($row['adgang'] != "2") {
echo "<p style=\"color: #ff0000; margin: 0px; font-weight: bold;\">Du har ikke adgang hertil</p>";
exit;
}else{
/**
* @version $Id: index.php 8701 2006-10-01 19:10:07Z stingrey $
* @package
* @copyright Copyright (C) 2006 All rights reserved.
*/
// ** Logout the current user. **
$logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
$logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
//to fully log out a visitor we need to clear the session varialbles
session_unregister('MM_Username');
session_unregister('MM_UserGroup');
$logoutGoTo = "../index.php";
if ($logoutGoTo) {
header("Location: $logoutGoTo");
exit;
}
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Skabelon</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../css/styles.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
color: #666666;
font-weight: bold;
font-size: 12px;
}
-->
</style>
</head>
<body>
<table width="100%" border="0" class="layout">
<tr>
<td colspan="2" class="top style1">Administrationsområde</td>
</tr>
<tr>
<td class="top1"> </td>
<td class="top1"> </td>
</tr>
<tr>
<td class="left"> </td>
<td class="middle"> </td>
</tr>
</table>
</body>
</html>
line 72
