From dc5b76189497c2ef8bdf0438f2a04438e06fdae0 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:01:41 -0600 Subject: [PATCH 001/416] created security.php include this file at the top of all files where we require the user to be logged in --- security.php | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 security.php diff --git a/security.php b/security.php new file mode 100644 index 000000000..047e73df2 --- /dev/null +++ b/security.php @@ -0,0 +1,6 @@ + From de7ba3f84979abf58670588f4e05ad306fc04031 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:03:02 -0600 Subject: [PATCH 002/416] session start added --- security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security.php b/security.php index 047e73df2..9d2f9c1b9 100644 --- a/security.php +++ b/security.php @@ -1,5 +1,5 @@ Date: Thu, 10 Nov 2016 15:06:12 -0600 Subject: [PATCH 003/416] Add files via upload --- connection.php | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 connection.php diff --git a/connection.php b/connection.php new file mode 100644 index 000000000..456742525 --- /dev/null +++ b/connection.php @@ -0,0 +1,6 @@ + \ No newline at end of file From 6c69099f2e7a38037b46ff4a1ebfcd51a8621d85 Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 15:10:14 -0600 Subject: [PATCH 004/416] Create insertFile.php --- insertFile.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 insertFile.php diff --git a/insertFile.php b/insertFile.php new file mode 100644 index 000000000..6853ec8de --- /dev/null +++ b/insertFile.php @@ -0,0 +1,22 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); +} + +// prepare and bind +$stmt = $conn->prepare("INSERT INTO file (groupid, path, activeuserflag) VALUES (?, ?, ?, ?)"); +$stmt->bind_param("sss", $username, $hashedpassword, $usertypeid, $activeuserflag); + +//execute +$stmt->execute(); +$stmt->close(); +$conn->close(); +?> From 3f2fdb356558f9b5e07568d47f7a6cdd29057ed4 Mon Sep 17 00:00:00 2001 From: Jared Date: Thu, 10 Nov 2016 15:16:50 -0600 Subject: [PATCH 005/416] fix --- index.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/index.html b/index.html index 88d2be11e..42ea26620 100644 --- a/index.html +++ b/index.html @@ -7,13 +7,8 @@

RADs(Research Analysis and Database for Scientists)

Hello World!

- -<<<<<<< HEAD
Upload
-======= -

Search bar

