forked from nyson/izwei
/
index.php
executable file
·57 lines (44 loc) · 1.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
<?
require_once("./lib/SQL.php"); // sql session management
require_once("./lib/Upload.php"); // upload management
require_once("./lib/Search.php"); // search management
require_once("./lib/Design.php"); // html output
require_once("./lib/Tags.php"); // tag management
if(isset($_GET['debug'])) {
echo "Debug mode on!";
error_reporting(E_ALL);
}else
error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE);
$inc = new Upload();
$inc->listen();
$site = new Design();
$tags = new Tags();
?>
<?php $site->header(); ?>
<body>
<div id="dialog">
<div class='content'></div>
</div>
<div id="menu"><h2>iZwei</h2>
<?
echo $site->form(FORM_SIMPLESEARCH);
echo $site->form(FORM_UPLOAD);
?>
</div>
<div id="content">
<?
// will be moved to design later on
$s = new Search();
$s->order(SORT_NEWEST);
$s->range(0, 12);
$res = $s->search();
while($image = $res->fetch_object())
echo $site->imageBlock($image);
?>
</div>
<div id="modal">
</div>
<div id="modalContent"> </div>
</body>
<? $site->footer();
?>