HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u108027308 (833300)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /homepages/45/d918139969/htdocs/wp-stack-cache.php
<?php

/**
 * Plugin Name:       StackCache
 * Plugin URI:        http://cache.stackcp.com/
 * Description:       Wrapper to include the Stack Cache Plugin Library 
 * Author:            Stack CP
 */

// If this file is called directly, abort.
if ( ! defined( "WPINC" ) ) die;

// Load and include
$file_suffix = "/wp-admin/includes/file.php";
$count = 0;
while ( true ) {
        $path = str_repeat("../", $count) . $file_suffix;
        $full_path = plugin_dir_path(__FILE__) . $path;
        if ( file_exists($full_path) ) {
                require_once($full_path);
                define( 'PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
                break;
        }
        if ( $count++ > 5 ) {
                print("Failed to find 'wp-admin/includes/file.php'");
                exit(1);
        }
}

// Run
require "/usr/share/php/wp-stack-cache.php";
$wpsc = new WPStackCache();