!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 290.33 GB of 429.69 GB (67.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     html-webhooks-edit.php (9.08 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Admin View: Edit Webhooks
 *
 * @package Kkart\Admin\Webhooks\Views
 */

if ( ! defined'ABSPATH' ) ) {
    exit;
}
?>

<input type="hidden" name="webhook_id" value="<?php echo esc_attr$webhook->get_id() ); ?>" />

<div id="webhook-options" class="settings-panel">
    <h2><?php esc_html_e'Webhook data''kkart' ); ?></h2>
    <table class="form-table">
        <tbody>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="webhook_name">
                        <?php esc_html_e'Name''kkart' ); ?>
                        <?php
                        
/* translators: %s: date */
                        
echo kkart_help_tipsprintf__'Friendly name for identifying this webhook, defaults to Webhook created on %s.''kkart' ), strftime_x'%b %d, %Y @ %I:%M %p''Webhook created on date parsed by strftime''kkart' ) ) ) ); // @codingStandardsIgnoreLine
                        
?>
                    </label>
                </th>
                <td class="forminp">
                    <input name="webhook_name" id="webhook_name" type="text" class="input-text regular-input" value="<?php echo esc_attr$webhook->get_name() ); ?>" />
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="webhook_status">
                        <?php esc_html_e'Status''kkart' ); ?>
                        <?php echo kkart_help_tip__'The options are &quot;Active&quot; (delivers payload), &quot;Paused&quot; (does not deliver), or &quot;Disabled&quot; (does not deliver due delivery failures).''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <select name="webhook_status" id="webhook_status" class="kkart-enhanced-select">
                        <?php
                        $statuses       
kkart_get_webhook_statuses();
                        
$current_status $webhook->get_status();

                        foreach ( 
$statuses as $status_slug => $status_name ) :
                            
?>
                            <option value="<?php echo esc_attr$status_slug ); ?><?php selected$current_status$status_slugtrue ); ?>><?php echo esc_html$status_name ); ?></option>
                        <?php endforeach; ?>
                    </select>
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="webhook_topic">
                        <?php esc_html_e'Topic''kkart' ); ?>
                        <?php echo kkart_help_tip__'Select when the webhook will fire.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <select name="webhook_topic" id="webhook_topic" class="kkart-enhanced-select">
                        <?php
                            $topic_data 
KKART_Admin_Webhooks::get_topic_data$webhook );

                            
$topics apply_filters(
                                
'kkart_webhook_topics', array(
                                    
''                 => __'Select an option&hellip;''kkart' ),
                                    
'coupon.created'   => __'Coupon created''kkart' ),
                                    
'coupon.updated'   => __'Coupon updated''kkart' ),
                                    
'coupon.deleted'   => __'Coupon deleted''kkart' ),
                                    
'coupon.restored'  => __'Coupon restored''kkart' ),
                                    
'customer.created' => __'Customer created''kkart' ),
                                    
'customer.updated' => __'Customer updated''kkart' ),
                                    
'customer.deleted' => __'Customer deleted''kkart' ),
                                    
'order.created'    => __'Order created''kkart' ),
                                    
'order.updated'    => __'Order updated''kkart' ),
                                    
'order.deleted'    => __'Order deleted''kkart' ),
                                    
'order.restored'   => __'Order restored''kkart' ),
                                    
'product.created'  => __'Product created''kkart' ),
                                    
'product.updated'  => __'Product updated''kkart' ),
                                    
'product.deleted'  => __'Product deleted''kkart' ),
                                    
'product.restored' => __'Product restored''kkart' ),
                                    
'action'           => __'Action''kkart' ),
                                )
                            );

                            foreach ( 
$topics as $topic_slug => $topic_name ) :

                                
$selected $topic_slug === $topic_data['topic'] || $topic_slug === $topic_data['resource'] . '.' $topic_data['event'];

                                
?>
                                <option value="<?php echo esc_attr$topic_slug ); ?><?php selected$selectedtruetrue ); ?>><?php echo esc_html$topic_name ); ?></option>
                        <?php endforeach; ?>
                    </select>
                </td>
            </tr>
            <tr valign="top" id="webhook-action-event-wrap">
                <th scope="row" class="titledesc">
                    <label for="webhook_action_event">
                        <?php esc_html_e'Action event''kkart' ); ?>
                        <?php echo kkart_help_tip__'Enter the action that will trigger this webhook.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <input name="webhook_action_event" id="webhook_action_event" type="text" class="input-text regular-input" value="<?php echo esc_attr$topic_data['event'] ); ?>" />
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="webhook_delivery_url">
                        <?php esc_html_e'Delivery URL''kkart' ); ?>
                        <?php echo kkart_help_tip__'URL where the webhook payload is delivered.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <input name="webhook_delivery_url" id="webhook_delivery_url" type="text" class="input-text regular-input" value="<?php echo esc_attr$webhook->get_delivery_url() ); ?>" />
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="webhook_secret">
                        <?php esc_html_e'Secret''kkart' ); ?>
                        <?php echo kkart_help_tip__'The secret key is used to generate a hash of the delivered webhook and provided in the request headers.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <input name="webhook_secret" id="webhook_secret" type="text" class="input-text regular-input" value="<?php echo esc_attr$webhook->get_secret() ); ?>" />
                </td>
            </tr>
            <tr valign="top">
                <th scope="row" class="titledesc">
                    <label for="webhook_api_version">
                        <?php esc_html_e'API Version''kkart' ); ?>
                        <?php echo kkart_help_tip__'REST API version used in the webhook deliveries.''kkart' ) ); ?>
                    </label>
                </th>
                <td class="forminp">
                    <select name="webhook_api_version" id="webhook_api_version">
                        <?php foreach ( array_reversekkart_get_webhook_rest_api_versions() ) as $version ) : ?>
                            <option value="<?php echo esc_attr$version ); ?><?php selected$version$webhook->get_api_version(), true ); ?>>
                                <?php
                                    
