Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 173 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package Modules\Admin\Admin\Install |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | use Modules\Admin\Models\SettingsEnum; |
| 16 | use phpOMS\Message\Mail\SubmitType; |
| 17 | |
| 18 | return [ |
| 19 | [ |
| 20 | 'type' => 'setting', |
| 21 | 'name' => SettingsEnum::PASSWORD_PATTERN, |
| 22 | 'content' => '/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[.,\/\(\)\{\}\[\]#?!@$%^&*+=\':"-]).{8,}$/', |
| 23 | 'module' => 'Admin', |
| 24 | ], |
| 25 | [ |
| 26 | 'type' => 'setting', |
| 27 | 'name' => SettingsEnum::LOGIN_TRIES, |
| 28 | 'content' => '3', |
| 29 | 'pattern' => '/\\d+/', |
| 30 | 'module' => 'Admin', |
| 31 | ], |
| 32 | [ |
| 33 | 'type' => 'setting', |
| 34 | 'name' => SettingsEnum::PASSWORD_INTERVAL, |
| 35 | 'content' => '90', |
| 36 | 'pattern' => '/\\d+/', |
| 37 | 'module' => 'Admin', |
| 38 | ], |
| 39 | [ |
| 40 | 'type' => 'setting', |
| 41 | 'name' => SettingsEnum::PASSWORD_HISTORY, |
| 42 | 'content' => '3', |
| 43 | 'pattern' => '/\\d+/', |
| 44 | 'module' => 'Admin', |
| 45 | ], |
| 46 | [ |
| 47 | 'type' => 'setting', |
| 48 | 'name' => SettingsEnum::LOGGING_STATUS, |
| 49 | 'content' => '1', |
| 50 | 'pattern' => '/[0-3]/', |
| 51 | 'module' => 'Admin', |
| 52 | ], |
| 53 | [ |
| 54 | 'type' => 'setting', |
| 55 | 'name' => SettingsEnum::LOGGING_PATH, |
| 56 | 'content' => '', |
| 57 | 'module' => 'Admin', |
| 58 | ], |
| 59 | [ |
| 60 | 'type' => 'setting', |
| 61 | 'name' => SettingsEnum::DEFAULT_UNIT, |
| 62 | 'content' => '1', |
| 63 | 'pattern' => '/\\d+/', |
| 64 | 'module' => 'Admin', |
| 65 | ], |
| 66 | [ |
| 67 | 'type' => 'setting', |
| 68 | 'name' => SettingsEnum::LOGIN_STATUS, |
| 69 | 'content' => '1', |
| 70 | 'pattern' => '/[0-3]/', |
| 71 | 'module' => 'Admin', |
| 72 | ], |
| 73 | [ |
| 74 | 'type' => 'setting', |
| 75 | 'name' => SettingsEnum::LOGIN_MAIL_REGISTRATION_TEMPLATE, |
| 76 | 'content' => '', |
| 77 | 'pattern' => '/\\d*/', |
| 78 | 'module' => 'Admin', |
| 79 | ], |
| 80 | [ |
| 81 | 'type' => 'setting', |
| 82 | 'name' => SettingsEnum::LOGIN_MAIL_FORGOT_PASSWORD_TEMPLATE, |
| 83 | 'content' => '', |
| 84 | 'pattern' => '/\\d*/', |
| 85 | 'module' => 'Admin', |
| 86 | ], |
| 87 | [ |
| 88 | 'type' => 'setting', |
| 89 | 'name' => SettingsEnum::LOGIN_MAIL_FAILED_TEMPLATE, |
| 90 | 'content' => '', |
| 91 | 'pattern' => '/\\d*/', |
| 92 | 'module' => 'Admin', |
| 93 | ], |
| 94 | [ |
| 95 | 'type' => 'setting', |
| 96 | 'name' => SettingsEnum::LOGIN_MAIL_RESET_PASSWORD_TEMPLATE, |
| 97 | 'content' => '', |
| 98 | 'pattern' => '/\\d*/', |
| 99 | 'module' => 'Admin', |
| 100 | ], |
| 101 | [ |
| 102 | 'type' => 'setting', |
| 103 | 'name' => SettingsEnum::DEFAULT_LOCALIZATION, |
| 104 | 'content' => '1', |
| 105 | 'pattern' => '/\\d+/', |
| 106 | 'module' => 'Admin', |
| 107 | ], |
| 108 | [ |
| 109 | 'type' => 'setting', |
| 110 | 'name' => SettingsEnum::MAIL_SERVER_OUT, |
| 111 | 'content' => '', |
| 112 | 'module' => 'Admin', |
| 113 | ], |
| 114 | [ |
| 115 | 'type' => 'setting', |
| 116 | 'name' => SettingsEnum::MAIL_SERVER_PORT_OUT, |
| 117 | 'content' => '', |
| 118 | 'module' => 'Admin', |
| 119 | ], |
| 120 | [ |
| 121 | 'type' => 'setting', |
| 122 | 'name' => SettingsEnum::MAIL_SERVER_IN, |
| 123 | 'content' => '', |
| 124 | 'module' => 'Admin', |
| 125 | ], |
| 126 | [ |
| 127 | 'type' => 'setting', |
| 128 | 'name' => SettingsEnum::MAIL_SERVER_PORT_IN, |
| 129 | 'content' => '', |
| 130 | 'module' => 'Admin', |
| 131 | ], |
| 132 | [ |
| 133 | 'type' => 'setting', |
| 134 | 'name' => SettingsEnum::MAIL_SERVER_ADDR, |
| 135 | 'content' => '', |
| 136 | 'pattern' => "/(?:[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*|\"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/", |
| 137 | 'module' => 'Admin', |
| 138 | ], |
| 139 | [ |
| 140 | 'type' => 'setting', |
| 141 | 'name' => SettingsEnum::MAIL_SERVER_TYPE, |
| 142 | 'content' => SubmitType::MAIL, |
| 143 | 'module' => 'Admin', |
| 144 | ], |
| 145 | [ |
| 146 | 'type' => 'setting', |
| 147 | 'name' => SettingsEnum::MAIL_SERVER_USER, |
| 148 | 'content' => '', |
| 149 | 'module' => 'Admin', |
| 150 | ], |
| 151 | [ |
| 152 | 'type' => 'setting', |
| 153 | 'name' => SettingsEnum::MAIL_SERVER_PASS, |
| 154 | 'content' => '', |
| 155 | 'module' => 'Admin', |
| 156 | 'encrypted' => true, |
| 157 | ], |
| 158 | [ |
| 159 | 'type' => 'setting', |
| 160 | 'name' => SettingsEnum::MAIL_SERVER_CERT, |
| 161 | 'content' => '', |
| 162 | 'module' => 'Admin', |
| 163 | ], |
| 164 | [ |
| 165 | 'type' => 'setting', |
| 166 | 'name' => SettingsEnum::MAIL_SERVER_KEY, |
| 167 | 'content' => '', |
| 168 | 'module' => 'Admin', |
| 169 | 'encrypted' => true, |
| 170 | ], |
| 171 | [ |
| 172 | 'type' => 'setting', |
| 173 | 'name' => SettingsEnum::MAIL_SERVER_KEYPASS, |
| 174 | 'content' => '', |
| 175 | 'module' => 'Admin', |
| 176 | 'encrypted' => true, |
| 177 | ], |
| 178 | [ |
| 179 | 'type' => 'setting', |
| 180 | 'name' => SettingsEnum::MAIL_SERVER_TLS, |
| 181 | 'content' => (string) false, |
| 182 | 'module' => 'Admin', |
| 183 | ], |
| 184 | [ |
| 185 | 'type' => 'setting', |
| 186 | 'name' => SettingsEnum::GROUP_GENERATE_AUTOMATICALLY_APP, |
| 187 | 'content' => (string) true, |
| 188 | 'module' => 'Admin', |
| 189 | ], |
| 190 | ]; |