https://github.com/githubjeka/lightningswapuser
Change the user in a single click, for Yii 1.x.
https://github.com/githubjeka/lightningswapuser
Last synced: 9 months ago
JSON representation
Change the user in a single click, for Yii 1.x.
- Host: GitHub
- URL: https://github.com/githubjeka/lightningswapuser
- Owner: githubjeka
- Created: 2013-04-12T05:28:46.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-16T07:57:18.000Z (almost 13 years ago)
- Last Synced: 2025-01-10T16:44:41.264Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 132 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
lightning Swap User
=================
[Russian version readme](https://github.com/githubjeka/lightningSwapUser/blob/master/Readme_rus.md)
Change the user in a single click, for Yii Framework.
###Install:
1. Copy the repository.
2. Unzip to protected folder.
3. In layout/main.php or on dashboard admin use this code
```php
widget(
'Masked',
array(
'modelNameUser' => 'User', //Name User model, for example may be - \users\models\User
'fieldNameUser' => 'username', //Name field login
'fieldIdUser' => 'id', //Name field ID
'ipWhiteList' => array(), // List of ip addresses that are available widget.
'typeView' => 'dropDown' // Type of widget - 'autoComplete' (CJuiAutoComplete) or 'dropDown' (dropDownList)
)
);
?>
```
ipWhiteList - default array('127.0.0.1', '::1/128') - localhost. These ip addresses will be added to your.
or one line this code:
```php
widget('Masked'); ?>
```
Note: Restrict access to this widget only necessary users.