-
Notifications
You must be signed in to change notification settings - Fork 99
/
index.php
executable file
·35 lines (30 loc) · 795 Bytes
/
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
<?php
/**
* Make sure php is running
*
*/
if( false ){
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Error: PHP is not running</title>
</head>
<body>
<h1><a href="https://www.typesettercms.com/">Typesetter CMS</a></h1>
<h2>Error: PHP is not running</h2>
<p>Typesetter requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
</body>
</html>
<?php
}
if( version_compare(phpversion(), '5.6.0', '<') ){
exit( 'Error: Typesetter CMS requires PHP 5.6+. This server is running PHP version ' . phpversion() );
}
/**
* See gpconfig.php for configuration options
*
*/
if( file_exists('gpconfig.php') ) require_once('gpconfig.php');
require_once('./include/main.php');