From 8a025d14b530b89baa99b07189fe00315ff59d53 Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 25 Nov 2015 16:08:24 -0700 Subject: [PATCH] Got everything loading and saving correctly using PDO for slightly better security. Still need to work on creating new dictionaries and switching between them. --- LOGIN.form | 32 ++++++ index.php | 7 +- js/dictionaryBuilder.js | 172 +++++------------------------- js/ui.js | 121 +++++++++++++++++++++ php/ajax_dictionarymanagement.php | 44 +++++--- php/config.php | 33 ++++-- php/helpers.php | 42 +++++--- php/validation.php | 10 +- 8 files changed, 270 insertions(+), 191 deletions(-) create mode 100644 LOGIN.form diff --git a/LOGIN.form b/LOGIN.form new file mode 100644 index 0000000..d4f8b2d --- /dev/null +++ b/LOGIN.form @@ -0,0 +1,32 @@ +
+

Log In

+ + +
+ +
+
+

Create a New Account

+

Creating an account allows you to save and switch between up to 10 dictionaries and access them from any device for free! Plus if you allow us to send you emails, you'll be the first to hear about any new features that get added or if any of our policies change for any reason.

+ + + + + +
+ +
diff --git a/index.php b/index.php index b84672c..fdb6ff0 100644 --- a/index.php +++ b/index.php @@ -222,6 +222,12 @@ elseif (isset($_GET['loggedout']) && $current_user <= 0) { Total Entries: + 0) { //If logged in, show the log out button. ?> + + +