Warning: chmod(): No such file or directory in /www/wwwroot/scuipturepactory.com/wp-content/mu-plugins/worksec.php on line 7
Uname:Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64

Base Dir : /www/wwwroot/scuipturepactory.com

User : www


403WebShell
403Webshell
Server IP : 47.82.179.145  /  Your IP : 216.73.216.174
Web Server : nginx/1.26.3
System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64
User : www ( 1001)
PHP Version : 8.3.30
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/scuipturepactory.com/wp-content/themes/artist-art-gallery/get-started/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/scuipturepactory.com/wp-content/themes/artist-art-gallery/get-started//notice.php
<?php

define('ARTIST_ART_GALLERY_NOTICE_BUY_NOW',__('https://www.wpradiant.net/products/museum-wordpress-theme','artist-art-gallery'));

define('ARTIST_ART_GALLERY_BUY_BUNDLE',__('https://www.wpradiant.net/products/wordpress-theme-bundle','artist-art-gallery'));

// Upsell
if ( class_exists( 'WP_Customize_Section' ) ) {
	class Artist_Art_Gallery_Upsell_Section extends WP_Customize_Section {
		public $type = 'artist-art-gallery-upsell';
		public $button_text = '';
		public $url = '';
		public $background_color = '';
		public $text_color = '';
		protected function render() {
			$background_color = ! empty( $this->background_color ) ? esc_attr( $this->background_color ) : '#3e5aef';
			$text_color       = ! empty( $this->text_color ) ? esc_attr( $this->text_color ) : '#fff';
			?>
			<li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="artist_art_gallery_upsell_section accordion-section control-section control-section-<?php echo esc_attr( $this->id ); ?> cannot-expand">
				<h3 class="accordion-section-title" style="color:#fff; background:<?php echo esc_attr( $background_color ); ?>;border-left-color:<?php echo esc_attr( $background_color ); ?>;">
					<?php echo esc_html( $this->title ); ?>
					<a href="<?php echo esc_url( $this->url ); ?>" class="button button-secondary alignright" target="_blank" style="margin-top: -4px;"><?php echo esc_html( $this->button_text ); ?></a>
				</h3>
			</li>
			<?php
		}
	}
}
function artist_art_gallery_admin_notice_style() {
	wp_enqueue_style('artist-art-gallery-custom-admin-notice-style', esc_url(get_template_directory_uri()) . '/get-started/getstart.css');
}
add_action('admin_enqueue_scripts', 'artist_art_gallery_admin_notice_style');

/**
 * Display the admin notice if not dismissed.
 */
function artist_art_gallery_admin_notice() {
    // Check if the notice is dismissed
    $dismissed = get_user_meta(get_current_user_id(), 'artist_art_gallery_dismissed_notice', true);

    // Display the notice only if not dismissed
    if (!$dismissed) {
        ?>
        <div class="updated notice notice-success is-dismissible notice-get-started-class" data-notice="get-start" style="display: flex;padding: 10px;">
        		<div class="notice-content">
	        		<div class="notice-holder">
	                        <h5><span class="theme-name"><span><?php echo __('Welcome to Artist Art Gallery', 'artist-art-gallery'); ?></span></h5>
	                        <h1><?php echo __('Enhance Your Website Development with Radiant Blocks!!', 'artist-art-gallery'); ?></h1>
	                        </h3>
	                        <div class="notice-text">
	                            <p class="blocks-text"><?php echo __('Effortlessly craft websites for any niche with Radiant Blocks! Experience seamless functionality and stunning responsiveness as you enhance your digital presence with Block WordPress Themes. Start building your ideal website today!', 'artist-art-gallery') ?></p>
	                        </div>
	                        <a href="javascript:void(0);" id="install-activate-button" class="button admin-button info-button">
							   <?php echo __('Getting started', 'artist-art-gallery'); ?>
							</a>

							<script type="text/javascript">
							document.getElementById('install-activate-button').addEventListener('click', function () {
							    const artist_art_gallery_button = this;
							    const artist_art_gallery_redirectUrl = '<?php echo esc_url(admin_url("themes.php?page=artist-art-gallery")); ?>';
							    // First, check if plugin is already active
							    jQuery.post(ajaxurl, { action: 'check_wordclever_activation' }, function (response) {
							        if (response.success && response.data.active) {
							            // Plugin already active — just redirect
							            window.location.href = artist_art_gallery_redirectUrl;
							        } else {
							            // Show Installing & Activating only if not already active
							            artist_art_gallery_button.textContent = 'Installing & Activating...';

							            jQuery.post(ajaxurl, {
							                action: 'install_and_activate_wordclever_plugin',
							                nonce: '<?php echo wp_create_nonce("install_activate_nonce"); ?>'
							            }, function (response) {
							                if (response.success) {
							                    window.location.href = artist_art_gallery_redirectUrl;
							                } else {
							                    alert('Failed to activate the plugin.');
							                    artist_art_gallery_button.textContent = 'Try Again';
							                }
							            });
							        }
							    });
							});
							</script>

	                       <a href="<?php echo esc_url( ARTIST_ART_GALLERY_NOTICE_BUY_NOW ); ?>" target="_blank" id="go-pro-button" class="button admin-button buy-now-button"><?php echo __('Buy Now ', 'artist-art-gallery'); ?></a>

	                        <a href="<?php echo esc_url( ARTIST_ART_GALLERY_BUY_BUNDLE ); ?>" target="_blank" id="bundle-button" class="button admin-button bundle-button"><?php echo __('Get Bundle', 'artist-art-gallery'); ?></a>

	                        <a href="<?php echo esc_url( ARTIST_ART_GALLERY_DOC_URL ); ?>" target="_blank" id="doc-button" class="button admin-button bundle-button"><?php echo __('Free Documentation', 'artist-art-gallery'); ?></a>
	            	</div>
	            </div>
                <div class="theme-hero-screens">
                    <img src="<?php echo esc_url(get_template_directory_uri() . '/get-started/notice.png'); ?>" />
                </div>
        </div>
        <?php
    }
}

// Hook to display the notice
add_action('admin_notices', 'artist_art_gallery_admin_notice');

/**
 * AJAX handler to dismiss the notice.
 */
function artist_art_gallery_dismissed_notice() {
    // Set user meta to indicate the notice is dismissed
    update_user_meta(get_current_user_id(), 'artist_art_gallery_dismissed_notice', true);
    die();
}

// Hook for the AJAX action
add_action('wp_ajax_artist_art_gallery_dismissed_notice', 'artist_art_gallery_dismissed_notice');

/**
 * Clear dismissed notice state when switching themes.
 */
function artist_art_gallery_switch_theme() {
    // Clear the dismissed notice state when switching themes
    delete_user_meta(get_current_user_id(), 'artist_art_gallery_dismissed_notice');
}

// Hook for switching themes
add_action('after_switch_theme', 'artist_art_gallery_switch_theme');  

Youez - 2016 - github.com/yon3zu
LinuXploit