castopod/app/Config/Constants.php
semantic-release-bot de8b84c874 chore(release): 1.7.0 [skip ci]
# [1.7.0](https://code.castopod.org/adaures/castopod/compare/v1.6.5...v1.7.0) (11/29/2023)

### Bug Fixes

* **admin-ux:** hide navigation submenus in details panel for easier scanning ([b047a3c](b047a3c670))
* **admin:** remove episode title truncation + display description in two lines in episode list ([f4ffa30](f4ffa30ec4)), closes [#386](https://code.castopod.org/adaures/castopod/issues/386)
* **auth:** display error messages from validator ([5a834c0](5a834c0f89))
* **housekeeping:** remove unnecessary $tablePrefix variable when resetting post count ([97d793f](97d793f55e)), closes [#383](https://code.castopod.org/adaures/castopod/issues/383)
* **import:** handle bad values for location attributes ([642981f](642981fd35))
* **import:** use cocur/slugify library to handle non latin text ([4ca7f9c](4ca7f9ccae))
* move monetization outside of podcast form + add broadcast section to podcast menu ([dff8516](dff85168b3))
* **nodeinfo2:** import database config + use dynamic table prefix for active local actors query ([6a7ef01](6a7ef0109a))
* **persons:** set roles field as optional + set `Cast > Host` as default value ([02132dc](02132dc466)), closes [#347](https://code.castopod.org/adaures/castopod/issues/347)
* **platforms:** make platforms' websites and submit urls more prominent ([61cf8fa](61cf8fa3e2))
* **podcast-form:** move fediverse section below author section ([1861d67](1861d67971))
* reorder podcast form fields + extract sync feeds to its own form ([2d52fa1](2d52fa1046))

### Features

* **admin:** add rss feed link to podcast side navigation ([18e2633](18e2633a49))
* **icons:** update new Deezer logo ([f2d5b27](f2d5b272ac))
* **install:** init database and create superadmin using CLI ([02d4ba6](02d4ba69ac)), closes [#380](https://code.castopod.org/adaures/castopod/issues/380)
* **ux:** add episode description to episode cards ([5f8d413](5f8d413b84))
2023-11-29 19:23:23 +00:00

109 lines
4.2 KiB
PHP

<?php
declare(strict_types=1);
/*
| --------------------------------------------------------------------
| Castopod Version
| --------------------------------------------------------------------
|
| The Castopod version number to display.
|
| NOTE: this constant is updated upon release with Continuous Integration.
*/
defined('CP_VERSION') || define('CP_VERSION', '1.7.0');
/*
| --------------------------------------------------------------------
| App Namespace
| --------------------------------------------------------------------
|
| This defines the default Namespace that is used throughout
| CodeIgniter to refer to the Application directory. Change
| this constant to change the namespace that all application
| classes should use.
|
| NOTE: changing this will require manually modifying the
| existing namespaces of App\* namespaced-classes.
*/
defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App');
/*
| --------------------------------------------------------------------------
| Composer Path
| --------------------------------------------------------------------------
|
| The path that Composer's autoload file is expected to live. By default,
| the vendor folder is in the Root directory, but you can customize that here.
*/
defined('COMPOSER_PATH') ||
define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php');
/*
|--------------------------------------------------------------------------
| Timing Constants
|--------------------------------------------------------------------------
|
| Provide simple ways to work with the myriad of PHP functions that
| require information to be in seconds.
*/
defined('SECOND') || define('SECOND', 1);
defined('MINUTE') || define('MINUTE', 60);
defined('HOUR') || define('HOUR', 3600);
defined('DAY') || define('DAY', 86400);
defined('WEEK') || define('WEEK', 604800);
defined('MONTH') || define('MONTH', 2_592_000);
defined('YEAR') || define('YEAR', 31_536_000);
defined('DECADE') || define('DECADE', 315_360_000);
/*
| --------------------------------------------------------------------------
| Exit Status Codes
| --------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions. Three such conventions are mentioned below, for
| those who wish to make use of them. The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
| Standard C/C++ Library (stdlibc):
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
| (This link also contains other GNU-specific conventions)
| BSD sysexits.h:
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
| Bash scripting:
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
defined('EXIT_SUCCESS') || define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR') || define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG') || define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE') || define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS') || define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT') || define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE') || define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN') || define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
/**
* @deprecated Use \CodeIgniter\Events\Events::PRIORITY_LOW instead.
*/
define('EVENT_PRIORITY_LOW', 200);
/**
* @deprecated Use \CodeIgniter\Events\Events::PRIORITY_NORMAL instead.
*/
define('EVENT_PRIORITY_NORMAL', 100);
/**
* @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead.
*/
define('EVENT_PRIORITY_HIGH', 10);