-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcustom_index.php
More file actions
39 lines (30 loc) · 1.08 KB
/
custom_index.php
File metadata and controls
39 lines (30 loc) · 1.08 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
<?php
/**
* CUSTOM GetSimpleCMS Index
*
* Front-End public index
* @version 3.4
* @author shawn_a
* @package GetSimple
* @subpackage CustomFrontEnd
*/
if(!defined('GSBASE')) define('GSBASE',true);
if(!defined('GSADMINDEFAULT')) define('GSADMINDEFAULT','admin');
if(!defined('GSCOMMON')) define('GSCOMMON','/inc/common.php');
if(!defined('GSCONFIGFILE')) define('GSCONFIGFILE','gsconfig.php');
if(!defined('GSSTYLEWIDE' )) define('GSSTYLEWIDE','wide');
if(!defined('GSSTYLE_SBFIXED')) define('GSSTYLE_SBFIXED','sbfixed');
//load config and determine custom GSADMIN path
if (file_exists(GSCONFIGFILE)) require_once(GSCONFIGFILE);
$GSADMIN = defined('GSADMIN') ? GSADMIN : GSADMINDEFAULT;
$load['template'] = false;
$load['plugins'] = false;
# Include common.php
include($GSADMIN.GSCOMMON);
//CUSTOM
// loads codemirror and outputs the current page $data_index
queue_script('gscodeeditor',GSBOTH);
get_scripts_backend();
$output = print_r($data_index,true);
echo '<div class="codewrap"><textarea data-mode="php" class="code_edit"><?php '.$output.'?></textarea></div>';
?>