28 |
--------------------------------------------------------------------------------
/aksara/Modules/Galleries/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | $routes->add('galleries/(:any)/(:any)', '\Aksara\Modules\Galleries\Controllers\Read::index/$1/$2');
19 | $routes->add('galleries/(:any)', '\Aksara\Modules\Galleries\Controllers\Category::index/$1');
20 |
--------------------------------------------------------------------------------
/aksara/Modules/Modules/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | $routes->get('modules/aksara/(:any)/assets/(:any)', '\Aksara\Modules\Modules\Controllers\Modules::index');
19 | $routes->get('modules/(:any)/assets/(:any)', '\Aksara\Modules\Modules\Controllers\Modules::index');
20 |
--------------------------------------------------------------------------------
/aksara/Modules/Notifications/Views/index.php:
--------------------------------------------------------------------------------
1 |
2 | //
3 |
4 |
--------------------------------------------------------------------------------
/aksara/Modules/Pages/Controllers/About.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Aksara\Modules\Pages\Controllers;
19 |
20 | class About extends \Aksara\Laboratory\Core
21 | {
22 | public function __construct()
23 | {
24 | parent::__construct();
25 | }
26 |
27 | public function index()
28 | {
29 | $this->set_title(phrase('About the project'))
30 | ->set_icon('mdi mdi-information-outline')
31 | ->set_description(phrase('Including the credit of external resources'))
32 |
33 | ->render();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/aksara/Modules/Pages/Controllers/Blank.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Aksara\Modules\Pages\Controllers;
19 |
20 | class Blank extends \Aksara\Laboratory\Core
21 | {
22 | public function __construct()
23 | {
24 | parent::__construct();
25 | }
26 |
27 | public function index()
28 | {
29 | echo phrase('Loading...');
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/aksara/Modules/Pages/Controllers/License.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Aksara\Modules\Pages\Controllers;
19 |
20 | class License extends \Aksara\Laboratory\Core
21 | {
22 | public function __construct()
23 | {
24 | parent::__construct();
25 | }
26 |
27 | public function index()
28 | {
29 | $this->set_title(phrase('End User License Agreement'))
30 | ->set_icon('mdi mdi-certificate')
31 | ->set_description(phrase('Including the terms of services'))
32 |
33 | ->render();
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/aksara/Modules/Peoples/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | $routes->add('peoples/(:any)', '\Aksara\Modules\Peoples\Controllers\Read::index/$1');
19 |
--------------------------------------------------------------------------------
/aksara/Modules/Peoples/Controllers/Peoples.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Aksara\Modules\Peoples\Controllers;
19 |
20 | class Peoples extends \Aksara\Laboratory\Core
21 | {
22 | private $_table = 'peoples';
23 |
24 | public function __construct()
25 | {
26 | parent::__construct();
27 |
28 | $this->searchable(false);
29 | $this->limit(12);
30 | }
31 |
32 | public function index()
33 | {
34 | $this->set_title(phrase('The Peoples Behind Us'))
35 | ->set_description(phrase('Meet the peoples behind us'))
36 | ->set_icon('mdi mdi-account-group-outline')
37 | ->where('status', 1)
38 |
39 | ->render($this->_table);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/aksara/Modules/Themes/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | $routes->get('themes/assets/(:any)', '\Aksara\Modules\Themes\Controllers\Themes::index');
19 | $routes->get('themes/(:any)', '\Aksara\Modules\Themes\Controllers\Themes::index');
20 |
--------------------------------------------------------------------------------
/aksara/Modules/User/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | $routes->add('user/(:any)/activities', '\Aksara\Modules\User\Controllers\User::activities/$1');
19 | $routes->add('user/(:any)/likes', '\Aksara\Modules\User\Controllers\User::likes/$1');
20 | $routes->add('user/(:any)/guestbook', '\Aksara\Modules\User\Controllers\User::guestbook/$1');
21 |
--------------------------------------------------------------------------------
/aksara/Modules/Videos/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | $routes->add('videos/(:any)', '\Aksara\Modules\Videos\Controllers\Videos::watch/$1');
19 |
--------------------------------------------------------------------------------
/aksara/Modules/Xhr/Controllers/Boot.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Aksara\Modules\Xhr\Controllers;
19 |
20 | class Boot extends \Aksara\Laboratory\Core
21 | {
22 | public function index()
23 | {
24 | $phrases = array_map('trim', explode(',', 'Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, January, February, March, April, May, June, July, August, September, October, November, December'));
25 |
26 | foreach ($phrases as $key => $val) {
27 | phrase($val);
28 | }
29 |
30 | return throw_exception(301, phrase('The Aksara services was successfully started!'), base_url(), true);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/aksara/Modules/Xhr/Controllers/Partial/Partial.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Aksara\Modules\Xhr\Controllers\Partial;
19 |
20 | class Partial extends \Aksara\Laboratory\Core
21 | {
22 | public function __construct()
23 | {
24 | parent::__construct();
25 |
26 | return throw_exception(404, phrase('The page you requested does not exist or already been archived.'));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/aksara/Modules/Xhr/Views/partial/account.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/aksara/Views/errors/cli/error_404.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the file LICENSE.
13 | */
14 |
15 | use CodeIgniter\CLI\CLI;
16 |
17 | CLI::error('ERROR: ' . $code);
18 | CLI::write($message);
19 | CLI::newLine();
20 |
--------------------------------------------------------------------------------
/aksara/Views/errors/cli/production.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the file LICENSE.
13 | */
14 |
15 | // So just use the exception template.
16 | include __DIR__ . '/error_exception.php';
17 |
--------------------------------------------------------------------------------
/aksara/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 403 Forbidden
5 |
6 |
7 |
8 |
Directory access is forbidden.
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | error_reporting(E_ALL & ~E_DEPRECATED);
19 | // If you want to suppress more types of errors.
20 | // error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
21 | ini_set('display_errors', '0');
22 |
23 | /*
24 | |--------------------------------------------------------------------------
25 | | DEBUG MODE
26 | |--------------------------------------------------------------------------
27 | | Debug mode is an experimental flag that can allow changes throughout
28 | | the system. It's not widely used currently, and may not survive
29 | | release of the framework.
30 | */
31 | defined('CI_DEBUG') || define('CI_DEBUG', false);
32 |
--------------------------------------------------------------------------------
/install/Config/CURLRequest.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Config;
19 |
20 | use CodeIgniter\Config\BaseConfig;
21 |
22 | class CURLRequest extends BaseConfig
23 | {
24 | /**
25 | * --------------------------------------------------------------------------
26 | * CURLRequest Share Options
27 | * --------------------------------------------------------------------------
28 | *
29 | * Whether share options between requests or not.
30 | *
31 | * If true, all the options won't be reset between requests.
32 | * It may cause an error request with unnecessary headers.
33 | */
34 | public bool $shareOptions = false;
35 | }
36 |
--------------------------------------------------------------------------------
/install/Config/ForeignCharacters.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | namespace Config;
19 |
20 | use CodeIgniter\Config\ForeignCharacters as BaseForeignCharacters;
21 |
22 | /**
23 | * @immutable
24 | */
25 | class ForeignCharacters extends BaseForeignCharacters
26 | {
27 | }
28 |
--------------------------------------------------------------------------------
/install/Config/Routes.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | use CodeIgniter\Router\RouteCollection;
19 |
20 | /**
21 | * @var RouteCollection $routes
22 | */
23 | $routes->get('/', 'Install::index');
24 | $routes->add('/requirement', 'Install::requirement');
25 | $routes->add('/database', 'Install::database');
26 | $routes->add('/security', 'Install::security');
27 | $routes->add('/system', 'Install::system');
28 | $routes->add('/finalizing', 'Install::finalizing');
29 | $routes->add('/run', 'Install::run');
30 |
--------------------------------------------------------------------------------
/install/Database/README:
--------------------------------------------------------------------------------
1 | DATABASE MIGRATION NOTES:
2 | - The migration files are executed ascending;
3 | - You don't need to remove or modify existing migration files;
4 | - Name your file with prefix, greater than existing migration files;
5 | - Make sure "up" migration syntax are executed from top table (when there's contain foreign key);
6 | - Make sure "down" migration syntax are executed from bottom table (when there's contain foreign key);
7 | - Drop foreign key before drop the table
8 |
9 | DATABASE SEEDER NOTES:
10 | - Name your seeder file with "EcosystemSeeder.php";
11 | - You can add dummy data seeder to separate installation version;
12 | - Add suffix number to represent installation version number after underscore;
13 | - Just like "EcosystemSeeder_2.php" and "EcosystemSeeder_3.php";
14 |
--------------------------------------------------------------------------------
/install/Helpers/language_helper.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the LICENSE.txt file.
13 | *
14 | * When the signs is coming, those who don't believe at "that time"
15 | * have only two choices, commit suicide or become brutal.
16 | */
17 |
18 | if (! function_exists('phrase')) {
19 | /**
20 | * Generate security token to validate the query string values
21 | *
22 | * @param mixed|null $phrase
23 | */
24 | function phrase($phrase = null)
25 | {
26 | if ($phrase) {
27 | return lang('Install.' . $phrase);
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/install/README:
--------------------------------------------------------------------------------
1 | DATABASE MIGRATION NOTES:
2 | 1. The migration files are executed ascending;
3 | 2. You don't need to remove or modify existing migration files;
4 | 3. Name your file with prefix, greater than existing migration files;
5 | 4. Make sure your migration syntax are executed from top table (when there's contain foreign key);
6 |
7 | DATABASE SEEDER NOTES:
8 | 1. Name your seeder file with "EcosystemSeeder.php";
9 | 2. You can add dummy data seeder to separate installation version;
10 | 3. Add suffix number to represent installation version number after underscore;
11 | 4. Just like "EcosystemSeeder_2.php" and "EcosystemSeeder_3.php";
12 |
--------------------------------------------------------------------------------
/install/Views/errors/cli/error_404.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the file LICENSE.
13 | */
14 |
15 | use CodeIgniter\CLI\CLI;
16 |
17 | CLI::error('ERROR: ' . $code);
18 | CLI::write($message);
19 | CLI::newLine();
20 |
--------------------------------------------------------------------------------
/install/Views/errors/cli/production.php:
--------------------------------------------------------------------------------
1 |
8 | * @copyright (c) Aksara Laboratory
9 | * @license MIT License
10 | *
11 | * This source file is subject to the MIT license that is bundled
12 | * with this source code in the file LICENSE.
13 | */
14 |
15 | // So just use the exception template.
16 | include __DIR__ . '/error_exception.php';
17 |
--------------------------------------------------------------------------------
/install/Views/errors/html/production.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | Site Under Maintenance!
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
Relax!
24 |
25 |
We are temporary down for maintenance. Please come back again later...