-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.php
executable file
·73 lines (70 loc) · 2.52 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
<?
include_once('php/global/ranvier.php');
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/css/base.css" rel="stylesheet">
<script language="javascript" src="/js/jquery.js"></script>
<script language="javascript" src="/js/bootstrap.min.js"></script>
<script language="javascript" src="/js/jquery.doTimeout.min.js"></script>
<script language="javascript" src="/js/ranvier.js"></script>
<script language="javascript" src="/js/sprintf.js"></script>
<script language="javascript" src="/js/jquery-ui.min.js"></script>
<script language="javascript" src="/js/jquery-touch-punch.js"></script>
<script language="javascript" src="/js/json2.js"></script>
<script language="javascript" src="/js/jqTouch.js"></script>
<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/theme-ranvier.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/ace/mode-javascript.js" type="text/javascript" charset="utf-8"></script>
<script src="/js/mdetect.js" type="text/javascript" charset="utf-8"></script>
</head>
<body id="nosn">
<? include('header.php'); ?>
<div class="container-fluid" id="dynPageBody">
<div id="wrap">
<? include('pages/' . $_POST['sec'] . '.php'); ?>
</div>
</div>
<div class="modal hide fade" id="scriptEditor">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">x</button>
<h3>Script Editor</h3>
</div>
<div class="modal-body">
<div class="row-fluid">
<div class="span4">Editor For<input type="hidden" id="fileID"></div>
<div class="span8"><span id="editorTitle"></span></div>
</div>
<div class="row-fluid">
<div id="editorTextPlacement"></textarea></div>
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal">Close Without Saving</a>
<a href="#" class="btn btn-primary" onClick="saveEditor()">Save changes</a>
</div>
</div>
</body>
<script>
$(document).ready(function() {
$("body").on({
click: function (e) {
e.preventDefault();
var p = $(this).attr('href').split('?');
var action = p[0];
var params = p[1].split('&');
var form = $(document.createElement('form')).attr('action', action).attr('method','post');
$('body').append(form);
for (var i in params) {
var tmp= params[i].split('=');
var key = tmp[0], value = tmp[1];
$(document.createElement('input')).attr('type', 'hidden').attr('name', key).attr('value', value).appendTo(form);
}
$(form).submit();
return false;
}
}, 'a.post');
});
</script>
</html>