A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
709 B

6 years ago
<?php
/**
3 years ago
* Copyright (c) 2021. ExacTI Technology Solutions
* GPLv3 General License.
* https://exacti.com.br
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
*/
6 years ago
$baseDir = str_replace('public_html', '', __DIR__); // change this with config.php directory.
// start Phacil engine
6 years ago
require_once($baseDir."config.php");
$tipe = (isset($_GET['_type_']))? $_GET['_type_'] : '';
switch($tipe) {
case 'img':
require_once(DIR_SYSTEM.'ecompress/optimeze_img.php');
break;
case 'script':
require_once(DIR_SYSTEM.'ecompress/css_and_javascript_optimized.php');
break;
default:
3 years ago
/** @return \Phacil\Framework\startEngineExacTI */
6 years ago
require_once(DIR_SYSTEM.'system.php');
break;
}