->>>>>>> jvbkw8 From 25bdae15bc84d9e446c60e542d515c9c41d2f5e1 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:17:33 -0600 Subject: [PATCH 006/416] session added --- login.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 84e2b355e..a4d132439 100644 --- a/login.php +++ b/login.php @@ -1,6 +1,6 @@ @@ -56,6 +56,7 @@ && !empty($userPaswword)) { if ($user == $row['username'] && $userPaswword == $row['password'] ) { + $_SESSION[NAME] = $row['username']; header("location: index.html"); }else { From 1a49a512574821f3707725757c5956c3d63df562 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:26:11 -0600 Subject: [PATCH 007/416] blah --- login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/login.php b/login.php index a4d132439..f0a01e08b 100644 --- a/login.php +++ b/login.php @@ -56,6 +56,7 @@ && !empty($userPaswword)) { if ($user == $row['username'] && $userPaswword == $row['password'] ) { + echo "hey you logged in successfully"; $_SESSION[NAME] = $row['username']; header("location: index.html"); From 3015d378836d53d7d90ab0001d06722c60150e3a Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:29:19 -0600 Subject: [PATCH 008/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index f0a01e08b..2512d5289 100644 --- a/login.php +++ b/login.php @@ -61,7 +61,7 @@ header("location: index.html"); }else { - $action = 'Wrong username or password'; + echo 'Wrong username or password'; } } ?> From 5a1c03a1adfc70905323130a45739e3f07a1c802 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:31:02 -0600 Subject: [PATCH 009/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 2512d5289..f9705e200 100644 --- a/login.php +++ b/login.php @@ -52,7 +52,7 @@ $result = mysqli_query($link, $sql); $row = mysql_fetch_array($query); - if (isset($_POST['login']) && !empty($user) + if (isset($_POST['submit']) && !empty($user) && !empty($userPaswword)) { if ($user == $row['username'] && $userPaswword == $row['password'] ) { From 3e48c075685a8396cbbf47dc654feae7d1c66882 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:37:58 -0600 Subject: [PATCH 010/416] Update login.php --- login.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index f9705e200..ec5a15f08 100644 --- a/login.php +++ b/login.php @@ -48,7 +48,8 @@ $userPaswword = $_POST['password']; $action = ''; $link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); - $sql = "SELECT username, passsword FROM user WHERE username = '$user' AND password= '$password';"; + //TODO: hash password! + $sql = "SELECT username FROM user WHERE username = '$user' AND password= '$password';"; $result = mysqli_query($link, $sql); $row = mysql_fetch_array($query); From abb7c180acb241a506413b1de83ff4edabcd34c9 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:40:26 -0600 Subject: [PATCH 011/416] Update login.php --- login.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/login.php b/login.php index ec5a15f08..1dfbb1531 100644 --- a/login.php +++ b/login.php @@ -45,7 +45,7 @@
Date: Thu, 10 Nov 2016 15:41:58 -0600 Subject: [PATCH 012/416] Update login.php --- login.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/login.php b/login.php index 1dfbb1531..217e8a197 100644 --- a/login.php +++ b/login.php @@ -45,18 +45,18 @@
Date: Thu, 10 Nov 2016 15:43:49 -0600 Subject: [PATCH 013/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 217e8a197..9c0f00ef7 100644 --- a/login.php +++ b/login.php @@ -56,7 +56,7 @@ if (isset($_POST['submit']) && !empty($user) && !empty($user_password)) { - if ($user == $row['username'] && $user_password == $row['password'] ) { + if ($user_password == $row['password'] ) { echo "hey you logged in successfully"; $_SESSION[NAME] = $row['username']; header("location: index.html"); From 7606f92a4666dcd9a37e4cde7b00c1b28e8d6df0 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:45:51 -0600 Subject: [PATCH 014/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 9c0f00ef7..945f0404e 100644 --- a/login.php +++ b/login.php @@ -51,7 +51,7 @@ //TODO: hash password! $sql = "SELECT username FROM user WHERE username = '$user' AND password= '$user_password';"; $result = mysqli_query($link, $sql); - $row = mysql_fetch_array($query); + $row = mysqli_fetch_assoc($result); if (isset($_POST['submit']) && !empty($user) && !empty($user_password)) { From 498ee8e9aab5377a427dc98d448a4d026289bf11 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:47:42 -0600 Subject: [PATCH 015/416] Create loginVerify.php --- loginVerify.php | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 loginVerify.php diff --git a/loginVerify.php b/loginVerify.php new file mode 100644 index 000000000..8510f4543 --- /dev/null +++ b/loginVerify.php @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + RADs Login + + + + + + + + + + + + + + + + + + +
+ +
+
+
+

Login

+
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+ + + + + + + + + + + + From 231bc350475817a6dd873d32a0039b0a6ea8edaa Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 15:58:58 -0600 Subject: [PATCH 016/416] Update login.php --- login.php | 103 ++++++++++++++++++------------------------------------ 1 file changed, 34 insertions(+), 69 deletions(-) diff --git a/login.php b/login.php index 945f0404e..09db1b4b6 100644 --- a/login.php +++ b/login.php @@ -1,10 +1,3 @@ - - - @@ -20,81 +13,53 @@ RADs Login - - - - - - - - - - - - -
- -
-
-
-

Login

-
-
- -
-
- -
-
- -
-
- -
+
+
+
+

Login

+
+
+ +
+
+ +
+
+ +
+
- - - +
- + + From 0c0f8856e52a3bb5e8c9ca3037142371e4157890 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:04:06 -0600 Subject: [PATCH 017/416] Update login.php --- login.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/login.php b/login.php index 09db1b4b6..f13bec2d6 100644 --- a/login.php +++ b/login.php @@ -24,10 +24,10 @@

Login

- +
- +
@@ -46,8 +46,12 @@ - - - - -
- query($sql); + $row = $result->fetch_assoc(); + if ($username == $row['username'] ) { $_SESSION[NAME] = $row['username']; - header("location: index.html"); - - }else { - echo 'Wrong username or password'; - } - } - ?> -
-
-
-

Login

- -
- -
-
- -
-
- -
- - -
- -
- - - - - - - - - - - - + echo $success; + }else { + echo $failure; + } +?> From 38762fb6751b2cd897ac5c91a27967c9e4cf92fa Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:15:02 -0600 Subject: [PATCH 019/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index f13bec2d6..32e8a91c9 100644 --- a/login.php +++ b/login.php @@ -54,7 +54,7 @@ function verifyLogin(){ method: "POST", success: function(html){ if(html.success == true){ - window.location.replace("index.php"); + window.location.replace("index.html"); } else { alert(html); } From 3626e823fe725288b32c5ecb8396afd560ecc377 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:16:49 -0600 Subject: [PATCH 020/416] Update login.php --- login.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 32e8a91c9..8794cccdc 100644 --- a/login.php +++ b/login.php @@ -22,7 +22,7 @@

Login

-
+
@@ -46,6 +46,7 @@ From b2a010b8a70cc10b6bde5e84b0e5d09adf24a4f7 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:36:12 -0600 Subject: [PATCH 030/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 84728f4fe..9dd827cbd 100644 --- a/login.php +++ b/login.php @@ -50,7 +50,7 @@ function verifyLogin(){ var username = $('#user').val(); var userpassword = $('#password').val(); $.ajax({ - url: "verifyLogin.php", + url: "loginVerify.php", data: {username:username, userpassword:userpassword}, method: "POST", success: function(html){ From 79f35bed8ceb028515f51fade76b4c8fdc2a3a82 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:38:29 -0600 Subject: [PATCH 031/416] Update login.php --- login.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/login.php b/login.php index 9dd827cbd..e071f5a87 100644 --- a/login.php +++ b/login.php @@ -37,6 +37,8 @@
+
+
@@ -58,7 +60,7 @@ function verifyLogin(){ if(html.success == true){ window.location.replace("index.html"); } else { - alert(html); + $('#error').html("Invalid username or password."); } }, error: function(html){ From 4568685d612d80faa86404a8e9c296ac3c62d69b Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:42:17 -0600 Subject: [PATCH 032/416] Update loginVerify.php --- loginVerify.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index bd4e1c7c8..d7f1bfcd5 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,5 +1,5 @@ query($sql); $row = $result->fetch_assoc(); + //$failure .= ', username: "'.$username.'", password: "'.$userpassword if ($username == $row['username'] ) { $_SESSION[NAME] = $row['username']; echo $success; From ba71761c758cc80f7dc6641da769321cff7d2dae Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:42:51 -0600 Subject: [PATCH 033/416] Update loginVerify.php --- loginVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index d7f1bfcd5..d2a190e2a 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,5 +1,5 @@ Date: Thu, 10 Nov 2016 16:44:27 -0600 Subject: [PATCH 034/416] Update loginVerify.php --- loginVerify.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index d2a190e2a..5778e73cb 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,8 +1,8 @@ query($sql); $row = $result->fetch_assoc(); //$failure .= ', username: "'.$username.'", password: "'.$userpassword - if ($username == $row['username'] ) { + if ($user_name == $row['username'] ) { $_SESSION[NAME] = $row['username']; echo $success; exit(); From 36fa5ddf20e654fd16f0796672dbcd57b67001e5 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:47:15 -0600 Subject: [PATCH 035/416] Update loginVerify.php --- loginVerify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index 5778e73cb..992449578 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,5 +1,5 @@ query($sql); $row = $result->fetch_assoc(); - //$failure .= ', username: "'.$username.'", password: "'.$userpassword + $failure .= ', username: "'.$user_name.'", password: "'.$user_password.'", sql: "'.$sql.'"}'; if ($user_name == $row['username'] ) { $_SESSION[NAME] = $row['username']; echo $success; From a213fe49fc489a6d120b96055c28840596d8131d Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:49:15 -0600 Subject: [PATCH 036/416] Update loginVerify.php --- loginVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index 992449578..f248e01db 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -3,7 +3,7 @@ $success = "{success:true}"; $user_name = $_POST['username']; $user_password = $_POST['userpassword']; - if(!$username or !$userpassword){ + if(!$user_name or !$user_password){ echo $failure; exit(); } From 072ce62f2a854b677876b8b9999e7fcc26a61201 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 16:52:24 -0600 Subject: [PATCH 037/416] Update loginVerify.php --- loginVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index f248e01db..23345d574 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -4,7 +4,7 @@ $user_name = $_POST['username']; $user_password = $_POST['userpassword']; if(!$user_name or !$user_password){ - echo $failure; + echo $failure."}"; exit(); } session_start(); // session starts with the help of this function From 6b4e8c6842ed10495fd4c8aeded1f38b4b6d217b Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:01:18 -0600 Subject: [PATCH 038/416] Update login.php --- login.php | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/login.php b/login.php index e071f5a87..028162faa 100644 --- a/login.php +++ b/login.php @@ -22,12 +22,12 @@

Login

- +
- +
@@ -47,27 +47,27 @@ From f1869156622c590d1e0d4f5e25f567b93f6bf1f0 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:01:52 -0600 Subject: [PATCH 039/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 028162faa..ac1f5edd3 100644 --- a/login.php +++ b/login.php @@ -37,7 +37,7 @@
-
+
- From 2a386d80a5b8a309d69d38b5ccf45b07f2d5bf9d Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:07:33 -0600 Subject: [PATCH 042/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index ac7638f1b..f6f10ace6 100644 --- a/login.php +++ b/login.php @@ -37,7 +37,7 @@
-
+
From d41d5b657370c83fc96764de6f5ace5705aff057 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:09:55 -0600 Subject: [PATCH 043/416] Update login.php --- login.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/login.php b/login.php index f6f10ace6..6dc8ea34c 100644 --- a/login.php +++ b/login.php @@ -50,4 +50,11 @@ + From a2fb76cc1ed429c5cab133b807964acaa1a6aaf2 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:11:20 -0600 Subject: [PATCH 044/416] Update login.php --- login.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/login.php b/login.php index 6dc8ea34c..c6508b5e5 100644 --- a/login.php +++ b/login.php @@ -37,11 +37,7 @@
-
- -
+
From 6ddb9ea4bb9f35aaf36fac8848920e47f82dbbe6 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:13:40 -0600 Subject: [PATCH 045/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index c6508b5e5..fc015c320 100644 --- a/login.php +++ b/login.php @@ -37,7 +37,7 @@
-
+
From 94018bc20f66dbda464ba827c4559c83e73ed88f Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:16:13 -0600 Subject: [PATCH 046/416] Update login.php --- login.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/login.php b/login.php index fc015c320..17ef1eb04 100644 --- a/login.php +++ b/login.php @@ -35,10 +35,8 @@
- -
- +
From 5ca9357e34ae2fc0b0a34131577a80010b255159 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:17:23 -0600 Subject: [PATCH 047/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 17ef1eb04..8d3bd6b49 100644 --- a/login.php +++ b/login.php @@ -35,7 +35,7 @@ -
+
From 7b4639b58e878e7138ba48a43beebb370969dd50 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:21:05 -0600 Subject: [PATCH 048/416] Update login.php --- login.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/login.php b/login.php index 8d3bd6b49..6e28f1dfb 100644 --- a/login.php +++ b/login.php @@ -33,9 +33,11 @@ - -
+ +
+
+
From 471d3e7b3aefdfcfc71d2ae14a08a31c0a3a5889 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 17:21:28 -0600 Subject: [PATCH 049/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 6e28f1dfb..ad537426a 100644 --- a/login.php +++ b/login.php @@ -37,7 +37,7 @@
-
+
From 670d690bf791d9d7b4d500f7dd74caaca86d5a9c Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:09:58 -0600 Subject: [PATCH 050/416] Create DBConn.php DBConn is a class to be used for easy prepared statements --- DBConn.php | 281 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 281 insertions(+) create mode 100644 DBConn.php diff --git a/DBConn.php b/DBConn.php new file mode 100644 index 000000000..72f980e8d --- /dev/null +++ b/DBConn.php @@ -0,0 +1,281 @@ +connectToDatabase(); + } + + function connectToDatabase() + { + $dsn = "mysql:dbname=db;host=localhost"; + $user = "root"; + $password = ""; + try{ + $this->conn = new PDO($dsn, $user, $password); + } + catch(Exception $e) + { + $this->errors[] = $e->getMessage(); + return false; + } + return true; + } + + function close() + { + $this->conn = NULL; + } + + function rowCount() + { + return $this->numRows; + } + + function update($query, $newValues = array(), $whereValues = array()) + { //echo "update function parameters passed in
newValues: ".print_r($newValues, true)."
whereValues: ".print_r($whereValues, true).""; + $this->numRows = 0; + $this->errors = array(); + if(!is_array($newValues)) + { + $newValues = (array)$newValues; + } + if(!is_array($whereValues)) + { + $whereValues = (array)$whereValues; + } + $newValues = $this->clean($newValues); + $whereValues = $this->clean($whereValues); + try{ + //echo "preparing update
"; + if (($stmt = $this->conn->prepare($query)) === false) + { + $this->errors[] = "Error preparing update query: ".$query.PHP_EOL."Values: ".print_r($newValues, true).print_r($whereValues, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + $count = 1; + if (count($newValues)>0) + {//echo "new values count > 0.
"; + foreach($newValues as $key=>&$value) + { + //echo "binding value: $value
"; + if(($stmt->bindParam($count, $value)) === false) + { + $this->errors[] = "Error binding 'new' parameters for update statement: ".$query.PHP_EOL."Values: ".print_r($newValues, true).print_r($whereValues, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + $count++; + } + } + if (count($whereValues)>0) + {//echo "where values count > 0.
"; + foreach($whereValues as $key=>&$value) + {//echo "binding value: $value
"; + if(($stmt->bindParam($count, $value)) === false) + { + $this->errors[] = "Error binding 'where' parameters for update statement: ".$query.PHP_EOL."Values: ".print_r($newValues, true).print_r($whereValues, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + $count++; + } + } + if (($stmt->execute()) === false) + { + $this->errors[] = "Error executing update statement: ".$query.PHP_EOL."Values: ".print_r($newValues, true).print_r($whereValues, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + //echo "statement executed
"; + } + catch(Exception $e) + { + $this->errors[] = $e->getMessage(); + return false; + } + $this->numRows = $stmt->rowCount(); + //echo "update statement should have been successful
"; + return true; + } + + function insert($query, $values = array()) + { + $this->numRows = 0; + $this->errors = array(); + if(!is_array($values)) + { + $values = (array)$values; + } + $values = $this->clean($values); + try{ + if (($stmt = $this->conn->prepare($query)) === false) + { + $this->errors[] = "Error preparing insert query: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + if (count($values)>0) + { + foreach($values as $key=>&$value) + { + if(($stmt->bindParam($key + 1, $value)) === false) + { + $this->errors[] = "Error binding parameters for insert statement: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + } + } + if (($stmt->execute()) === false) + { + $this->errors[] = "Error executing insert statement: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + } + catch(Exception $e) + { + $this->errors[] = $e->getMessage(); + return false; + } + $this->numRows = $stmt->rowCount(); + return true; + } + + + function select($query, $values = array()) + { + $this->numRows = 0; + $this->errors = array(); + if(!is_array($values)) + { + $values = (array)$values; + } + $values = $this->clean($values); + try{ + if (($stmt = $this->conn->prepare($query)) === false) + { + $this->errors[] = "Error preparing select query: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + if(count($values)>0) + { + foreach($values as $key=>&$value) + { + if(($stmt->bindParam($key + 1, $value)) === false) + { + $this->errors[] = "Error binding parameters for select statement: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + } + } + if (($stmt->execute()) === false) + { + $this->errors[] = "Error executing select statement: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + if (($rows = $stmt->fetchAll(PDO::FETCH_ASSOC)) === false) + { + $this->errors[] = "Error fetching rows for query: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + } + catch(Exception $e) + { + $this->errors[] = $e->getMessage(); + return false; + } + $this->numRows = count($rows); + return $rows; + } + + function delete($query, $values = array()) + { + $this->numRows = 0; + $this->errors = array(); + if(!is_array($values)) + { + $values = (array)$values; + } + $values = $this->clean($values); + try{ + if (($stmt = $this->conn->prepare($query)) === false) + { + $this->errors[] = "Error preparing delete query: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + if (count($values)>0) + { + foreach($values as $key=>&$value) + { + if(($stmt->bindParam($key + 1, $value)) === false) + { + $this->errors[] = "Error binding parameters for delete statement: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + } + } + if (($stmt->execute()) === false) + { + $this->errors[] = "Error executing delete statement: ".$query.PHP_EOL."Values: ".print_r($values, true); + $messageArray = $stmt->errorInfo(); + $this->errors[] = $messageArray[2]; + return false; + } + } + catch(Exception $e) + { + $this->errors[] = $e->getMessage(); + return false; + } + $this->numRows = $stmt->rowCount(); + return true; + } + + function getErrors() + { + return $this->errors; + } + + function clean($values = array()) + {//echo "in clean, values passed in:
".print_r($values, true)."

"; + $cleanValues = array(); + foreach($values as $key=>$value) + { + if (is_array($value)) + { + $cleanValues[$key] = $this->clean($value); + } + else + { + $cleanValues[$key] = htmlspecialchars($value); + } + } + return $cleanValues; + } +} +?> From d5ccb48d7fdafc9faaef91994a152604e712dc93 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:19:54 -0600 Subject: [PATCH 051/416] Update loginVerify.php --- loginVerify.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index 4e2ecbc0a..a1c1eecb8 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,30 +1,32 @@ query($sql); - $row = $result->fetch_assoc(); - $failure .= ', username: "'.$user_name.'", password: "'.$user_password.'", sql: "'.$sql.'"}'; - if ($user_name == $row['username'] ) { - $_SESSION[NAME] = $row['username']; + $sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; + $rows = $dbconn->select($sql, array($user_name, $user_password)); + if(count($errors = $dbconn->getErrors()) > 0){ + foreach($errors as $error){ + echo $error."
"; + } + } +// $result = $conn->query($sql); +// $row = $result->fetch_assoc(); + if ($user_name == $rows['username'] ) { + $_SESSION[NAME] = $user_name; header("Location: index.html"); - //echo $success; exit(); } else { header("Location: login.php?error=Invalid username or password"); - //echo $failure; exit(); } ?> From 7ec21a8116011fbbdd74ec00b4177513d31ce87d Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 19:20:50 -0600 Subject: [PATCH 052/416] Delete insertFile.php --- insertFile.php | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 insertFile.php diff --git a/insertFile.php b/insertFile.php deleted file mode 100644 index 6853ec8de..000000000 --- a/insertFile.php +++ /dev/null @@ -1,22 +0,0 @@ -connect_error) { - die("Connection failed: " . $conn->connect_error); -} - -// prepare and bind -$stmt = $conn->prepare("INSERT INTO file (groupid, path, activeuserflag) VALUES (?, ?, ?, ?)"); -$stmt->bind_param("sss", $username, $hashedpassword, $usertypeid, $activeuserflag); - -//execute -$stmt->execute(); -$stmt->close(); -$conn->close(); -?> From 16511aee4f5d8cb977ee37cc817af76dfb595ea6 Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 19:21:10 -0600 Subject: [PATCH 053/416] Create insertFile.php --- DML/insertFile.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 DML/insertFile.php diff --git a/DML/insertFile.php b/DML/insertFile.php new file mode 100644 index 000000000..423d868cd --- /dev/null +++ b/DML/insertFile.php @@ -0,0 +1,18 @@ +connect_error) { + die("Connection failed: " . $conn->connect_error); +} +// prepare and bind +$stmt = $conn->prepare("INSERT INTO file (groupid, path, activeuserflag) VALUES (?, ?, ?, ?)"); +$stmt->bind_param("sss", $username, $hashedpassword, $usertypeid, $activeuserflag); +//execute +$stmt->execute(); +$stmt->close(); +$conn->close(); +?> From 323098eb1abf851e798b40aebe601d9de419d4f0 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:25:51 -0600 Subject: [PATCH 054/416] Update loginVerify.php --- loginVerify.php | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index a1c1eecb8..24d89e372 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -10,23 +10,28 @@ $conn = new mysqli($servername, $username, $password); require_once "DBConn.php"; $dbconn = new DBConn(); - //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); - //TODO: hash password! - $sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; - $rows = $dbconn->select($sql, array($user_name, $user_password)); - if(count($errors = $dbconn->getErrors()) > 0){ - foreach($errors as $error){ - echo $error."
"; + if($dbconn->connectToDatabase()){ + //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); + //TODO: hash password! + $sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; + $rows = $dbconn->select($sql, array($user_name, $user_password)); + if(count($errors = $dbconn->getErrors()) > 0){ + foreach($errors as $error){ + echo $error."
"; + } } - } -// $result = $conn->query($sql); -// $row = $result->fetch_assoc(); - if ($user_name == $rows['username'] ) { - $_SESSION[NAME] = $user_name; - header("Location: index.html"); - exit(); - } else { - header("Location: login.php?error=Invalid username or password"); + // $result = $conn->query($sql); + // $row = $result->fetch_assoc(); + if ($user_name == $rows['username'] ) { + $_SESSION[NAME] = $user_name; + header("Location: index.html"); + exit(); + } else { + header("Location: login.php?error=Invalid username or password"); + exit(); + } + } else { //bad connection + header("Location: login.php?error=Could not connect. Try again later."); exit(); } ?> From c98663baa8983e7eee06960d1b0fca276cd75cad Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:30:27 -0600 Subject: [PATCH 055/416] Update loginVerify.php --- loginVerify.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index 24d89e372..347890a05 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -11,6 +11,7 @@ require_once "DBConn.php"; $dbconn = new DBConn(); if($dbconn->connectToDatabase()){ + echo "connected to db
"; //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); //TODO: hash password! $sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; @@ -19,14 +20,18 @@ foreach($errors as $error){ echo $error."
"; } + } else { + echo "no errors after select statement
"; } // $result = $conn->query($sql); // $row = $result->fetch_assoc(); if ($user_name == $rows['username'] ) { $_SESSION[NAME] = $user_name; - header("Location: index.html"); + echo "success
"; + //header("Location: index.html"); exit(); } else { + echo "no user found, or password is incorrect
"; header("Location: login.php?error=Invalid username or password"); exit(); } From 659f10e48541261281adbfefdeaa07d15c0db2bb Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:36:14 -0600 Subject: [PATCH 056/416] Update loginVerify.php --- loginVerify.php | 1 + 1 file changed, 1 insertion(+) diff --git a/loginVerify.php b/loginVerify.php index 347890a05..fb8e48451 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,4 +1,5 @@ Date: Thu, 10 Nov 2016 19:39:35 -0600 Subject: [PATCH 057/416] Update DBConn.php --- DBConn.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DBConn.php b/DBConn.php index 72f980e8d..fc07fda42 100644 --- a/DBConn.php +++ b/DBConn.php @@ -38,7 +38,7 @@ function rowCount() function update($query, $newValues = array(), $whereValues = array()) { //echo "update function parameters passed in
newValues: ".print_r($newValues, true)."
whereValues: ".print_r($whereValues, true).""; $this->numRows = 0; - $this->errors = array(); + $this->errors = array(); if(!is_array($newValues)) { $newValues = (array)$newValues; @@ -110,7 +110,7 @@ function update($query, $newValues = array(), $whereValues = array()) function insert($query, $values = array()) { $this->numRows = 0; - $this->errors = array(); + $this->errors = array(); if(!is_array($values)) { $values = (array)$values; @@ -158,7 +158,7 @@ function insert($query, $values = array()) function select($query, $values = array()) { $this->numRows = 0; - $this->errors = array(); + $this->errors = array(); if(!is_array($values)) { $values = (array)$values; @@ -212,7 +212,7 @@ function select($query, $values = array()) function delete($query, $values = array()) { $this->numRows = 0; - $this->errors = array(); + $this->errors = array(); if(!is_array($values)) { $values = (array)$values; From 148fb9458a83141fa6b2e93927b6d0736f0250ec Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:40:31 -0600 Subject: [PATCH 058/416] Update loginVerify.php --- loginVerify.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index fb8e48451..becd7aec9 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -8,9 +8,12 @@ } session_start(); // session starts with the help of this function //include "connection.php"; - $conn = new mysqli($servername, $username, $password); + //$conn = new mysqli($servername, $username, $password); + echo "session started"; require_once "DBConn.php"; + echo "dbconn included"; $dbconn = new DBConn(); + echo "dbconn created"; if($dbconn->connectToDatabase()){ echo "connected to db
"; //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); From 03d9fb93238922a5d6e33a165a9fe4c114cafba8 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:43:33 -0600 Subject: [PATCH 059/416] Update DBConn.php --- DBConn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBConn.php b/DBConn.php index fc07fda42..fe00c3633 100644 --- a/DBConn.php +++ b/DBConn.php @@ -6,7 +6,7 @@ class DBConn{ function __construct() { - $this->connectToDatabase(); + return $this->connectToDatabase(); } function connectToDatabase() From 68753f7201cd9dd346272d14ec7302d7fe942bac Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:45:24 -0600 Subject: [PATCH 060/416] Update DBConn.php --- DBConn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBConn.php b/DBConn.php index fe00c3633..fc07fda42 100644 --- a/DBConn.php +++ b/DBConn.php @@ -6,7 +6,7 @@ class DBConn{ function __construct() { - return $this->connectToDatabase(); + $this->connectToDatabase(); } function connectToDatabase() From b4ba70803c080b6a55d8af907c3804565cb9537c Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:45:53 -0600 Subject: [PATCH 061/416] Update loginVerify.php --- loginVerify.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index becd7aec9..e0bcf68fa 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -9,12 +9,12 @@ session_start(); // session starts with the help of this function //include "connection.php"; //$conn = new mysqli($servername, $username, $password); - echo "session started"; + //echo "session started"; require_once "DBConn.php"; echo "dbconn included"; $dbconn = new DBConn(); echo "dbconn created"; - if($dbconn->connectToDatabase()){ + //if($dbconn->connectToDatabase()){ echo "connected to db
"; //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); //TODO: hash password! @@ -39,8 +39,8 @@ header("Location: login.php?error=Invalid username or password"); exit(); } - } else { //bad connection + //} else { //bad connection header("Location: login.php?error=Could not connect. Try again later."); exit(); - } + //} ?> From c867a132893d155cb3e1be0206b69d24a73217f6 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 19:48:51 -0600 Subject: [PATCH 062/416] Update loginVerify.php --- loginVerify.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/loginVerify.php b/loginVerify.php index e0bcf68fa..b3bc4ec2d 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -10,6 +10,11 @@ //include "connection.php"; //$conn = new mysqli($servername, $username, $password); //echo "session started"; + if(class_exists('PDO')){ + echo "pdo exists"; + } else { + echo "pdo does not exist"; + } require_once "DBConn.php"; echo "dbconn included"; $dbconn = new DBConn(); From 2d4abdda6cd501969f8c33ef738526f4da20ae69 Mon Sep 17 00:00:00 2001 From: nihr43 Date: Fri, 11 Nov 2016 01:53:47 +0000 Subject: [PATCH 063/416] refactored homepage --- index.html | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 42ea26620..478e1d3c2 100644 --- a/index.html +++ b/index.html @@ -1,14 +1,27 @@ - + - Final Project Group 2 + RADs(Research Analysis and Database for Scientists) + + + + + -

RADs(Research Analysis and Database for Scientists)

-

Hello World!

-
- Upload -
+ +
+

Welcome to RADs

+

Research Analysis and Database for Scientists

+ +
+ From 0c95376ed161773a52716ec2aebafe6271596621 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:00:11 -0600 Subject: [PATCH 064/416] Update loginVerify.php --- loginVerify.php | 74 ++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index b3bc4ec2d..c444bc85a 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -7,45 +7,43 @@ exit(); } session_start(); // session starts with the help of this function - //include "connection.php"; - //$conn = new mysqli($servername, $username, $password); + include "connection.php"; + $conn = new mysqli($servername, $username, $password); //echo "session started"; - if(class_exists('PDO')){ - echo "pdo exists"; - } else { - echo "pdo does not exist"; - } - require_once "DBConn.php"; - echo "dbconn included"; - $dbconn = new DBConn(); - echo "dbconn created"; +// if(class_exists('PDO')){ +// echo "pdo exists"; +// } else { +// echo "pdo does not exist"; +// } +// require_once "DBConn.php"; +// echo "dbconn included"; +// $dbconn = new DBConn(); +// echo "dbconn created"; //if($dbconn->connectToDatabase()){ - echo "connected to db
"; - //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); - //TODO: hash password! - $sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; - $rows = $dbconn->select($sql, array($user_name, $user_password)); - if(count($errors = $dbconn->getErrors()) > 0){ - foreach($errors as $error){ - echo $error."
"; - } - } else { - echo "no errors after select statement
"; - } - // $result = $conn->query($sql); - // $row = $result->fetch_assoc(); - if ($user_name == $rows['username'] ) { - $_SESSION[NAME] = $user_name; - echo "success
"; - //header("Location: index.html"); - exit(); - } else { - echo "no user found, or password is incorrect
"; - header("Location: login.php?error=Invalid username or password"); - exit(); - } - //} else { //bad connection - header("Location: login.php?error=Could not connect. Try again later."); +// echo "connected to db
"; + //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); + //TODO: hash password! + $sql = "SELECT username FROM user WHERE username = '$user_name' and password = '$user_password'"; + //$sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; +// $row = $dbconn->select($sql, array($user_name, $user_password)); +// if(count($errors = $dbconn->getErrors()) > 0){ +// foreach($errors as $error){ +// echo $error."
"; +// } +// } else { +// echo "no errors after select statement
"; +// } + $result = $conn->query($sql); + $row = $result->fetch_assoc(); + if ($user_name == $row['username'] ) { + $_SESSION[NAME] = $user_name; + //echo "success
"; + header("Location: index.html"); + exit(); + } else { +// echo "no user found, or password is incorrect
"; + header("Location: login.php?error=Invalid username or password"); exit(); - //} + } +//} ?> From 2b3f2332639c1f5367c2702c8be3703cf14dc6a7 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:02:16 -0600 Subject: [PATCH 065/416] Update loginVerify.php --- loginVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index c444bc85a..e0b5c5cc2 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -1,5 +1,5 @@ Date: Thu, 10 Nov 2016 20:05:50 -0600 Subject: [PATCH 066/416] Update loginVerify.php --- loginVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index e0b5c5cc2..076996e75 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -23,7 +23,7 @@ // echo "connected to db
"; //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); //TODO: hash password! - $sql = "SELECT username FROM user WHERE username = '$user_name' and password = '$user_password'"; + $sql = "SELECT username FROM db.user WHERE username = '$user_name' and password = '$user_password';"; //$sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; // $row = $dbconn->select($sql, array($user_name, $user_password)); // if(count($errors = $dbconn->getErrors()) > 0){ From 8b1b1d0d1fe0efd7ff1471666f263d392ed23ea2 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:08:57 -0600 Subject: [PATCH 067/416] Update login.php --- login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/login.php b/login.php index ad537426a..8e78c59d3 100644 --- a/login.php +++ b/login.php @@ -31,6 +31,7 @@
+
From 945f31010b709bd7201febf7df5a5feebd31c5d9 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:11:17 -0600 Subject: [PATCH 068/416] Create signup.php --- signup.php | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 signup.php diff --git a/signup.php b/signup.php new file mode 100644 index 000000000..d7be6adc8 --- /dev/null +++ b/signup.php @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + RADs Signup + + + + + + +
+
+
+

Login

+
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+ + + + + + + + From bb59b94005dd61cceb01d9ce124d377c01ab09ee Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:27:20 -0600 Subject: [PATCH 069/416] Create signupVerify.php --- signupVerify.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 signupVerify.php diff --git a/signupVerify.php b/signupVerify.php new file mode 100644 index 000000000..e80219a8c --- /dev/null +++ b/signupVerify.php @@ -0,0 +1,20 @@ +query($sql) or header("Location: signup.php?error=Connection error"); + if($conn->affected_rows != 1){ + header("Location: signup.php?error=Information not stored"); + } + header("Location: login.php"); +?> From a334c8be6d7f9e2d994b5ed4e807fbd38ae04c0f Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:30:00 -0600 Subject: [PATCH 070/416] Update login.php --- login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/login.php b/login.php index 8e78c59d3..e6a056d6c 100644 --- a/login.php +++ b/login.php @@ -31,7 +31,7 @@
- + Sign Up
From d720a858a75a9eb52563fba0ca94c79ca1eec0b5 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:31:11 -0600 Subject: [PATCH 071/416] Update signup.php --- signup.php | 1 + 1 file changed, 1 insertion(+) diff --git a/signup.php b/signup.php index d7be6adc8..c708dc2d9 100644 --- a/signup.php +++ b/signup.php @@ -34,6 +34,7 @@
+ Login
From be8dbc098837a3561ef740e67b4976fd017fe419 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 20:39:17 -0600 Subject: [PATCH 072/416] Update login.php --- login.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login.php b/login.php index e6a056d6c..62da2f64f 100644 --- a/login.php +++ b/login.php @@ -38,7 +38,7 @@
-
+
@@ -49,7 +49,7 @@ + + + + + +
+

Welcome to RADs

+

Research Analysis and Database for Scientists

+ +
+

Firstname:

+

Lastname:

+

username:

+
+ + + From a81d30c5f1d93978c4672ccdf43ede485be4f91f Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 21:02:11 -0600 Subject: [PATCH 089/416] Rename accountInfo.php to account.php --- accountInfo.php => account.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename accountInfo.php => account.php (100%) diff --git a/accountInfo.php b/account.php similarity index 100% rename from accountInfo.php rename to account.php From d3c9535d1b39b9d143a1f1688d3cce86542c73a7 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:02:27 -0600 Subject: [PATCH 090/416] Update signupVerify.php --- signupVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signupVerify.php b/signupVerify.php index d02860642..35cb13b30 100644 --- a/signupVerify.php +++ b/signupVerify.php @@ -13,7 +13,7 @@ include "connection.php"; $conn = new mysqli($servername, $username, $password); $usernamecheck = "select * from user where username = '$user_name'"; - $result = $conn->query($sql); + $result = $conn->query($usernamecheck); if($result->num_rows != 0){ header("Location: signup.php?error=Username already exists"); exit(); From 9dcdce0919ec5e1d23019e43b922fc62ce5b22bf Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 21:02:48 -0600 Subject: [PATCH 091/416] Update upload.html --- upload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.html b/upload.html index a20b1d351..b2fd2af5d 100644 --- a/upload.html +++ b/upload.html @@ -22,7 +22,7 @@

Upload Manifest

  • Home
  • Upload
  • Search Manifests
  • -
  • Account
  • +
  • Account
  • Logout
  • From 6baabd7dbb9dd66156dd0ccba8d008e3fa5a2b3e Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 21:04:23 -0600 Subject: [PATCH 092/416] added accounts link --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index a33bd881b..c839b7bd7 100644 --- a/index.html +++ b/index.html @@ -18,7 +18,7 @@

    Welcome to RADs

  • Home
  • Upload
  • Search Manifests
  • -
  • Account
  • +
  • Account
  • Logout

  • From d7e9e9d1c353377b54aadec4d5e9704242c773a3 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:04:26 -0600 Subject: [PATCH 093/416] Update signupVerify.php --- signupVerify.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/signupVerify.php b/signupVerify.php index 35cb13b30..d813ed466 100644 --- a/signupVerify.php +++ b/signupVerify.php @@ -13,11 +13,15 @@ include "connection.php"; $conn = new mysqli($servername, $username, $password); $usernamecheck = "select * from user where username = '$user_name'"; + echo $usernamecheck; $result = $conn->query($usernamecheck); if($result->num_rows != 0){ header("Location: signup.php?error=Username already exists"); exit(); } + while($row = $result->fetch_assoc()){ + echo $row[username]; + }exit(); $hashedPassword = password_hash($user_password, PASSWORD_DEFAULT); $sql = "INSERT into (username, hashedpassword) values ($user_name, $hashedPassword);"; //echo $sql;exit(); From d21787e4e7f8f46ae0f68612f4fdbcd05943ff73 Mon Sep 17 00:00:00 2001 From: nihr43 Date: Thu, 10 Nov 2016 21:05:22 -0600 Subject: [PATCH 094/416] changed title --- account.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/account.php b/account.php index 3e30c9f2e..f76a8a08a 100644 --- a/account.php +++ b/account.php @@ -12,8 +12,8 @@
    -

    Welcome to RADs

    -

    Research Analysis and Database for Scientists

    +

    Account information

    +

    -

    Firstname:

    -

    Lastname:

    -

    username:

    +

    Firstname:

    +

    Lastname:

    +

    username:

    From 03c03bbabf8d8096e9435839d7535c76853b1513 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:05:59 -0600 Subject: [PATCH 095/416] Update signupVerify.php --- signupVerify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/signupVerify.php b/signupVerify.php index d813ed466..c142f1f39 100644 --- a/signupVerify.php +++ b/signupVerify.php @@ -12,7 +12,7 @@ } include "connection.php"; $conn = new mysqli($servername, $username, $password); - $usernamecheck = "select * from user where username = '$user_name'"; + $usernamecheck = "select * from db.user where username = '$user_name';"; echo $usernamecheck; $result = $conn->query($usernamecheck); if($result->num_rows != 0){ @@ -23,7 +23,7 @@ echo $row[username]; }exit(); $hashedPassword = password_hash($user_password, PASSWORD_DEFAULT); - $sql = "INSERT into (username, hashedpassword) values ($user_name, $hashedPassword);"; + $sql = "INSERT into db.user (username, hashedpassword) values ($user_name, $hashedPassword);"; //echo $sql;exit(); $conn->query($sql); if($conn->affected_rows != 1){ From f4cdbed080bde1f9c26b57a9894d536a3f369e66 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:07:27 -0600 Subject: [PATCH 096/416] Update signupVerify.php --- signupVerify.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/signupVerify.php b/signupVerify.php index c142f1f39..cae4c49a1 100644 --- a/signupVerify.php +++ b/signupVerify.php @@ -13,15 +13,12 @@ include "connection.php"; $conn = new mysqli($servername, $username, $password); $usernamecheck = "select * from db.user where username = '$user_name';"; - echo $usernamecheck; + //echo $usernamecheck; $result = $conn->query($usernamecheck); if($result->num_rows != 0){ header("Location: signup.php?error=Username already exists"); exit(); } - while($row = $result->fetch_assoc()){ - echo $row[username]; - }exit(); $hashedPassword = password_hash($user_password, PASSWORD_DEFAULT); $sql = "INSERT into db.user (username, hashedpassword) values ($user_name, $hashedPassword);"; //echo $sql;exit(); From 949b6e609b73ea277f1d22343bcd275ddf867315 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:08:11 -0600 Subject: [PATCH 097/416] Update signupVerify.php --- signupVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signupVerify.php b/signupVerify.php index cae4c49a1..5276c5766 100644 --- a/signupVerify.php +++ b/signupVerify.php @@ -20,7 +20,7 @@ exit(); } $hashedPassword = password_hash($user_password, PASSWORD_DEFAULT); - $sql = "INSERT into db.user (username, hashedpassword) values ($user_name, $hashedPassword);"; + $sql = "INSERT into db.user (username, hashedpassword) values ('$user_name', '$hashedPassword');"; //echo $sql;exit(); $conn->query($sql); if($conn->affected_rows != 1){ From a9d6f7c52e0c5c4174a546fedd635737ab150a37 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:10:33 -0600 Subject: [PATCH 098/416] Update signupVerify.php --- signupVerify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/signupVerify.php b/signupVerify.php index 5276c5766..eb0ee7f96 100644 --- a/signupVerify.php +++ b/signupVerify.php @@ -27,5 +27,7 @@ header("Location: signup.php?error=Information not stored"); exit(); } - //header("Location: login.php"); + session_start(); + $_SESSION[NAME] = $user_name; + header("Location: index.html"); ?> From 4ba9171744ccba0a0aabd084c7054a7ce12d6dba Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:13:13 -0600 Subject: [PATCH 099/416] Update loginVerify.php --- loginVerify.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/loginVerify.php b/loginVerify.php index 076996e75..6dbdd0bb7 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -23,7 +23,7 @@ // echo "connected to db
    "; //$link = mysqli_connect("$servername", "$username", "$password", "$dbname") or die ("Connection Error " . mysqli_error($link)); //TODO: hash password! - $sql = "SELECT username FROM db.user WHERE username = '$user_name' and password = '$user_password';"; + $sql = "SELECT username, hashedpassword FROM db.user WHERE username = '$user_name';"; //$sql = "SELECT username FROM user WHERE username = ? AND password= ?;"; // $row = $dbconn->select($sql, array($user_name, $user_password)); // if(count($errors = $dbconn->getErrors()) > 0){ @@ -35,7 +35,8 @@ // } $result = $conn->query($sql); $row = $result->fetch_assoc(); - if ($user_name == $row['username'] ) { + //if ($user_name == $row['username'] ) { + if(password_verify($user_password, $row['hashedpassword']){ $_SESSION[NAME] = $user_name; //echo "success
    "; header("Location: index.html"); From 89e1d50f62d56ac1592f0c823d0c3c1c4a06d210 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:14:10 -0600 Subject: [PATCH 100/416] Update loginVerify.php --- loginVerify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loginVerify.php b/loginVerify.php index 6dbdd0bb7..110a6ab07 100644 --- a/loginVerify.php +++ b/loginVerify.php @@ -36,7 +36,7 @@ $result = $conn->query($sql); $row = $result->fetch_assoc(); //if ($user_name == $row['username'] ) { - if(password_verify($user_password, $row['hashedpassword']){ + if(password_verify($user_password, $row['hashedpassword'])){ $_SESSION[NAME] = $user_name; //echo "success
    "; header("Location: index.html"); From 1ddc57579d1a6a40e4f0f81f4a83394d32719746 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:18:05 -0600 Subject: [PATCH 101/416] Update upload.html --- upload.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/upload.html b/upload.html index b2fd2af5d..93e8ae2d5 100644 --- a/upload.html +++ b/upload.html @@ -1,3 +1,6 @@ + From 4ba88cb5eae064799d205d1b1b80feff823a5876 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:19:02 -0600 Subject: [PATCH 102/416] Rename upload.html to upload.html.php --- upload.html => upload.html.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename upload.html => upload.html.php (100%) diff --git a/upload.html b/upload.html.php similarity index 100% rename from upload.html rename to upload.html.php From 8621e81619afb2103ef682eafabf32f8430b7584 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:19:52 -0600 Subject: [PATCH 103/416] Rename upload.html.php to upload.php --- upload.html.php => upload.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename upload.html.php => upload.php (100%) diff --git a/upload.html.php b/upload.php similarity index 100% rename from upload.html.php rename to upload.php From 440cb3e3942031100eba41ddfccc939298a66b09 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:20:22 -0600 Subject: [PATCH 104/416] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index c839b7bd7..c49da85b2 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@

    Welcome to RADs

    Research Analysis and Database for Scientists


    The goal of this application is to facilitate the research of computational social scientists and data scientists alike by serving as a repository for datasets and metadata following the Open Community Data eXchange (OCDX) specification.

    From d384f4561618f14f6021399c7b4c1225c7f324e4 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:28:05 -0600 Subject: [PATCH 107/416] Update upload.php --- upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.php b/upload.php index 93e8ae2d5..d9250c44a 100644 --- a/upload.php +++ b/upload.php @@ -26,7 +26,7 @@
  • Upload
  • Search Manifests
  • Account
  • -
  • Logout
  • +
  • Logout
  • From 3158807bd17e702736245527e967bc0067ce3aa6 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 10 Nov 2016 21:28:39 -0600 Subject: [PATCH 108/416] Update upload.php --- upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.php b/upload.php index d9250c44a..fc8bfa477 100644 --- a/upload.php +++ b/upload.php @@ -23,7 +23,7 @@
    +
    From 305929d3b58bda549a99a9fc6feb1e044223043f Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:18:18 -0600 Subject: [PATCH 177/416] Update header.php --- header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index ad67daf22..2de393068 100644 --- a/header.php +++ b/header.php @@ -23,7 +23,7 @@ } ?> -
    +

    ">Logout

    -
    +
    From 5a37c49af4c92febf46777d0a0f6b9eeb6c808fa Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:19:28 -0600 Subject: [PATCH 178/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 2de393068..174a23861 100644 --- a/header.php +++ b/header.php @@ -48,4 +48,4 @@
  • Logout
  • -
    +
    From 12e339e0c2b9075c1ec6338ab0c1a1db5ab7c25a Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:21:33 -0600 Subject: [PATCH 179/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 174a23861..b2b44bc54 100644 --- a/header.php +++ b/header.php @@ -48,4 +48,4 @@
  • Logout
  • -
    +
    From 520c6190d0dd88e6268a938fda4d7fb8be91628b Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:23:41 -0600 Subject: [PATCH 180/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index b2b44bc54..4c84c06dd 100644 --- a/header.php +++ b/header.php @@ -22,7 +22,7 @@ break; } ?> - +

    Date: Thu, 17 Nov 2016 15:25:18 -0600 Subject: [PATCH 181/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 4c84c06dd..8a524ddf4 100644 --- a/header.php +++ b/header.php @@ -48,4 +48,4 @@
  • Logout
  • -
    +
    From eaba4fbfb0e34c6415bffaaf9f4c71d9320f7d0d Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:31:15 -0600 Subject: [PATCH 182/416] Update header.php --- header.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/header.php b/header.php index 8a524ddf4..6e5d7f10a 100644 --- a/header.php +++ b/header.php @@ -48,4 +48,5 @@
  • Logout
  • -
    +
    +
    From 3b4b64d563653bee06bcea2cbbd63cc34e062913 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:41:09 -0600 Subject: [PATCH 183/416] Update header.php --- header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index 6e5d7f10a..2b76f7bb3 100644 --- a/header.php +++ b/header.php @@ -23,7 +23,7 @@ } ?>
    -
    +


    -
    -
    +
    From 8f3457b59821fc8bb7c222e56f5e0c99e0c178ed Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 15:46:05 -0600 Subject: [PATCH 185/416] Update header.php --- header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/header.php b/header.php index 9ab3ae9e2..83f17e852 100644 --- a/header.php +++ b/header.php @@ -23,8 +23,8 @@ } ?>
    -
    -

    +

    Date: Thu, 17 Nov 2016 15:55:00 -0600 Subject: [PATCH 186/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 83f17e852..2a5c18d4c 100644 --- a/header.php +++ b/header.php @@ -23,7 +23,7 @@ } ?>
    -
    +

    Date: Thu, 17 Nov 2016 15:55:40 -0600 Subject: [PATCH 187/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 2a5c18d4c..4c4c64a77 100644 --- a/header.php +++ b/header.php @@ -22,7 +22,7 @@ break; } ?> -
    +

    Date: Thu, 17 Nov 2016 15:56:51 -0600 Subject: [PATCH 188/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index 4c4c64a77..bfa93e03a 100644 --- a/header.php +++ b/header.php @@ -1,5 +1,5 @@ From 57996bc3357d330e3d308f83e30b0e42181b4f1c Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 16:00:09 -0600 Subject: [PATCH 189/416] Update upload.php --- upload.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/upload.php b/upload.php index 534e79ae2..110ead66f 100644 --- a/upload.php +++ b/upload.php @@ -1,5 +1,6 @@ @@ -14,9 +15,7 @@ - +

    From 0f623c77e03e1451f9a453ec80a495a10820fac1 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 16:01:25 -0600 Subject: [PATCH 190/416] Update upload.php --- upload.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/upload.php b/upload.php index 110ead66f..5dbafe34b 100644 --- a/upload.php +++ b/upload.php @@ -1,6 +1,6 @@ @@ -15,8 +15,9 @@ - - +


    From 5c8fc4b61a05c19f7d5a1b89ba5f55ffb91df557 Mon Sep 17 00:00:00 2001 From: Zaphster Date: Thu, 17 Nov 2016 16:02:30 -0600 Subject: [PATCH 191/416] Update header.php --- header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/header.php b/header.php index bfa93e03a..9d035d5df 100644 --- a/header.php +++ b/header.php @@ -34,7 +34,7 @@ } ?>


    -


    -