Parse error: parse error, unexpected $, expecting ']' in /www/htdocs/kvoko/cms/include/inc_lib/checkmessage.inc.php on line 27
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/kvoko/cms/include/inc_lib/checkmessage.inc.php:27) in /www/htdocs/kvoko/cms/phpwcms.php on line 99
a header erro can mean there is an http output before a php output such as a space or new line where there shouldn't be.
here is my checkmessages.inc.php, try copying this over your file make sure you select all then paste to avoide any spaces and empty lines.
then let us know how you got on.
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2003 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
//Check is actual user has new messages waiting
$sql = "SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_message WHERE msg_uid=".$_SESSION["wcs_user_id"]." AND msg_read=0;";
if($check = mysql_query($sql, $db)) {
$wcs_msg_waiting = ($row = mysql_fetch_row($check)) ? $row[0] : 0;
} else {
$wcs_msg_waiting = 0;
}
if($wcs_msg_waiting) {
/*
$wcsnav["navspace1"] = "<img src='img/nav/new_mail_r1_c1.gif' height=15 width=8>".
"<a href='phpwcms.php?do=messages'>".
"<img src='img/nav/new_mail_r1_c2.gif' width=69 height=15 name='newmailpic0' border=0 ".
"title='".$wcs_msg_waiting." unread messages waiting!' ".
"onMouseOver='newmailpic0.src=\"img/nav/new_mail_r1_c2.gif\"' ".
"onMouseOut='newmailpic0.src=\"img/nav/new_mail_r1_c2.gif\"'></a>";
*/
$wcsnav["navspace1"] = "<a href=\"phpwcms.php?do=messages\" title=\"".$wcs_msg_waiting." new messages waiting!\">".
"<img src=\"img/symbole/new_mail.gif\" border=\"0\"></a>";
$new_mail_waiting = 1;
}
?>