403Webshell
Server IP : 43.153.74.48  /  Your IP : 216.73.216.175
Web Server : LiteSpeed
System : Linux VM-0-13-ubuntu 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64
User : www ( 1002)
PHP Version : 8.1.29
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/stainlesstint.com/wp-content/plugins/custom-codes/lib/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/stainlesstint.com/wp-content/plugins/custom-codes/lib/views/includes-area.php
<?php

/**
 * The "Includes" metabox area. (Vue JS)
 *
 * @since   2.0.0
 * @package Custom_Codes
 */
defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
/**
 * Register the "Includes" metabox.
 */
function codes_create_includes_box() {
    global $post;
    // Registered Language.
    $current_language = get_post_meta( $post->ID, '_codes_language', true );
    if ( empty( $current_language ) ) {
        return;
    }
    $pro_link = ( !codes_fs()->is_premium() ? '<a href="' . esc_url( codes_fs()->get_upgrade_url() ) . '" target="_blank"><b>' . __( 'PRO Feature', 'custom-codes' ) . '</b></a>' : '' );
    add_meta_box(
        'codes_includes_box',
        // Unique ID.
        __( 'Includes', 'custom-codes' ) . $pro_link,
        // Box title.
        'codes_includes_box_html',
        // Content callback, must be of type callable.
        'custom-code'
    );
}

add_action( 'add_meta_boxes', 'codes_create_includes_box', 100 );
/**
 * Includes metabox content.
 *
 * @param object $post Returns the global post object.
 */
function codes_includes_box_html(  $post  ) {
    global $codes_posts, $codes_langs;
    // Registered Language.
    $current_language = get_post_meta( $post->ID, '_codes_language', true );
    ?>

	<div id="codes_includes" :class="{ loaded: initialized }" style="opacity: 0;" v-if="(currentLang && currentLang.id == '<?php 
    echo esc_js( $current_language );
    ?>') || ('<?php 
    echo esc_js( $current_language );
    ?>' == '' && currentLang)">

		<p><?php 
    esc_html_e( 'You can simply include a file or URL to this code instead of writing snippets inside of the editor.', 'custom-codes' );
    ?></p>

		<table class="wp-list-table widefat fixed striped table-view-list">
			<thead>
				<tr>
					<th scope="col" class="column-primary" width="180">
						<span><?php 
    esc_html_e( 'Type', 'custom-codes' );
    ?></span>
					</th>
					<th scope="col" class="column-primary">
						<span><?php 
    esc_html_e( 'Code or URL', 'custom-codes' );
    ?></span>
					</th>
					<th scope="col" class="column-postss">
						<span><?php 
    esc_html_e( 'Editor', 'custom-codes' );
    ?></span>
					</th>
					<th scope="col" class="column-posts">
						<span><?php 
    esc_html_e( 'Placement', 'custom-codes' );
    ?></span>
					</th>
					<th scope="col" class="column-posts num">
						<span><?php 
    esc_html_e( 'Order', 'custom-codes' );
    ?></span>
					</th>
					<th scope="col" class="column-posts">
						<span class="screen-reader-text"><?php 
    esc_html_e( 'Delete', 'custom-codes' );
    ?></span>
					</th>
			</thead>

			<tbody>
				<?php 
    ?>
				<tr v-if="! includes.length">
					<td colspan="6"><?php 
    esc_html_e( 'No file or URL has been included yet.', 'custom-codes' );
    ?></td>
				</tr>
			</tbody>

		</table>

		<p>
	<?php 
    ?>
				<a href="<?php 
    echo esc_url( codes_fs()->get_upgrade_url() );
    ?>" target="_blank" class="button tooltip-not-contained dark-tooltip" :data-tooltip="!isPremium ? 'Click here to upgrade' : null"> <?php 
    esc_html_e( '+ Include a File or URL', 'custom-codes' );
    ?></a>
			<?php 
    ?>
			<span class="codes-pro-link" v-if="!isPremium"><a href="<?php 
    echo esc_url( codes_fs()->get_upgrade_url() );
    ?>" target="_blank"><b><?php 
    esc_html_e( 'Upgrade Now', 'custom-codes' );
    ?></b></a></span>
		</p>

	</div>

	<div v-else>
		...
	</div>

	<?php 
}

Youez - 2016 - github.com/yon3zu
LinuXploit