403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/url-shortify/lite/includes/API/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/url-shortify/lite/includes/API/Schema.php
<?php

namespace Kaizen_Coders\Url_Shortify\API;


trait Schema {

	public function links_schema() {
		return array(
			'id' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'slug' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'name' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'url' => array(
				'type'              => 'string',
				'sanitize_callback' => 'esc_url_raw',
			),

			'description' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'nofollow' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'track_me' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'sponsored' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'sponsored' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'params_forwarding' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'params_structure' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'redirect_type' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'status' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'type' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'type_id' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'password' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'expires_at' => array(
				'type'   => 'string',
				'format' => 'date-time',
			),

			'cpt_id' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'cpt_type' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'rules' => array(
				'type'              => 'string',
				'sanitize_callback' => 'sanitize_text_field',
			),

			'created_at' => array(
				'type'   => 'string',
				'format' => 'date-time',
			),

			'created_by_id' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),

			'updated_at' => array(
				'type'   => 'string',
				'format' => 'date-time',
			),

			'updated_by_id' => array(
				'type'              => 'integer',
				'sanitize_callback' => 'absint',
			),
		);
	}

	/**
	 * Create Link schema.
	 *
	 * @return array[]
	 *
	 * @since 1.7.5
	 */
	public function create_link_schema() {
		return array(
			'url' => array(
				'type'              => 'string',
				'sanitize_callback' => 'esc_url_raw',
				'required' => true,
			),

		);
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit