Date: Mon, 31 Jan 2000 12:26:53 +1100 From: danny <dannyh@alpha.net.au> To: freebsd-questions@freebsd.org Subject: Why doesn't this *.pl work properly? Message-ID: <3.0.6.32.20000131122653.007b0dd0@192.168.1.194>
next in thread | raw e-mail | index | archive | help
--=====================_949242413==_ Content-Type: text/plain; charset="us-ascii" Hello, -I changed the settings in config.pl. - the pop settings are corrected - Followed the instruction in the README file -As shown in the attachment. Question 1) why do I get "Invalid username or password. Please try again." Looking forward to your feedback. --=====================_949242413==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="config.pl" #!/usr/bin/perl ########################################################################### # config.pl - Common variables and functions used by AtDot. This should # be the only file that needs to be edited. ########################################################################### # The site administrator $admin = "enquires\@alpha.net.au"; # The form method used here (GET or POST) $method = 'POST'; # The directory to store all the information in $dbdir = '/usr/home/fluffy/public_html/atdot/data'; # Wher to log (malicious?) attempts to hack other accounts $logfile = $dbdir . "log"; # The local domain $domain = "alpha.net.au"; # The SMTP server to use $smtpserver = "192.168.1.194"; # The version of the program; goes in X-Mailer header $version = "AtDot 2.0.1"; # The URL to put in X-URL mail header $x_url = "http://www.alpha.net.au/"; # The title for the web pages $title = "Alpha Dot Net"; # How long until sessions expire, in seconds $expire_time = 3600; # The base location of the cgi scripts for AtDot $cgidir = "http://192.168.1.195/cgi-bin/cgiwrap/~fluffy"; # Change these if you need to have, for example, .cgi instead of .pl $addbook_pl = $cgidir . "/addbook.pl"; $changeacct_pl = $cgidir . "/changeacct.pl"; $changepass_pl = $cgidir . "/changepass.pl"; $changesig_pl = $cgidir . "/changesig.pl"; $checkmail_pl = $cgidir . "/checkmail.pl"; $common_pl = $cgidir . "/common.pl"; $delete_pl = $cgidir . "/delete.pl"; $folder_pl = $cgidir . "/folder.pl"; $login_pl = $cgidir . "/login.pl"; $messact_pl = $cgidir . "/messact.pl"; $mime_pl = $cgidir . "/mime.pl"; $newuser_pl = $cgidir . "/newuser.pl"; $options_pl = $cgidir . "/options.pl"; $send_pl = $cgidir . "/send.pl"; # The URL of the homepage $homepage_url = "http://www.alpha.net.au/"; # The URL of the logo #$logo_url = "http://www.atdot.org/images/atdot/logo.gif"; # Colors for the list of mail $odd_row_color = "#E0E0FF"; $even_row_color = "#E0FFE0"; ########################################################################### # Features to turn on or off ########################################################################### # Mail forwarding: 0 = local delivery, 1 = create aliases # If this is set to 0, AtDot will act like HotMail # If this is set to 1, AtDot will make fake addresses (e.g. user@atdot.org # gets forwarded to real@email.com) $feature_forward = 0; # Where sendmail does alias stuff # If feature_forward is 0, this will be ignored # If feature_forward is 1, this should be something like /etc/mail/virtusertable $usertable = '0'; # 990204 - jrtietsort - since this runs on a web server and not a mail hub # we don't want to mess with the sendmail stuff # Set this to 1 if you are not running on a sendmail host $dont_mess_with_sendmail = 0; # Address books: 0 = none, 1 = use address books $feature_abook = 1; # Message folders: 0 = none, 1 = use folders $feature_folders = 1; # POP server setting: 1 = let user specify server, 1 = admin specify server # This is ignored if feature_forward is set to 0 # If this is set to 0, users can specify their own POP server # If this is set to 1, specify the POP server below $feature_pop = 1; # admin supplied POP server $singlepop = "192.168.1.194"; ########################################################################### # Messages to show when a user does something ########################################################################### # When account information has been changed $accnt_change_info = "<H2>Your account information has been successfully updated.</H2>"; # Wrong password $wrong_pass_info = "<H2>You entered the wrong password. Please try again.</H2>"; # Not the same password twice $diff_pass_info = "<H2>You didn't enter the same password twice.</H2>"; # Password has a space or comma $pass_invalid_info= "<H2>Your password can't have a space or comma in it.</H2>"; # Password has been changed $pass_change_info = "<H2>Your password has been changed.</H2>"; # Missing field $missing_field_info = "<H2>You missed a field.</H2>"; # Wrong POP information $pop_wrong_info = "<H2>You have entered the wrong POP username or password. Please try again.</H2>"; # Can't delete $delete_no_info = "<H2>You aren't allowed to delete this user.</H2>"; # Account delete $delete_acct_info = "<H2>Your account has been deleted</H2>"; # No hint for user $hint_none_info = "<H2>No such user or no hint.</H2>"; # Hint information $hint_info = "<H2>Your hint for yourself was: </H2>"; # Wrong username or password $bad_login_info = "<H2>Invalid username or password. Please try again.</H2>"; # Good login $good_login_info = "<H2>Login successful.</H2>"; # Message deletion confirmation $mess_del_ask_info = "<H2>Are you sure you want to delete the message(s)?</H2>"; # Message deleted $message_delete_info = "<H2>The message(s) has(have) been deleted.</H2>"; # Username is in use $username_used_info = "<H2>That username is currently in use. Try again.</H2>"; # Bad username $bad_username_info = "<H2>Your username must only have letters, numbers, hyphens, underscores, and dots in it, and must begin with a letter.</H2>"; # New account $account_made_info = "<H2>Your account has been created.</H2>"; # Delete account confirmation $del_acct_ask_info = "<H2>Are you sure you want to delete your account?</H2>"; # Message sent $message_sent_info = "<H2>The following message has been sent.</H2>"; # Address book delete confirmation $abook_del_ask_info = "<H2>Are you sure you want to delete the address book entry?</H2>"; # Address book entry deleted $abook_del_info = "<H2>The address book entry has been deleted.</H2>"; # Address book entry added $abook_add_info = "<H2>Your entry has been added to your address book.</H2>"; # Address book entry updated $abook_update_info = "<H2>The address book entry has been updated.</H2>"; # An error encountered sending mail $no_send_info = "<H2>An error was encountered sending your mail. Please try again.</H2>"; # Message moved to a different folder $moved_info = "<H2>The message has been moved.</H2>"; # When a new folder has been created $folder_add_info = "<H2>Folder created.</H2>"; # When a user wants to delete a folder $folder_del_ask_info = "<H2>Are you sure you want to delete this folder?</H2>"; # When the folder is deleted $folder_del_info = "<H2>The folder has been deleted.</H2>"; # When a folder is renamed $folder_ren_info = "<H2>The folder has been renamed.</H2>"; # After logout $thank_you_info = "<H2>Thank you for using the Mail Gateway. Please return to <A HREF=\"$homepage_url\">Alpha Dot Net</A></H2>."; # After a cancel $cancel_info = "<H2>Action cancelled.</H2>"; # Session time out $timed_out_info = "<H2>Your session has timed out. Please <A HREF=\"$login_pl\">log back in</A>.</H2>"; # A hacker $hack_info = "<H2>You may be attempting to abuse this service. Your attempt has been logged. Note: you may be getting this message because you are going through a proxy server and/or have a different IP address now than when you logged on. If so, please contact <A href=\"mailto:$admin\">$admin</A>.</H2>"; # Button labels - Try to keep these unique, as name collisions could cause # problems. $login_button = "Login"; $forgot_button = "Forgotten Password"; $sendmsg_button = "Send a Message"; $chacct_button = "Change Options"; $chpass_button = "Change Password"; $delacct_button = "Delete Account"; $logout_button = "Logout"; $abook_button = "Address Book"; $check_button = "Check Mail (Inbox)"; $folder_button = "Folders"; $delmarked_button = "Delete Marked Messages"; $clrcheck_button = "Clear Check Marks"; $movemarked_button = "Move Marked Messages To:"; $movemsg_button = "Move Message To:"; $send_button = "Send"; $reset_button = "Reset Form"; $cancel_button = "Cancel"; $change_button = "Change"; $yes_button = "Yes"; $no_button = "No"; $newentry_button = "New Entry"; $delete_button = "Delete"; $modify_button = "Modify"; $sendto_button = "Send Mail To"; $openfolder_button = "Open Folder"; $newfolder_button = "New Folder"; $renfolder_button = "Rename Folder"; $delfolder_button = "Delete Folder"; $add_button = "Add"; $update_button = "Update"; $read_button = "Read"; $delmsg_button = "Delete"; $reply_button = "Reply"; $forward_button = "Forward"; $redirect_button = "Redirect"; $create_button = "Create"; $rename_button = "Rename"; ########################################################################### # Names of input fields, and various other small bits ########################################################################### $name_input = "Name:"; $email_input = "E-mail Address:"; $from_input = "From:"; $to_input = "To:"; $cc_input = "CC:"; $bcc_input = "BCC:"; $subj_input = "Subject:"; $mess_input = "Message:"; $foldname_input = "Folder Name:"; $username_input = "Username:"; $pass_input = "Password:"; $poppass_input = "POP Password:"; $curpass_input = "Current Password:"; $newpass_input = "New Password:"; $verify_input = "Verify New Password:"; $newhint_input = "New Hint:"; $hint_input = "Password Hint:"; $popserv_input = "POP Server:"; $popname_input = "POP Username:"; $sig_input = "Signature:"; $attach_input = "Attachment:"; $header_input = "Header Style:"; $adpass_input = "Password:"; $button_input = "Button Location:"; $default_input = "Default From: Address:"; # These next three are for redirected, forwarded, and replied to messages $resent_input = "Resent-From:"; $forward_input = "Forwarded message follows:"; $youwrote_input = "You wrote:"; # These next few are for listing and displaying messages $total_mess_info = "Total Messages"; $from_info = "From"; $subj_info = "Subject"; $date_info = "Date"; $size_info = "Size"; $mark_info = "Mark"; $status_info = "Status"; $new_info = "New!"; $nosubj_info = "No Subject Given"; $unknown_attach_info = "Unknown"; $fullhead_info = "Full"; $shorthead_info = "Short"; $topb_info = "Top of Screen"; $botb_info = "Bottom of Screen"; $both_info = "Both"; ########################################################################### # print_header - give all the pages a common header ########################################################################### sub print_header{ print $query->header; print $query->start_html(-title=>$title, -background=>'..grafix/main_bg2.gif'); print "<CENTER>"; print "<FONT SIZE=5>Mail Gateway</FONT>"; print "</CENTER>"; print "<HR>"; } ########################################################################### # print_footer - give all the pages a common footer ########################################################################### sub print_footer{ print "<CENTER><FONT SIZE=\"1\">All enquries can be directed to"; print "<A HREF=\"http://www.alpha.net.au/\">Alpha Dot Net</A></FONT></CENTER>"; print "</BODY></HTML>"; } --=====================_949242413==_ Content-Type: text/plain; charset="us-ascii" --=====================_949242413==_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.20000131122653.007b0dd0>