PHP Classes

File: core/init.php

Recommend this page to a friend!
  Classes of mohammad anzawi   PHP Multilingual Support Library   core/init.php   Download  
File: core/init.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: PHP Multilingual Support Library
Translate texts for Web sites from JSON or DB
Author: By
Last change: Update init.php
Date: 6 years ago
Size: 767 bytes


Class file image Download
 * init file
 * this file loaded when web app/site initialize

// start session if not already started
if (session_status() == PHP_SESSION_NONE || !isset($_SESSION))
// set header content HTML and charset utf-8
header('Content-Type: text/html; charset=utf-8');
// main file directory
define('ROOT', dirname(__DIR__) . SP);
// classes file directory
define('CLS', ROOT . 'inc/classes' . SP);
// functions file directory
define('FUNC', ROOT . 'inc/functions' . SP);
// core file directory
define('CORE', ROOT . 'core' . SP);

// require_once (FUNC . 'functions.php');

// require_once (__DIR__ . '/../vendor/autoload.php');

// require_once (__DIR__ . "/detect_visitor_language.php");