src/classes/CCUrl.php
public static function _init() 
	{
		static::$path_offset = ClanCats::$config->get( 'url.path', '/' );

		if ( empty( static::$path_offset ) )
		{
			static::$path_offset = '/';
		}

		if ( substr( static::$path_offset, -1 ) != '/' )
		{
			static::$path_offset .= '/';
		}

		// register the default parameter providers
		static::$parameter_provider = array(

			// Adds a session fingerprint to the parameter list
			'fingerprint' => function()
			{
				return array( ClanCats::$config->get( 'session.default_fingerprint_parameter' ) => fingerprint() );
			},

			// Adds the next redirect uri to redirect back on request
			'back' => function()
			{
				$params = CCIn::$_instance->GET; unset( $params['next'] );
				return array( 'next' => CCUrl::current( $params ) );
			},
		);
	}
public static function _init() 
	{
		static::$path_offset = ClanCats::$config->get( 'url.path', '/' );

		if ( empty( static::$path_offset ) )
		{
			static::$path_offset = '/';
		}

		if ( substr( static::$path_offset, -1 ) != '/' )
		{
			static::$path_offset .= '/';
		}

		// register the default parameter providers
		static::$parameter_provider = array(

			// Adds a session fingerprint to the parameter list
			'fingerprint' => function()
			{
				return array( ClanCats::$config->get( 'session.default_fingerprint_parameter' ) => fingerprint() );
			},

			// Adds the next redirect uri to redirect back on request
			'back' => function()
			{
				$params = CCIn::$_instance->GET; unset( $params['next'] );
				return array( 'next' => CCUrl::current( $params ) );
			},
		);
	}
public static function _init ( ) { static :: $ path_offset = ClanCats :: $ config -> get ( 'url.path' , '/' ) ; if ( empty ( static :: $ path_offset ) ) { static :: $ path_offset = '/' ; } if ( substr ( static :: $ path_offset , - 1 ) != '/' ) { static :: $ path_offset .= '/' ; } // register the default parameter providers static :: $ parameter_provider = array ( // Adds a session fingerprint to the parameter list 'fingerprint' => function ( ) { return array ( ClanCats :: $ config -> get ( 'session.default_fingerprint_parameter' ) => fingerprint ( ) ) ; } , // Adds the next redirect uri to redirect back on request 'back' => function ( ) { $ params = CCIn :: $ _instance -> GET ; unset ( $ params [ 'next' ] ) ; return array ( 'next' => CCUrl :: current ( $ params ) ) ; } , ) ; }
static CCUrl initialisation
static CCUrl initialisation