From: Neil S. <sir...@us...> - 2003-08-12 23:19:34
|
CVSROOT : /cvsroot/publicdnsadmin Module : publicdnsadmin Commit time: 2003-08-12 22:44:35 UTC Modified files: forgotten_pass.php signup.php docs/CHANGELOG Log message: Author: SiRVulcaN <sir...@si...> Log message: - Fixed up some hardcoded addresses in signup.php and forgotten_pass.php ---------------------- diff included ---------------------- Index: publicdnsadmin/docs/CHANGELOG diff -u publicdnsadmin/docs/CHANGELOG:1.31 publicdnsadmin/docs/CHANGELOG:1.32 --- publicdnsadmin/docs/CHANGELOG:1.31 Tue Aug 12 05:27:13 2003 +++ publicdnsadmin/docs/CHANGELOG Tue Aug 12 15:44:25 2003 @@ -16,3 +16,4 @@ OUTsider <out...@ke...> - 12/08/2003 - Modified index.html to redirect clients to mainpage - Copied index.html as index.php just in case. - Added index.(html|php) in images/docs/lib +SiRVulcaN <sir...@si...> - 13/08/2003 - Fixed up some hardcoded addresses in signup.php and forgotten_pass.php Index: publicdnsadmin/forgotten_pass.php diff -u publicdnsadmin/forgotten_pass.php:1.1.1.1 publicdnsadmin/forgotten_pass.php:1.2 --- publicdnsadmin/forgotten_pass.php:1.1.1.1 Wed Apr 16 00:19:04 2003 +++ publicdnsadmin/forgotten_pass.php Tue Aug 12 15:44:24 2003 @@ -26,9 +26,9 @@ $newpass = time() * rand(0,100); $md5_pass = md5($newpass); - $fromaddy = "dns...@li..."; - $subject = "Requested Linux-Boxen DNS Admin Password"; - $content = "Your password for http://dnsadmin.linux-boxen.org is: $newpass. Please login and change it ASAP.<Br><br>Linux-Boxen DNS Admin"; + $fromaddy = $contact_addy; + $subject = "Requested PublicDNSAdmin Password"; + $content = "Your password for $site_address is: $newpass. Please login and change it ASAP.<br><br>DNS Administrator"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; @@ -36,7 +36,7 @@ $headers .= "Reply-To: ".$fromaddy." <".$fromaddy.">\r\n"; $headers .= "X-Priority: 1\r\n"; $headers .= "X-MSMail-Priority: High\r\n"; - $headers .= "X-Mailer: Linux-Boxen Networks HTML-Mailer v1.0"; + $headers .= "X-Mailer: PublicDNSAdmin Mailer v1.0"; mail($dbemail, $subject, $content, $headers); $dbh->query("UPDATE users SET password = '$md5_pass' WHERE username='$dbuser'"); Index: publicdnsadmin/signup.php diff -u publicdnsadmin/signup.php:1.4 publicdnsadmin/signup.php:1.5 --- publicdnsadmin/signup.php:1.4 Thu Jun 19 02:43:50 2003 +++ publicdnsadmin/signup.php Tue Aug 12 15:44:24 2003 @@ -154,7 +154,7 @@ $exprecord = explode("\t", $nameservdata[$u]); $nserv = substr("$exprecord[5]", 0, -2); if (sizeof($exprecord) == 6) { - if ((!strcasecmp($nserv,"ns1.linux-boxen.org")) ||(!strcasecmp($nserv[5],"ns2.linux-boxen.org"))) { + if ((!strcasecmp($nserv,$ns1addy)) ||(!strcasecmp($nserv[5],$ns2addy))) { $nameservchk = 1; } } @@ -162,7 +162,7 @@ $u++; } while ($u < sizeof($nameservdata)); if ($nameservchk == 0) { - echo "<p class=\"error\">$domain's Nameservers Do Not Point To ns1.linux-boxen.org or ns2.linux-boxen.org</p>"; + echo "<p class=\"error\">$domain's Nameservers Do Not Point To $ns1addy or $ns2addy</p>"; } } } @@ -238,9 +238,13 @@ echo "</p>\n"; // send email - $fromaddy = "dns...@li..."; - $subject = "New Linux-Boxen DNS Admin Account Created"; - $content = "You are now registered with Linux-Boxen DNSAdmin (http://dnsadmin.linux-boxen.org)<br><br>Username: $username<Br>Password: $password"; + + $accsubject = "New PublicDNSAdmin Account Created"; + $acccontent = "You are now registered with PublicDNSAdmin ($site_address)<br><br>Username: $username<Br>Password: $password"; + + $secondaddy = $contact_addy; + $secondsubject = "$username DNS Signup Complete"; + $secondcontent = "$username ($name) - ($company) has successfully signed up for DNS hosting."; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; @@ -248,13 +252,9 @@ $headers .= "Reply-To: ".$fromaddy." <".$fromaddy.">\r\n"; $headers .= "X-Priority: 1\r\n"; $headers .= "X-MSMail-Priority: High\r\n"; - $headers .= "X-Mailer: Linux-Boxen Networks HTML-Mailer v1.0"; + $headers .= "X-Mailer: PublicDNSAdmin Mailer v1.0"; - mail($dbemail, $subject, $content, $headers); - - $secondaddy = "ma...@li..."; - $secondcontent = "$username ($name) - ($company) has successfully signed up for DNS hosting. Client password is $password. DO NOT GIVE OUT"; - $secondsubject = "$username DNS Signup Complete"; + mail($dbemail, $accsubject, $acccontent, $headers); mail($secondaddy, $secondsubject, $secondcontent, $headers); } else { @@ -269,7 +269,7 @@ <tr><td>Real Name:</td><td><input type="text" name="realname" size="40" maxlength="40"></td><td>40 Chars Max</td></tr> <tr><td>Company:</td><td><input type="text" name="company" size="40" maxlength="40"></td><td>40 Chars Max</td></tr> <tr><td>Domains:</td><Td><textarea rows="5" cols="40" name="ldomains"></textarea></td><td>1 Domain Per Line</td></tr> - <tr><td></td><td colspan="2">NOTE: Each Domain must use ns1.linux-boxen.org and ns2.linux-boxen.org for its nameservers, signup will be denied if the domains dont match to ns1.linux-boxen.org and ns2.linux-boxen.org</td></tr> + <? echo "<tr><td></td><td colspan=\"2\">NOTE: Each Domain must use $ns1addy and $ns2addy for its nameservers, signup will be denied if the domains dont match to $ns1addy and $ns2addy</td></tr>"; ?> <? if ($SHOW_GFXUSRCHK && $NEWUSERS_GFXCHECK) { ----------------------- End of diff ----------------------- |