Author |
Message |
|
Back in business, you are the man !!!!!!!!!!!!!!
|
|
|
I get this error
Parse error: parse error, unexpected T_ELSEIF in /backup/gilbertm/public_html/gilbertmguestbook/lib/add.class.php on line 198
Here is what line 198 looks like, starting from 196-205
196if ($this->name == "") { {
197return $this->db->gb_error($this->db->LANG["ErrorPost1"]);
198} elseif (strlen($this->comment)<$this->db->VARS["min_text"] || strlen($this->comment)>$this->db->VARS["max_text"]) {
199return $this->db->gb_error($this->db->LANG["ErrorPost3"]);
200} elseif ($this->bottest == '') {
201 return $this->db->gb_error($this->db->LANG["ErrorPost12"]);
202} elseif (strtolower($this->bottest) !=
203strtolower($this->bottestanswer)) {
204 return $this->db->gb_error($this->db->LANG["ErrorPost13"]);
205} else {
I appreciate all your efforts Carbo!!. Thanks a lot
|
|
|
var $bottestanswer = 'armadillo'; // this is the answer to the
question. It must contain no '
var $email = '';
|
|
|
Okay, some errors are now gone after using PSPad, like you suggested.
This is the one I have trouble with when I try to add an entry
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /backup/gilbertm/public_html/gilbertmguestbook/lib/add.class.php on line 19
I had made a backup copy of my server english.php file. which I edited with PSPad, looks like it worked. I might have messed up all the others whilst editing in C-Panel. Can someone get me a copy ??
|
|
|
yes, C-Panel
Code is like this
<?php
# General
$LANG["metatag"] = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">";
$LANG["BookMess1"] = "HTML code is disabled";
$LANG["BookMess2"] = "HTML code is enabled";
$LANG["BookMess3"] = "Sign the Guestbook";
$LANG["BookMess4"] = "Back to Guestbook";
$LANG["BookMess5"] = "Administration";
$LANG["BookMess6"] = "Thank you for stopping by my site. Here you can leave your mark.";
$LANG["BookMess7"] = "Comments";
$LANG["BookMess8"] = "Back to submit form";
$LANG["BookMess9"] = "Write a comment for this guestbook entry.";
$LANG["BookMess10"] = "<u>Thank you for signing the guestbook.</u><br><br>Your entry was added successfully! You should be transfered back to the guestbook in 2 seconds.";
$LANG["EmailAdminSubject"] = "New guestbook entry";
$LANG["EmailGuestSubject"] = "Thank you for signing the guestbook";
$LANG["AltIP"] = "IP logged";
$LANG["AltICQ"] = "Send ICQ Message";
$LANG["AltEmail"] = "Send E-mail";
$LANG["AltUrl"] = "View Web Page";
$LANG["AltAim"] = "Instant Messenger";
$LANG["AltCom"] = "Write a comment";
# Form
$LANG["FormMess1"] = "Fill out the blanks below to sign the guestbook. After you submit your entry, you will be returned to the guestbook. The blanks with (*) represent required fields.";
$LANG["FormMess2"] = "Smilies are ON";
$LANG["FormMess3"] = "AGCode is ON";
$LANG["FormMess4"] = "Show legend";
$LANG["FormMess5"] = "Below is your guestbook entry.";
$LANG["FormMess6"] = "AG Code is OFF";
$LANG["FormMess7"] = "Smilies are OFF";
$LANG["FormName"] = "Name";
$LANG["FormEmail"] = "E-mail";
$LANG["FormLoc"] = "Location";
$LANG["FormPic"] = "Picture";
$LANG["FormUrl"] = "Homepage";
$LANG["FormGender"] = "Gender";
$LANG["FormMale"] = "Male";
$LANG["FormFemale"] = "Female";
$LANG["FormMessage"] = "Your Message";
$LANG["FormSelect"] = "Guestbook";
$LANG["FormUser"] = "Username";
$LANG["FormPass"] = "Password";
$LANG["FormReset"] = "Reset";
$LANG["FormSubmit"] = "Submit";
$LANG["FormPreview"] = "Preview";
$LANG["FormBack"] = "Go Back";
$LANG["FormEnter"] = "Guestbook - Administration Centre<br>Before you can proceed you have to enter a valid name and password!";
$LANG["FormButton"] = "Go";
$LANG["FormPriv"] = "Private message";
# Navigation Bar
$LANG["NavTotal"] = "Total Records:";
$LANG["NavRecords"] = "Records Viewed Per Page:";
$LANG["NavPrev"] = "Previous Page";
$LANG["NavNext"] = "Next Page";
# Post Errors
$LANG["ErrorPost1"] = "You forgot to fill in the Name field. Please correct it and re-submit.";
$LANG["ErrorPost2"] = "You forgot to fill in the Message field. Please correct it and re-submit.";
$LANG["ErrorPost3"] = "Your message is either too short or too long. Please correct it and re-submit.";
$LANG["ErrorPost4"] = "One of the input fields does not seem to be valid.";
$LANG["ErrorPost5"] = "Guestbook - Error";
$LANG["ErrorPost6"] = "Image file is too big";
$LANG["ErrorPost7"] = "Wrong image file type";
$LANG["ErrorPost8"] = "Sorry! We have flood-control activated. Please try again after a period of time elapses!";
$LANG["ErrorPost9"] = "Your IP adress is banned!";
$LANG["ErrorPost10"] = "Your message contains some invalid words. Please correct it and re-submit.";
$LANG["ErrorPost11"] = "You forgot to fill in the Comment field. Please correct it and re-submit.";
$LANG["ErrorPost12"] = "You forgot to fill in the Human Verification field. Please correct it and re-submit.";
$LANG["ErrorPost13"] = "The Human verification answer you supplied is wrong. Please correct it and re-submit.";
$LANG["PassMess1"] = "Please enter a valid username and password:";
$LANG["PassMess2"] = "Invalid username or password. Please try again.";
$LANG["PassMess3"] = "Sorry, but the password you entered was not correct.";
# Days
$weekday[0] = "Sunday";
$weekday[1] = "Monday";
$weekday[2] = "Tuesday";
$weekday[3] = "Wednesday";
$weekday[4] = "Thursday";
$weekday[5] = "Friday";
$weekday[6] = "Saturday";
# Months
$months[0] = "January";
$months[1] = "February";
$months[2] = "March";
$months[3] = "April";
$months[4] = "May";
$months[5] = "June";
$months[6] = "July";
$months[7] = "August";
$months[8] = "September";
$months[9] = "October";
$months[10] = "November";
$months[11] = "December";
?>
|
|
|
open templates/form.php and find
from the human verification mod,
where do I find this file?, I will try it once I get home...........
|
|
|
My guestbook is at http://www.gilbertmatare.com/gilbertmguestbook/, I have spammers spraying it with all kinds of garbage. I have upgraded to 2.3 after my old 2.2 was defaced and hosed down by spammers. This guestbook business is just not worth all the trouble one has to do, to keep it away from idiots. Why is it so insecure in the first place??. Can someone suggest a trouble free guestbook instead of this one??
If you decide to help me please be explicit and dont use too much jargon. How do I patch this, I prefer if you dont send me to some page where I dont understand whats being said. I am very frustrated right now and ready to explode........LOL I am just a green noobie as far as php goes.
|
|
|
Okay I will try to contact him and let you know where the problem was ,.....
|
|
|
Script deleted
|
|
|
Thanks Carbo,,,I have a website at
www.gilbertmatare.com/signup.php I host church songs I let people download from my site. I needed to control bandwidth, so a friend wrote me a php script to force them to register before they can download.. Previuosly they had to email me a password and username then I would enter it manually into my password folder in Cpanel.
The script wont work now, and I have no clue what to do.
I dont know if its even allowed to post this but if you feel sorry to want to help me I can send you all the other details to my site via PM!!!
|
|
|
Sorry this is not even connected to my thread. I am retarded !!as far as php and mysql, what can this error possibly mean.
Warning: mysql_connect(): Access denied for user: 'XXXXXXX@localhost' (Using password: YES) in /backup/XXXXXX_html/user_config.php on line 26
Error connecting
|
|
|
whats wrong with these Turkish hackers, they are everywhere....
|
|
|
I have HTML disabled, though. I think I cant recover it anyway because I reinstalled the new one over the old and gave it the same folder so as not to compromise my links on the site that I manually did with FP. Well I am just a noobie to webpage design.
The link is
|
|
|