Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ianbarber/Yourls-Separate-Users

Very simple plugin for separating user URLs
https://github.com/ianbarber/Yourls-Separate-Users

Last synced: 14 days ago
JSON representation

Very simple plugin for separating user URLs

Awesome Lists containing this project

README

        

A simple YouRLS plug to hide different users information from each other.

To install, just copy the plugins/separate-users folder to your plugins folder (usually user/plugins). Once activated, any new links created will only be visible in the admin to the user that created them, and the + stats page will also be restricted to only the user that created it. Users cannot create shortcodes the same as one already created by another user.

If an account named 'admin' is created, it will be able to view all links. The specific name can be changed by defining SEPARATE_USERS_ADMIN_USER in the config, e.g.

define ('SEPARATE_USERS_ADMIN_USER', 'tony');

to give the account 'tony' full access.

If you want to define multiple users, here are the steps to follow.

define('SEPARATE_USERS_ADMIN_USER', serialize(array('tony', 'jack')));

to give the accounts 'tony' and 'jack' full access.

Please note: currently this plugin is designed mainly to clean up the admin interface for different users, and doesn't guarantee there's no way for one user to influence or access the links of another!