Skip to content

Commit

Permalink
Add blocked period CRUD operations to the app (alextselegidis#432)li
Browse files Browse the repository at this point in the history
  • Loading branch information
osiloke committed Dec 23, 2023
1 parent 660a822 commit 2986372
Show file tree
Hide file tree
Showing 690 changed files with 13,835 additions and 10,423 deletions.
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.idea
application
.github
.run
build
docker
docs
node_modules
storage
system
tests
Expand Down
9 changes: 7 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@
"bracketSpacing": false,
"bracketSameLine": false,
"quoteProps": "preserve",
"trailingComma": "none"
}
"trailingComma": "none",
"trailingCommaPHP": false,
"phpVersion": "8.0",
"plugins": [
"@prettier/plugin-php"
]
}
12 changes: 1 addition & 11 deletions application/config/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

$autoload['packages'] = [];


/*
| -------------------------------------------------------------------
| Auto-load Libraries
Expand All @@ -55,7 +54,6 @@

$autoload['libraries'] = ['database', 'session'];


/*
| -------------------------------------------------------------------
| Auto-load Helper Files
Expand Down Expand Up @@ -89,7 +87,6 @@
'validation'
];


/*
| -------------------------------------------------------------------
| Auto-load Config files
Expand All @@ -103,12 +100,7 @@
|
*/

$autoload['config'] = [
'app',
'google',
'email'
];

$autoload['config'] = ['app', 'google', 'email'];

/*
| -------------------------------------------------------------------
Expand All @@ -125,7 +117,6 @@

$autoload['language'] = [];


/*
| -------------------------------------------------------------------
| Auto-load Models
Expand All @@ -138,6 +129,5 @@

$autoload['model'] = [];


/* End of file autoload.php */
/* Location: ./application/config/autoload.php */
38 changes: 17 additions & 21 deletions application/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
*/

$protocol =
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
|| (isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443)
|| (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
? 'https://' : 'http://';
(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') ||
(isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443) ||
(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')
? 'https://'
: 'http://';

$domain = $_SERVER['HTTP_HOST'] ?? 'localhost';

Expand Down Expand Up @@ -114,7 +115,7 @@
'sk' => 'slovak',
'es' => 'spanish',
'sv' => 'swedish',
'tr' => 'turkish',
'tr' => 'turkish'
];

$config['language_codes'] = $languages;
Expand Down Expand Up @@ -192,7 +193,7 @@
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = TRUE;
$config['enable_hooks'] = true;

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -252,8 +253,8 @@
| use segment based URLs.
|
*/
$config['allow_get_array'] = TRUE;
$config['enable_query_strings'] = FALSE;
$config['allow_get_array'] = true;
$config['enable_query_strings'] = false;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
Expand Down Expand Up @@ -346,9 +347,9 @@
$config['sess_cookie_name'] = 'pride_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = __DIR__ . '/../../storage/sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_ip'] = false;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
$config['sess_regenerate_destroy'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -364,7 +365,7 @@
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = strpos($config['base_url'], 'https') !== FALSE;
$config['cookie_secure'] = strpos($config['base_url'], 'https') !== false;

/*
|--------------------------------------------------------------------------
Expand All @@ -378,16 +379,11 @@
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
*/
$config['csrf_protection'] = TRUE;
$config['csrf_protection'] = true;
$config['csrf_token_name'] = 'csrf_token';
$config['csrf_cookie_name'] = 'csrf_cookie';
$config['csrf_expire'] = 7200;
$config['csrf_exclude_uris'] = [
'api/v1/.*',
'booking/.*',
'booking_cancellation/.*',
'booking_confirmation/.*'
];
$config['csrf_exclude_uris'] = ['api/v1/.*', 'booking/.*', 'booking_cancellation/.*', 'booking_confirmation/.*'];

/*
|--------------------------------------------------------------------------
Expand All @@ -406,7 +402,7 @@
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
$config['compress_output'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -431,7 +427,7 @@
| in your view files. Options are TRUE or FALSE (boolean)
|
*/
$config['rewrite_short_tags'] = FALSE;
$config['rewrite_short_tags'] = false;

/*
|--------------------------------------------------------------------------
Expand All @@ -455,7 +451,7 @@
| will control the number of requests a client can sent to the app.
|
*/
$config['rate_limiting'] = TRUE;
$config['rate_limiting'] = true;

/*
|--------------------------------------------------------------------------
Expand Down
3 changes: 1 addition & 2 deletions application/config/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
define('FOPEN_WRITE_CREATE_STRICT', 'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');


/*
|--------------------------------------------------------------------------
| Application Data
Expand Down Expand Up @@ -99,7 +98,7 @@
| Webhook Actions
|--------------------------------------------------------------------------
|
| External application endpoints can subscribe to these webhook actions.
| External application endpoints can subscribe to these webhook actions.
|
*/

Expand Down
13 changes: 6 additions & 7 deletions application/config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,24 +47,23 @@
*/

$active_group = 'default';
$query_builder = TRUE;
$query_builder = true;

$db['default']['hostname'] = Config::DB_HOST;
$db['default']['username'] = Config::DB_USERNAME;
$db['default']['password'] = Config::DB_PASSWORD;
$db['default']['database'] = Config::DB_NAME;
$db['default']['dbdriver'] = 'mysqli';
$db['default']['dbprefix'] = 'ea_';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['pconnect'] = true;
$db['default']['db_debug'] = true;
$db['default']['cache_on'] = false;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8mb4';
$db['default']['dbcollat'] = 'utf8mb4_unicode_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;

$db['default']['autoinit'] = true;
$db['default']['stricton'] = false;

/* End of file database.php */
/* Location: ./application/config/database.php */
4 changes: 1 addition & 3 deletions application/config/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| whenever you intend to do a schema migration.
|
*/
$config['migration_enabled'] = TRUE;
$config['migration_enabled'] = true;

/*
|--------------------------------------------------------------------------
Expand All @@ -23,7 +23,6 @@
*/
$config['migration_version'] = 0;


/*
|--------------------------------------------------------------------------
| Migrations Path
Expand All @@ -36,6 +35,5 @@
*/
$config['migration_path'] = APPPATH . 'migrations/';


/* End of file migration.php */
/* Location: ./application/config/migration.php */
Loading

0 comments on commit 2986372

Please sign in to comment.