Code:
PHP Code:
<?phprequire('config.php');if($maintenance_mode == "1"){ include('maintenance.php'); exit();} else { if($construction_mode == "1"){ include('construction.php'); exit(); } else {?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>trial1 - anasianscreations</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css" media="screen"/>
</head>
<body>
<!--ContentHere-->
</body>
</html>
I want to have this part in a file called: 'check.php'
PHP Code:
<?php
require('config.php');
if($maintenance_mode == "1"){
include('maintenance.php');
exit();
} else {
if($construction_mode == "1"){
include('construction.php');
exit();
} else {
?>
but when I do an include, it gives me an error that an unexpected end, since I thinks I didn't finish the end brackets; what can I do to fix this?