mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 13:59:11 +01:00
36 lines
760 B
PHP
36 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');
|