Changeset 198
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r197 r198 17 17 use Net::DNS; 18 18 use Crypt::PasswdMD5; 19 #use Net::SMTP;19 use Net::SMTP; 20 20 use NetAddr::IP; 21 #use POSIX;21 use POSIX; 22 22 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); 23 23 … … 216 216 # Mail settings 217 217 $config{mailhost} = $1 if /^mailhost\s*=\s*([a-z0-9_.-]+)/i; 218 $config{mailnotify} = $1 if /^mailnotify\s*=\s*([a-z0-9_. @-]+)/i;219 $config{mailsender} = $1 if /^mailsender\s*=\s*([a-z0-9_. @-]+)/i;218 $config{mailnotify} = $1 if /^mailnotify\s*=\s*([a-z0-9_.\@-]+)/i; 219 $config{mailsender} = $1 if /^mailsender\s*=\s*([a-z0-9_.\@-]+)/i; 220 220 $config{mailname} = $1 if /^mailname\s*=\s*([a-z0-9\s_.-]+)/i; 221 221 $config{orgname} = $1 if /^orgname\s*=\s*([a-z0-9\s_.,'-]+)/i; … … 2062 2062 $mailer->mail($mailsender); 2063 2063 $mailer->to($config{mailnotify}); 2064 $mailer->data("From: \"$config{mailname}\" <$mailsender \n",2065 "To: $config{mailnotify}\n",2064 $mailer->data("From: \"$config{mailname}\" <$mailsender>\n", 2065 "To: <$config{mailnotify}>\n", 2066 2066 "Date: ".strftime("%a, %d %b %Y %H:%M:%S %z",localtime)."\n", 2067 2067 "Subject: $subj\n", -
trunk/dns.cgi
r195 r198 347 347 348 348 if ($code eq 'OK') { 349 # logaction($msg, $session->param("username"), $webvar{group}, "Added domain $webvar{domain}"); 349 mailNotify($dbh, "New ".($webvar{makeactive} eq 'on' ? 'Active' : 'Inactive')." Domain Created", 350 ($webvar{makeactive} eq 'on' ? 'Active' : 'Inactive').qq( domain "$webvar{domain}" added by ). 351 $session->param("username")); 350 352 changepage(page => "reclist", id => $msg); 351 353 } else {
Note:
See TracChangeset
for help on using the changeset viewer.