Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Parse error: english.php on line 25

  1. #1
    Join Date
    May 2005
    Posts
    21

    Default Parse error: english.php on line 25

    Hello everybody. I have been using this site for almost a year now with no problems. All the sudden one day I get an error on the administrative side of my site. When trying to login to http://www.sharonrooney.com/admin I get this error.

    Parse error: syntax error, unexpected T_STRING in /home/sharcom/public_html/include/language/english.php on line 25

    I have not seen anything in the forums about this but maybe someone has an idea about why this would pop up after everything has been going well for so long. Thanks guys.

  2. #2
    Join Date
    May 2005
    Posts
    21

    Default Re: Parse error: english.php on line 25

    I should have added more information to my post, sorry guys. I downloaded the english.php file to have a look at it and everything looked normal. I will post it below for all to see. After looking into my account a bit more I logged into my cpanel for my site and noticed an error there too, I am not sure if it is related but it could be. The error logged in the cpanel is:

    [Mon Jul 31 15:27:14 2006] [error] [client 66.249.72.105] File does not exist: /home/sharycom/public_html/robots.txt
    [Mon Jul 31 14:26:05 2006] [error] [client 71.79.232.26] File does not exist: /home/sharycom/public_html/favicon.ico

    Here is the contents of the english.php file.

    <?php



    //ENGLISH LANGUAGE FILES

    // built by jon roig (jon@jonroig.com)



    $lang = array();



    //This needs to match the listing type that you are using as Rental

    $lang['rental'] = "Rental";

    //GLOBAL TERMS

    $lang['Any_Agent'] = "Any Agent";

    $lang['search_by_agent'] = "Agent:";
    //Below is the line in error
    $lang['browse_all_rentals'] = "Browse All Rentals";

    $lang['next_page'] = "Next Page";

    $lang['prev_page'] = "Previous Page";

    $lang['there_are_currently'] = "There are currently";

    $lang['there_is_currently'] = "There is currently";

    $lang['users_listed'] = " users listed.";

    $lang['this_is_page'] = "This is page";

    $lang['of'] = "of";

    $lang['user_name'] = "Name";

    $lang['user_password'] = "Password";

    $lang['user_email'] = "Email";

    $lang['user_notes'] = "Notes";

    $lang['required_form_text'] = "Items marked <span class="required">*</span> are required";

    $lang['has_been_deleted'] = "has been deleted.";

    $lang['back_button_text'] = "Back";

    $lang['passwords_cannot_be_blank'] = "Passwords cannot be blank.";

    $lang['has_been_updated'] = "has been updated.";

    $lang['required_fields_not_filled'] = "You forgot to fill out one of the required fields.";

    $lang['update_button'] = "Update";

    $lang['listings'] = "listings";

    $lang['listing'] = "listing";

    $lang['again'] = "Again";

    $lang['delete'] = "Delete";

    $lang['email_example'] = "example@youraddress.com";

    $lang['alert_site_admin'] = "There's been a problem -- please contact the <a href="mailto:$config[admin_email]">site administrator</a>";

    $lang['dont_forget_http'] = "don't forget the http://";

    $lang['login'] = "Log In";

    $lang['you_are_logged_out'] = "You are logged out";

    $lang['edit_images'] = "Edit Images";

    $lang['images'] = "Images";

    $lang['image'] = "Image";

    $lang['are_you_sure_you_want_to_delete'] = "Are you sure you want to delete?";

    $lang['delete_user'] = "Are you sure you want to delete this user and all the listings / records entered by them?";

    $lang['thumbnail'] = "Thumbnail";

    $lang['height'] = "Height";

    $lang['width'] = "Width";

    $lang['size'] = "Size";

    $lang['you_may_now_login'] = "You may now login";

    $lang['you_may_now_edit_your_listing'] = "You may now edit your listing";

    $lang['last_modifed'] = "Last Modified";

    $lang['listed_by'] = "Listed by";

    $lang['return_to_listing'] = "Return to Listing";

    $lang['this_listing_has_been_viewed'] = "This listing has been viewed";

    $lang['this_user_has_been_viewed'] = "This user has been viewed";

    $lang['times'] = "times";

    $lang['perhaps_you_were_looking_something_else'] = "Perhaps you were look for something else?";

    $lang['search_no_results'] = "Your search returned no results";

    $lang['that_match_search'] = "that match your search criteria";

    $lang['featured_listings'] = "Featured Listings";

    $lang['click_to_learn_more'] = "Click to learn more...";

    $lang['no_user_signup'] = "I'm sorry, but you are not allowed to make an account on this system. If you need an account, please <a href="mailto:$config[admin_email]">email the administrator</a>.";

    $lang['this_listing_is_not_yet_active'] = "This listing is not yet active";

    $lang['this_listing_is_not_active'] = "This listing is not active";

    $lang['expiration'] = "Expiration";

    $lang['preview'] = "Preview";

    $lang['search_listings'] = "Search Listings";

    $lang['per_week'] = "Per Week";



    //SAVE SEARCH AND FAVORITES LISTINGS LANGUAGE

    $lang['save_this_search'] = "Save this search";

    $lang['add_to_favorites'] = "Add to favorites";

    $lang['listing_added_to_favorites'] = "The listing has been added to your favorites list";

    $lang['listing_already_in_favorites'] = "This listing is already in your favorites list";

    $lang['no_listing_in_favorites'] = "You have not added any listing to your favorites yet";

    $lang['favorite_listings'] = "Favorite Listings";

    $lang['delete_from_favorites'] = "Delete from favorites";

    $lang['listing_deleted_from_favorites'] = "The listing has been deleted from the favorites list";

    $lang['saved_searches'] = "Saved Searches";

    $lang['search_already_in_saved_searches'] = "Warning: This search is already saved by you as ";

    $lang['search_title_already_in_saved_searches'] = "You have already saved a search having the same title. Please enter another title";

    $lang['search_added_to_saved_searches'] = "This search has been added to your Saved Searches";

    $lang['no_saved_searches'] = "You have not saved any searches yet";

    $lang['search_deleted_from_favorites'] = "The search has been deleted from your Saved Searches";

    $lang['delete_search'] = "Delete search";

    $lang['automated_email'] = "*** This is an automated email. Please do not reply to this ***";

    $lang['new_listing_notify'] = "New listing added to ";

    $lang['new_listing_notify_long'] = "A new listing has been added to your search ";

    $lang['click_on_link_to_view_listing'] = "Please click on the link below to view the listing:";

    $lang['new_listing_email_sent'] = "<br>Email sent to ";



    //MENU CHOICES -- CONNECTED TO THE USER TEMPLATE

    $lang['menu_new_user_account'] = "Create a New User Account";

    $lang['menu_user_login'] = "User Log-In";

    $lang['menu_user_browse_listings'] = "Browse Listings";

    $lang['menu_home'] = "Home";

    $lang['menu_saved_searches'] = "Saved Searches";

    $lang['menu_favorite_listings'] = "Favorite Listings";

    $lang['menu_search_rental_listings'] = "Search Rental Listings";

    $lang['menu_search_listings'] = "Search Listings";

    $lang['menu_land'] = "Land";

    $lang['menu_homes'] = "Homes";

    $lang['menu_farms'] = "Farms";

    $lang['menu_commercial'] = "Commercial";

    $lang['menu_view_agents'] = "View Agents";

    $lang['menu_about_us'] = "About Us";

    $lang['menu_contact_us'] = "Contact us";

    //ADMIN LOGIN LANGUAGE

    $lang['admin_challenge_phrase'] = "Please Enter Your Login Information";

    $lang[visitor_alert_phrase] = "You need an account to access this area of the site. If you do not have an account <a href="member_signup.php">click here for registration</a>.";

    $lang['admin_login_name'] = "Login Name";

    $lang['admin_password'] = "Password";

    $lang['priv_failure'] = "You do not have the required privledges to access this area!";

    $lang['login_failed'] = "That login/password combination is incorrect.";

    $lang['enter_your_email_address_for_pass'] = "Enter your address to get your password emailed to you:";



    //MENU CHOICE -- CONNECTED TO THE ADMIN TEMPLATE

    $lang['admin_menu_admin_options'] = "Admin Options";

    $lang['admin_menu_edit_members'] = "Edit Members";

    $lang['admin_menu_edit_agents'] = "Edit Agents";

    $lang['admin_menu_edit_listings'] = "Edit Listings";

    $lang['admin_menu_regular_options'] = "Regular Options";

    $lang['admin_menu_add_a_listing'] ="Add a Listing";

    $lang['admin_menu_edit_my_account'] = "Edit My Account";

    $lang['admin_menu_edit_my_edit_my_listings'] = "Edit My Listings";

    $lang['admin_menu_logout'] = "Log Out";

    $lang['admin_menu_form_editor_options'] = "Form Editor Options";

    $lang['admin_menu_edit_member_form'] = "Edit Member Form";

    $lang['admin_menu_edit_agent_form'] = "Edit Agent Form";

    $lang['admin_menu_edit_listings_template'] = "Edit Listings Template";

    $lang['admin_menu_list_favorites'] = "Favorite Listings";

    $lang['admin_menu_saved_searches'] = "Saved searches";

    $lang['member_editor_new'] = "New Member";

    $lang['agent_editor_new'] = "New Agent";

    $lang['admin_menu_mysql_backup'] = "Mysql Backup";



    //USER EDITOR

    $lang['user_editor_user_number'] = "User Number";

    $lang['user_editor_modify_user'] = "Modify User";

    $lang['user_editor_delete_user'] = "Delete User";

    $lang['create_new_user'] = "Create New User";

    $lang['user_editor_new'] = "New User";

    $lang['user_editor_not_visible'] = "Not visible to users";

    $lang['user_editor_can_edit_forms'] = "Can Edit Forms";

    $lang['user_editor_isAdmin'] = "Admin";

    $lang['user_editor_isAgent'] = "Is an Agent";

    $lang['user_editor_isAdmin'] = "Admin";

    $lang['user_editor_form_edit'] = "Form Edit";

    $lang['user_editor_feature_listings'] = "Feature Listings";

    $lang['user_editor_view_logs'] = "View Logs";

    $lang['user_editor_moderator'] = "Moderator";

    $lang['user_editor_need_username'] = "You need to enter a user name.";

    $lang['user_editor_need_email_address'] = "You need to enter an email address.";

  3. #3
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default Re: Parse error: english.php on line 25

    Quote Originally Posted by haynest

    [Mon Jul 31 15:27:14 2006] [error] [client 66.249.72.105] File does not exist: /home/sharycom/public_html/robots.txt
    [Mon Jul 31 14:26:05 2006] [error] [client 71.79.232.26] File does not exist: /home/sharycom/public_html/favicon.ico
    The above has nothing to do with Open-realty. Google is your friend.


    This error:

    Quote Originally Posted by haynest

    Parse error: syntax error, unexpected T_STRING in /home/sharcom/public_html/include/language/english.php on line 25
    Means exactly what it says.. There is some php syntax error that was likely introduced when someone edited the english.php file. I don;t see anything blatently obvious in the version you pasted here. You may want to just replace it with an unmodified version of english.php if you can't find your syntax problem.
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  4. #4
    Join Date
    Nov 2004
    Location
    Sanlucar de Barrameda, Spain.
    Age
    50
    Posts
    484

    Default Re: Parse error: english.php on line 25

    You will find that this is in fact your line 25 with the \ removed
    Code:
    $lang['required_form_text'] = "Items marked <span class="required">*</span> are required";
    The correct version is:
    Code:
    $lang['required_form_text'] = "Items marked <span class=\"required\">*</span> are required";
    Any code within "xxx" needs to be like so \"xxx\", check the resrt of your file as it has other sections where this has been removed.

    The robots.txt is a file search engines look for to see where they can and cannot go.

    The favicon is the icon you see in the URL.

    Ian

  5. #5
    Join Date
    May 2005
    Posts
    21

    Default Re: Parse error: english.php on line 25

    Thank you for the suggestions guys. I wanted to say that I have never edited the english.php file. Thats why this was so error was so weird to me. I first tried to replace the english.php file with a new version. I know get a new error.

    Code:
    Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/sharycom/public_html/include/main.php on line 19
    I am going to try and check this one out myself but I have a feeling that this error has come up because the new english.php file has the closing ?> tag at the end where as the original english.php file did not?

    I appologize, I am editing this post here. I am going to go back with the old file and try ian_ok suggestion.

    With the new english.php file I can't even see my listings anymore! Maybe I will go back to the old one for a bit.



    Update! Using Ian_ok suggestion I no longer have errors coming from the english.php file. However the error,

    Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/sharycom/public_html/include/main.php on line 19


    is back. I am going to check out the main.php file for similar issues.

  6. #6
    Join Date
    May 2005
    Posts
    21

    Default Re: Parse error: english.php on line 25

    I wanted to confirm with you guys that I am editing the english.php file correctly. One of the strings that was giving me a parse error was

    Code:
    $lang['alert_site_admin'] = "There's been a problem -- please contact the <a href="mailto:$config[admin_email]">site administrator</a>";
    I corrected the error but putting the \ between "mailto:$config[admin_email]" like so

    Code:
    $lang['alert_site_admin'] = "There's been a problem -- please contact the <a href=\"mailto:$config[admin_email]\">site administrator</a>";
    This got rid of that error. Does this look correct?

    I think I need to put some more focus on this file. I think this is the key to solving the error that comes up as the main.php error.

    Here is the code for the first 50 lines of my main.php. Just for reference. I checked it out and the error is not on line 19 as the error message suggests.

    Code:
    <?php
    
    //Test
    
    ini_set("arg_separator.output", "&amp;");
    
    session_start('PHPSESSID');
    
    session_register("session");
    
    
    
    // HANDLE SECURITY
    
    function loginCheck($priv_level_needed)	
    
    //login authorization code
    
    //handles everything to do with users logging in
    
    {
    
    global $conn, $config, $lang;
    
    global $username, $userpassword, $userID;
    
    global $user_name, $user_pass, $admin_privs, $active, $isAgent, $editForms, $viewLogs, $featureListings, $moderator;
    
    
    
    if ($user_name == "" AND $username == "")
    
    {
    
    include("$config[template_path]/admin_top.html");
    
    echo "<form action="$PHP_SELF" method="post"><p>$lang[admin_challenge_phrase]</P>";
    
    echo "<p>$lang[admin_login_name]: <input type="text" name="user_name"></p> ";
    
    echo "<p>$lang[admin_password]: <input type="password" name="user_pass"></p><p><input type="submit" value="Log In"></form>";
    
    echo "<form action="".$config[baseurl]."/admin/emailpass.php"><p>$lang[enter_your_email_address_for_pass]<BR><input type=text name=email></p><p><input type=submit></p></form>";
    
    include("$config[template_path]/admin_bottom.html");
    
    exit;
    
    
    
    }

  7. #7
    Join Date
    May 2005
    Posts
    21

    Default Re: Parse error: english.php on line 25

    Update!

    After looking through Google and the forums for a couple of hours I have found a couple of things that do not add up. In many situations Ian_ok has corrected many people on their code. A lot of people do not have thier quotes preceded by a slash \. Many of the people are also saying that they have not changed their code. I found a specific forum that Ian_ok said that the main.php file should have a line around 19 that looks like the below code.

    Code:
    echo "<form action=\"$PHP_SELF\" method=\"post\"><p>$lang[admin_challenge_phrase]</P>";
    However, mine looks like this below.

    Code:
    echo "<form action="$PHP_SELF" method="post"><p>$lang[admin_challenge_phrase]</P>";
    Without the slashes and everythings been working fine for like a year now. And this is the original code was installed by the team at translucent technologies. Is there some kind of update that was made to the server or php that was just released that has made my code bad? Well enough of that I am just wondering what the proper approach should be to fix this problem? Am I going to have to go through every file and correct every line that does not have these slashes? What do you think guys? And just to let you know I definetely appreciate all of the help so far

  8. #8
    Join Date
    Nov 2004
    Location
    Sanlucar de Barrameda, Spain.
    Age
    50
    Posts
    484

    Default Re: Parse error: english.php on line 25

    I very much doubt it is server updates etc.

    I presume you have one copy on the server and another on your computer (please don't say NO!!!), well the one on the computer should perfect.

    The whole section for the eroor on your line 19 is below:
    Code:
    		if ($user_name == "" AND $username == "")
    		{
    			include("$config[template_path]/admin_top.html");
    			echo "<form action=\"$PHP_SELF\" method=\"post\"><p>$lang[admin_challenge_phrase]</P>";
    			echo "<p>$lang[admin_login_name]: <input type=\"text\" name=\"user_name\"></p> ";
    			echo "<p>$lang[admin_password]: <input type=\"password\" name=\"user_pass\"></p><p><input type=\"submit\" value=\"Log In\"></form>";
    			echo "<form action=\"".$config[baseurl]."/admin/emailpass.php\"><p>$lang[enter_your_email_address_for_pass]<BR><input type=text name=email></p><p><input type=submit></p></form>";
    			include("$config[template_path]/admin_bottom.html");
    			exit;
    
    		}
    Ian

  9. #9
    Join Date
    May 2005
    Posts
    21

    Default Re: Parse error: english.php on line 25

    Thank you Ian. That bit of code you put in there helped me to go though the entire file and escape the rest of the quotes that needed to be escaped! I have another error that I came up after escaping the quotes.

    Code:
    Parse error: syntax error, unexpected $end in /home/sharycom/public_html/include/main.php on line 410
    Most people in the forums say that this means that an if statement was not closed, most likely a "}" ending bracket was not inserted. So this is what I found in my file.

    Code:
    if ($num == 1)
    
    {
    
    session_register("username");
    
    session_register("user_name");
    
    session_register("userpassword");
    
    session_register("user_pass");
    
    session_register("userID");
    
    session_register("featureListings");
    
    session_register("viewLogs");
    
    session_register("admin_privs");
    I thought this was my problem. So I went back into my file and inserted the curly bracket "}". No luck, the same error shows up, except the line number is changed to the line below the one I put the curly bracket on. I will paste my entire main.php file.

    Code:
    <?php
    
    //Test
    
    ini_set("arg_separator.output", "&amp;");
    
    session_start('PHPSESSID');
    
    session_register("session");
    
    
    
    // HANDLE SECURITY
    
    function loginCheck($priv_level_needed)	
    
    //login authorization code
    
    //handles everything to do with users logging in
    
    {
    
    global $conn, $config, $lang;
    
    global $username, $userpassword, $userID;
    
    global $user_name, $user_pass, $admin_privs, $active, $isAgent, $editForms, $viewLogs, $featureListings, $moderator;
    
    
    
    if ($user_name == "" AND $username == "")
    
    {
    
    include("$config[template_path]/admin_top.html");
    
    echo "<form action=\"$PHP_SELF\" method=\"post\"><p>$lang[admin_challenge_phrase]</P>";
    
    echo "<p>$lang[admin_login_name]: <input type=\"text\" name=\"user_name\"></p> ";
    
    echo "<p>$lang[admin_password]: <input type=\"password\" name=\"user_pass\"></p><p><input type=\"submit\" value=\"Log In\"></form>";
    
    echo "<form action=\"".$config[baseurl]."/admin/emailpass.php\"><p>$lang[enter_your_email_address_for_pass]<BR><input type=text name=email></p><p><input type=submit></p></form>";
    
    include("$config[template_path]/admin_bottom.html");
    
    exit;
    
    
    
    }
    
    elseif ($user_name != "" OR $username != "")
    
    {
    
    $sql_user_name = make_db_safe($user_name);
    
    $md5_pass = md5($user_pass);
    
    $md5_pass = make_db_safe($md5_pass);
    
    global $username, $userpassword, $userID, $user_name, $user_pass, $active, $isAgent, $editForms, $moderator;
    
    $sql = "SELECT * FROM " . $config[table_prefix] . "UserDB WHERE user_name=$sql_user_name and user_password=$md5_pass";
    
    
    
    $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
    
    $recordSet = $conn->Execute($sql);
    
    if ($recordSet === false)
    
    {
    
    log_error($sql);
    
    }
    
    
    
    $num = $recordSet->RecordCount();
    
    
    
    if ($num == 1)
    
    {
    
    session_register("username");
    
    session_register("user_name");
    
    session_register("userpassword");
    
    session_register("user_pass");
    
    session_register("userID");
    
    session_register("featureListings");
    
    session_register("viewLogs");
    
    session_register("admin_privs");
    
    session_register("active");
    
    session_register("isAgent");
    
    session_register("editForms");
    
    session_register("moderator");
    
    
    
    
    
    while (!$recordSet->EOF)
    
    {
    
    $userID = $recordSet->fields[ID];
    
    $username = $recordSet->fields[user_name];
    
    $userpassword = $recordSet->fields[user_password];
    
    $admin_privs = $recordSet->fields[isAdmin];
    
    $active = $recordSet->fields[active];
    
    $isAgent = $recordSet->fields[isAgent];
    
    $editForms = $recordSet->fields[canEditForms];
    
    $featureListings = $recordSet->fields[canFeatureListings];
    
    $viewLogs = $recordSet->fields[canViewLogs];
    
    $moderator = $recordSet->fields[canModerate];
    
    $recordSet->MoveNext();
    
    }
    
    
    
    global $userID, $username, $userpassword, $admin_privs, $active, $isAgent, $editForms, $viewLogs, $canModerate;
    
    echo "<!-- USER : $username -->rn";
    
    echo "<!-- Your session ID is ".session_id()."-->rn";
    
    echo "<!-- You are user #$userID -->rnrn";
    
    echo "<!-- Admin: $admin_privs -->rnrn";
    
    echo "<!-- Is Active: $active -->rnrn";
    
    echo "<!-- Is Agent: $isAgent -->rnrn";
    
    echo "<!-- Edit forms: $editForms -->rnrn";
    
    echo "<!-- Feature Listings: $featureListings -->rnrn";
    
    echo "<!-- View Logs: $viewLogs -->rnrn";
    
    echo "<!-- Can Moderate: $moderator -->rnrn";
    
    
    
    echo "<!-- access level: $priv_level_needed -->rnrn";
    
    
    
    if ($active != "yes") 
    
    { 
    
    // make sure the person is active
    
    include("$config[template_path]/admin_top.html");
    
    echo "<p>$lang[priv_failure]</p>";
    
    echo '<!-- login failed -->';
    
    include("$config[template_path]/admin_top.html");
    
    die;
    
    }
    
    else 
    
    {
    
    if ($isAgent != "yes") 
    
    { 
    
    // make sure the person is an agent
    
    include("$config[template_path]/admin_top.html");
    
    echo "<p>$lang[priv_failure]</p>";
    
    die('<!-- login failed -->');
    
    include("$config[template_path]/admin_top.html");
    
    }
    
    else {
    
    // now make sure that person can access the page
    
    if ($priv_level_needed == "canEditForms")
    
    { 
    
    // does the person have access to edit the master forms?
    
    if ($editForms != "yes")
    
    {
    
    include("$config[template_path]/admin_top.html");
    
    echo "<p>$lang[priv_failure]</p>";
    
    include("$config[template_path]/admin_bottom.html");
    
    die('<!-- login failed -->');
    
    } // end if
    
    } // end if
    
    
    
    if ($priv_level_needed == "Admin")
    
    { // does the person have access to do basic user/listings edits?
    
    if ($admin_privs != "yes")
    
    {
    
    include("$config[template_path]/admin_top.html");
    
    echo "<p>$lang[priv_failure]</p>";
    
    include("$config[template_path]/admin_bottom.html");
    
    die('<!-- login failed -->');
    
    } // end if
    
    } // end if
    
    
    
    
    
    if ($priv_level_needed == "canViewLogs")
    
    { // does the person have access to do basic user/listings edits?
    
    
    
    if ($viewLogs != "yes")
    
    {
    
    include("$config[template_path]/admin_top.html");
    
    echo "<p>$lang[priv_failure]</p>";
    
    include("$config[template_path]/admin_bottom.html");
    
    die('<!-- login failed -->');
    
    } // end if
    
    } // end if
    
    } //End Agent Check
    
    } //End Active Check
    
    } // end if ($num == 1)
    
    elseif ($num == 0)
    
    {
    
    include("$config[template_path]/admin_top.html");
    
    echo "<h3>$lang[login_failed]</h3>";
    
    echo "<p><form action=\"$PHP_SELF\" method=\"post\">$lang[admin_challenge_phrase]</P>";
    
    echo "<p>$lang[admin_login_name]: <input type=\"text\" name=\"user_name\"></p> ";
    
    echo "<p>$lang[admin_password]: <input type=\"password\" name=\"user_pass\"></p><p><input type=\"submit\" value=\"$lang[login]\"></form></p>";
    
    echo "<form action=\"emailpass.php\"><p>$lang[enter_your_email_address_for_pass]<BR><input type=text name=email></p><p><input type=submit></form></p>";
    
    include("$config[template_path]/admin_bottom.html");
    
    exit;
    
    } // end elseif
    
    } // end elseif
    
    }// end function loginCheck
    
    
    
    
    
    function loginCheckVisitor($priv_level_needed)	
    
    //login authorization code
    
    //handles everything to do with visitors logging in
    
    {
    
    global $conn, $config, $lang;
    
    global $username, $userpassword, $userID;
    
    global $user_name, $user_pass, $admin_privs, $active, $isAgent, $editForms, $viewLogs, $featureListings, $moderator;
    
    
    
    if ($user_name == "" AND $username == "")
    
    {
    
    include("$config[template_path]/user_top.html");
    
    echo "<p><br><b>$lang[visitor_alert_phrase]</b></P>";
    
    echo "<p><form action=\"$PHP_SELF\" method=\"post\">$lang[admin_challenge_phrase]</P>";
    
    echo "<p>$lang[admin_login_name]: <input type=\"text\" name=\"user_name\"></p> ";
    
    echo "<p>$lang[admin_password]: <input type=\"password\" name=\"user_pass\"></p><p><input type=\"submit\" value=\"Log In\"></form></p>";
    
    echo "<form action=\"".$config[baseurl]."/admin/emailpass.php\"><p>$lang[enter_your_email_address_for_pass]<BR><input type=text name=email></p><p><input type=submit></form></p>";
    
    include("$config[template_path]/user_bottom.html");
    
    exit;
    
    
    
    } 
    
    elseif ($user_name != "" OR $username != "")
    
    {
    
    $sql_user_name = make_db_safe($user_name);
    
    $md5_pass = md5($user_pass);
    
    $md5_pass = make_db_safe($md5_pass);
    
    global $username, $userpassword, $userID, $user_name, $user_pass, $active, $isAgent, $editForms, $moderator;
    
    $sql = "SELECT * FROM " . $config[table_prefix] . "UserDB WHERE user_name=$sql_user_name and user_password=$md5_pass";
    
    
    
    $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
    
    $recordSet = $conn->Execute($sql);
    
    if ($recordSet === false) log_error($sql);
    
    $num = $recordSet->RecordCount();
    
    
    
    if ($num == 1)
    
    {
    
    session_register("username");
    
    session_register("user_name");
    
    session_register("userpassword");
    
    session_register("user_pass");
    
    session_register("userID");
    
    session_register("featureListings");
    
    session_register("viewLogs");
    
    session_register("admin_privs");

  10. #10
    Join Date
    Nov 2004
    Location
    Sanlucar de Barrameda, Spain.
    Age
    50
    Posts
    484

    Default Re: Parse error: english.php on line 25

    Your main.php is at least 1600 lines long, try attaching for me to look at it, or uploading an original one to your server and see what happens.

    It seems to me that someone must have been playing around with your files, is this a new site or has the problem just occured?

    Ian

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •