File: gda-config.php

package info (click to toggle)
libgda5 5.2.10-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 76,168 kB
  • sloc: ansic: 495,319; xml: 10,486; yacc: 5,165; sh: 4,451; makefile: 4,095; php: 1,416; java: 1,300; javascript: 1,298; python: 896; sql: 879; perl: 116
file content (34 lines) | stat: -rw-r--r-- 678 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

/*
 * Add this directive to use the implementation of PEAR MDB2 provided
 * in Libgda
 */
//set_include_path (get_include_path().":PEAR_MDB2");

/*
 * Add the directory to which the gda-secure-config.php has been copied (here /etc for example)
 */
set_include_path (get_include_path().":/etc");





/*
 * NO MODIFICATION BELOW
 */
$found = false;
$array = explode (":", get_include_path ());
foreach ($array as $index => $path) {
	if (file_exists ($path.DIRECTORY_SEPARATOR."gda-secure-config.php")) {
		include_once ($path.DIRECTORY_SEPARATOR."gda-secure-config.php");
		$found = true;
	}
}
if (! $found) {
	echo "Missing gda-secure-config.php file!";
	exit (1);
}

?>