This file is indexed.

/usr/share/libgda-5.0/php/gda-setup.php is in libgda-5.0-common 5.2.4-9.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/* Configure session cache */
session_cache_limiter('nocache');
session_start();

header('Content-type: text/plain; charset=UTF-8');

include_once "gda-utils.php";
include_once "gda-config.php";

if (! try_include ("MDB2.php") && ! try_include ("PEAR".DIRECTORY_SEPARATOR."MDB2.php")) {
	$reply = new SimpleXMLElement("<reply></reply>");
	$node = $reply->addChild ("status", "ERROR");
	$node->addAttribute ("error", "The PEAR MDB2 extension is required");
	echo gda_add_hash ($init_shared, $reply->asXml());
	session_destroy ();
	exit (1);
}

if (! extension_loaded ("SimpleXML")) {
	$reply = new SimpleXMLElement("<reply></reply>");
	$node = $reply->addChild ("status", "ERROR");
	$node->addAttribute ("error", "The SimpleXML extension is required");
	echo gda_add_hash ($init_shared, $reply->asXml());
	session_destroy ();
	exit (1);
}

$cmdfile = get_command_filename (session_id ());
$replyfile = get_reply_filename (session_id ());

umask(0);
$mode = 0600;
posix_mkfifo ($cmdfile, $mode);
posix_mkfifo ($replyfile, $mode);

if (!file_exists ($cmdfile) ||
    !file_exists ($replyfile)) {
	$reply = new SimpleXMLElement("<reply></reply>");
	$node = $reply->addChild ("status", "ERROR");
	$node->addAttribute ("error", "Can't create named pipes");
	echo gda_add_hash ($init_shared, $reply->asXml());
	
	@unlink ($cmdfile);
	@unlink ($replyfile);
	session_destroy ();
	exit (1);
}

/* all setup */
$reply = new SimpleXMLElement("<reply></reply>");
$reply->addChild ('session', htmlspecialchars(SID));
$reply->addChild ("status", "OK");
echo gda_add_hash ($init_shared, $reply->asXml());
flush ();
ob_flush ();
?>