-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinclude.php
More file actions
25 lines (21 loc) · 903 Bytes
/
include.php
File metadata and controls
25 lines (21 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
session_start();
define('ROOT_PATH', '/ConnectEvents/');
include_once('php/database/connexionBD.php');
include_once('php/class/inscriptionClass.php');
include_once('php/class/connexionClass.php');
include_once('php/class/addPostClass.php');
include_once('php/class/saveUserInformation.php');
include_once('php/class/addComment.php');
require_once('php/functions/functionsCode.php');
require_once('php/functions/functionsSQL.php');
$_INSCRIPTION = new Inscription;
$_CONNEXION = new Connexion;
$_ADDPOST = new addPost;
$_SAVE = new Sauvegarder;
$_ADDCOMMENT = new addComment;
if(!empty($_SESSION['utilisateur'])) {
$profile_picture = profilPicture($_SESSION['utilisateur'][5], $_SESSION['utilisateur'][1]);
$banner_picture = bannerPicture($_SESSION['utilisateur'][6], $_SESSION['utilisateur'][1]);
}
?>