mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-03 01:17:19 +02:00
- resize uploaded image to thumbnail, medium, large, feed, and id3 formats - set image url formats where adapted in views - set format sizes and extensions in Images config file for customization - add validation for image uploads: `min_dims` and `is_image_squared` - update codeigniter4 and myth-auth php packages to latest develop versions - update npm packages to latest versions - update public/.htaccess closes #6
41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
class Validation
|
|
{
|
|
//--------------------------------------------------------------------
|
|
// Setup
|
|
//--------------------------------------------------------------------
|
|
|
|
/**
|
|
* Stores the classes that contain the
|
|
* rules that are available.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $ruleSets = [
|
|
\CodeIgniter\Validation\Rules::class,
|
|
\CodeIgniter\Validation\FormatRules::class,
|
|
\CodeIgniter\Validation\CreditCardRules::class,
|
|
\App\Validation\Rules::class,
|
|
\App\Validation\FileRules::class,
|
|
\Myth\Auth\Authentication\Passwords\ValidationRules::class,
|
|
];
|
|
|
|
/**
|
|
* Specifies the views that are used to display the
|
|
* errors.
|
|
*
|
|
* @var array
|
|
*/
|
|
public $templates = [
|
|
'list' => 'CodeIgniter\Validation\Views\list',
|
|
'single' => 'CodeIgniter\Validation\Views\single',
|
|
];
|
|
|
|
//--------------------------------------------------------------------
|
|
// Rules
|
|
//--------------------------------------------------------------------
|
|
}
|