PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Mark Richards   CliqonV4   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: CliqonV4
Framework with modules to build Web applications
Author: By
Last change: Merge branch 'master' of https://github.com/webcliq/CliqonV4
Date: 6 years ago
Size: 515 bytes
 

 

Contents

Class file image Download
<?php
// Sets Root Directory and calls Startup
if( isset($_SERVER['HTTPS']) && !empty($_SERVER['HTTPS']) ) {
   
$protocol = "https://";
} else {
   
$protocol = "http://";
};

$rootpath = $protocol.$_SERVER['SERVER_NAME']."/";
$basedir = $_SERVER['DOCUMENT_ROOT']."/";

// We will use this to ensure scripts are not called from outside of the framework
define("CLIQON", true);

if(
file_exists($basedir.'notinstalled')) {
    require_once
'install/includes/install.php';
} else {
    require_once
'includes/startup.php'; //
}