<commit_before><?php
/**
 * Bacula® - The Network Backup Solution
 * Baculum - Bacula web interface
 *
 * Copyright (C) 2013-2014 <NAME>
 *
 * The main author of Baculum is <NAME>.
 * The main author of Bacula is <NAME>, with contributions from many
 * others, a complete list can be found in the file AUTHORS.
 *
 * You may use this file and others of this release according to the
 * license defined in the LICENSE file, which includes the Affero General
 * Public License, v3.0 ("AGPLv3") and some additional permissions and
 * terms pursuant to its AGPLv3 Section 7.
 *
 * Bacula® is a registered trademark of Kern Sibbald.
 */
date_default_timezone_set('UTC');
 
require_once('./protected/Pages/Requirements.php');
new Requirements(__DIR__);
require_once('./framework/prado.php');
$application=new TApplication;
$application->run();
?><commit_msg>baculum: Support for web servers which do not provide direct info about HTTP Basic auth<commit_after><?php
/**
 * Bacula® - The Network Backup Solution
 * Baculum - Bacula web interface
 *
 * Copyright (C) 2013-2014 <NAME>
 *
 * The main author of Baculum is <NAME>.
 * The main author of Bacula is <NAME>, with contributions from many
 * others, a complete list can be found in the file AUTHORS.
 *
 * You may use this file and others of this release according to the
 * license defined in the LICENSE file, which includes the Affero General
 * Public License, v3.0 ("AGPLv3") and some additional permissions and
 * terms pursuant to its AGPLv3 Section 7.
 *
 * Bacula® is a registered trademark of Kern Sibbald.
 */
date_default_timezone_set('UTC');

// Support for web servers which do not provide direct info about HTTP Basic auth to PHP superglobal $_SERVER array.
if(!isset($_SERVER['PHP_AUTH_USER']) && !isset($_SERVER['PHP_AUTH_PW'])) {
    list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
}

require_once('./protected/Pages/Requirements.php');
new Requirements(__DIR__);
require_once('./framework/prado.php');
$application=new TApplication;
$application->run();
?>
{'fraction_non_alphanumeric': 0.11200759373516848, 'fraction_numerical': 0.013763644992880873, 'mean_word_length': 4.7753424657534245, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7620347', 'n_tokens_mistral': 634, 'n_tokens_neox': 596, 'n_words': 238}