anklimsk / cakephp-settings-app
UI for CakePHP 2.x application settings
Installs: 44
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4
- anklimsk/cakephp-config-plugin: ^1.0.0
- anklimsk/cakephp-extended-test: ^1.0.0
- anklimsk/cakephp2-theme: ^1.0.0
- composer/installers: ^1.5.0
README
UI for CakePHP application settings
This plugin provides next features:
- Base settings for the
CakePHP
application; - Creating сustom Settings:
- Defining the settings scheme;
- Defining rules for validate settings;
- Creating UI for settings.
- Setting users with role and prefix, that are members of a of security group on LDAP server
- Setting for sending an E-mail including the encrypted user password
- Getting list of E-mail for users, that are members of a of security group on LDAP server
Installation
-
Install the Plugin using composer:
composer require anklimsk/cakephp-settings-app
-
Add the next line to the end of the file
app/Config/bootstrap.php
:CakePlugin::load('CakeSettingsApp', ['bootstrap' => true, 'routes' => true]);
-
Get the name of the user that is running the web server, run the command:
ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1
. -
Set owner of file
app/Config/config.php
run the commandchown www-data app/Config/config.php
wherewww-data
- user name for web server. -
Add to file
app/Config/core.php
:/** * A random numeric string (digits only) used to encrypt/decrypt strings. */ Configure::write('Security.key', '9b8964f94127f5b843c67e8c89479e4f2cfac2b182c72dc0691cc384c438f9ca'); /** * Set Security.useOpenSsl to use OpenSSL instead of the deprecated mcrpyt extension. */ Configure::write('Security.useOpenSsl', true);
See https://book.cakephp.org/2.0/en/core-utility-libraries/security.html#Security::encrypt