2 $lib_base = "../gwvplib/";
5 $WEB_ROOT_FS = realpath(dirname(__FILE__));
6 $BASE_URL = dirname($_SERVER["PHP_SELF"]);
8 global $WEB_ROOT_FS, $BASE_URL, $repo_base, $data_directory, $db_type, $db_name, $db_username, $db_password;
10 // add gwvplib as if it were a path in ../gwvplib
11 if(file_exists($lib_base)) {
12 $path = realpath($lib_base);
13 set_include_path(get_include_path().PATH_SEPARATOR.$path);
16 require_once("gwvplib.php");
19 echo "Doing email validation\n";
20 echo "\tasfd@asdf.com (should pass)\n";
21 if(gwvp_checkEmail("asdf@asfd.com")) {
27 echo "\tasfd@asd+af..com (should fail)\n";
28 if(gwvp_checkEmail("asfd@asd+af..com")) {