[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 $mysqlServerIp = '#MYSQLIP#'; 2 $mysqlServerUsername = 'se3db_admin'; 3 $mysqlServerPw = '#SE3DBPASS#'; 4 $connexionDb = 'se3db'; 5 6 # Lecture des variables depuis la base de données 7 use DBI; 8 9 my $se3_db = DBI->connect("DBI:mysql:$connexionDb@$mysqlServerIp", $mysqlServerUsername, $mysqlServerPw) 10 or die "Unable to connect to contacts Database: $se3_db->errstr\n"; 11 $se3_db->{RaiseError} = 1; 12 my $sth = $se3_db->prepare("SELECT name, value FROM params"); 13 $sth->execute or 14 die "Unable to execute query: $se3_db->errstr\n"; 15 my @row; 16 while(@row = $sth->fetchrow_array) { 17 ${$row[0]}=$row[1]; 18 } 19 $sth->finish; 20 $se3_db->disconnect; 21 22 23 # Générales 24 # --------- 25 $baseDn = $ldap_base_dn; 26 $adminDn = "$adminRdn,$baseDn"; 27 $slapdIp = $ldap_server; 28 $slapdPort = $ldap_port; 29 $slapdDebug = '0'; 30 $slapdTimeout = '120'; 31 $slapdVersion = '3'; 32 33 34 # Structure 35 # --------- 36 $peopleDn = "$peopleRdn,$baseDn"; 37 $groupsDn = "$groupsRdn,$baseDn"; 38 $droitsDn = "$rightsRdn,$baseDn"; 39 $computersDn = "$computersRdn,$baseDn"; 40 $parcDn = "$parcsRdn,$baseDn"; 41 $printersDn = "$printersRdn,$baseDn"; 42 $profsRdn = "cn=Profs"; 43 $elevesRdn = "cn=Eleves"; 44 $profsDn = "$profsRdn,$groupsDn"; 45 $elevesDn = "$elevesRdn,$groupsDn"; 46 47 # GepCgi 48 $documentRoot = $path_to_wwwse3; 49 $webDir = 'Admin'; 50 $loginShell = $defaultshell; 51 $hostname = $urlse3;
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |