PHP Classes
elePHPant
Icontem

File: application/core.php

Recommend this page to a friend!
  Classes of Tran Tuan  >  Pretty PHP S3 Files Manager  >  application/core.php  >  Download  
File: application/core.php
Role: Application script
Content type: text/plain
Description: Initial
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 3 years ago
Size: 827 bytes
 

 

Contents

Class file image Download
<?php
/*
 * Pre-config all require parameters
 * */
require_once dirname(__FILE__) . '/data/languages.php';
require_once
dirname(__FILE__) . '/modules/Data.php';
require_once
dirname(__FILE__) . '/config.php';

global
$AppConfig;
$AppConfig = new AppConfig();

require_once
dirname(__FILE__) . '/modules/exception.php';
if (
$AppConfig->params('action') != 'installation') {
    require_once
dirname(__FILE__) . '/modules/extensions/aws/aws-autoloader.php';
}
require_once
dirname(__FILE__) . '/modules/AppS3.php';
require_once
dirname(__FILE__) . '/modules/helpers.php';
require_once
dirname(__FILE__) . '/modules/controller.php';

$controller = $AppConfig->params('controller');
$action = $AppConfig->params('action');
$route = AppException::preCheckRouteRequest($AppConfig);

//Run the application
print $route->{$action}();