diff --git a/Move & Restore/exercises.php b/Move & Restore/exercises.php new file mode 100644 index 0000000..8f21108 --- /dev/null +++ b/Move & Restore/exercises.php @@ -0,0 +1,60 @@ + + + + Exercises + + + + +

Exercise by Body Part

+ +
+
+ ankle exercise +
Ankle and Foot Exercises
+
+
+ back exercise +
Back Exercises
+
+
+ elbow exercises +
Elbow and Forearm Exercises
+
+
+
+
+ hip exercises +
Hip and Thigh Exercises
+
+
+ knee exercises +
Knee and Lower Leg Exercies
+
+
+ neck exercises +
Head and Neck Exercises
+
+
+
+
+ shoulder exercises +
Shoulder and Upper Arm Exercises
+
+
+ wrist exercises +
Wrist and Hand Exercises
+
+
+ whole body exercies +
Whole Body Exercises
+
+
+ + + + \ No newline at end of file diff --git a/Move & Restore/exercises/ankle.php b/Move & Restore/exercises/ankle.php new file mode 100644 index 0000000..9ef0dc8 --- /dev/null +++ b/Move & Restore/exercises/ankle.php @@ -0,0 +1,33 @@ + + + + + + + Exercises | Ankles and Feet + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + diff --git a/Move & Restore/exercises/back.php b/Move & Restore/exercises/back.php new file mode 100644 index 0000000..317eda7 --- /dev/null +++ b/Move & Restore/exercises/back.php @@ -0,0 +1,31 @@ + + + + Exercises | Back + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + diff --git a/Move & Restore/exercises/elbow.php b/Move & Restore/exercises/elbow.php new file mode 100644 index 0000000..49fbe9d --- /dev/null +++ b/Move & Restore/exercises/elbow.php @@ -0,0 +1,31 @@ + + + + Exercises | Elbow and Forearm + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + diff --git a/Move & Restore/exercises/hip.php b/Move & Restore/exercises/hip.php new file mode 100644 index 0000000..ecc6691 --- /dev/null +++ b/Move & Restore/exercises/hip.php @@ -0,0 +1,31 @@ + + + + Hip and Thigh Exercises + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/Move & Restore/exercises/knee.php b/Move & Restore/exercises/knee.php new file mode 100644 index 0000000..21dd5d1 --- /dev/null +++ b/Move & Restore/exercises/knee.php @@ -0,0 +1,30 @@ + + + Knee and Lower Leg Exercises + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/Move & Restore/exercises/neck.php b/Move & Restore/exercises/neck.php new file mode 100644 index 0000000..e973544 --- /dev/null +++ b/Move & Restore/exercises/neck.php @@ -0,0 +1,31 @@ + + + + Head and Neck Exercises + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/Move & Restore/exercises/shoulder.php b/Move & Restore/exercises/shoulder.php new file mode 100644 index 0000000..b5d9dd2 --- /dev/null +++ b/Move & Restore/exercises/shoulder.php @@ -0,0 +1,31 @@ + + + + Shoulder and Upper Arm Exercises + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/Move & Restore/exercises/wholebody.php b/Move & Restore/exercises/wholebody.php new file mode 100644 index 0000000..abcfd5a --- /dev/null +++ b/Move & Restore/exercises/wholebody.php @@ -0,0 +1,31 @@ + + + + Whole Body Exercises + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/Move & Restore/exercises/wrist.php b/Move & Restore/exercises/wrist.php new file mode 100644 index 0000000..31ea44a --- /dev/null +++ b/Move & Restore/exercises/wrist.php @@ -0,0 +1,31 @@ + + + + Wrist and Hand Exercises + + + + + +

Ankle and Foot Exercises

+ + +
+ +
+ + + + + + \ No newline at end of file diff --git a/Move & Restore/footer.php b/Move & Restore/footer.php new file mode 100644 index 0000000..1f589c2 --- /dev/null +++ b/Move & Restore/footer.php @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/Move & Restore/header.exercise.php b/Move & Restore/header.exercise.php new file mode 100644 index 0000000..8acd41a --- /dev/null +++ b/Move & Restore/header.exercise.php @@ -0,0 +1,37 @@ + + + + + + + + + +
+ + +
\ No newline at end of file diff --git a/Move & Restore/header.php b/Move & Restore/header.php new file mode 100644 index 0000000..56ec554 --- /dev/null +++ b/Move & Restore/header.php @@ -0,0 +1,55 @@ + + + + + + + + + +
+ +
+ + + + '; + } + else { + echo '
+ + + +
+ Signup'; + } + ?> +
+
\ No newline at end of file diff --git a/Move & Restore/images/ankles.jpg b/Move & Restore/images/ankles.jpg new file mode 100644 index 0000000..fde692a Binary files /dev/null and b/Move & Restore/images/ankles.jpg differ diff --git a/Move & Restore/images/back.jpg b/Move & Restore/images/back.jpg new file mode 100644 index 0000000..b1920e9 Binary files /dev/null and b/Move & Restore/images/back.jpg differ diff --git a/Move & Restore/images/cardio.jpg b/Move & Restore/images/cardio.jpg new file mode 100644 index 0000000..806c4f3 Binary files /dev/null and b/Move & Restore/images/cardio.jpg differ diff --git a/Move & Restore/images/elbow.jpg b/Move & Restore/images/elbow.jpg new file mode 100644 index 0000000..b4f55f4 Binary files /dev/null and b/Move & Restore/images/elbow.jpg differ diff --git a/Move & Restore/images/elbows.jpg b/Move & Restore/images/elbows.jpg new file mode 100644 index 0000000..3dd12b5 Binary files /dev/null and b/Move & Restore/images/elbows.jpg differ diff --git a/Move & Restore/images/hands.jpg b/Move & Restore/images/hands.jpg new file mode 100644 index 0000000..6830064 Binary files /dev/null and b/Move & Restore/images/hands.jpg differ diff --git a/Move & Restore/images/knee.jpg b/Move & Restore/images/knee.jpg new file mode 100644 index 0000000..e07abb2 Binary files /dev/null and b/Move & Restore/images/knee.jpg differ diff --git a/Move & Restore/images/neck.jpg b/Move & Restore/images/neck.jpg new file mode 100644 index 0000000..50fb383 Binary files /dev/null and b/Move & Restore/images/neck.jpg differ diff --git a/Move & Restore/images/runner.jpeg b/Move & Restore/images/runner.jpeg new file mode 100644 index 0000000..24eac0f Binary files /dev/null and b/Move & Restore/images/runner.jpeg differ diff --git a/Move & Restore/images/runningshoes.jpeg b/Move & Restore/images/runningshoes.jpeg new file mode 100644 index 0000000..b68edb5 Binary files /dev/null and b/Move & Restore/images/runningshoes.jpeg differ diff --git a/Move & Restore/images/runningshoeshi.jpeg b/Move & Restore/images/runningshoeshi.jpeg new file mode 100644 index 0000000..59777a2 Binary files /dev/null and b/Move & Restore/images/runningshoeshi.jpeg differ diff --git a/Move & Restore/images/runningshoesli.jpeg b/Move & Restore/images/runningshoesli.jpeg new file mode 100644 index 0000000..f06909c Binary files /dev/null and b/Move & Restore/images/runningshoesli.jpeg differ diff --git a/Move & Restore/images/runningshoesmi.jpeg b/Move & Restore/images/runningshoesmi.jpeg new file mode 100644 index 0000000..31806e2 Binary files /dev/null and b/Move & Restore/images/runningshoesmi.jpeg differ diff --git a/Move & Restore/images/shoulder.jpg b/Move & Restore/images/shoulder.jpg new file mode 100644 index 0000000..e09e3aa Binary files /dev/null and b/Move & Restore/images/shoulder.jpg differ diff --git a/Move & Restore/images/strength.jpg b/Move & Restore/images/strength.jpg new file mode 100644 index 0000000..9c43be4 Binary files /dev/null and b/Move & Restore/images/strength.jpg differ diff --git a/Move & Restore/images/strengthb.jpg b/Move & Restore/images/strengthb.jpg new file mode 100644 index 0000000..9e72203 Binary files /dev/null and b/Move & Restore/images/strengthb.jpg differ diff --git a/Move & Restore/images/strengthbackground.jpg b/Move & Restore/images/strengthbackground.jpg new file mode 100644 index 0000000..ce93a39 Binary files /dev/null and b/Move & Restore/images/strengthbackground.jpg differ diff --git a/Move & Restore/images/stretching.jpg b/Move & Restore/images/stretching.jpg new file mode 100644 index 0000000..9222ffe Binary files /dev/null and b/Move & Restore/images/stretching.jpg differ diff --git a/Move & Restore/images/stretchingback.jpg b/Move & Restore/images/stretchingback.jpg new file mode 100644 index 0000000..a5fb283 Binary files /dev/null and b/Move & Restore/images/stretchingback.jpg differ diff --git a/Move & Restore/images/zumba.jpg b/Move & Restore/images/zumba.jpg new file mode 100644 index 0000000..605f84a Binary files /dev/null and b/Move & Restore/images/zumba.jpg differ diff --git a/Move & Restore/images/zumbaback.jpg b/Move & Restore/images/zumbaback.jpg new file mode 100644 index 0000000..4d7f096 Binary files /dev/null and b/Move & Restore/images/zumbaback.jpg differ diff --git a/Move & Restore/includes/dbh.inc.php b/Move & Restore/includes/dbh.inc.php new file mode 100644 index 0000000..bd17a61 --- /dev/null +++ b/Move & Restore/includes/dbh.inc.php @@ -0,0 +1,12 @@ + 0) { + header("Location: ../signup.php?error=sqlerror=usertaken&mail=".$email); + exit(); + } + else { + + $sql = "INSERT INTO users (uidUsers, emailUsers, pwdUsers) VALUES (?, ?, ?)"; + $stmt = mysqli_stmt_init($conn); + if (!mysqli_stmt_prepare($stmt, $sql)) { + header("Location: ../signup.php?error=sqlerror"); + exit(); + } + else { + $hashedPwd = password_hash($password, PASSWORD_DEFAULT); + + mysqli_stmt_bind_param($stmt, "sss", $username, $email, $hashedPwd); + mysqli_stmt_execute($stmt); + header("Location: ../signup.php?signup=success"); + exit(); + } + } + } +} + mysqli_stmt_close($stmt); + mysqli_close($conn); + +} + + else { + header("Location: ../signup.php?signup"); + } \ No newline at end of file diff --git a/Move & Restore/index.php b/Move & Restore/index.php new file mode 100644 index 0000000..0f545a6 --- /dev/null +++ b/Move & Restore/index.php @@ -0,0 +1,39 @@ + + +
+ Fill in all fields.

