Skip to content

multi-user config selection #190

@tserversbfs

Description

@tserversbfs

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions