This file is indexed.

/usr/share/scuttle/www/header.inc.php is in scuttle 0.7.4-8.1.

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
<?php
//ini_set('display_errors', '1');
ini_set('mysql.trace_mode', '0');

//error_reporting(E_ALL ^ E_NOTICE);

define('DEBUG', true);
session_start();

require_once(dirname(__FILE__) .'/services/servicefactory.php');
require_once('/etc/scuttle/config.inc.php');
require_once(dirname(__FILE__) .'/functions.inc.php');

// Determine the base URL
if (!isset($root)) {
    $pieces = explode('/', $_SERVER['SCRIPT_NAME']);
    $root = '/';
    foreach($pieces as $piece) {
        if ($piece != '' && !strstr($piece, '.php')) {
            $root .= $piece .'/';
        }
    }
    if (($root != '/') && (substr($root, -1, 1) != '/')) {
        $root .= '/';
    }
    $path = $root;
    if ($_SERVER['HTTPS'] == 'on') {
      $protocol = 'https';
    } elseif ($_SERVER['SERVER_PORT'] == '443') {
      $protocol = 'https';
    } else {
      $protocol = 'http';
    }
    $root = $protocol . '://'. $_SERVER['HTTP_HOST'] . $root;
}

// Error codes
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);
?>