uawdijnntqw1x1x1
IP : 3.19.246.111
Hostname : c17w.hoster.ru
Kernel : Linux c17w.hoster.ru 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
Disable Function : dl,shell_exec,exec,system,passthru,popen,proc_open,proc_nice,proc_get_status,proc_close,proc_terminate,posix_mkfifo,chown,chgrp,show_source,opcache_reset,opcache_get_configuration,opcache_get_status
OS : Linux
PATH:
/
home
/
srv221441
/
kso-don.ru
/
wp-content
/
plugins
/
presto-player
/
.
/
.
/
img
/
.
/
.
/
..
/
inc
/
Models
/
.
/
Webhook.php
/
/
<?php namespace PrestoPlayer\Models; class Webhook extends Model { /** * Table used to access db * * @var string */ protected $table = 'presto_player_webhooks'; /** * Model Schema * * @var array */ public function schema() { return array( 'id' => array( 'type' => 'integer', ), 'name' => array( 'type' => 'string', 'sanitize_callback' => 'wp_kses_post', ), 'url' => array( 'type' => 'string', 'sanitize_callback' => 'sanitize_url', ), 'method' => array( 'type' => 'string', 'sanitize_callback' => 'sanitize_text_field', ), 'email_name' => array( 'type' => 'string', 'sanitize_callback' => 'sanitize_text_field', ), 'headers' => array( 'type' => 'array', ), 'created_by' => array( 'type' => 'integer', 'default' => get_current_user_id(), ), 'created_at' => array( 'type' => 'string', ), 'updated_at' => array( 'type' => 'string', 'default' => current_time( 'mysql' ), ), 'deleted_at' => array( 'type' => 'string', ), ); } /** * These attributes are queryable * * @var array */ protected $queryable = array( 'name' ); /** * Create a preset in the db * * @param array $args * @return integer */ public function create( $args = array() ) { // name is required if ( empty( $args['name'] ) ) { return new \WP_Error( 'missing_parameter', __( 'You must enter a name for the webhook.', 'presto-player' ) ); } // generate slug on the fly $args['name'] = ! empty( $args['name'] ) ? $args['name'] : sanitize_title( $args['name'] ); // create return parent::create( $args ); } }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/././img/././../inc/Models/./Webhook.php