/home/srivibhavegroup/routesafe360.com/billing/di.php
/*
* Creates a new request object based on the current request.
*
* @param void
*
* @link https://symfony.com/doc/current/components/http_foundation.html
*
* @return Symfony\Component\HttpFoundation\Request
*/
$di['request'] = fn (): Request => Request::createFromGlobals();
/*
* @param void
*
* @link https://symfony.com/doc/current/components/cache/adapters/filesystem_adapter.html
*
* @return FilesystemAdapter
*/
$di['cache'] = fn (): FilesystemAdapter => new FilesystemAdapter('sf_cache', 24 * 60 * 60, PATH_CACHE);
/*
*
* @param void
*
* @return Box_Authorization
*/
$di['auth'] = fn (): Box_Authorization => new Box_Authorization($di);
/*
* Creates a new Twig environment that's configured for FOSSBilling.
*
* @param void
*
* @return \Twig\Environment The new Twig environment that was just created.
*
* @throws \Twig\Error\LoaderError If the Twig environment could not be created.
* @throws \Twig\Error\RuntimeError If an error occurs while rendering a template.
* @throws \Twig\Error\SyntaxError If a template is malformed.
*/
Arguments
"Class "Symfony\Component\Cache\Adapter\FilesystemAdapter" not found"
/home/srivibhavegroup/routesafe360.com/billing/vendor/pimple/pimple/src/Pimple/Container.php
{
if (!isset($this->keys[$id])) {
throw new UnknownIdentifierException($id);
}
if (
isset($this->raw[$id])
|| !\is_object($this->values[$id])
|| isset($this->protected[$this->values[$id]])
|| !\method_exists($this->values[$id], '__invoke')
) {
return $this->values[$id];
}
if (isset($this->factories[$this->values[$id]])) {
return $this->values[$id]($this);
}
$raw = $this->values[$id];
$val = $this->values[$id] = $raw($this);
$this->raw[$id] = $raw;
$this->frozen[$id] = true;
return $val;
}
/**
* Checks if a parameter or an object is set.
*
* @param string $id The unique identifier for the parameter or object
*
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($id)
{
return isset($this->keys[$id]);
}
Arguments
/home/srivibhavegroup/routesafe360.com/billing/load.php
{
global $request;
if (!empty(Config::getProperty('security.force_https')) && Config::getProperty('security.force_https') && !Environment::isCLI()) {
if (!Tools::isHTTPS()) {
header('Location: https://' . $request->getHost() . $request->getRequestUri());
exit;
}
}
}
/*
* Check if the update patcher needs to be run.
*/
function checkUpdatePatcher(): void
{
global $di, $filesystem, $request;
$version = FOSSBilling\Version::VERSION;
if ($di['cache']->getItem('updatePatcher')->isHit() && $version === $di['cache']->getItem('updatePatcher')->get()) {
exit('The update patcher has already been run for this version.');
}
if ($request->getPathInfo() == '/run-patcher' || $request->query->get('_url') === '/run-patcher') {
$patcher = new FOSSBilling\UpdatePatcher();
$patcher->setDi($di);
try {
$patcher->applyConfigPatches();
$patcher->applyCorePatches();
// Clear the file cache after applying patches.
$filesystem->remove(PATH_CACHE);
$filesystem->mkdir(PATH_CACHE);
$di['cache']->getItem('updatePatcher')->set(FOSSBilling\Version::VERSION);
exit('Any missing config migrations or database patches have been applied and the cache has been cleared.');
} catch (Exception $e) {
exit("An error occurred while attempting to apply patches: <br>{$e->getMessage()}.");
Arguments
/home/srivibhavegroup/routesafe360.com/billing/load.php
// Perform pre-initialization (loading required dependencies, etc.).
preInit();
// Initialize the application.
init();
// Check for legacy BoxBilling/FOSSBilling files.
checkLegacyFiles();
// Verify the installer was removed.
checkInstaller();
// Check if SSL required, and enforce if so.
checkSSL();
// Check web server and web server settings.
checkWebServer();
// Check whether the patcher needs to be run.
checkUpdatePatcher();
// Perform post-initialization (setting error handlers, etc).
postInit();
/home/srivibhavegroup/routesafe360.com/billing/index.php
<?php
/**
* Copyright 2022-2025 FOSSBilling
* Copyright 2011-2021 BoxBilling, Inc.
* SPDX-License-Identifier: Apache-2.0.
*
* @copyright FOSSBilling (https://www.fossbilling.org)
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
*/
require __DIR__ . DIRECTORY_SEPARATOR . 'load.php';
global $di;
// Setting up the debug bar
$debugBar = new DebugBar\StandardDebugBar();
$debugBar['request']->useHtmlVarDumper();
$debugBar['messages']->useHtmlVarDumper();
$config = FOSSBilling\Config::getConfig();
$config['info']['salt'] = '********';
$config['db'] = array_fill_keys(array_keys($config['db']), '********');
$configCollector = new DebugBar\DataCollector\ConfigCollector($config);
$configCollector->useHtmlVarDumper();
$debugBar->addCollector($configCollector);
// Get the request URL
$url = $_GET['_url'] ?? parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
// Rewrite for custom pages
if (str_starts_with($url, '/page/')) {
$url = substr_replace($url, '/custompages/', 0, 6);
}
// Set the final URL
$_GET['_url'] = $url;
$http_err_code = $_GET['_errcode'] ?? null;
Arguments
"/home/srivibhavegroup/routesafe360.com/billing/load.php"