-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (37 loc) · 804 Bytes
/
index.php
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
43
44
45
46
47
48
49
50
51
52
<?php
ob_start();
require_once 'baglan.php';
require_once 'header.php';
$_GET = array_map(function($get){
return htmlspecialchars(trim($get));
}, $_GET);
if (!isset($_GET['sayfa'])){
$_GET['sayfa'] = 'index';
}
Switch ($_GET['sayfa']){
case 'index':
require_once 'homepage.php';
break;
case 'insert':
require_once 'insert.php';
break;
case 'oku':
require_once 'oku.php';
break;
case 'guncelle':
require_once 'guncelle.php';
break;
case 'sil':
require_once 'sil.php';
break;
case 'kategoriler':
require_once 'kategoriler.php';
break;
case 'kategori_ekle':
require_once 'kategori_ekle.php';
break;
case 'kategori':
require_once 'kategori.php';
break;
}
?>