Example #1
0
 function validate($value)
 {
     $res = AD::validate($value);
     return $res;
     if ($res[0] && $res[1] != "") {
         $mod_lines = array();
         $lines = explode("\n", $res[1]);
         for ($i = 0; $i < count($lines); $i++) {
             $line = $lines[$i];
             if (substr($line, 0, 1) != "#") {
                 $line = $this->prefix . $line;
             }
             $mod_lines[] = $line;
         }
         $res[1] = join("\n", $mod_lines);
     }
     return $res;
 }