Your ROOT_URL in app.ini is https://code.exacti.com.br/ but you are visiting https://git.exacti.com.br/ExacTI/phacil-framework/src/commit/3168ed2be0e013a6f665ab4225ae2da2bd9534c1/public_html/index.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
A super easy PHP Framework for web development! https://github.com/exacti/phacil-framework

30 lines
658 B

<?php
/**
* Copyright (c) 2019. ExacTI Technology Solutions
* GPLv3 General License.
* https://exacti.com.br
* Phacil PHP Framework - https://github.com/exacti/phacil-framework
*/
$baseDir = str_replace('public_html', '', __DIR__); // change this with config.php directory.
// start Phacil engine
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:
require_once(DIR_SYSTEM.'system.php');
break;
}