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
<?php | |
include('includes/db_connect.php'); | |
include 'includes/header.php'; | |
?> | |
<!-- Page Content --> | |
<div class="container extra-top-margin"> <!--start container--> | |
<div class="row"><!--wrap both columns in a row--> | |
<div class="col-md-8"><!--blog entries column--> | |
<?php | |
//This prepared statement will 'prepare' the database for query to be run then when $statementt->execute is run. The items from the array will be bound and sent to the server. |
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
<?php | |
include 'includes/header.php'; | |
?> | |
<!-- Page Content --> | |
<div class="container extra-top-margin"> <!--start container--> | |
<div class="row"><!--wrap both columns in a row--> | |
<div class="col-md-8"><!--blog entries column--> | |
<?php | |
//This code creates a connection to the database | |
include('includes/db_connect.php'); |
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
<?php | |
//include database connection and class config | |
require_once('../includes/db_connect.php'); | |
require_once('../includes/class_config.php'); | |
//if not logged in redirect to login page | |
if(!$user->is_logged_in()){ header('Location: login.php'); } | |
?> | |
<!DOCTYPE html> | |
<head> |
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
<?php | |
//include database connection and class config | |
require_once('../includes/db_connect.php'); | |
require_once('../includes/class_config.php'); | |
//if not logged in redirect to login page | |
if(!$user->is_logged_in()){ header('Location: login.php'); } | |
//show message from add / edit page | |
if(isset($_GET['deluser'])){ |
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
<?php | |
//include database connection and class config | |
require_once('../includes/db_connect.php'); | |
require_once('../includes/class_config.php'); | |
//if not logged in redirect to login page | |
if(!$user->is_logged_in()){ header('Location: login.php'); } | |
?> | |
<!DOCTYPE html> | |
<head> |
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
<?php | |
//include database connection and class config | |
require_once('../includes/db_connect.php'); | |
require_once('../includes/class_config.php'); | |
//if not logged in redirect to login page | |
if(!$user->is_logged_in()){ header('Location: login.php'); } | |
?> | |
<!doctype html> | |
<head> |
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
<?php | |
//include database connection and class config | |
require_once('../includes/db_connect.php'); | |
require_once('../includes/class_config.php'); | |
//if not logged in redirect to login page | |
if(!$user->is_logged_in()){ header('Location: login.php'); } | |
//show message from add / edit page | |
if(isset($_GET['delpost'])){ |
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
<?php | |
//include config | |
require_once('../includes/db_connect.php'); | |
//log user out | |
$user->logout(); | |
header('Location: index.php'); | |
?> |
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
<?php | |
if (!defined('PASSWORD_DEFAULT')) { | |
define('PASSWORD_BCRYPT', 1); | |
define('PASSWORD_DEFAULT', PASSWORD_BCRYPT); | |
} | |
Class Password { | |
public function __construct() {} | |