-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added functionality to create new revisions based on the timestamp of the last revision
- Loading branch information
Peter Kraker
committed
Nov 19, 2015
1 parent
9b5ad83
commit 7830de1
Showing
4 changed files
with
84 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
<?php | ||
|
||
function getUserID() { | ||
if(isset($_SESSION['userInfo'])) { | ||
if (isset($_SESSION['userInfo'])) { | ||
return $_SESSION['userInfo']['userID']; | ||
} else { | ||
return false; | ||
} | ||
} | ||
|
||
|
||
function redirect($url) { | ||
if (headers_sent()) { | ||
die('<script type="text/javascript">window.location=\'' . $url . '\';</script>'); | ||
} else { | ||
header('Location: ' . $url); | ||
die(); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters