first commit

This commit is contained in:
sujan
2024-08-06 18:06:00 +05:45
commit a2fa49071a
2745 changed files with 391199 additions and 0 deletions

60
system/config/admin.php Normal file
View File

@ -0,0 +1,60 @@
<?php
// Site
$_['site_url'] = HTTP_SERVER;
// Database
$_['db_autostart'] = true;
$_['db_engine'] = DB_DRIVER; // mysqli, pdo or pgsql
$_['db_hostname'] = DB_HOSTNAME;
$_['db_username'] = DB_USERNAME;
$_['db_password'] = DB_PASSWORD;
$_['db_database'] = DB_DATABASE;
$_['db_port'] = DB_PORT;
// Session
$_['session_autostart'] = false;
$_['session_engine'] = 'db'; // db or file
// Error
$_['error_display'] = true;
// Actions
$_['action_pre_action'] = [
'startup/setting',
'startup/session',
'startup/language',
'startup/application',
'startup/extension',
'startup/startup',
'startup/error',
'startup/event',
'startup/sass',
'startup/login',
'startup/authorize',
'startup/permission'
];
// Actions
$_['action_default'] = 'common/dashboard';
// Action Events
$_['action_event'] = [
'controller/*/before' => [
0 => 'event/language.before'
],
'controller/*/after' => [
0 => 'event/language.after'
],
//'model/*/after' => [
// 0 => 'event/debug.before'
//],
//'model/*/after' => [
// 0 => 'event/debug.after'
//],
'view/*/before' => [
999 => 'event/language'
],
'language/*/after' => [
0 => 'startup/language.after'
]
];

56
system/config/catalog.php Normal file
View File

@ -0,0 +1,56 @@
<?php
// Site
$_['site_url'] = HTTP_SERVER;
// Database
$_['db_autostart'] = true;
$_['db_engine'] = DB_DRIVER; // mysqli, pdo or pgsql
$_['db_hostname'] = DB_HOSTNAME;
$_['db_username'] = DB_USERNAME;
$_['db_password'] = DB_PASSWORD;
$_['db_database'] = DB_DATABASE;
$_['db_port'] = DB_PORT;
// Session
$_['session_autostart'] = false;
$_['session_engine'] = 'db'; // db or file
// Actions
$_['action_pre_action'] = [
'startup/setting',
'startup/seo_url',
'startup/session',
'startup/language',
'startup/customer',
'startup/currency',
'startup/tax',
'startup/application',
'startup/extension',
'startup/startup',
'startup/marketing',
'startup/error',
'startup/event',
'startup/sass',
'startup/api',
'startup/maintenance'
];
// Action Events
$_['action_event'] = [
'controller/*/before' => [
0 => 'event/language.before',
// 1 => 'event/debug.before'
],
'controller/*/after' => [
0 => 'event/language.after',
// 2 => 'event/debug.after'
],
'view/*/before' => [
500 => 'event/theme',
998 => 'event/language'
],
'language/*/after' => [
0 => 'startup/language.after',
1 => 'event/translation'
]
];

67
system/config/default.php Normal file
View File

@ -0,0 +1,67 @@
<?php
// Site
$_['site_url'] = '';
// Language
$_['language_code'] = 'en-gb';
// Date
$_['date_timezone'] = 'UTC';
// Database
$_['db_autostart'] = false;
$_['db_engine'] = 'mysqli'; // mysqli, pdo or pgsql
$_['db_hostname'] = 'localhost';
$_['db_username'] = 'root';
$_['db_password'] = '';
$_['db_database'] = '';
$_['db_port'] = 3306;
// Mail
$_['mail_engine'] = 'mail'; // mail or smtp
$_['mail_from'] = ''; // Your E-Mail
$_['mail_sender'] = ''; // Your name or company name
$_['mail_reply_to'] = ''; // Reply to E-Mail
$_['mail_smtp_hostname'] = '';
$_['mail_smtp_username'] = '';
$_['mail_smtp_password'] = '';
$_['mail_smtp_port'] = 25;
$_['mail_smtp_timeout'] = 5;
$_['mail_verp'] = false;
$_['mail_parameter'] = '';
// Cache
$_['cache_engine'] = 'file'; // apc, file, mem, memcached or redis
$_['cache_expire'] = 3600;
// Session
$_['session_autostart'] = false;
$_['session_engine'] = 'file'; // db or file
$_['session_name'] = 'OCSESSID';
$_['session_domain'] = '';
$_['session_path'] = !empty($_SERVER['PHP_SELF']) ? rtrim(dirname($_SERVER['PHP_SELF']), '/') . '/' : '/';
$_['session_expire'] = 86400;
$_['session_probability'] = 1;
$_['session_divisor'] = 5;
$_['session_samesite'] = 'Strict';
// Template
$_['template_engine'] = 'twig';
$_['template_extension'] = '.twig';
// Error
$_['error_display'] = true; // You need to change this to false on a live site.
$_['error_log'] = true;
$_['error_filename'] = 'error.log';
$_['error_page'] = 'error.html';
// Response
$_['response_header'] = ['Content-Type: text/html; charset=utf-8'];
$_['response_compression'] = 0;
// Actions
$_['action_default'] = 'common/home';
$_['action_error'] = 'error/not_found';
$_['action_pre_action'] = [];
$_['action_post_action'] = [];
$_['action_event'] = [];

0
system/config/index.html Normal file
View File

24
system/config/install.php Normal file
View File

@ -0,0 +1,24 @@
<?php
// Site
$_['site_url'] = HTTP_SERVER;
// Language
$_['language_code'] = 'en-gb';
// Template
$_['template_engine'] = 'twig';
// Error
$_['error_display'] = true;
// Actions
$_['action_default'] = 'install/step_1';
$_['action_error'] = 'error/not_found';
$_['action_pre_action'] = [
'startup/install',
'startup/upgrade',
'startup/database'
];
// Action Events
$_['action_event'] = [];