Skip to content
Snippets Groups Projects
Commit 34adfde5 authored by Hannes Riebl's avatar Hannes Riebl
Browse files

Simplify configuration

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13757 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent 384979d3
No related branches found
No related tags found
No related merge requests found
<?php
// conf variables from ini file
// WARNING: should be outside webroot
$ini = parse_ini_file('/var/textgrid/tgaccount/tgaccount.ini');
// path
// INI
$conf = parse_ini_file('/var/textgrid/tgaccount/tgaccount.ini', TRUE);
// Host
$conf['path'] = $_SERVER['DOCUMENT_ROOT'].'/tgaccount/';
$conf['url'] = $ini['host'];
// sqlite db settings
// WARNING: database should be outside webroot and needs to be writable by www user
$conf['sqlite']['path'] = $ini['sqlitePath'];
// ldap-settings
$conf['ldap']['host'] = $ini['ldapHost'];
$conf['ldap']['port'] = $ini['ldapPort'];
$conf['ldap']['tls'] = $ini['ldapTLS'];
$conf['ldap']['managerdn'] = $ini['managerdn'];
$conf['ldap']['managerpassword'] = $ini['managerpassword'];
$conf['ldap']['debug'] = false;
$conf['url'] = $conf['host']['url'];
unset($conf['host']);
// LDAP
// mail (imap)
$conf['mail']['sender'] = $ini['mailSender'];
$conf['mail']['reply'] = $ini['mailReply'];
$conf['mail']['cc'] = $ini['mailCC'];
$conf['mail']['smtpHost'] = $ini['smtpHost'];
$conf['mail']['smtpUser'] = $ini['smtpUser'];
$conf['mail']['smtpEhlo'] = $ini['smtpEhlo'];
$conf['ldap']['debug'] = false;
// textgrid-sandbox
$conf['sandbox'][0] = 'TGPR30';
$conf['sandbox'][1] = 'TGPR31';
// Smarty
// smarty
$conf['smarty']['incPath'] = $ini['smartyLib'];
$conf['smarty']['path'] = $conf['path'].'smarty/';
// Sandbox
$conf['sandbox'][0] = 'TGPR30';
$conf['sandbox'][1] = 'TGPR31';
?>
<?php
$menu = '<div id="topMenu">';
$menu .= '<ul class="menu mainMenu">';
$menu .= '<li><a href="index.php">Übersicht</a></li>';
$menu .= '<li style="float:right"><a href="index.php?action=logout">Logout '.$conf['login']['user'].'</a></li>';
$menu .= '</ul>
</div>
<div style="clear:both;"></div>';
?>
[host]
host = http://localhost/tgaccount
url = http://localhost/tgaccount
[sqlite]
# WARNING: database should be outside webroot and needs to be writable by www user
sqlitePath = /var/textgrid/tgaccount/tgaccount.sqlite
path = /var/textgrid/tgaccount/tgaccount.sqlite
[ldap]
ldapHost = textgrid-users
ldapPort = 389
ldapTLS = true
host = textgrid-users
managerdn = "cn=Manager,dc=textgrid,dc=de"
managerpassword =
managerpassword =
port = 389
tls = true
[mail]
mailSender = no-reply@textgridlab.org
mailReply = register@textgrid.de
mailCC = TEXTGRID-REGISTER@D-GRID.DE
cc = textgrid-register@gwdg.de
reply = textgrid-register@gwdg.de
sender = no-reply@textgridlab.org
smtpEhlo = localhost
smtpHost = localhost
smtpUser = register@textgridlab.org
smtpEhlo = localhost
[smarty]
smartyLib = /usr/share/php/smarty/libs/Smarty.class.php
incPath = /usr/share/php/smarty/libs/Smarty.class.php
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment