Skip to content

Commit

Permalink
Deploy new version
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenanhung committed Aug 4, 2024
1 parent d8b234f commit df85753
Show file tree
Hide file tree
Showing 29 changed files with 167 additions and 233 deletions.
102 changes: 0 additions & 102 deletions Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions api/index.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?php

require __DIR__ . '/../index.php';
1 change: 1 addition & 0 deletions app/config/autoload.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand Down
13 changes: 10 additions & 3 deletions app/config/config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand Down Expand Up @@ -384,7 +385,9 @@
|
*/
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = sha1('Session_Cookie_Name_HungNG_CodeIgniter_v3_skeleton_tVdOt99RreiaULriXOnxflwCzehBxQNc');
$config['sess_cookie_name'] = sha1(
'Session_Cookie_Name_HungNG_CodeIgniter_v3_skeleton_tVdOt99RreiaULriXOnxflwCzehBxQNc'
);
$config['sess_expiration'] = 7200;
if (ENVIRONMENT === 'development') {
$config['sess_save_path'] = __DIR__ . '/../../storage/ci_sessions/';
Expand Down Expand Up @@ -459,8 +462,12 @@
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = false;
$config['csrf_token_name'] = sha1(ENVIRONMENT . 'CodeIgniter_v3_skeleton_i0ewkTGviUJ53ZU4vcXn31zamsJOtXns_csrf_test_name');
$config['csrf_cookie_name'] = sha1(ENVIRONMENT . 'CodeIgniter_v3_skeleton_i0ewkTGviUJ53ZU4vcXn31zamsJOtXns_csrf_cookie_name');
$config['csrf_token_name'] = sha1(
ENVIRONMENT . 'CodeIgniter_v3_skeleton_i0ewkTGviUJ53ZU4vcXn31zamsJOtXns_csrf_test_name'
);
$config['csrf_cookie_name'] = sha1(
ENVIRONMENT . 'CodeIgniter_v3_skeleton_i0ewkTGviUJ53ZU4vcXn31zamsJOtXns_csrf_cookie_name'
);
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = true;
$config['csrf_exclude_uris'] = array();
Expand Down
15 changes: 11 additions & 4 deletions app/config/constants.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand Down Expand Up @@ -41,8 +42,14 @@
*/
defined('FOPEN_READ') or define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE') or define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') or define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') or define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') or define(
'FOPEN_WRITE_CREATE_DESTRUCTIVE',
'wb'
); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') or define(
'FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',
'w+b'
); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE') or define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE') or define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT') or define('FOPEN_WRITE_CREATE_STRICT', 'xb');
Expand Down Expand Up @@ -89,8 +96,8 @@
defined('MY_TELEGRAM_ID') or define('MY_TELEGRAM_ID', '1234');
defined('TELEGRAM_JARVIS_BOT') or define('TELEGRAM_JARVIS_BOT', [
'telegram_messages' => [
'bot_name' => 'xxx',
'bot_api_key' => 'xxx',
'bot_name' => 'xxx',
'bot_api_key' => 'xxx',
'default_chat_id' => MY_TELEGRAM_ID
]
]);
Expand Down
39 changes: 20 additions & 19 deletions app/config/database.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand Down Expand Up @@ -74,24 +75,24 @@
$query_builder = true;

