fixing up the "is setup" check in the installer
[gwvp.git] / gwvplib / gwvpinputcheck.php
1 <?php
2
3 // the purpose of this php is to provide input validation functions
4 function gwvp_checkEmail($email)
5 {
6         $match = preg_match("/^[a-zA-Z0-9\+]+@[a-zA-Z0-9\.]+$/", $email);
7         
8         if($match != 1) return false;
9         else return true;
10 }
11
12 // TODO: need to write this
13 function gwvp_stripDescription($desc)
14 {
15         // this doesnt work yet
16         //$match = preg_replace("/^[a-zA-Z0-9\+]+@[a-zA-Z0-9\.]+$/", $email);
17         
18         //if($match != 1) return false;
19         //else return true;
20         
21         return $desc;
22 }
23
24 ?>