<?php // conf variables from ini file // WARNING: should be outside webroot $ini = parse_ini_file('/var/textgrid/tgaccount/tgaccount.ini'); // path $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; // 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']; // textgrid-sandbox $conf['sandbox'][0] = 'TGPR30'; $conf['sandbox'][1] = 'TGPR31'; // smarty $conf['smarty']['incPath'] = $ini['smartyLib']; $conf['smarty']['path'] = $conf['path'].'smarty/'; ?>