From: Neil S. <sir...@us...> - 2005-01-08 01:52:07
|
CVSROOT : /cvsroot/publicdnsadmin Module : publicdnsadmin Commit time: 2005-01-08 01:51:49 UTC Modified files: create_zone.php docs/CHANGELOG docs/mysql.sql Log message: immm back. couple of small changes. Ill fix the changelog up later, i was editing it in cygwin which wont allow me to have a full screen nano session ---------------------- diff included ---------------------- Index: publicdnsadmin/create_zone.php diff -u publicdnsadmin/create_zone.php:1.2 publicdnsadmin/create_zone.php:1.3 --- publicdnsadmin/create_zone.php:1.2 Wed Aug 13 05:14:13 2003 +++ publicdnsadmin/create_zone.php Fri Jan 7 17:51:39 2005 @@ -107,7 +107,9 @@ $domain = trim(addslashes($_POST["domain"])); $template = trim(addslashes($_POST["template"])); - if (!$domain or (!preg_match("/^[a-zA-Z0-9-_]+\.[a-zA-Z0-9-_\.]{2,6}$/", $domain) and !preg_match("/^[0-9\.]+\.in-addr\.arpa$/", $domain) and !preg_match("/^[0-9\.]+\.ip6\.arpa$/", $domain) and !preg_match("/^[0-9\.]+\.ip6\.int$/", $domain))) { + /* (!preg_match("/^[a-zA-Z0-9-_]+\.[a-zA-Z0-9-_\.]{2,6}$/", $domain) and !preg_match("/^[0-9\.]+\.in-addr\.arpa$/", $domain) and !preg_match("/^[0-9\.]+\.ip6\.arpa$/", $domain) and !preg_match("/^[0-9\.]+\.ip6\.int$/", $domain))) { */ + + if (!$domain) echo "<p class=\"error\">"._MISSINGINVDOM."</p>\n"; } else { $dbh = db_connect(); Index: publicdnsadmin/docs/CHANGELOG diff -u publicdnsadmin/docs/CHANGELOG:1.42 publicdnsadmin/docs/CHANGELOG:1.43 --- publicdnsadmin/docs/CHANGELOG:1.42 Wed Jan 5 18:27:40 2005 +++ publicdnsadmin/docs/CHANGELOG Fri Jan 7 17:51:39 2005 @@ -1,3 +1,5 @@ +SiRVulcaN <vu...@li...> - 08/01/2005 - Quick hack to create_zone.php to allow international domains. I need to work on a regexp. + - Woops we forgot to add an admin user for Mysql users. Fixed. OUTsider <out...@ke...> - 05/01/2005 - Redone getRecords adding new sorting method and added sort support. - Removed the site_address setting, now done dynamically. Index: publicdnsadmin/docs/mysql.sql diff -u publicdnsadmin/docs/mysql.sql:1.4 publicdnsadmin/docs/mysql.sql:1.5 --- publicdnsadmin/docs/mysql.sql:1.4 Wed Jul 16 07:36:51 2003 +++ publicdnsadmin/docs/mysql.sql Fri Jan 7 17:51:39 2005 @@ -54,3 +54,5 @@ ); CREATE INDEX gfxcodes_idx ON gfxcodes(code,crc,expire); + +INSERT INTO users (username, password, name, email, company, permission) VALUES('administrator', '21232f297a57a5a743894a0e4a801fc3', 'DNS Administrator', 'dns...@ho...', 'PublicDNSAdmin', 2); ----------------------- End of diff ----------------------- |