-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmod_preview.php
More file actions
40 lines (33 loc) · 1.21 KB
/
mod_preview.php
File metadata and controls
40 lines (33 loc) · 1.21 KB
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
<?php
##################################################
#
# Copyright (c) 2004-2006 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent is free software; you can redistribute
# it and/or modify it under the terms of the GNU
# General Public License as published by the Free
# Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
define('SCRIPT_EXP_RELATIVE','');
define('SCRIPT_FILENAME','mod_preview.php');
// Initialize the Exponent Framework
include_once('exponent.php');
$i18n = exponent_lang_loadFile('mod_preview.php');
$SYS_FLOW_REDIRECTIONPATH='previewreadonly';
if (is_readable(BASE.'themes/' . DISPLAY_THEME . '/module_preview.php')) {
// Include the Theme's module_preview.php file if it exists. Otherwise, we will include the default file later.
include_once('themes/' . DISPLAY_THEME . '/module_preview.php');
} else if (is_readable(BASE.'module_preview.php')) {
// Include the default module_preview.php, because we didn't find one in the theme.
include_once(BASE . 'module_preview.php');
} else {
echo $i18n['no_preview'];
}
?>