PHP Classes

File: config/config.php

Recommend this page to a friend!
  Packages of Luis Toscano   Easy API   config/config.php   Download  
File: config/config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Easy API
Handle API calls by mapping requests to functions
Author: By
Last change: V0.0.0.0.1 - d-_-b
Date: 7 months ago
Size: 632 bytes
 

Contents

Class file image Download
<?php

define
('LIBS', 'libs');

// Setup config
$config = [
   
'jwtenabled' => true,
   
'cors' => false,
   
'autoresponse' => 'json',
   
'enable_db' => false
];

// Database Configs
$host = 'localhost';
$user = '';
$pass = '';
$database = '';

if(
$config['enable_db']){
   
$db = mysqli_connect($host,$user,$pass,$database) or die("Error : Ouch!! => " . mysqli_error($db));
}

// Setup QueryString in a global variable $qs
$qs = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : '';

// Factory Array
$factory = array();

// Libraries
$library = array(
 
'mixing' => '',
 
'Request' => ''
);