/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/filesystem/Filesystem.php
*
* @param string $path
* @return string
*/
public function hash($path)
{
return md5_file($path);
}
/**
* Write the contents of a file.
*
* @param string $path
* @param string $contents
* @param bool $lock
* @return int|bool
*/
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
/**
* Write the contents of a file, replacing it atomically if it already exists.
*
* @param string $path
* @param string $content
* @return void
*/
public function replace($path, $content)
{
// If the path already exists and is a symlink, get the real path...
clearstatcache(true, $path);
$path = realpath($path) ?: $path;
$tempPath = tempnam(dirname($path), basename($path));
// Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600...
chmod($tempPath, 0777 - umask());
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/filesystem/Filesystem.php
*
* @param string $path
* @return string
*/
public function hash($path)
{
return md5_file($path);
}
/**
* Write the contents of a file.
*
* @param string $path
* @param string $contents
* @param bool $lock
* @return int|bool
*/
public function put($path, $contents, $lock = false)
{
return file_put_contents($path, $contents, $lock ? LOCK_EX : 0);
}
/**
* Write the contents of a file, replacing it atomically if it already exists.
*
* @param string $path
* @param string $content
* @return void
*/
public function replace($path, $content)
{
// If the path already exists and is a symlink, get the real path...
clearstatcache(true, $path);
$path = realpath($path) ?: $path;
$tempPath = tempnam(dirname($path), basename($path));
// Fix permissions of tempPath because `tempnam()` creates it with permissions set to 0600...
chmod($tempPath, 0777 - umask());
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/view/Compilers/BladeCompiler.php
if (! is_null($this->cachePath)) {
$contents = $this->compileString(
$this->files->get($this->getPath())
);
if (! empty($this->getPath())) {
$tokens = $this->getOpenAndClosingPhpTokens($contents);
// If the tokens we retrieved from the compiled contents have at least
// one opening tag and if that last token isn't the closing tag, we
// need to close the statement before adding the path at the end.
if ($tokens->isNotEmpty() && $tokens->last() !== T_CLOSE_TAG) {
$contents .= ' ?>';
}
$contents .= "<?php /**PATH {$this->getPath()} ENDPATH**/ ?>";
}
$this->files->put(
$this->getCompiledPath($this->getPath()), $contents
);
}
}
/**
* Get the open and closing PHP tag tokens from the given string.
*
* @param string $contents
* @return \Illuminate\Support\Collection
*/
protected function getOpenAndClosingPhpTokens($contents)
{
return collect(token_get_all($contents))
->pluck($tokenNumber = 0)
->filter(function ($token) {
return in_array($token, [T_OPEN_TAG, T_OPEN_TAG_WITH_ECHO, T_CLOSE_TAG]);
});
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/view/Engines/CompilerEngine.php
{
$this->compiler = $compiler;
}
/**
* Get the evaluated contents of the view.
*
* @param string $path
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($compiled, $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Exception $e
* @param int $obLevel
* @return void
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/view/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/view/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/illuminate/view/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? call_user_func($callback, $this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Exception $e) {
$this->factory->flushState();
throw $e;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge-blade/src/View/Blade.php
$container->bindIf('config', function() use ( $view_paths, $cache_path ) {
return [
'view.paths' => $view_paths,
'view.compiled' => $cache_path,
];
}, true);
}
/**
* Render a view to a string
*
* @param string $view
* @param array $data
* @param array $merge_data
*
* @return string
*/
public function render( $view, $data = [], $merge_data = [] ) {
$view = $this->container['view']->make( $view, $data, $merge_data );
return $view->render();
}
/**
* Get the compiler
*
* @return mixed
*/
public function get_compiler() {
$blade_engine = $this->engine_resolver->resolve( 'blade' );
return $blade_engine->getCompiler();
}
/**
* Get the view factory
*
* @return mixed
*/
public function get_view_factory() {
return $this->container['view'];
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge-blade/src/View/BladeView.php
return $this->blade_engine;
}
/**
* {@inheritDoc}
*/
public function setBladeEngine( Blade $blade_engine ) {
$this->blade_engine = $blade_engine;
return $this;
}
/**
* {@inheritDoc}
*/
public function toString() {
if ( empty( $this->getName() ) ) {
throw new ViewException( 'View must have a name.' );
}
return $this->getBladeEngine()->render( $this->getName(), $this->getContext() );
}
/**
* {@inheritDoc}
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge-blade/src/View/BladeView.php
}
/**
* {@inheritDoc}
*/
public function toString() {
if ( empty( $this->getName() ) ) {
throw new ViewException( 'View must have a name.' );
}
return $this->getBladeEngine()->render( $this->getName(), $this->getContext() );
}
/**
* {@inheritDoc}
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Responses/ResponseService.php
/**
* Get a view file representation.
*
* @param string|array<string> $views
* @return ViewInterface
*/
public function view( $views ) {
return View::make( $views );
}
/**
* Get an error response, with status headers and rendering a suitable view as the body.
*
* @param integer $status
* @return ResponseInterface
*/
public function error( $status ) {
return $this->view( [$status, 'error', 'index'] )
->toResponse()
->withStatus( $status );
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Support/Facade.php
}
/**
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
*
* @throws \RuntimeException
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return call_user_func_array([$instance, $method], $args);
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Support/Facade.php
}
/**
* Handle dynamic, static calls to the object.
*
* @param string $method
* @param array $args
* @return mixed
*
* @throws \RuntimeException
*/
public static function __callStatic($method, $args)
{
$instance = static::getFacadeRoot();
if (! $instance) {
throw new RuntimeException('A facade root has not been set.');
}
return call_user_func_array([$instance, $method], $args);
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Exceptions/ErrorHandler.php
$method = RunInterface::EXCEPTION_HANDLER;
ob_start();
$this->whoops->$method( $exception );
$response = ob_get_clean();
return Response::output( $response )->withStatus( 500 );
}
/**
* {@inheritDoc}
* @throws PhpException
*/
public function getResponse( RequestInterface $request, PhpException $exception ) {
$response = $this->toResponse( $exception );
if ( $response !== false ) {
return $response;
}
if ( ! $this->debug ) {
return Response::error( 500 );
}
return $this->toDebugResponse( $request, $exception );
}
}
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$middleware = $this->expandMiddleware( $middleware );
$middleware = $this->uniqueMiddleware( $middleware );
$middleware = $this->sortMiddleware( $middleware );
$response = ( new Pipeline() )
->pipe( $middleware )
->to( $handler )
->run( $request, array_merge( [$request], $arguments ) );
} catch ( Exception $exception ) {
$response = $this->error_handler->getResponse( $request, $exception );
}
$this->error_handler->unregister();
return $response;
}
/**
* Filter the main query vars.
*
* @param array $query_vars
* @return array
*/
public function filterRequest( $query_vars ) {
/** @var $routes \WPEmerge\Routing\RouteInterface[] */
$routes = $this->router->getRoutes();
foreach ( $routes as $route ) {
if ( ! $route instanceof HasQueryFilterInterface ) {
continue;
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
add_action( 'admin_init', [$this, 'registerAdminAction'] );
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
$handler = function () use ( $route ) {
$arguments = func_get_args();
$request = array_shift( $arguments );
return call_user_func( [$route, 'handle'], $request, $arguments );
};
$response = $this->run( $request, $route->getMiddleware(), $handler, $arguments );
$container = $this->app->getContainer();
$container[ WPEMERGE_RESPONSE_KEY ] = $response;
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$middleware = $this->expandMiddleware( $middleware );
$middleware = $this->uniqueMiddleware( $middleware );
$middleware = $this->sortMiddleware( $middleware );
$response = ( new Pipeline() )
->pipe( $middleware )
/nas/content/live/ylventures/wp-content/themes/airfleet/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
}
$query_vars = $route->applyQueryFilter( $this->request, $query_vars );
break;
}
return $query_vars;
}
/**
* Filter the main template file.
*
* @param string $view
* @return string
*/
public function filterTemplateInclude( $view ) {
/** @var $wp_query \WP_Query */
global $wp_query;
$response = $this->handle( $this->request, [$view] );
if ( $response instanceof ResponseInterface ) {
if ( $response->getStatusCode() === 404 ) {
$wp_query->set_404();
}
return WPEMERGE_DIR . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'view.php';
}
return $view;
}
/**
* Register ajax action to hook into current one.
*
* @return void
*/
public function registerAjaxAction() {
if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) {
return;
/nas/content/live/ylventures/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/nas/content/live/ylventures/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
/nas/content/live/ylventures/wp-includes/template-loader.php
if ( 'is_attachment' === $tag ) {
remove_filter( 'the_content', 'prepend_attachment' );
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
/**
* Fires immediately before including the template.
*
* @since 6.9.0
*
* @param string $template The path of the template about to be included.
*/
do_action( 'wp_before_include_template', $template );
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
/nas/content/live/ylventures/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/nas/content/live/ylventures/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';