forked from WebWizardss/Php_Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
42 lines (23 loc) · 645 Bytes
/
index.php
File metadata and controls
42 lines (23 loc) · 645 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
session_start();// taadi des variables fi koll page
require "./DbConnect/index.php";
$page_titel = "page d'acceill";
// if(!isset($_SESSION['lang'])){
// $_SESSION['lang']='en';
// }
if(!isset($_SESSION['carte'])){
$_SESSION['carte']=array();
}else{
// $_SESSION['carte']=$_SESSION['carte'];
}
// require_once "./languages/".$_SESSION['lang'].".php";
if(!isset($_SESSION['lang'])){
$_SESSION['lang']='en';
}
require_once "./languages/".$_SESSION['lang'].".php";
$res = $db->prepare("select * from categories");
$res->execute();
$categories = $res->fetchAll();
$template = "";
include "./layout.phtml";
?>