403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
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,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.10/wp-content/plugins/clarity-seo/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.10/wp-content/plugins/clarity-seo/includes/setup-wizard.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}
// Setup Wizard: Simple admin page for initial config
function clarity_seo_wizard_callback() {
    if (isset($_POST['clarity_seo_wizard_submit'])) {
        check_admin_referer('clarity_seo_wizard_nonce');
        // Update options from form
        if (isset($_POST['default_keywords'])) {
            update_option('clarity_seo_default_keywords', sanitize_text_field(wp_unslash($_POST['default_keywords'])));
        }
        if (isset($_POST['default_og_image'])) {
            update_option('clarity_seo_default_og_image', esc_url_raw(wp_unslash($_POST['default_og_image'])));
        }
        if (isset($_POST['logo_url'])) {
            update_option('clarity_seo_logo_url', esc_url_raw(wp_unslash($_POST['logo_url'])));
        }
        if (isset($_POST['organization_description'])) {
            update_option('clarity_seo_organization_description', sanitize_textarea_field(wp_unslash($_POST['organization_description'])));
        }
        if (isset($_POST['contact_phone'])) {
            update_option('clarity_seo_contact_phone', sanitize_text_field(wp_unslash($_POST['contact_phone'])));
        }
        if (isset($_POST['contact_type'])) {
            update_option('clarity_seo_contact_type', sanitize_text_field(wp_unslash($_POST['contact_type'])));
        }
        if (isset($_POST['social_links'])) {
            update_option('clarity_seo_social_links', sanitize_text_field(wp_unslash($_POST['social_links'])));
        }
        if (isset($_POST['gsc_key'])) {
            update_option('clarity_seo_gsc_key', sanitize_text_field(wp_unslash($_POST['gsc_key'])));
        }
        if (isset($_POST['local_address'])) {
            update_option('clarity_seo_local_address', sanitize_textarea_field(wp_unslash($_POST['local_address'])));
        }
        if (isset($_POST['local_geo'])) {
            update_option('clarity_seo_local_geo', sanitize_text_field(wp_unslash($_POST['local_geo'])));
        }
        if (isset($_POST['auto_image_alt'])) {
            update_option('clarity_seo_auto_image_alt', sanitize_text_field(wp_unslash($_POST['auto_image_alt'])));
        }
        update_option('clarity_seo_wizard_completed', true);
        echo '<div class="notice notice-success"><p>Wizard completed! Settings saved.</p></div>';
    }
    $completed = get_option('clarity_seo_wizard_completed', false);
    ?>
    <div class="wrap">
        <h1><?php esc_html_e('Clarity SEO Setup Wizard', 'clarity-seo'); ?></h1>
        <?php if ($completed): ?>
            <p><?php esc_html_e('Wizard completed! Go to settings for more.', 'clarity-seo'); ?></p>
        <?php else: ?>
            <form method="post">
                <?php wp_nonce_field('clarity_seo_wizard_nonce'); ?>
                <p><label><?php esc_html_e('Default Keywords:', 'clarity-seo'); ?> <input type="text" name="default_keywords" value="<?php echo esc_attr(get_option('clarity_seo_default_keywords', 'seo, schema, optimization, wordpress')); ?>" /></label></p>
                <p><label><?php esc_html_e('Default OG Image URL:', 'clarity-seo'); ?> <input type="url" name="default_og_image" value="<?php echo esc_attr(get_option('clarity_seo_default_og_image', '')); ?>" /></label></p>
                <p><label><?php esc_html_e('Organization Logo URL:', 'clarity-seo'); ?> <input type="url" name="logo_url" value="<?php echo esc_attr(get_option('clarity_seo_logo_url', '')); ?>" /></label></p>
                <p><label><?php esc_html_e('Organization Description:', 'clarity-seo'); ?> <textarea name="organization_description" rows="3"><?php echo esc_textarea(get_option('clarity_seo_organization_description', get_bloginfo('description'))); ?></textarea></label></p>
                <p><label><?php esc_html_e('Contact Phone:', 'clarity-seo'); ?> <input type="tel" name="contact_phone" value="<?php echo esc_attr(get_option('clarity_seo_contact_phone', '')); ?>" /></label></p>
                <p><label><?php esc_html_e('Contact Type:', 'clarity-seo'); ?> <input type="text" name="contact_type" value="<?php echo esc_attr(get_option('clarity_seo_contact_type', 'Customer Service')); ?>" /></label></p>
                <p><label><?php esc_html_e('Social Links (comma-separated):', 'clarity-seo'); ?> <input type="text" name="social_links" value="<?php echo esc_attr(get_option('clarity_seo_social_links', '')); ?>" placeholder="https://facebook.com/yoursite, https://twitter.com/yoursite" /></label></p>
                <p><label><?php esc_html_e('GSC API Key:', 'clarity-seo'); ?> <input type="text" name="gsc_key" value="<?php echo esc_attr(get_option('clarity_seo_gsc_key', '')); ?>" placeholder="Enter GSC API key" /></label></p>
                <p><label><?php esc_html_e('Business Address:', 'clarity-seo'); ?> <textarea name="local_address" rows="3"><?php echo esc_textarea(get_option('clarity_seo_local_address', '')); ?></textarea></label></p>
                <p><label><?php esc_html_e('Geo Coordinates (lat,long):', 'clarity-seo'); ?> <input type="text" name="local_geo" value="<?php echo esc_attr(get_option('clarity_seo_local_geo', '')); ?>" /></label></p>
                <p><label><?php esc_html_e('Auto Generate Image Alt/Titles:', 'clarity-seo'); ?>
                    <select name="auto_image_alt">
                        <option value="on" <?php selected(get_option('clarity_seo_auto_image_alt', 'off'), 'on'); ?>>On</option>
                        <option value="off" <?php selected(get_option('clarity_seo_auto_image_alt', 'off'), 'off'); ?>>Off</option>
                    </select>
                </label></p>
                <input type="submit" name="clarity_seo_wizard_submit" value="<?php esc_attr_e('Complete Setup', 'clarity-seo'); ?>" class="button button-primary" />
            </form>
        <?php endif; ?>
    </div>
    <?php
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit