/
index.php
129 lines (112 loc) · 5.72 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
include_once(dirname(dirname(dirname(__FILE__))) . '/config/config.ini.php');
include_once(dirname(__FILE__) . '/action/verify.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Simple MC Content Management</title>
<?php if(defined('SMC_DEBUG_MODE') && SMC_DEBUG_MODE): ?>
<link href="<?php echo SMC_EXT_REL; ?>/resources/css/ext-all.css" rel="stylesheet" type="text/css" media="screen"<?php echo SMC_CLOSE_TAG; ?>>
<link href="<?php echo SMC_EXT_REL; ?>/resources/css/xtheme-<?php echo SMC_THEME; ?>.css" rel="stylesheet" type="text/css" media="screen"<?php echo SMC_CLOSE_TAG; ?>>
<link href="<?php echo SMC_ADMIN_REL; ?>/stylesheets/screen.css" rel="stylesheet" type="text/css" media="screen"<?php echo SMC_CLOSE_TAG; ?>>
<link href="<?php echo SMC_CSS_REL; ?>/fck_content.css" rel="stylesheet" type="text/css" media="screen"<?php echo SMC_CLOSE_TAG; ?>>
<?php else: ?>
<!-- Serve minified css -->
<?php endif; ?>
</head>
<body scroll="no">
<div id="loading-mask"></div>
<div id="loading">
<div class="loading-indicator">
<img src="images/large-loading.gif" width="32" height="32" style="margin-right:8px;" align="absmiddle">Loading...
</div>
</div>
<div id="header">
<img src="images/admin-header.png" alt="SimpleMC Administration">
<div id="header-nav">
<span id="bai_home"><a href="<?php echo BASE_URL; ?>">Home</a></span>
<span id="bai_logout"><a href="<?php echo SMC_REL; ?>/logout.php">Logout</a></span>
</div>
</div>
<!-- Template used for Content Block Items -->
<textarea id="preview-tpl" style="display:none">
<div class="content-data">
<h3 class="content-description">{description}</h3>
<p id="shortcut">
The code snippet needed to pull this content into the website: <strong>{shortcut:htmlEncode}</strong>
</p>
</div>
<div class="content-source">
{source}
</div>
</textarea>
<div id="south">
<p>
©
<?php echo date('Y'); ?>
<a href="http://www.blueatlas.com">Blue Atlas Interactive</a>
</p>
</div>
<?php if(defined('SMC_IE_DEBUG') && SMC_IE_DEBUG): ?>
<script type='text/javascript' src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
<?php endif; ?>
<?php if(defined('SMC_DEBUG_MODE') && SMC_DEBUG_MODE): ?>
<script type="text/javascript" src="<?php echo SMC_EXT_REL; ?>/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<?php echo SMC_EXT_REL; ?>/ext-all.js"></script>
<script type="text/javascript" src="<?php echo SMC_JAVASCRIPTS_REL; ?>/auth.js"></script>
<script type="text/javascript" src="<?php echo SMC_ADMIN_REL; ?>/state/SessionProvider.js"></script>
<script type="text/javascript" src="<?php echo SMC_FCK_REL; ?>/fckeditor.js"></script>
<?php else: ?>
<!-- Implement js minify -->
<?php endif; ?>
<script type="text/javascript" src="<?php echo sprintf('%s/state/save-state.php', SMC_ADMIN_REL); ?>"></script>
<script type="text/javascript" src="<?php echo sprintf('%s/state/get-state.php', SMC_ADMIN_REL); ?>"></script>
<script language="javascript" type="text/javascript">
<!--
Ext.namespace('SMC_ADMIN');
SMC_ADMIN = function() {
return {
oFCKeditor: null,
smc_core: '',
javascripts: '',
init: function()
{
//throughout the duration of this administrative session
//ensure that the administrator is logged in
var auth = new Auth({path : SMC_ADMIN.smc_core, timer : 120});
auth.initiateAuthTaskRunner();
Ext.BLANK_IMAGE_URL = '<?php echo SMC_EXT_REL; ?>/resources/images/default/s.gif';
SMC_ADMIN.oFCKeditor = new FCKeditor('baiEditor');
SMC_ADMIN.oFCKeditor.BasePath = "<?php echo SMC_FCK_REL; ?>/";
SMC_ADMIN.oFCKeditor.ToolbarSet = "SMC";
SMC_ADMIN.oFCKeditor.Height = window.innerHeight - 200;
//remove load mask
setTimeout(function(){
Ext.get('loading').remove();
Ext.get('loading-mask').fadeOut({
remove: true
});
}, 250);
}
}
}();
Ext.onReady(function(){
SMC_ADMIN.javascripts = '<?php echo SMC_JAVASCRIPTS_REL; ?>';
SMC_ADMIN.smc_core = '<?php echo SMC_CORE_REL; ?>';
SMC_ADMIN.init();
});
-->
</script>
<?php if(defined('SMC_DEBUG_MODE') && SMC_DEBUG_MODE): ?>
<script type="text/javascript" src="<?php echo SMC_ADMIN_REL; ?>/javascripts/TabCloseMenu.js"></script>
<script type="text/javascript" src="<?php echo SMC_ADMIN_REL; ?>/javascripts/AdminLayout.js"></script>
<script type="text/javascript" src="<?php echo SMC_ADMIN_REL; ?>/javascripts/AdminPanel.js"></script>
<script type="text/javascript" src="<?php echo SMC_ADMIN_REL; ?>/javascripts/ContentGrid.js"></script>
<script type="text/javascript" src="<?php echo SMC_ADMIN_REL; ?>/javascripts/MainPanel.js"></script>
<?php else: ?>
<!-- Implement js minify -->
<?php endif; ?>
</body>
</html>