Author |
Message |
11/08/2005 09:36:52
|
GarySmith
Beginner
Joined: 03/05/2005 04:04:44
Messages: 21
Offline
|
Hi,
I haven't got any entries in a long time and when I just tried to sign the guestbook I got this error:
Parse error: parse error, unexpected ':' in /home/mtmestas/public_html/guestbook/addentry.php on line 27
I looked at the line but not sure what the problem is.
This is line 27, just the word "Code:"
Code:
Can you help?
Thanks.
<?php
$include_path = dirname(__FILE__);
include_once $include_path."/admin/config.inc.php";
include_once $include_path."/lib/$DB_CLASS";
include_once $include_path."/lib/image.class.php";
include_once $include_path."/lib/template.class.php";
include_once $include_path."/lib/vars.class.php";
include_once $include_path."/lib/add.class.php";
$gb_post = new addentry($include_path);
if (isset($HTTP_POST_VARS["gb_action"])) {
Code:
$gb_post->bottest = (isset($HTTP_POST_VARS["bottest"])) ? $HTTP_POST_VARS["bottest"] : '';
$gb_post->name = (isset($HTTP_POST_VARS["gb_name"])) ? $HTTP_POST_VARS["gb_name"] : '';
$gb_post->email = (isset($HTTP_POST_VARS["gb_email"])) ? $HTTP_POST_VARS["gb_email"] : '';
$gb_post->url = (isset($HTTP_POST_VARS["gb_url"])) ? $HTTP_POST_VARS["gb_url"] : '';
$gb_post->comment = (isset($HTTP_POST_VARS["gb_comment"])) ? $HTTP_POST_VARS["gb_comment"] : '';
$gb_post->location = (isset($HTTP_POST_VARS["gb_location"])) ? $HTTP_POST_VARS["gb_location"] : '';
$gb_post->icq = (isset($HTTP_POST_VARS["gb_icq"])) ? $HTTP_POST_VARS["gb_icq"] : '';
$gb_post->aim = (isset($HTTP_POST_VARS["gb_aim"])) ? $HTTP_POST_VARS["gb_aim"] : '';
$gb_post->gender = (isset($HTTP_POST_VARS["gb_gender"])) ? $HTTP_POST_VARS["gb_gender"] : '';
$gb_post->userfile = (isset($HTTP_POST_FILES["userfile"]["tmp_name"]) && $HTTP_POST_FILES["userfile"]["tmp_name"] != "") ? $HTTP_POST_FILES : '';
$gb_post->user_img = (isset($HTTP_POST_VARS["gb_user_img"])) ? $HTTP_POST_VARS["gb_user_img"] : '';
$gb_post->preview = (isset($HTTP_POST_VARS["gb_preview"])) ? 1 : 0;
$gb_post->private = (isset($HTTP_POST_VARS["gb_private"])) ? 1 : 0;
echo $gb_post->process($HTTP_POST_VARS["gb_action"]);
} else {
echo $gb_post->process();
}
?>
|
|
11/08/2005 12:18:58
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Don't know where that code came from.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
11/08/2005 15:55:12
|
GarySmith
Beginner
Joined: 03/05/2005 04:04:44
Messages: 21
Offline
|
It's this file....
public_html/guestbook/addentry.php
|
|
11/08/2005 16:10:51
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
I know that I meant I don't know where the Code: came from. I posted the correct contents for that file above.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
11/08/2005 16:28:44
|
GarySmith
Beginner
Joined: 03/05/2005 04:04:44
Messages: 21
Offline
|
Hello Carbon,
I replaced the code with your and still get the same error.
|
|
11/08/2005 18:12:48
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Sounds like the replacement didn't take. Check the file again.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
11/08/2005 18:25:46
|
GarySmith
Beginner
Joined: 03/05/2005 04:04:44
Messages: 21
Offline
|
Carbon,
Nope...I've changed it 3 times now and still get same error code. I have to leave. I'll PM you the login and password in case you have a chance to look.
Thanks
|
|
|