/home
/whejshks
/public_html
/src
/Hazzard
/Session
/Store.php
/**
* Get the current session name.
*
* @return string
*/
public function getName()
{
return session_name();
}
/**
* Set the current session name.
*
* @param string $name
* @return string
*/
public function setName($name)
{
return session_name($name);
}
/**
* Set a key / value pair or array of key / value pairs in the session.
*
* @param string|array $key
* @param mixed|null $value
* @return void
*/
public function set($key, $value = null)
{
if (!is_array($key)) $key = array($key => $value);
foreach ($key as $arrayKey => $arrayValue) {
array_set($_SESSION, $arrayKey, $arrayValue);
}
}
/**
* Push a value onto an array session value.
/home
/whejshks
/public_html
/src
/Hazzard
/Session
/Store.php
/**
* Get the current session name.
*
* @return string
*/
public function getName()
{
return session_name();
}
/**
* Set the current session name.
*
* @param string $name
* @return string
*/
public function setName($name)
{
return session_name($name);
}
/**
* Set a key / value pair or array of key / value pairs in the session.
*
* @param string|array $key
* @param mixed|null $value
* @return void
*/
public function set($key, $value = null)
{
if (!is_array($key)) $key = array($key => $value);
foreach ($key as $arrayKey => $arrayValue) {
array_set($_SESSION, $arrayKey, $arrayValue);
}
}
/**
* Push a value onto an array session value.
/home
/whejshks
/public_html
/src
/Hazzard
/Session
/Store.php
<?php namespace Hazzard\Session;
class Store implements \ArrayAccess {
/**
* Create a new session store instance.
*
* @param string $name
* @return void
*/
public function __construct($name)
{
$this->setName($name);
}
/**
* Start the session.
*
* @return \Hazzard\Session\Store
*/
public function start()
{
if (!$this->getId()) {
session_start();
}
if (!$this->has('_token')) $this->regenerateToken();
return $this;
}
/**
* Get the current session id.
*
* @return string
*/
public function getId()
{
return session_id();
}
/home
/whejshks
/public_html
/src
/Hazzard
/Session
/SessionServiceProvider.php
class SessionServiceProvider extends ServiceProvider {
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$me = $this;
$this->app->bindShared('session', function($app) use($me) {
$config = $app['config']['session'];
$me->registerSessionDriver($config);
$me->configureNativeSession($config);
return with(new Store($config['cookie']))->start();
});
}
/**
* Configure the native PHP session cookie/options.
*
* @param array $config
* @return void
*/
protected function configureNativeSession(array $config)
{
if (session_status() === PHP_SESSION_ACTIVE || headers_sent()) {
return;
}
$path = !empty($config['path']) ? $config['path'] : '/';
$domain = !empty($config['domain']) ? (string) $config['domain'] : '';
$secure = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off');
$lifetime = (int) $config['lifetime'] * 60;
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
}
/**
* Wrap a Closure such that it is shared.
*
* @param Closure $closure
* @return Closure
*/
public function share(Closure $closure)
{
return function($container) use ($closure)
{
// We'll simply declare a static variable within the Closures and if it has
// not been set we will execute the given Closures to resolve this value
// and return it back to these consumers of the method as an instance.
static $object;
if (is_null($object))
{
$object = $closure($container);
}
return $object;
};
}
/**
* Bind a shared Closure into the container.
*
* @param string $abstract
* @param \Closure $closure
* @return void
*/
public function bindShared($abstract, Closure $closure)
{
return $this->bind($abstract, $this->share($closure), true);
}
/**
* "Extend" an abstract type in the container.
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
return is_string($abstract) && strpos($abstract, '\\') !== 0;
}
/**
* Instantiate a concrete instance of the given type.
*
* @param string $concrete
* @param array $parameters
* @return mixed
*
* @throws BindingResolutionException
*/
public function build($concrete, $parameters = array())
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
if ($concrete instanceof Closure)
{
return $concrete($this, $parameters);
}
$reflector = new ReflectionClass($concrete);
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface of Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
if ( ! $reflector->isInstantiable())
{
$message = "Target [$concrete] is not instantiable.";
throw new BindingResolutionException($message);
}
$constructor = $reflector->getConstructor();
// If there are no constructors, that means there are no dependencies then
// we can just resolve the instances of the objects right away, without
// resolving any other types or dependencies out of these containers.
if (is_null($constructor))
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
$abstract = $this->getAlias($abstract);
$this->resolved[$abstract] = true;
// If an instance of the type is currently being managed as a singleton we'll
// just return an existing instance instead of instantiating new instances
// so the developer can keep using the same objects instance every time.
if (isset($this->instances[$abstract]))
{
return $this->instances[$abstract];
}
$concrete = $this->getConcrete($abstract);
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
if ($this->isBuildable($concrete, $abstract))
{
$object = $this->build($concrete, $parameters);
}
else
{
$object = $this->make($concrete, $parameters);
}
// If the requested type is registered as a singleton we'll want to cache off
// the instances in "memory" so we can return it later without creating an
// entirely new instance of an object on each subsequent request for it.
if ($this->isShared($abstract))
{
$this->instances[$abstract] = $object;
}
$this->fireResolvingCallbacks($abstract, $object);
return $object;
}
/**
/home
/whejshks
/public_html
/src
/Hazzard
/Foundation
/Application.php
}
/**
* Resolve the given type from the container.
*
* (Overriding \Illuminate\Container\Container::make)
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function make($abstract, $parameters = array())
{
$abstract = $this->getAlias($abstract);
if (isset($this->deferredServices[$abstract])) {
$this->loadDeferredProvider($abstract);
}
return parent::make($abstract, $parameters);
}
/**
* Set the application's deferred services.
*
* @param array $services
* @return void
*/
public function setDeferredServices(array $services)
{
$this->deferredServices = $services;
}
/**
* Get the service provider repository instance.
*
* @return \Hazzard\Foundation\ProviderRepository
*/
public function getProviderRepository()
{
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
*
* @param string $key
* @return bool
*/
#[\ReturnTypeWillChange]
public function offsetExists($key)
{
return isset($this->bindings[$key]);
}
/**
* Get the value at a given offset.
*
* @param string $key
* @return mixed
*/
#[\ReturnTypeWillChange]
public function offsetGet($key)
{
return $this->make($key);
}
/**
* Set the value at a given offset.
*
* @param string $key
* @param mixed $value
* @return void
*/
#[\ReturnTypeWillChange]
public function offsetSet($key, $value)
{
// If the value is not a Closure, we will make it one. This simply gives
// more "drop-in" replacement functionality for the Pimple which this
// container's simplest functions are base modeled and built after.
if ( ! $value instanceof Closure)
{
$value = function() use ($value)
{
return $value;
/home
/whejshks
/public_html
/src
/Hazzard
/Auth
/AuthServiceProvider.php
<?php namespace Hazzard\Auth;
use Hazzard\Support\ServiceProvider;
use Hazzard\Auth\Manager;
class AuthServiceProvider extends ServiceProvider {
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->app->bindShared('auth', function($app) {
$provider = with(new UserProvider)->setHasher($app['hash'])->setUsermeta($app['user.meta']);
$auth = new Auth($provider, $app['session'], $app['cookie'], $app['validator'], $app['translator'], $app['encrypter'], $app['config']['auth']);
return with($auth)->setDispatcher($app['events']);
});
}
}
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
}
/**
* Wrap a Closure such that it is shared.
*
* @param Closure $closure
* @return Closure
*/
public function share(Closure $closure)
{
return function($container) use ($closure)
{
// We'll simply declare a static variable within the Closures and if it has
// not been set we will execute the given Closures to resolve this value
// and return it back to these consumers of the method as an instance.
static $object;
if (is_null($object))
{
$object = $closure($container);
}
return $object;
};
}
/**
* Bind a shared Closure into the container.
*
* @param string $abstract
* @param \Closure $closure
* @return void
*/
public function bindShared($abstract, Closure $closure)
{
return $this->bind($abstract, $this->share($closure), true);
}
/**
* "Extend" an abstract type in the container.
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
return is_string($abstract) && strpos($abstract, '\\') !== 0;
}
/**
* Instantiate a concrete instance of the given type.
*
* @param string $concrete
* @param array $parameters
* @return mixed
*
* @throws BindingResolutionException
*/
public function build($concrete, $parameters = array())
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
if ($concrete instanceof Closure)
{
return $concrete($this, $parameters);
}
$reflector = new ReflectionClass($concrete);
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface of Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
if ( ! $reflector->isInstantiable())
{
$message = "Target [$concrete] is not instantiable.";
throw new BindingResolutionException($message);
}
$constructor = $reflector->getConstructor();
// If there are no constructors, that means there are no dependencies then
// we can just resolve the instances of the objects right away, without
// resolving any other types or dependencies out of these containers.
if (is_null($constructor))
/home
/whejshks
/public_html
/vendor
/illuminate
/container
/Illuminate
/Container
/Container.php
$abstract = $this->getAlias($abstract);
$this->resolved[$abstract] = true;
// If an instance of the type is currently being managed as a singleton we'll
// just return an existing instance instead of instantiating new instances
// so the developer can keep using the same objects instance every time.
if (isset($this->instances[$abstract]))
{
return $this->instances[$abstract];
}
$concrete = $this->getConcrete($abstract);
// We're ready to instantiate an instance of the concrete type registered for
// the binding. This will instantiate the types, as well as resolve any of
// its "nested" dependencies recursively until all have gotten resolved.
if ($this->isBuildable($concrete, $abstract))
{
$object = $this->build($concrete, $parameters);
}
else
{
$object = $this->make($concrete, $parameters);
}
// If the requested type is registered as a singleton we'll want to cache off
// the instances in "memory" so we can return it later without creating an
// entirely new instance of an object on each subsequent request for it.
if ($this->isShared($abstract))
{
$this->instances[$abstract] = $object;
}
$this->fireResolvingCallbacks($abstract, $object);
return $object;
}
/**
/home
/whejshks
/public_html
/src
/Hazzard
/Foundation
/Application.php
}
/**
* Resolve the given type from the container.
*
* (Overriding \Illuminate\Container\Container::make)
*
* @param string $abstract
* @param array $parameters
* @return mixed
*/
public function make($abstract, $parameters = array())
{
$abstract = $this->getAlias($abstract);
if (isset($this->deferredServices[$abstract])) {
$this->loadDeferredProvider($abstract);
}
return parent::make($abstract, $parameters);
}
/**
* Set the application's deferred services.
*
* @param array $services
* @return void
*/
public function setDeferredServices(array $services)
{
$this->deferredServices = $services;
}
/**
* Get the service provider repository instance.
*
* @return \Hazzard\Foundation\ProviderRepository
*/
public function getProviderRepository()
{
/home
/whejshks
/public_html
/src
/Hazzard
/Support
/helpers.php
{
$url = 'http://www.gravatar.com/avatar/';
$url .= md5(strtolower(trim($email)));
$url .= "?s=$size&d=$default&r=$rating";
return $url;
}
/**
* Get the root Facade application instance.
*
* @param string $make
* @return mixed
*/
function app($make = null)
{
if (!is_null($make)) {
return app()->make($make);
}
return Hazzard\Support\Facades\Facade::getFacadeApplication();
}
/**
* Get the path to the application folder.
*
* @param string $path
* @return string
*/
function app_path($path = '')
{
return app('path').($path ? '/'.$path : $path);
}
/**
* Get the path to the storage folder.
*
* @param string $path
/home
/whejshks
/public_html
/app
/events.php
<?php
/**
* Fires after initialization.
*
* @return void
*/
Event::listen('app.init', function() {
app('auth')->check();
// Detect user language from cookie, browser language,
// country code or usermeta "locale".
$locales = app('config')->get('app.locales');
$lifetime = 60*24*30*10;
if (isset($_GET['lang'])) {
if (array_key_exists($_GET['lang'], $locales)) {
app('cookie')->set('easylogin_locale', $_GET['lang'], $lifetime);
}
redirect_to( isset($_GET['r']) ? $_GET['r'] : app()->url() );
}
if (app('auth')->check()) {
$locale = app('auth')->user()->locale;
}
if (empty($locale)) {
$locale = app('cookie')->get('easylogin_locale');
}
if (empty($locale) && function_exists('locale_accept_from_http') && isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$locale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
$locale = substr($locale, 0, 2);
}
/home
/whejshks
/public_html
/src
/Hazzard
/Events
/Dispatcher.php
public function hasListeners($eventName)
{
return isset($this->listeners[$eventName]);
}
/**
* Fire an event and call the listeners.
*
* @param string $event
* @param mixed $payload
* @return array|null
*/
public function fire($event, $payload = array())
{
$responses = array();
if (!is_array($payload)) $payload = array($payload);
foreach ($this->getListeners($event) as $listener) {
$response = call_user_func_array($listener, $payload);
if (!is_null($response)) {
return $response;
}
if ($response === false) break;
$responses[] = $response;
}
return $responses;
}
/**
* Get all of the listeners for a given event name.
*
* @param string $eventName
* @return array
*/
public function getListeners($eventName)
/home
/whejshks
/public_html
/src
/Hazzard
/Events
/Dispatcher.php
public function hasListeners($eventName)
{
return isset($this->listeners[$eventName]);
}
/**
* Fire an event and call the listeners.
*
* @param string $event
* @param mixed $payload
* @return array|null
*/
public function fire($event, $payload = array())
{
$responses = array();
if (!is_array($payload)) $payload = array($payload);
foreach ($this->getListeners($event) as $listener) {
$response = call_user_func_array($listener, $payload);
if (!is_null($response)) {
return $response;
}
if ($response === false) break;
$responses[] = $response;
}
return $responses;
}
/**
* Get all of the listeners for a given event name.
*
* @param string $eventName
* @return array
*/
public function getListeners($eventName)
/home
/whejshks
/public_html
/app
/init.php
|--------------------------------------------------------------------------
| Load The Events File
|--------------------------------------------------------------------------
*/
if (file_exists($app['path'].'/events.php')) {
require_once $app['path'].'/events.php';
}
if (file_exists($app['path'].'/referral_helpers.php')) {
require_once $app['path'].'/referral_helpers.php';
}
/*
|--------------------------------------------------------------------------
| Fire Init Event
|--------------------------------------------------------------------------
*/
$app['events']->fire('app.init');
/home
/whejshks
/public_html
/services.php
<?php require_once 'app/init.php';
if (isset($_GET['ref'])) {
captureReferralVisit($_GET['ref']);
}
?>
<?php echo View::make('home_header')->render() ?>
<!-- Header Start -->
<div class="container-fluid bg-breadcrumb">
<div class="bg-breadcrumb-single"></div>
<div class="container text-center py-5" style="max-width: 900px;">
<h4 class="text-white display-4 mb-4 wow fadeInDown" data-wow-delay="0.1s">Our Services</h4>
<ol class="breadcrumb justify-content-center mb-0 wow fadeInDown" data-wow-delay="0.3s">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item"><a href="#">Pages</a></li>
<li class="breadcrumb-item active text-primary">Service</li>
</ol>
</div>
</div>
<!-- Header End -->
<!-- Services Start -->
<div class="container-fluid service py-5">
<div class="container py-5">
<div class="text-center mx-auto pb-5 wow fadeInUp" data-wow-delay="0.1s" style="max-width: 800px;">
<h4 class="text-primary">Cryptocurrency Services</h4>
<h1 class="display-4">Comprehensive Crypto Investment & Trading Solutions</h1>
<p class="mt-3">Expert-managed cryptocurrency portfolios, Bitcoin & Ethereum holdings, DeFi yield farming, staking rewards, and 24/7 blockchain trading with institutional-grade security and transparency.</p>
</div>
<div class="row g-4 justify-content-center text-center">
<div class="col-md-6 col-lg-4 col-xl-3 wow fadeInUp" data-wow-delay="0.1s">
<div class="service-item bg-light rounded">
<div class="service-img">
<img src="assets/assets/img/service-1.jpg" class="img-fluid w-100 rounded-top" alt="">
</div>
<div class="service-content text-center p-4">
<div class="service-content-inner">
<a href="#" class="h4 mb-4 d-inline-flex text-start"><i class="fas fa-bitcoin fa-2x me-2"></i> Bitcoin & Ethereum Investment</a>