-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
65 lines (50 loc) · 1.34 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
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
require_once(__DIR__.'/config.php');
//if(!Config::isLocal())die();
?>
<!doctype html>
<html><head>
<meta charset="utf-8">
<title>The Djukebox</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="<?php echo Config::FS(); ?>scripts/ajax3.js.php"></script>
<script>
Ajax.setConf('<?php echo Config::FS(); ?>ajax.php');
var Tools = {
ini :function(){
$("#errordiv, #noticediv").click(function(){$(this).html("").toggleClass("hidden", true);});
},
addErrors:function(text, isNotice){
var targ = "#errordiv"
if(!isNotice){
targ = "#noticediv";
}
$(targ).append(text).toggleClass("hidden", false);
}
};
$(function(){
Ajax.bindErrorOverride(function(errors, notices){
if(errors.length){
Tools.addErrors(errors.join("<br />")+"<br />", true);
}
if(notices.length){
Tools.addErrors(notices.join("<br />")+"<br />", true);
}
});
Tools.ini();
});
</script>
<link rel="stylesheet" href="<?php echo Config::FS(); ?>style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
</head>
<body><div id="ff_fix">
<?php
Tools::dumpNotices();
FrontController::ini();
Tools::dumpNotices();
?>
</div></body>
</html>