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 <?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['path'] = $_SERVER['DOCUMENT_ROOT'].'/tgaccount/';
$conf['url'] = $ini['host']; $conf['url'] = $conf['host']['url'];
unset($conf['host']);
// sqlite db settings
// WARNING: database should be outside webroot and needs to be writable by www user // LDAP
$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;
// mail (imap) $conf['ldap']['debug'] = false;
$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'];
// textgrid-sandbox // Smarty
$conf['sandbox'][0] = 'TGPR30';
$conf['sandbox'][1] = 'TGPR31';
// smarty
$conf['smarty']['incPath'] = $ini['smartyLib'];
$conf['smarty']['path'] = $conf['path'].'smarty/'; $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]
host = http://localhost/tgaccount url = http://localhost/tgaccount
[sqlite] [sqlite]
# WARNING: database should be outside webroot and needs to be writable by www user path = /var/textgrid/tgaccount/tgaccount.sqlite
sqlitePath = /var/textgrid/tgaccount/tgaccount.sqlite
[ldap] [ldap]
ldapHost = textgrid-users host = textgrid-users
ldapPort = 389
ldapTLS = true
managerdn = "cn=Manager,dc=textgrid,dc=de" managerdn = "cn=Manager,dc=textgrid,dc=de"
managerpassword = managerpassword =
port = 389
tls = true
[mail] [mail]
mailSender = no-reply@textgridlab.org cc = textgrid-register@gwdg.de
mailReply = register@textgrid.de reply = textgrid-register@gwdg.de
mailCC = TEXTGRID-REGISTER@D-GRID.DE sender = no-reply@textgridlab.org
smtpEhlo = localhost
smtpHost = localhost smtpHost = localhost
smtpUser = register@textgridlab.org smtpUser = register@textgridlab.org
smtpEhlo = localhost
[smarty] [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