403Webshell
Server IP : 213.136.93.164  /  Your IP : 216.73.216.75
Web Server : Apache
System : Linux m14200.contabo.net 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64
User : ki692510 ( 1047)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/ki692510/www/wp-content/plugins/tlp-team/app/Controllers/Admin/Ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/ki692510/www/wp-content/plugins/tlp-team/app/Controllers/Admin/Ajax/Shortcode.php
<?php
/**
 * Shortcode List Ajax Class.
 *
 * @package RT_Team
 */

namespace RT\Team\Controllers\Admin\Ajax;

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'This script cannot be accessed directly.' );
}

/**
 * Shortcode List Ajax Class.
 */
class Shortcode {
	use \RT\Team\Traits\SingletonTrait;

	/**
	 * Class Init.
	 *
	 * @return void
	 */
	protected function init() {
		add_action( 'wp_ajax_teamShortcodeList', [ $this, 'response' ] );
	}

	/**
	 * Ajax Response.
	 *
	 * @return void
	 */
	public function response() {
		$scQ = new \WP_Query(
			[
				'post_type'      => rttlp_team()->shortCodePT,
				'order_by'       => 'title',
				'order'          => 'DESC',
				'post_status'    => 'publish',
				'posts_per_page' => - 1,
			]
		);
		if ( $scQ->have_posts() ) {
			?>
			<div class='mce-container mce-form'>
				<div class='mce-container-body'>
					<label class="mce-widget mce-label" style="padding: 20px;font-weight: bold;"
						for="scid"><?php _e( 'Select Shortcode', 'tlp-team' ); ?></label>
					<select name='id' id='scid' style='width: 150px;margin: 15px;'>
						<option value=''><?php _e( 'Default', 'tlp-team' ); ?></option>
						<?php
						while ( $scQ->have_posts() ) {
							$scQ->the_post();
							?>
							<option value='<?php get_the_ID(); ?>'><?php get_the_title(); ?></option>
							<?php
						}
						wp_reset_postdata();
						?>
					</select>
				</div>
			</div>
			<?php
		} else {
			?>
			<div><?php _e( 'No shortCode found.', 'tlp-team' ); ?></div>
			<?php
		}
		die();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit