{

my $auth = ${'tt-rss'}{'Authentication'} || 'http';
my $plugins = ($auth eq 'internal') ? 'auth_internal':'auth_remote';
$plugin .= ',note';
my $multi = ((${'tt-rss'}{'MultiUser'} || 'enabled') eq 'enabled') ? 'false':'true';

$OUT .=<<"HERE";

        putenv('TTRSS_SINGLE_USER_MODE=$multi');
        // Operate in single user mode, disables all functionality related to
        // multiple users.

        putenv('TTRSS_PLUGINS=$plugins');
        // Comma-separated list of plugins to load automatically for all users.
        // System plugins have to be specified here. Please enable at least one
        // authentication plugin here (auth_*).
        // Users may enable other user plugins from Preferences/Plugins but may not
        // disable plugins specified in this list.
HERE
}

        putenv('TTRSS_AUTH_AUTO_CREATE=true');
        // If users are authenticated by your web server, set this to true if
        // You want new users to be automaticaly created in tt-rss database
        // on first login

        putenv('TTRSS_AUTH_AUTO_LOGIN=true');
        // Set this to true if you use ALLOW_REMOTE_USER_AUTH and you want
        // to skip the login form. If set to true, users won't be able to select
        // profile

        putenv('TTRSS_DATABASE_BACKED_SESSIONS=false');
        // Store session information in a database, recommended for multiuser 
        // configurations. Doesn't seem to work for everyone, so enable with caution.
        // tt-rss uses default PHP session storing mechanism if disabled.

        putenv('TTRSS_SESSION_COOKIE_LIFETIME=0');
        // Default lifetime of a session (e.g. login) cookie. In seconds, 
        // 0 means cookie will be deleted when browser closes.

        putenv('TTRSS_SESSION_EXPIRE_TIME=86400');
        // Hard expiration limit for sessions. Should be
        // greater or equal to SESSION_COOKIE_LIFETIME

	putenv('TTRSS_FEED_CRYPT_KEY=');
	// Key used for encryption of passwords for password-protected feeds
	// in the database. A string of 24 random characters. If left blank, encryption
	// is not used. Requires mcrypt functions.
	// Warning: changing this key will make your stored feed passwords impossible
	// to decrypt.

