Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-user config selection #190

Open
tserversbfs opened this issue Oct 27, 2018 · 2 comments
Open

multi-user config selection #190

tserversbfs opened this issue Oct 27, 2018 · 2 comments

Comments

@tserversbfs
Copy link

I wanted to have a multi-user interface.
In the file: muximux.php @ line 5 i added the
following line:
$remuser = $_SERVER['REMOTE_USER'];
and changed line 6 to this:
defined("CONFIG") ? null : define('CONFIG', $remuser . '.settings.ini.php');

Now each user has their own configuration file based on the REMOTE_USER variable. so, as an example, REMOTE_USER = mynamehere grabs the settings file mynamehere.settings.ini.php

<?php
/*
* DO NOT CHANGE THIS FILE!
*/
$remuser = $_SERVER['REMOTE_USER'];
defined("CONFIG") ? null : define('CONFIG', $remuser . '.settings.ini.php');
defined("CONFIGEXAMPLE") ? null : define('CONFIGEXAMPLE', 'settings.ini.php-example');
defined("SECRET") ? null : define('SECRET', 'secret.txt');
require dirname(__FILE__) . '/vendor/autoload.php';
@d8ahazard
Copy link
Collaborator

d8ahazard commented Oct 27, 2018 via email

@tserversbfs
Copy link
Author

I did notice it wasnt being maintained, but I like muximux a LOT! It is simple, clean, and does exactly what I need it to do.

Mostly I need something that will let me Front-end my apps, which are on a remote server. (CouchPotato, SABnzb, Syncthing, etc). Authentication is handled by Apache2. I would love to have the option of multiple drop-down menus to group applications/websites, etc. I may have to learn php. :P

I have tried a few htpc applications.

I will check out your FlexTV! but I didnt like Plex at all. I found it to be a resource pig, especially if there were multiple users. I use Universal Media Player for my web viewing needs (which is rare).

Thanks for getting back to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants