Skip to content

Commit

Permalink
Merge pull request #4 from joshp23/security-pronk
Browse files Browse the repository at this point in the history
Security pronk
  • Loading branch information
joshp23 committed Aug 26, 2017
2 parents fe70210 + 66c2428 commit 870e935
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/gatekeeper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
if( !defined( 'GNOTED_PRONK' ) ) die();

session_start();

// Convert timeout to seconds
Expand Down
1 change: 1 addition & 0 deletions assets/gnoted.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if( !defined( 'GNOTED_PRONK' ) ) die();

$notes = getNotes();
function getNotes() {
Expand Down
1 change: 1 addition & 0 deletions config.php.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if( !defined( 'GNOTED_PRONK' ) ) die();

$APP_PATH = "/path/to/your/notes/";
/* select one of the following bootswatch themes:
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
define('GNOTED_PRONK', true);
// https://www.youtube.com/watch?v=Jis_CrJ4zUI
require ("config.php");
require ("assets/gnoted.php");
if ($require_auth == true) require ("assets/gatekeeper.php");
Expand Down

0 comments on commit 870e935

Please sign in to comment.