PHP 8.2.32
Preview: index.php Size: 1.69 KB
/home/ecopackply/www/public/index.php

<?php

use CodeIgniter\Boot;
use Config\Paths;

/*
 *---------------------------------------------------------------
 * CHECK PHP VERSION
 *---------------------------------------------------------------
 */

$minPhpVersion = '8.1'; // If you update this, don't forget to update `spark`.
if (version_compare(PHP_VERSION, $minPhpVersion, '<')) {
    $message = sprintf(
        'Your PHP version must be %s or higher to run CodeIgniter. Current version: %s',
        $minPhpVersion,
        PHP_VERSION,
    );

    header('HTTP/1.1 503 Service Unavailable.', true, 503);
    echo $message;

    exit(1);
}

/*
 *---------------------------------------------------------------
 * SET THE CURRENT DIRECTORY
 *---------------------------------------------------------------
 */

// Path to the front controller (this file)
define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR);

// Ensure the current directory is pointing to the front controller's directory
if (getcwd() . DIRECTORY_SEPARATOR !== FCPATH) {
    chdir(FCPATH);
}

/*
 *---------------------------------------------------------------
 * BOOTSTRAP THE APPLICATION
 *---------------------------------------------------------------
 * This process sets up the path constants, loads and registers
 * our autoloader, along with Composer's, loads our constants
 * and fires up an environment-specific bootstrapping.
 */

// LOAD OUR PATHS CONFIG FILE
// This is the line that might need to be changed, depending on your folder structure.
require FCPATH . '../app/Config/Paths.php';
// ^^^ Change this line if you move your application folder

$paths = new Paths();

// LOAD THE FRAMEWORK BOOTSTRAP FILE
require $paths->systemDirectory . '/Boot.php';

exit(Boot::bootWeb($paths));

Directory Contents

Dirs: 3 × Files: 20

Name Size Perms Modified Actions
css DIR
- drwxr-xr-x 2026-01-27 08:07:40
Edit Download
js DIR
- drwxr-xr-x 2026-01-27 08:07:40
Edit Download
uploads DIR
- drwxr-xr-x 2026-01-27 08:07:40
Edit Download
1.62 KB lrw-r--r-- 2026-02-10 05:57:17
Edit Download
358 B lrw-r--r-- 2026-06-26 17:42:40
Edit Download
5.30 KB lrw-r--r-- 2026-01-27 08:07:40
Edit Download
44.54 KB lrw-r--r-- 2026-02-10 06:08:41
Edit Download
182.12 KB lrw-r--r-- 2026-02-10 05:57:19
Edit Download
127.20 KB lrw-r--r-- 2026-02-10 05:57:19
Edit Download
1.69 KB lrw-r--r-- 2026-02-10 05:57:20
Edit Download
68.45 KB lrw-r--r-- 2026-02-10 05:57:21
Edit Download
826.69 KB lrw-r--r-- 2026-02-10 05:57:31
Edit Download
155.97 KB lrw-r--r-- 2026-01-27 08:07:40
Edit Download
31.16 KB lrw-r--r-- 2026-02-10 05:57:23
Edit Download
50 B lrw-r--r-- 2026-06-23 17:10:32
Edit Download
25 B lrw-r--r-- 2026-02-10 05:57:24
Edit Download
1.53 MB lrw-r--r-- 2026-02-10 05:57:53
Edit Download
1.02 MB lrw-r--r-- 2026-02-10 05:57:48
Edit Download
139.19 KB lrw-r--r-- 2026-02-11 05:13:19
Edit Download
661.39 KB lrw-r--r-- 2026-02-10 05:57:57
Edit Download
661.11 KB lrw-r--r-- 2026-01-27 08:07:40
Edit Download
832.63 KB lrw-r--r-- 2026-01-27 08:07:40
Edit Download
811.40 KB lrw-r--r-- 2026-01-27 08:07:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).