diff --git a/.htaccess.swp b/.htaccess.swp new file mode 100644 index 0000000..656027c Binary files /dev/null and b/.htaccess.swp differ diff --git a/api/register.php b/api/register.php index 44a4cbd..bfa0f50 100644 --- a/api/register.php +++ b/api/register.php @@ -91,6 +91,10 @@ if (empty($_POST['apellido'])) if (empty($_POST['email'])) $errors['email'] = 'E-Mail de contacto vacio o incorrecto'; +if($db->findByMail($data['email'])) + $errors['emailExists'] = 'There is already a registration for that email: ' . $data['email'].'\n'. + 'Please contact: lydia@cmat.edu.uy'; + if(empty($_POST['g-recaptcha-response'])){ $errors['recaptcha'] = 'Debe validar el captcha'; } @@ -127,6 +131,9 @@ else { } // return all our data to an AJAX call -echo json_encode($data); +$encoded = json_encode($data); +header('Content-Type: application/json'); +exit($encoded); +//echo json_encode($data); ?> diff --git a/committess.php b/committess.php index ec5991f..94ce8b9 100644 --- a/committess.php +++ b/committess.php @@ -20,6 +20,7 @@
  • Joaquín Brum
  • Andrés Sambarino
  • Martín Sambarino
  • +
  • Adriana Da Luz
  • diff --git a/db/.db.php.swp b/db/.db.php.swp new file mode 100644 index 0000000..c6f9cea Binary files /dev/null and b/db/.db.php.swp differ diff --git a/db/db.php b/db/db.php index 82d6994..57ff632 100644 --- a/db/db.php +++ b/db/db.php @@ -55,6 +55,16 @@ return $stmt->fetchAll(\PDO::FETCH_BOTH); } + public function findByMail($email){ + $stmt = $this->pdo->prepare("SELECT * FROM Registro WHERE email=:email"); + $stmt->bindParam(":email",$email); + $stmt->execute(); + $result = $stmt->fetch(\PDO::FETCH_ASSOC); + if($result) + return false; + else + true; + } diff --git a/db/ggdworkshop.db b/db/ggdworkshop.db index 1b5c525..e88f41d 100644 Binary files a/db/ggdworkshop.db and b/db/ggdworkshop.db differ diff --git a/favicon.ico b/favicon.ico index 0e5049f..01845c6 100644 Binary files a/favicon.ico and b/favicon.ico differ diff --git a/header.php b/header.php index 7cd5fe4..7de4b74 100644 --- a/header.php +++ b/header.php @@ -50,12 +50,18 @@
    -

    Workshop on
    Group Geometry and Dynamics

    -
    +

    Workshop on
    Groups, Geometry and Dynamics

    +

    - With a homage to Ricardo Mañé
    + With a homage to Ricardo Mañé
    +

    + +

    23 - 27, July 2018

    +

    + Montevideo, Uruguay +