Hello! My problem is a Parse Error in the last line of the script. I checked all the brackets { and semicolons ; but I did`nt find any error. Perhaps you can help me.
Cu Thomas Here is the Code: <?php $_custom_enable_custom_auth = true; $_custom_db_name = 'horde'; $_custom_db_host = 'localhost'; $_custom_db_user = 'horde'; $_custom_db_pass = 'horde'; if ($_custom_enable_custom_auth) { $_custom_user_uid = trim($HTTP_POST_VARS['imapuser']); $_custom_user_pass = trim($HTTP_POST_VARS['pass']); $_custom_db = mysql_connect($_custom_db_host, $_custom_db_user, $_custom_db_pass); mysql_select_db($_custom_db_name, $_custom_db); require_once '/usr/local/httpd/htdocs/horde/imp/_custom/key.php'; $_custom_result = mysql_query("SELECT imp_imapuser, decode(imp_pass, '$_custom_key'), imp_server FROM horde_users, custom_imp_users WHERE user_uid = '$_custom_user_uid' AND user_pass = md5('$_custom_user_pass') AND horde_user_uid = user_uid AND enabled = '1', $_custom_db); if ($_custom_row = mysql_fetch_row($_custom_result)) { $_custom_imp_imapuser = $_custom_row[0]; $_custom_imp_pass = $_custom_row[1]; $_custom_imp_server = $_custom_row[2]; } else { $_custom_imp_imapuser = null; $_custom_imp_pass = null; $_custom_imp_server = null; } } else { $_custom_imp_imapuser = trim(".$HTTP_POST_VARS['imapuser']."); $_custom_imp_pass = trim(".$HTTP_POST_VARS['pass']."); $_custom_imp_server = trim(".$HTTP_POST_VARS['server']."); } ".$HTTP_POST_VARS['imapuser']." = ".$_custom_imp_imapuser."; ".$HTTP_POST_VARS['pass']." = ".$_custom_imp_pass."; ".$HTTP_POST_VARS['server']." = ".$_custom_imp_server."; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php