/* translators: %d: rest api version number */
                                    
echo esc_htmlsprintf__'WP REST API Integration v%d''kkart' ), str_replace'wp_api_v'''$version ) ) );
                                
?>
                            </option>
                        <?php endforeach; ?>
                        <option value="legacy_v3" <?php selected'legacy_v3'$webhook->get_api_version(), true ); ?>><?php esc_html_e'Legacy API v3 (deprecated)''kkart' ); ?></option>
                    </select>
                </td>
            </tr>
        </tbody>
    </table>

    <?php do_action'kkart_webhook_options' ); ?>
</div>

<div id="webhook-actions" class="settings-panel">
    <h2><?php esc_html_e'Webhook actions''kkart' ); ?></h2>
    <table class="form-table">
        <tbody>
            <?php if ( $webhook->get_date_created() && '0000-00-00 00:00:00' !== $webhook->get_date_created()->date'Y-m-d H:i:s' ) ) : ?>
                <?php if ( is_null$webhook->get_date_modified() ) ) : ?>
                    <tr valign="top">
                        <th scope="row" class="titledesc">
                            <?php esc_html_e'Created at''kkart' ); ?>
                        </th>
                        <td class="forminp">
                            <?php echo esc_htmldate_i18n__'M j, Y @ G:i''kkart' ), strtotime$webhook->get_date_created()->date'Y-m-d H:i:s' ) ) ) ); ?>
                        </td>
                    </tr>
                <?php else : ?>
                <tr valign="top">
                        <th scope="row" class="titledesc">
                            <?php esc_html_e'Created at''kkart' ); ?>
                        </th>
                        <td class="forminp">
                            <?php echo esc_htmldate_i18n__'M j, Y @ G:i''kkart' ), strtotime$webhook->get_date_created()->date'Y-m-d H:i:s' ) ) ) ); ?>
                        </td>
                    </tr>
                <tr valign="top">
                        <th scope="row" class="titledesc">
                            <?php esc_html_e'Updated at''kkart' ); ?>
                        </th>
                        <td class="forminp">
                            <?php echo esc_htmldate_i18n__'M j, Y @ G:i''kkart' ), strtotime$webhook->get_date_modified()->date'Y-m-d H:i:s' ) ) ) ); ?>
                        </td>
                    </tr>
                <?php endif; ?>
            <?php endif; ?>
            <tr valign="top">
                <td colspan="2" scope="row" style="padding-left: 0;">
                    <p class="submit">
                        <button type="submit" class="button button-primary button-large" name="save" id="publish" accesskey="p"><?php esc_html_e'Save webhook''kkart' ); ?></button>
                        <?php
                        
if ( $webhook->get_id() ) :
                            
$delete_url wp_nonce_url(
                                
add_query_arg(
                                    array(
                                        
'delete' => $webhook->get_id(),
                                    ), 
admin_url'admin.php?page=kkart-settings&tab=advanced&section=webhooks' )
                                ), 
'delete-webhook'
                            
);
                            
?>
                            <a style="color: #a00; text-decoration: none; margin-left: 10px;" href="<?php echo esc_url$delete_url ); ?>"><?php esc_html_e'Delete permanently''kkart' ); ?></a>
                        <?php endif; ?>
                    </p>
                </td>
            </tr>
        </tbody>
    </table>
</div>

<script type="text/javascript">
    jQuery( function ( $ ) {
        $( '#webhook-options' ).find( '#webhook_topic' ).on( 'change', function() {
            var current            = $( this ).val(),
                action_event_field = $( '#webhook-options' ).find( '#webhook-action-event-wrap' );

            action_event_field.hide();

            if ( 'action' === current ) {
                action_event_field.show();
            }
        }).change();
    });
</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.0047 ]--