Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support
Author Message
weardo
New Member
New Member



Joined: Dec 15, 2004
Posts: 1

PostPosted: Wed Dec 15, 2004 2:39 pm Reply with quote

this is what is see,when i post a massages

Quote:
Parse error: syntax error, unexpected T_PRIVATE, expecting ']' in C:\*****\******\test\addtogb.php on line 26

c/p line 26 and.....
Code:
}

/* This next line adds the private variable [back] to the post array. This is needed because I had to rename private to private_msg in index.php - add section. In NN6.x, the word private is apparently reserved and was causing a javascript error. This code caused the least amount of pain to remedy the situation */
$HTTP_POST_VARS[private] = $HTTP_POST_VARS[private_msg];
if ($HTTP_POST_VARS[private]!="on") unset($HTTP_POST_VARS[private]);
if ($HTTP_GET_VARS['tmp_theme']>'') $theme = $HTTP_GET_VARS['tmp_theme'];
if ($HTTP_GET_VARS['tmp_lang']>'') $language = $HTTP_GET_VARS['tmp_lang'];
if (empty($name)) {
   header("Location: $root_document?action=view&tmp_theme=$theme&tmp_lang=$language$loginLink");
   die();
}


plz help me thx Smile
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Wed Dec 15, 2004 3:58 pm Reply with quote

Try changing
Code:
$HTTP_POST_VARS[private] = $HTTP_POST_VARS[private_msg]; 

if ($HTTP_POST_VARS[private]!="on") unset($HTTP_POST_VARS[private]);
to
Code:
$HTTP_POST_VARS['private'] = $HTTP_POST_VARS['private_msg']; 

if ($HTTP_POST_VARS['private']!="on") unset($HTTP_POST_VARS['private']);
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©