$db['default'] = [
'dsn' => 'mysql:host=mariadb;port=3306;dbname=codeigniter_v3',
'hostname' => 'mariadb',
'port' => 3306,
'username' => 'root',
'password' => 'hungna',
'database' => 'codeigniter_v3',
'dbprefix' => '',
'dbdriver' => 'pdo',
'pconnect' => false,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => false,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => false,
'compress' => false,
'stricton' => false,
'failover' => [],
'dsn' => 'mysql:host=mariadb;port=3306;dbname=codeigniter_v3',
'hostname' => 'mariadb',
'port' => 3306,
'username' => 'root',
'password' => 'hungna',
'database' => 'codeigniter_v3',
'dbprefix' => '',
'dbdriver' => 'pdo',
'pconnect' => false,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => false,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => false,
'compress' => false,
'stricton' => false,
'failover' => [],
'save_queries' => false
];
1 change: 1 addition & 0 deletions app/config/extend/admin_config.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Created by PhpStorm.
Expand Down
1 change: 1 addition & 0 deletions app/config/extend/config_hashids.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Project my-api-services
Expand Down
1 change: 1 addition & 0 deletions app/config/extend/config_site.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Created by PhpStorm.
Expand Down
1 change: 1 addition & 0 deletions app/config/extend/config_template.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Project script-manage-server
Expand Down
1 change: 1 addition & 0 deletions app/config/hmvc.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion app/config/hooks.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand All @@ -12,7 +13,7 @@
|
*/
$hook['display_override'][] = [
'class' => '',
'class' => '',
'function' => 'compress_html',
'filename' => 'compress_html.php',
'filepath' => 'hooks'
Expand Down
5 changes: 3 additions & 2 deletions app/config/memcached.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand All @@ -13,7 +14,7 @@
$config = [
'default' => [
'hostname' => '127.0.0.1',
'port' => '11211',
'weight' => '1',
'port' => '11211',
'weight' => '1',
],
];
1 change: 1 addition & 0 deletions app/config/migration.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand Down
3 changes: 2 additions & 1 deletion app/config/mongo_db.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
$config['mongo_db']['active'] = 'default';

Expand All @@ -10,7 +11,7 @@
$config['mongo_db']['default']['database'] = '';
$config['mongo_db']['default']['db_debug'] = true;
$config['mongo_db']['default']['return_as'] = 'array';
$config['mongo_db']['default']['write_concerns'] = (int) 1;
$config['mongo_db']['default']['write_concerns'] = (int)1;
$config['mongo_db']['default']['journal'] = true;
$config['mongo_db']['default']['read_preference'] = 'primary';
$config['mongo_db']['default']['read_concern'] = 'local'; //'local', 'majority' or 'linearizable'
Expand Down
1 change: 1 addition & 0 deletions app/config/profiler.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/*
Expand Down
1 change: 1 addition & 0 deletions app/config/whitelist/ip.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Project my-api-services
Expand Down
9 changes: 5 additions & 4 deletions app/controllers/Hungna.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

class Hungna extends HungNG_CI_Base_Controllers
{
public function test()
{
exit('nguyenanhung');
}
public function test()
{
exit('nguyenanhung');
}
}
8 changes: 5 additions & 3 deletions app/controllers/Welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ public function index(): void

public function ip(): void
{
$this->output->set_status_header()->set_content_type('application/json', 'utf-8')->set_output(
getIpInformation()
)->_display();
$this->output
->set_status_header()
->set_content_type('application/json', 'utf-8')
->set_output(getIpInformation())
->_display();
exit;
}

Expand Down
1 change: 1 addition & 0 deletions app/core/MY_Loader.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/**
Expand Down
9 changes: 1 addition & 8 deletions app/core/MY_Router.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Project my-portfolio
* Created by PhpStorm
* User: 713uk13m <[email protected]>
* Copyright: 713uk13m <[email protected]>
* Date: 09/10/2021
* Time: 13:16
*/

/**
* Class MY_Router
Expand Down
12 changes: 3 additions & 9 deletions app/hooks/compress_html.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');
/**
* Project listen-to-music-playlist
* Created by PhpStorm
* User: 713uk13m <[email protected]>
* Copyright: 713uk13m <[email protected]>
* Date: 09/26/2020
* Time: 17:28
*/
if (!function_exists('compress_html')) {

if ( ! function_exists('compress_html')) {
/**
* Function compress_html
*
Expand Down
1 change: 1 addition & 0 deletions app/libraries/Elasticsearch.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

defined('BASEPATH') or exit('No direct script access allowed');

/**
Expand Down
Loading

0 comments on commit df85753

Please sign in to comment.