PHP Classes

File: config.php

Recommend this page to a friend!
  Classes of Yerfry Ramirez   Simple PHP OOP CMS   config.php   Download  
File: config.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Simple PHP OOP CMS
Build Web site pages from template classes
Author: By
Last change: Update config.php
Date: 9 years ago
Size: 592 bytes
 

Contents

Class file image Download
<?php
session_start
();
require_once
'core/autoload/autoload.php';

// Web Configurations
Configuration::set([
   
'Title' => 'Le Yerf',
   
'Description' => null
]);

// MySQL Settings
Configuration::set('MySQL', [
   
'Hostname' => '127.0.0.1',
   
'Username' => 'root',
   
'Password' => '',
   
'Database' => 'login'
]);

Configuration::set('AllowParse', true);

if(
is_bool(Configuration::get('AllowParse')) && Configuration::get('AllowParse') == true) Template::allowParse(true);

User::$UserIP = trim($_SERVER['REMOTE_ADDR']);
Restriction::InitializeIPRestriction(User::getBannedIPs(), User::$UserIP);
?>