-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
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';
Metadata
Metadata
Assignees
Labels
No labels