'; + } + if ($_GET["error"] == "error=sqlerrors") { + echo '

There has been an error logging in. Please try again.

'; + } + if ($_GET["error"] == "wrongpwd") { + echo '

This password is incorrect.

'; + } + if ($_GET["error"] == "nouser") { + echo '

This username does not exist.

'; + } + } + if (isset($_POST['signup-submit'])) { + + require 'dbh.inc.php'; +} + +if (isset($_SESSION['userId'])){ + echo "

You are logged in

"; +} +else { + echo '

You are not logged in.

'; +} + ?> + +
+ + \ No newline at end of file diff --git a/Move & Restore/signup.php b/Move & Restore/signup.php new file mode 100644 index 0000000..6dfd5d8 --- /dev/null +++ b/Move & Restore/signup.php @@ -0,0 +1,51 @@ + + +
+

Sign Up

+ Fill in all fields.

'; + } + else if ($_GET["error"] == "invalidmailuid") { + echo '

Invalid username and e-mail.

'; + } + else if ($_GET["error"] == "invaliduid") { + echo '

Invalid username.

'; + } + else if ($_GET["error"] == "invalidmail") { + echo '

Invalid e-mail.

'; + } + else if ($_GET["error"] == "passwordcheck") { + echo '

Your passwords do not match.

'; + } + else if ($_GET["error"] == "sqlerror=usertaken") { + echo '

Username is already taken.

'; + }} + if (isset($_GET['signup'])) { + if ($_GET['signup'] == "success") { + echo "

Sign Up Successful!

"; + } + else if ($_GET['signup'] != "success") { + echo "

Sign Up Unsuccessful

"; + } + } + if (isset($_POST['signup-submit'])) { + + require 'dbh.inc.php'; + } + ?> + +
+
+
+
+
+
+
+
+ +