PHP Classes

File: public/install/index.php

Recommend this page to a friend!
  Classes of Aby Dahana  >  Aksara  >  public/install/index.php  >  Download  
File: public/install/index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Aksara
A CodeIgniter based API and CRUD generator
Author: By
Last change: Initial commit for update 4.2.8

This commit focuses on functioning the market addons. Current progress was finished for:
1. Theme and module import;
2. Theme and module uninstall;
3. Theme preview (pre-install);
4. Theme changer;
5. Theme customizer;

Updating the theme and url helper that previously not working with imported theme and modules. Add the function to call the asset under theme and module. The route module (core) was added for getting the theme and module assets.

Changes on Assets controller to working with theme preview (related to base_url and asset_url configuration value).

Add the extension (intl) check (pre-install) and phpspreadsheet dependencies to scale up the app to produce the excel import and export.

Correct the installation migration that previously fail to execute (caused by invalid json format while insert the data on group privileges table "by typo"). Change the structure of app__users table and change the country field to country_id (also rewrite users and account module).

Adds the capability to using custom title and icon for each request method (create, read, update, delete etc.) that previously applied to set_desrcription() with array pair: [$method => $title] | [$method => $icon]. Correcting the missing variable called from CRUD search feature.

This commit already tested both MySQLi, PostgreSQL and SQLite3. You may help me to test to install it under SQL Server database to check if it's has no error.
Updating the migration class name that not found
Refine the installation wizard
Update index.php

Whoops! The installer was error :anguished:
Update index.php

Whoops, the installer was error :anguished:
Initial commit for update 4.2.8

Add the capability to install in SQLSRV, PostgreSQL and SQLite3 engine
Fix the error when switching the language in the installation wizard.
Date: 7 hours ago
Size: 3,021 bytes


Class file image Download
if(version_compare(PHP_VERSION, '7.3', '<'))
'<center>You need to update your PHP version to 7.3 or newer!</center>');
else if(!
is_dir(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'vendor'))
'<center>Please run "<code style="color:green">composer install</code>" from "<code style="color:red">' . dirname(dirname(__DIR__)) . '</code>" to fetch the required dependencies before we start the installation wizard.<br /><a href="//" target="_blank"><b>Click here</b></a> to download the composer if it\'s not yet installed on your web server.</center>');
else if(!
in_array('intl', array_map('strtolower', get_loaded_extensions())))
'<center>You need to enable the INTL module on your server. <a href="//" target="_blank"><b>Click here</b></a> to install the INTL extension on your server.</center>');
else if(!
is_writable(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'writable'))
'<center>You need to make the following directory to be writable: <code style="color:red">' . dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'writable' . '</code><br>Please <a href="//" target="_blank"><b>click here</b></a> to get support related to this error.</center>');

define('ENVIRONMENT', 'development');

// Set base URL
define('BASE_URL', ((isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) === 'https') ? 'https' : 'http') . '://'. $_SERVER['HTTP_HOST'] . str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']));

// Path to the front controller (this file)

 * 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.

// Ensure the current directory is pointing to the front controller's directory

// Load our paths config file
// This is the line that might need to be changed, depending on your folder structure.
$pathsConfig = FCPATH . 'Config/Paths.php';
// ^^^ Change this if you move your application folder
require realpath($pathsConfig) ?: $pathsConfig;

$paths = new Config\Paths();

// Location of the framework bootstrap file.
$bootstrap = rtrim($paths->systemDirectory, '\\/ ') . DIRECTORY_SEPARATOR . 'bootstrap.php';
$app = require realpath($bootstrap) ?: $bootstrap;

 * Now that everything is setup, it's time to actually fire
 * up the engines and make this app do its thang.

For more information send a message to info at phpclasses dot org.