From 3858207ae3f143947a41964b95a507d6a2a45d67 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Dec 2017 11:17:40 -0300 Subject: [PATCH] =?UTF-8?q?add=20practical=20information,=20front-page=20m?= =?UTF-8?q?a=C3=B1=C3=A9=20picture,=20minor=20modifications?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess.swp | Bin 0 -> 12288 bytes api/register.php | 9 ++++- committess.php | 1 + db/.db.php.swp | Bin 0 -> 12288 bytes db/db.php | 10 +++++ db/ggdworkshop.db | Bin 16384 -> 16384 bytes favicon.ico | Bin 6470 -> 1150 bytes header.php | 18 ++++++--- img/intercityhotel.jpg | Bin 0 -> 79257 bytes index.php | 8 +++- js/registerform.js | 24 +++++++++++- practicalinfo.php | 83 +++++++++++++++++++++++++++++++++++++++++ registration.php | 14 +++---- sidebar.php | 11 +----- style/style.css | 19 ++++++++-- 15 files changed, 166 insertions(+), 31 deletions(-) create mode 100644 .htaccess.swp create mode 100644 db/.db.php.swp create mode 100644 img/intercityhotel.jpg create mode 100644 practicalinfo.php diff --git a/.htaccess.swp b/.htaccess.swp new file mode 100644 index 0000000000000000000000000000000000000000..656027cf9db1a82c43479507326380fcabc32955 GIT binary patch literal 12288 zcmeI&!A{#i5C-6ZBN7GC3*3e#MI}w_q&WnHkccW*AcYn}=z%046R(rBw%4+kx-E)& zX?Ym>AbpYEc?H&ya|wqaZb<)1qm}KM@%X!0_GS6=!6Da-D(SUMRQtDaW^EMc=NF<# zN|m0TwS3zXfjujW$oytUW|Aakzwab6`Wg>pXc_}$_j)3ZXV)VG0uXqjz?E`KTZ>eE zS1G3*a5P$##AOHafKmY;|c#Z-poTFcQ@cC@`g>0Xj+OtD!5P$## zAOHafKmY;|fB*y_009U*Ljl_%+IvCtTSxl+fAao+w?uTS<3`7&jvXCqI#zZ3*SUYQ znm=hB76c#w0SG_<0uX=z1Rwwb2teQw0=cG0qM;JaD^KwG8>6t~U(>gx2PFf>AZ`Vs_-Ro*`d(>gmD2y9)c)!&;GAXAUup3FA z#dq5eJz?~uZ-#bX=%3GhkCl9IfoN)`x0`v+SJJV#-6$TP)Vq_6Y@BSAiw_44>tp@U z8jW*H?yNLkFFB9MaVa-FJSRiXV`mtLp8bQ>KyXh6N(3rq={|U(@uN;|WCi_UAox>2 E_w1sad;kCd literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..c6f9cea8108e1a62758efa346897274766373f33 GIT binary patch literal 12288 zcmeI2PmkL~7{;eaP+D53fD3}d)Qw0|d9$TGv~uZI`^QxybvLVQb{E*LqKQ38taa?v zp6s@i!WTe%0wgYoBL~ERPXJtykl@f(LP7%dD^$H8p0USC?A=v`Dh`##>d$uGd1v04 zXU6k-Rd>#9)R*bS+698+6d@~5-u-Cds7daAOh^=lLYkj;44BUY_B1a-W_MXMySKMD z+v~Y|VYCzX!{Myk!N1zDKYV(9?V%OW3OtJfC&`8L@12t^oH0(*H(ps($K=RzNGD70?Q31+)TM0j+>m zKr5gX&@D9tIO|St>@Xtv?{sa%f1MnUA1oXfq@cRiu9MA-1a0)zng^(Y>7vLs14^Du; zj}!7OxD6J-o8bO2LcRvO;3~KPj)SA%2>9z|LcRf?gPULrtb-Zw$5BGQ2Va66@F7?P zm%v$20%w2$PJ?&A+u#^@49y;b2jD*V4g3nEmOlc0Xa%$aS^=%V|E>U42e~>&xxbFtIs16C=e*Y=Q!e)V!z=!8MQ9Z|_F^a>659$i|H7C7CL4dIHrmTdKM|=Ei-DM#>vG}rD>qk{8kTjWnMbFY}&Biiq@}3uqD5RU$?WRqWcCM&qReQrx$M+oC9R-f?LJSx27w#-0 za7D$vn~d~cs@qtW>Cw*ner~`Ejn?%-cW374!6W`}12GQib&m_#iE7qYtQe{3q_A^mFbl^ikVK;+$!e_w@DHTr?Q1_EC&N7c(KOV zzHJt~y`Z-m@$NwtvZ7oahed+bgI!NB2NPDTS1iue^^$6CSgbU*=e)5LSm1aEhRK!X zYf0g-f`#X@Vw^;`tZaX+8$R!`LuzGZxmwABE(S@BIlm$E;-Xt(%XvB8$YpNPPg!%G ztn2v)>oQf6t06ow^7rYktT|6MqiC zEx&qs{2XCYLu_5Q{A?%8mV8Y;Dr#0uYkFmvR<^QCtFSQ5q>QYPRiWbGfl(o2g0tYTF+y+N-U4V}*`~gOoYmy&R literal 0 HcmV?d00001 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 1b5c52549a166ff576e0e5a286bf7726cf2f5554..e88f41d799ed345446602a3748fa17fa45f1e0bc 100644 GIT binary patch delta 784 zcmb7?F>l&H7=~>*5QregN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&L4F1b}#){@22llL7ukT_fu75x4+_o};#=1a;&4 z1eJ8dZ)23dA)@>Pd$bldK7B3 zA7H9>7^Z9A!VK*js8o+Zz4jH#L1@xH16ltFTJ#T~PCEow82e$K@h&V(ybjBfJD|f% z!OElyH<>zgTD@?u{TSS5KMWhJC*Uq?3-(XKYBK=~j5pxX)JAyLxgEAT>tKs>H}p7n z!glXEcs0EkUQ4&Z-t<+lFTDs}@|MAFuN^FR6{Or7q08=u?o?ObOBR2N3=|m{90O8D zqfr?uDW5LVbRIrl(NJICfa$1jY@)zosyxOF3+uQ z5OpQ3a*fm!5yn=_7nMo1je;&N*GW>W`suTy}X^Gpya%Ozq3l#&NxA1$GSg7KSzLfLJD~$62%f zaWIZ>>`gCX^iCD(iD3L-`6yNX^52cW5A{v@r-7Y(`KMa_F$+iL^Ml24sqwyGi*Vdw z^^7=+T^zH#s6^F(}Q#$EXTP|OSN5gEk-|4#N{e9qDi_kr@T0>NpAOX=bF1S!BM81WOzO$ zaM9zeXLw%LFAj>;TJ4ZOHpAYJ(HcPoT_#BdtgnKhvV7$p>{X<4;!t>s>0uHiEYxPsk23Cg{$wnB* zWc4UpntZWep?D1Y=hv4R?_`Z>)DQS`na>{G!?VXM9Ng|`^kF_m!$0>~#8KEjit{+s PJ)f7eq(>OV#u@kzmtJv> 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 +