35 lines
760 B
PHP
35 lines
760 B
PHP
<?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(), '7.3.0', '<') ){
|
|
exit( 'Error: Typesetter CMS requires PHP 7.3+. 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');
|