-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
113 lines (107 loc) · 5.23 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
//var_dump($dbManager->authenticateUser('[email protected]', md5('1')));
//var_dump($dbManager->query('select * from Users;'));
//var_dump($_SERVER);
//var_dump($eventManager);
session_start();
include_once('util.php');
$eventManager = new EventManager();
//EventManager::$db->createObjectClassFromTable('Html');
//$array = array(
// 'userName' => 'osman',
// 'password' => sha1(md5('osoz7162' . PASS_STRING)),
// 'createdOn' => time(),
// 'lastLogin' => time(),
// 'userType' => ADMIN
//);
//EventManager::$db->signup($array);
//$array = array(
// 'email' => '[email protected]',
// 'password' => sha1(md5('osoz7162' . PASS_STRING))
//);
//$user = new User($array);
//$user = $user->load();
//$user = $user->save();
$page = $eventManager->serve();
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>project nunu 0.1</title>
<link rel="stylesheet" type="text/css" href="<?= EventManager::url('css/jquery.jscrollpane.css') ?>" media="all" />
<link rel="stylesheet" type="text/css" href="<?= EventManager::url('css/jquery.toastmessage.css') ?>" media="all" />
<link rel="stylesheet" type="text/css" href="<?= EventManager::url('css/opentip.css') ?>" media="all" />
<link rel="stylesheet" type="text/css" href="<?= EventManager::url('css/icons.css') ?>" media="all" />
<link rel="stylesheet" type="text/css" href="<?= EventManager::url('css/style.css') ?>" media="all" />
<link href='http://fonts.googleapis.com/css?family=Sniglet:400,800|Architects+Daughter' rel='stylesheet' type='text/css'>
<?php
echo $eventManager->css;
?>
</head>
<body>
<div id="wrapper" class="">
<div id="header">
<?php if(userExists()): ?>
<div class="admin-mini-panel">
<a class="white-gloss-button" id="logout-button" href="<?= EventManager::url('logout') ?>"><span class="icon-exit"></span> Çıkış Yap</a>
<a class="white-gloss-button" id="new-item-button"><span class="icon-plus"></span> Yeni</a>
</div>
<?php endif; ?>
<div id="logo">
<img src="<?= EventManager::url('css/images/logo.jpg') ?>" />
</div>
<div id="header-menu">
<ul>
<li class="trans-all hakkimizda-link">
<a href="<?= EventManager::url('hakkimizda') ?>">Hakkimizda</a>
</li>
<li class="trans-all turk-genci-kimdir-link">
<a href="<?= EventManager::url('turk-genci-kimdir') ?>">Türk Genci Kimdir?</a>
</li>
<li class="trans-all calismalarimiz-link">
<a href="<?= EventManager::url('calismalarimiz') ?>">Çalışmalarımız</a>
</li>
<li class="trans-all bir-derdim-var-link">
<a href="<?= EventManager::url('bir-derdim-var') ?>">Bir Derdim Var!</a>
</li>
</ul>
</div>
</div>
<?php
echo $page;
?>
</div>
<script type="text/javascript">
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/BlackBerry/i) ||
navigator.userAgent.match(/webOS/i))
{
var viewportmeta = document.querySelector('meta[name="viewport"]');
if (viewportmeta) {
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0, initial-scale=1.0';
}
}
</script>
<script type="text/javascript" src="<?= EventManager::url('js/timezone.detector.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/jquery.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/jquery.lazyload.min.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/jquery.mousewheel.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/jquery.jscrollpane.min.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/mwheelIntent.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/jquery.toastmessage.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/opentip-jquery.min.js') ?>"></script>
<?php
echo addJSVars();
?>
<script type="text/javascript" src="<?= EventManager::url('js/util.js') ?>"></script>
<script type="text/javascript" src="<?= EventManager::url('js/kba.js') ?>"></script>
<?php
echo $eventManager->js;
?>
</body>
</html>
<?php
exit;
?>