Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a7182265/public_html/report.php on line 223
Har prøvet at rode med det, men der kommer en fejl sidst i sætningen:Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a7182265/public_html/report.php on line 223
kode
<?php
/**
* The report.php is the error reporting and loggin page
*
* PHP version 5
*
* @category Application
* @package UserProfile
* @author Sakthivel Ganesan <sg@capjo.com>
* @author Sasikumar Periyasamy <sasi@capjo.com>
* @copyright 2011 Team Capjo
* @license http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ code canyon license
* @version SVN: <1.0>
* @link http://www.capjo.com
*/
// Images are from Crystal clear icons
// Website: http://www.everaldo.com
$addedStyle='';
$notifymsg='';
if ($_GET['ec']=='nocookie') {
$addedStyle="background-color: #dd8888;";
$notifymsg="Your cookie functionality is disabled";
} else if ($_GET['ec']=='ntok') {
$addedStyle="background-color: #dd8888;";
$notifymsg="Admin is configuring the system, We will be back in short";
} else if ($_GET['ec']=='nosrv') {
$addedStyle="background-color: #dd8888;";
$notifymsg="Not able to connect to Database server. Check Config.php.";
} else if ($_GET['ec']=='nodb') {
$addedStyle="background-color: #dd8888;";
$notifymsg="Not able to connect to Database. Check if DB exists.";
} else if ($_GET['ec']=='bip') {
$addedStyle="background-color: #dd8888;";
$notifymsg="Your IP has been temporarily gray listed";
} else if ($_GET['ec']=='noip') {
$addedStyle="background-color: #dd8888;";
$notifymsg="Your request is in a different format";
} else if ($_GET['ec']=='forbid') {
$addedStyle="background-color: #dd8888;";
$notifymsg="You need to upgrade your account to do this operation";
} else if ($_GET['ec']=='new') {
$newuser='';
if (isset ($_COOKIE['newuser'])) {
$newuser=$_COOKIE['newuser'];
setcookie('newuser', time()-3600);
}
$addedStyle="background-color: #298A08;";
$notifymsg="Welcome <b>$newuser</b>,
Please proceed with
<a style=\"font-family:arial;font-size:11px;text-decoration:none;color:#e4e4e4;\"
href=\"index.php\">log in</a>";
// Sakthi Changes - Oct 9 2011 - Starts
// One of the features that were asked for
// Admin should approve users who are all signed up
} else if ($_GET['ec']=='newwithapproval') {
$newuser='';
if (isset ($_COOKIE['newuser'])) {
$newuser=$_COOKIE['newuser'];
setcookie('newuser', time()-3600);
}
$addedStyle="background-color: #298A08;";
$notifymsg="Welcome <b>$newuser</b>, Admin will approve your access.";
} else if ($_GET['ec']=='signouterror') {
$addedStyle="background-color: #298A08;";
$notifymsg="You have been signed out successfully!";
} else if ($_GET['ec']=='emailerror') {
$addedStyle="background-color: #298A08;";
$notifymsg="Oops, Something went wrong while we tried sending email";
} else if ($_GET['ec']=='emailsent') {
$newuser='';
if (isset ($_COOKIE['newuser'])) {
$newuser=$_COOKIE['newuser'];
setcookie('newuser', time()-3600);
}
// Demo code
$validateurl='';
// Demo code
$addedStyle="background-color: #298A08;";
$notifymsg="Welcome <b>$newuser</b>,
An email has been sent to you.";
// Demo code
if (isset($_COOKIE['validateurl'])) {
$validateurl=$_COOKIE['validateurl'];
setcookie('validateurl', time()-3600);
$notifymsg="Welcome <b>$newuser</b>,
An email has been sent to you.<br/><br/>
Activation link that was sent to your email is below:
<br/><a href=\".$validateurl.\">Click to activate user</a>";
}
// Demo code
// Sakthi Changes - Oct 9 2011 - Ends
} else if ($_GET['ec']=='uemailerror') {
$addedStyle="background-color: #298A08;";
$notifymsg="Email server is not configured properly.";
} else {
$addedStyle="background-color: #dd8888;";
$notifymsg="Your request is in an invalid format";
}
echo
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
\"http://www.w3.org/TR/html4/loose.dtd\">
<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">
<META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\">
<html>
<head>
<style type=\"text/css\">
#msg{
position: relative;
left:0px;
top:5px;
}
body {
background : black;
font-family : arial,sans-serif;
font-size : 100%;
margin-top : 10px;
margin-right : 20px;
margin-bottom : 10px;
margin-right : 20px;
padding : 0;
}
h1 {font-size:100%;margin-top:10px;margin-left:10px;}
#banner h1 {
margin : 0;
margin-bottom : 10px;
color : #000;
background : #858593;
font-size : 24px;
line-height:100%;
border : 1px solid black;
padding-top : 5px;
padding-bottom : 5px;
padding-left : 10px;
}
#leftcol {
margin-top : 0;
width : 170px;
float : left;
background : #858593;
border : 1px solid black;
height : 100px;
}
#indhold {
margin-top : 5px;
margin-bottom : 10px;
margin-left : 180px;
margin-right : 310px;
border : 1px solid black;
background : #858593;
height : 395px;
}
#rightcol {
position:absolute;
right : 20px;
top : 56px;
width : 300px;
height : 240px;
border : 1px solid black;
background : #858593;
}
#footer {
text-align : left;
}
#footer h1 {
color : #C5010A;
background : #858593;
border : 1px solid black;
padding : 5px 0px 5px 10px;
margin : 10px 0;
}
/*
#rightcol {
position : absolute;
right : 20px;
top : 10px;
width : 140px;
height : 350px;
border : 1px solid black;
background : #858593;
}
#leftcol {
margin-top : 0;
width : 170px;
float : left;
background-color : #ddd;
border : 1px solid black;
height : 350px;
}
#indhold {
margin-top : 5px;
margin-bottom : 10px;
margin-left : 180px;
margin-right:160px;
border : 1px solid black;
background : #060606;
height : 350px;
}
h1 {
margin-top:20px;
margin-right:auto;
margin-bottom:auto;
margin-left:20px;
}
</style>
</head>
<body>
<div id="banner">
<h1>Banner</h1>
</div>
<div id="leftcol">
</div>
<div id="content">
</div>
<div id="indhold">
<h1>Indhold</h1>
</div>
<div id="rightcol">
<h1></h1>
</div>
<div id="footer">
<h1>© <?PHP echo date("Y"); ?> - wingisites.com</h1>
</div>
</body>
</html>