Browse code

Benutze temporäre Tabelle für das Auslesen der automatischen records

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1362 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on05/05/2009 07:27:44
Showing1 changed files
... ...
@@ -147,7 +147,8 @@ function get_domain_records($dom)
147 147
 function get_domain_auto_records($domainname)
148 148
 {
149 149
   $domainname = mysql_real_escape_string($domainname);
150
-  $result = db_query("SELECT hostname, domain, CONCAT_WS('.', hostname, domain) AS fqdn, type, ip, spec, data, ttl FROM dns.v_autogenerated_records WHERE domain='{$domainname}'");
150
+  #$result = db_query("SELECT hostname, domain, CONCAT_WS('.', hostname, domain) AS fqdn, type, ip, spec, data, ttl FROM dns.v_autogenerated_records WHERE domain='{$domainname}'");
151
+  $result = db_query("SELECT hostname, domain, CONCAT_WS('.', hostname, domain) AS fqdn, type, ip, spec, data, ttl FROM dns.tmp_autorecords WHERE domain='{$domainname}'");
151 152
   $data = array();
152 153
   while ($entry = mysql_fetch_assoc($result)) {
153 154
     array_push($data, $entry);