403Webshell
Server IP : 172.67.159.97  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/functions/wordpress-helpers.php
<?php

/**
 * Get page by url for REQUEST_URI
 */
function x_get_page_by_current_path() {
  return x_get_page_by_url($_SERVER['REQUEST_URI']);
}

/**
 * Helper to get a page by url
 */
function x_get_page_by_url($url) {
  $parsedUrl = parse_url($url);

  if (empty($parsedUrl)) {
    return;
  }

  $path = empty($parsedUrl['path'])
    ? "/"
    : $parsedUrl['path'];

  return get_page_by_path($path);
}


/**
 * Output Buffering
 *
 * Buffers the entire WP process, capturing the final output for manipulation.
 */
function cs_output_buffer_mode() {
  static $already_queued;

  if (empty($already_queued)) {
    $already_queued = true;
  }

  ob_start();

  add_action('shutdown', function() {
    $final = '';

    // We'll need to get the number of ob levels we're in, so that we can iterate over each, collecting
    // that buffer's output into the final output.
    $levels = ob_get_level();

    for ($i = 0; $i < $levels; $i++) {
      $final .= ob_get_clean();
    }

    // Apply any filters to the final output
    echo apply_filters('final_output', $final);
  }, 0);
}

function cs_attachment_exists($id) {
  $found = get_posts([
    'fields' => 'ids',
    'post_type' => 'attachment',
    'include' => [$id],
    'post_status' => 'any',
  ]);

  return !empty($found);
}

Youez - 2016 - github.com/yon3zu
LinuXploit