<?php
/*
*                                                                                                                                 
                                                                                                                                     
DDDDDDDDDDDDD                                                                              tttt            iiii                      
D::::::::::::DDD                                                                        ttt:::t           i::::i                     
D:::::::::::::::DD                                                                      t:::::t            iiii                      
DDD:::::DDDDD:::::D                                                                     t:::::t                                      
  D:::::D    D:::::D     eeeeeeeeeeee       mmmmmmm    mmmmmmm      ooooooooooo   ttttttt:::::ttttttt    iiiiiii     cccccccccccccccc
  D:::::D     D:::::D  ee::::::::::::ee   mm:::::::m  m:::::::mm  oo:::::::::::oo t:::::::::::::::::t    i:::::i   cc:::::::::::::::c
  D:::::D     D:::::D e::::::eeeee:::::eem::::::::::mm::::::::::mo:::::::::::::::ot:::::::::::::::::t     i::::i  c:::::::::::::::::c
  D:::::D     D:::::De::::::e     e:::::em::::::::::::::::::::::mo:::::ooooo:::::otttttt:::::::tttttt     i::::i c:::::::cccccc:::::c
  D:::::D     D:::::De:::::::eeeee::::::em:::::mmm::::::mmm:::::mo::::o     o::::o      t:::::t           i::::i c::::::c     ccccccc
  D:::::D     D:::::De:::::::::::::::::e m::::m   m::::m   m::::mo::::o     o::::o      t:::::t           i::::i c:::::c             
  D:::::D     D:::::De::::::eeeeeeeeeee  m::::m   m::::m   m::::mo::::o     o::::o      t:::::t           i::::i c:::::c             
  D:::::D    D:::::D e:::::::e           m::::m   m::::m   m::::mo::::o     o::::o      t:::::t    tttttt i::::i c::::::c     ccccccc
DDD:::::DDDDD:::::D  e::::::::e          m::::m   m::::m   m::::mo:::::ooooo:::::o      t::::::tttt:::::ti::::::ic:::::::cccccc:::::c
D:::::::::::::::DD    e::::::::eeeeeeee  m::::m   m::::m   m::::mo:::::::::::::::o      tt::::::::::::::ti::::::i c:::::::::::::::::c
D::::::::::::DDD       ee:::::::::::::e  m::::m   m::::m   m::::m oo:::::::::::oo         tt:::::::::::tti::::::i  cc:::::::::::::::c
DDDDDDDDDDDDD            eeeeeeeeeeeeee  mmmmmm   mmmmmm   mmmmmm   ooooooooooo             ttttttttttt  iiiiiiii    cccccccccccccccc
                                                                                                                                                                               
                                           
*
*
*/

/**
 * Demotic CMS is a fork of ImpressPages.
 * AUTHOR: Demotic
 */

if ((PHP_MAJOR_VERSION < 8) || (PHP_MAJOR_VERSION == 8 && PHP_MINOR_VERSION < 1)) {
    
    //Print out a HTML error page
    echo '<!DOCTYPE html><html>';
    echo '<head><title>Error: PHP Version Unsupported</title><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /><link rel="icon" type="image/x-icon" href="favicon.png" /></head>';
    echo '<body>';
    echo '<div style="text-align:center;font-family: Segoe, Calibri, Verdana, Helvetica, Arial, sans-serif;background-color:#fff;padding:20px;width: 60%;
margin: 3% auto 0;border-radius:20px;font-size: 20px;">';
    echo '<h1>Oops! Error!</h1>';
    echo '<img src="Demotic/Gebtu/Core/assets/admin/img/server_down.png" alt="server down" style="width:60%;" />';
    echo '<p>Your PHP version is: '.PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION.'. To run Demotic CMS you need PHP >= 8.1</p>';
    echo '<p> :-)) </p>';
    echo '</div>';
    echo '</body>';
    echo '</html>';

    exit;
}

require_once 'Demotic/script/run.php';