Marius Cramer
2013-11-14 b1a6a5a3991cec5cd08873b01376e45d0b247f18
interface/lib/classes/validate_dkim.inc.php
@@ -32,6 +32,7 @@
@copyrighth Florian Schaal, info@schaal-24.de
*/
class validate_dkim {
   
   function get_error($errmsg) {
@@ -42,6 +43,7 @@
         return $errmsg."<br>\r\n";
      }
       }
   /**
   * Validator function for private DKIM-Key 
@@ -55,6 +57,7 @@
      }
   }
   /**
   * Validator function for DKIM Path 
   * @return boolean - true when the dkim-path exists and is writeable
@@ -65,6 +68,7 @@
         return $this->get_error($validator['errmsg']);
   }
   /** 
   * Check function for DNS-Template 
   */
@@ -73,6 +77,7 @@
      foreach($field_value as $field ) { if($field == 'DKIM') $dkim=true; }
      if ($dkim && $field_value[0]!='DOMAIN') return $this->get_error($validator['errmsg']);
   }
   /**
   * Validator function for $_POST 
@@ -89,5 +94,5 @@
         break;
      }
   }   
}
}