Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: Plinth/Videyard
base: 8458dc0faa
...
head fork: Plinth/Videyard
compare: b7228c4a55
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 2 contributors
View
5 lesson.php
@@ -6,6 +6,11 @@
include("app/classes/lesson.php");
+ //Check the user is logged in
+ if (empty($_SESSION['user_id'])) {
+ header("location: index.php");
+ }
+
if(!isset($_GET['id'])){
header("location: lessons.php");
}
View
7 lessons.php
@@ -3,10 +3,9 @@
//list all lessons with brief information and thumbnails. Search and filter tools.
// If the session var is empty, redirect to the log-in
- //UNCOMMENT THIS AFTER TESTING
- //if (empty($_SESSION['user_id'])) {
- // header("location: index.php");
- //}
+ if (empty($_SESSION['user_id'])) {
+ header("location: index.php");
+ }
include("app/classes/site.php");
include("app/classes/lesson.php");
View
5 report.php
@@ -3,6 +3,11 @@
include("app/classes/site.php");
include("app/classes/video.php");
+ //Check the user is logged in
+ if (empty($_SESSION['user_id'])) {
+ header("location: index.php");
+ }
+
if(isset($_GET['id'])){
$pdo = new PDO(DB_DETAILS, DB_USER, DB_PASS);
View
8 school.php
@@ -1,9 +1,9 @@
<?php
session_start();
- //UNCOMMENT THIS AFTER TESTING
- //if (empty($_SESSION['user_id'])) {
- // header("location: index.php");
- //}
+ //Check the user is logged in
+ if (empty($_SESSION['user_id'])) {
+ header("location: index.php");
+ }
include("app/classes/site.php");
include("app/classes/school.php");
View
3  videos.php
@@ -3,8 +3,7 @@
//list all videos with brief information and thumbnails. Search and filter tools.
// If the session var is empty, redirect to the log-in
- UNCOMMENT THIS AFTER TESTING
- if (empty($_SESSION['user_id'])) {
+ if(empty($_SESSION['user_id'])) {
header("location: index.php");
}

No commit comments for this range

Something went wrong with that request. Please try again.