HEX
Server: Apache/2.4.59 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux panel.ctvbarranquilla.com 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64
User: bastidas (1002)
PHP: 8.2.18
Disabled: 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,exec,system,passthru,shell_exec,proc_open,popen
Upload Files
File: /home/bastidas/web/bastidas.tv/public_html/wp-content/plugins/personizely/views/settings-main.php
<div class="wrap">
    <h1>Personizely</h1>
    <?php if ($data['api_key']) : ?>
    <div class="notice notice-success">
        <p>The plugin is connected to your Personizely account. You're all set.</p>
    </div>
    <div>
        <a href="<?=$data['app_url'];?>/widgets?create=1" target="_blank" rel="noopener" class="button button-primary">Create a Widget</a>
        <a href="<?=$data['app_url'];?>/campaigns?create=1" target="_blank" rel="noopener" class="button button-primary">Create a Personalization Campaign</a>
        <a href="<?=$data['app_url'];?>/" target="_blank" rel="noopener" class="button button-primary">Open Dashboard</a>
        <a href="#" class="button" onclick="toggleApiKeyForm();">Toggle Advanced Settings</a>
    </div>
    <form method="POST" novalidate="novalidate" id="apiKeyForm" style="display: none;">
        <table class="form-table">
            <tbody>
            <tr>
                <th scope="row">
                    <label for="api_key">API Key</label>
                </th>
                <td>
                    <input type="text" name="api_key" class="regular-text" value="<?=$data['api_key']?>"/>
                    <p class="description">You can find the API Key in the <a href="<?=$data['app_url'];?>/settings" target="_blank" rel="noopener">Personizely Settings</a>.</p>
                </td>
            </tr>
            <tr>
                <th scope="row">
                    <label for="async">Async</label>
                </th>
                <td>
                    <input name="async" type="checkbox" value="1" <?=$data['async'] ? 'checked': ''?>/>
                    <p class="description">Async loading may make the site faster but can make your widget and campaigns show up after a delay.</p>
                </td>
            </tr>
            </tbody>
        </table>
        <p class="submit">
            <input type="hidden" name="nonce" value="<?=$data['nonce']?>">
            <input type="submit" name="submit" id="submit" class="button button-primary" value="Save Changes">
        </p>
    </form>
    <?php else : ?>
    <div>
        <a href="<?=$data['app_url'].$data['register_url'];?>" class="button button-primary">Create an Account and Connect</a>
        <a href="<?=$data['app_url'].$data['connect_url'];?>" class="button">Connect an Existing Account</a>
    </div>
    <?php endif ?>
</div>
<script>
    function toggleApiKeyForm () {
        var $form = document.querySelector('#apiKeyForm')
        $form.style.display = $form.style.display === 'none' ? 'block' : 'none'
    }
</script>