From: syntax e. <syn...@ho...> - 2002-05-03 12:32:59
|
I almost have this working. It logged in twice now somehow. I was able to send a recieve mail and everything. But I can't seem to get it to log in again (I didn't change anything between logins either). Here is what I get when I try to log in with PHP warnings OFF: -----[begin] Bad request: Protocol Error: "Provided username is not valid". Read data: -----[end] now that I'm pretty sure this an error from the IMAP server. Look at the next thing I have though and I think it explains this error. I think SM of PHP is doing something to 'lose' the username vaiable. When I try to og in with PHP warnings ON: -----[begin] login: Notice: Undefined variable: username in c:\inetpub\wwwroot\mail_new\src\webmail.php on line 39 Notice: Undefined variable: username in c:\inetpub\wwwroot\mail_new\src\webmail.php on line 44 Notice: Undefined variable: username in c:\inetpub\wwwroot\mail_new\src\webmail.php on line 49 Notice: Undefined variable: username in c:\inetpub\wwwroot\mail_new\src\webmail.php on line 50 -----[end] if I hit the back button and try again i get a framed page with this: -----[begin] (left frame) Notice: Undefined variable: key in c:\inetpub\wwwroot\mail_new\src\left_main.php on line 201 (right top frame) Notice: Undefined variable: key in c:\inetpub\wwwroot\mail_new\src\right_main.php on line 40 (right bottom frame) <org logo> SquirrelMail version 1.2.6 By the SquirrelMail Development Team ERROR Unknown user or password incorrect. Go to the login page -----[end] if i go to the login page using that link i start over with getting the non-framed page of warnings again. Does anyone have any idea why it is doing this? It seems like it would be php's fault in losing the variables but I dont know php. And why the heck would I have actually been able to login twice? Another tidbit of useful info is even when I do get the errors it _DOES_ actually log in to the exchange server is seems. I have the logging turned on pretty high on the exchange server. Whenever I make an attempt to log in via SM it puts a line in my even log that I succesfully loged on to the information store. any help would be greatly appreciated. I know this has to work now that I actually logged in! running php 4.2 with SM 1.2.6, below is my config.php and most of the php.ini settings thanks, matt -----[begin config.php] /** * SquirrelMail Configuration File * Created using the configure script, conf.pl */ $config_version = '1.2.0'; $config_use_color = 2; $org_name = "my org"; $org_logo = '../../logo.jpg'; $org_logo_width = '308'; $org_logo_height = '44'; $org_title = "SquirrelMail $version"; $signout_page = ''; $frame_top = '_top'; $motd = ""; $squirrelmail_default_language = 'en_US'; $domain = 'myorg.org'; $imapServerAddress = 'localhost'; $imapPort = 143; $useSendmail = false; $smtpServerAddress = 'localhost'; $smtpPort = 25; $sendmail_path = '/usr/sbin/sendmail'; $use_authenticated_smtp = false; $pop_before_smtp = true; $imap_server_type = 'exchange'; $invert_time = false; $optional_delimiter = 'detect'; $default_folder_prefix = ''; $trash_folder = 'Deleted Items'; $sent_folder = 'Sent Items'; $draft_folder = 'Drafts'; $default_move_to_trash = true; $default_move_to_sent = true; $default_save_as_draft = true; $show_prefix_option = false; $list_special_folders_first = true; $use_special_folder_color = true; $auto_expunge = true; $default_sub_of_inbox = true; $show_contain_subfolders_option = false; $default_unseen_notify = 2; $default_unseen_type = 1; $auto_create_special = false; $delete_folder = false; $default_charset = 'iso-8859-1'; $data_dir = '../data/'; $attachment_dir = "$data_dir"; $dir_hash_level = 0; $default_left_size = '150'; $force_username_lowercase = false; $default_use_priority = true; $hide_sm_attributions = false; $default_use_mdn = true; $edit_identity = true; $edit_name = true; $allow_thread_sort = false; $allow_server_sort = false; $theme_css = ''; $theme[0]['PATH'] = '../themes/default_theme.php'; <...etc etc no need to paste all those in this email> $default_use_javascript_addr_book = true; $addrbook_dsn = ''; $addrbook_table = 'address'; $prefs_dsn = ''; $prefs_table = 'userprefs'; $prefs_user_field = 'user'; $prefs_key_field = 'prefkey'; $prefs_val_field = 'prefval'; /** * Make sure there are no characters after the PHP closing * tag below (including newline characters and whitespace). * Otherwise, that character will cause the headers to be * sent and regular output to begin, which will majorly screw * things up when we try to send more headers later. */ -----[end config.php] -----[begin php.ini settings] engine = On short_open_tag = On asp_tags = Off precision = 12 y2k_compliance = Off output_buffering = Off output_handler = unserialize_callback_func= zlib.output_compression = Off implicit_flush = Off allow_call_time_pass_reference = On safe_mode = Off safe_mode_gid = Off safe_mode_include_dir = safe_mode_exec_dir = ;open_basedir = safe_mode_allowed_env_vars = PHP_ safe_mode_protected_env_vars = LD_LIBRARY_PATH disable_functions = highlight.string = #CC0000 highlight.comment = #FF9900 highlight.keyword = #006600 highlight.bg = #FFFFFF highlight.default = #0000CC highlight.html = #000000 expose_php = On max_execution_time = 30 ; Maximum execution time of each script, in seconds memory_limit = 8M ; Maximum amount of memory a script may consume (8MB) error_reporting = E_ALL display_errors = On display_startup_errors = Off log_errors = Off track_errors = Off warn_plus_overloading = Off variables_order = "EGPCS" register_globals = On register_argc_argv = On post_max_size = 8M gpc_order = "GPC" magic_quotes_gpc = On magic_quotes_runtime = Off magic_quotes_sybase = Off auto_prepend_file = auto_append_file = default_mimetype = "text/html" include_path = ".;..\..\" doc_root = c:\inetpub\wwwroot\ user_dir = extension_dir = c:\php\extensions\ enable_dl = On cgi.force_redirect = 0 file_uploads = On upload_tmp_dir = C:\PHP\uploadtemp upload_max_filesize = 2M allow_url_fopen = On extension=php_gettext.dll extension=php_iisfunc.dll extension=php_imap.dll extension=php_java.dll extension=php_ldap.dll define_syslog_variables = Off SMTP = localhost ; for Win32 only sendmail_from = me...@lo... ; for Win32 only sql.safe_mode = Off session.save_handler = files session.save_path = C:\PHP\sessiondata ; argument passed to save_handler session.use_cookies = 1 session.name = PHPSESSID session.auto_start = 0 session.cookie_lifetime = 0 session.cookie_path = / session.cookie_domain = session.serialize_handler = php session.gc_probability = 1 session.gc_maxlifetime = 1440 session.referer_check = session.entropy_length = 0 session.entropy_file = session.cache_limiter = nocache session.cache_expire = 180 session.use_trans_sid = 1 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry" -----[end php.ini] _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. |