mirror of
https://github.com/pikami/palm-paste.git
synced 2025-12-21 01:39:49 +00:00
A better way to make a connection to the database
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
include "config/config.php";
|
||||
include_once "config/config.php";
|
||||
include_once "includes/user.php";
|
||||
$conn = GetConnectionToDB();
|
||||
if(GetUsersIDBySession($_COOKIE["pp_sid"],$_COOKIE["pp_skey"]) == -1){
|
||||
printf('<h2>You must be loged in to see your pastes!</h2>');
|
||||
$conn = null;
|
||||
|
||||
Reference in New Issue
Block a user