This commit is contained in:
cutemeli
2025-12-22 10:35:30 +00:00
parent 0bfc6c8425
commit 5ce7ca2c5d
38927 changed files with 0 additions and 4594700 deletions

View File

@@ -1,111 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* Plesk administrator information
*/
class Admin
{
/**
* The administrator&#39;s company name.
*
* @Type("string")
* @var string
*/
public $company;
/**
* The administrator&#39;s personal name.
*
* @Assert\NotBlank()
* @Type("string")
* @var string
*/
public $name;
/**
* The administrator&#39;s phone number.
*
* @Type("string")
* @var string
*/
public $phone;
/**
* The administrator&#39;s fax number.
*
* @Type("string")
* @var string
*/
public $fax;
/**
* The administrator&#39;s e-mail address.
*
* @Assert\NotBlank()
* @Assert\Email()
* @Type("string")
* @var string
*/
public $email;
/**
* The administrator&#39;s street address.
*
* @Type("string")
* @var string
*/
public $address;
/**
* The name of the city where administrator lives.
*
* @Type("string")
* @var string
*/
public $city;
/**
* The name of state (for US citizens) or province where administrator lives.
*
* @Type("string")
* @var string
*/
public $state;
/**
* The administrator&#39;s zip/postal code.
*
* @Type("string")
* @var string
*/
public $post_code;
/**
* The name of the country where administrator lives.
*
* @Assert\Country()
* @Type("string")
* @var string
*/
public $country;
/**
* It specifies whether Plesk announcement messages are sent to the administrator&#39;s e-mail.
*
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $send_announce;
/**
* The locale used by the administrator.
*
* @Assert\Locale()
* @Type("string")
* @var string
*/
public $locale;
/**
* It specifies the information if the administrator has multiple sessions in Plesk.
*
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $multiple_sessions;
}

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class CliCallRequest
{
/**
* Command.
*
* @Type("array")
* @var array
*/
public $params = [];
/**
* ENV variables.
*
* @Type("array")
* @var array
*/
public $env = [];
}

View File

@@ -1,30 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class CliCallResponse
{
/**
* Command return code.
*
* @Type("int")
* @var int
*/
public $code;
/**
* Command stdout.
*
* @Type("string")
* @var string
*/
public $stdout;
/**
* Command stderr.
*
* @Type("string")
* @var string
*/
public $stderr;
}

View File

@@ -1,131 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
/**
* The client entity
*/
class Client
{
/**
* The client ID
*
* @Assert\Blank(groups={"post", "put"})
* @Type("integer")
* @var int
*/
public $id;
/**
* Creation date
*
* @Assert\Blank(groups={"post", "put"})
* @Type("string")
* @var string
*/
public $created;
/**
* Client name
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Company name
*
* @Type("string")
* @var string
*/
public $company;
/**
* Login
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $login;
/**
* Status
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $status;
/**
* Email
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Email(groups={"post"})
* @Type("string")
* @var string
*/
public $email;
/**
* Locale
*
* @Type("string")
* @var string
*/
public $locale;
/**
* GUID
*
* @Assert\Blank(groups={"post", "put"})
* @Type("string")
* @var string
*/
public $guid;
/**
* Owner login
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $owner_login;
/**
* External ID
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $external_id;
/**
* Description
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $description;
/**
* Password
*
* @Assert\Type("string")
* @Assert\NotBlank(groups={"post"})
* @ApiAssert\PasswordStrength(groups={"post", "put"})
* @Type("string")
* @var string
*/
public $password;
/**
* Type
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Blank(groups={"put"})
* @Assert\Choice({"admin", "reseller", "customer"})
* @Type("string")
* @var string
*/
public $type;
}

View File

@@ -1,62 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
* The client statistics
*/
class ClientStatistics
{
/**
* @Type("integer")
* @var int
*/
public $active_domains;
/**
* @Type("integer")
* @var int
*/
public $subdomains;
/**
* @Type("integer")
* @var int
*/
public $disk_space;
/**
* @Type("integer")
* @var int
*/
public $email_postboxes;
/**
* @Type("integer")
* @var int
*/
public $email_redirects;
/**
* @Type("integer")
* @var int
*/
public $email_response_messages;
/**
* @Type("integer")
* @var int
*/
public $mailing_lists;
/**
* @Type("integer")
* @var int
*/
public $databases;
/**
* @Type("integer")
* @var int
*/
public $traffic;
/**
* @Type("integer")
* @var int
*/
public $traffic_prevday;
}

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class CreatedResponse
{
/**
* ID
* @Type("integer")
* @var int
*/
public $id;
/**
* GUID
* @Type("string")
* @var string
*/
public $guid;
}

View File

@@ -1,45 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class Database
{
/**
* @Type("integer")
* @var int
*/
public $id;
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* @Assert\Choice({"mssql", "mysql", "postgresql"})
* @Type("string")
* @var string
*/
public $type;
/**
* @Assert\NotBlank()
* @Type("integer")
* @var int
*/
public $parent_domain;
/**
* @Type("integer")
* @Assert\NotBlank()
* @var int
*/
public $server_id;
/**
* @Type("integer")
* @var int|null
*/
public $default_user_id;
}

View File

@@ -1,37 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DatabaseRequest
{
/**
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* @Assert\Choice({"mssql", "mysql", "postgresql"})
* @Type("string")
* @var string
*/
public $type;
/**
* Webspace ID
*
* @Assert\NotBlank()
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var DomainReference
*/
public $parent_domain;
/**
* @Type("integer")
* @Assert\NotBlank()
* @var int
*/
public $server_id;
}

View File

@@ -1,53 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DatabaseServer
{
/**
* @Assert\NotBlank()
* @Type("integer")
* @var int
*/
public $id;
/**
* @Assert\NotBlank()
* @Type("string")
* @var string
*/
public $host;
/**
* @Type("integer")
* @var int
*/
public $port;
/**
* @Assert\NotBlank()
* @Type("string")
* @var string
*/
public $type;
/**
* @Type("string")
* @var string
*/
public $status;
/**
* @Type("integer")
* @var int
*/
public $db_count;
/**
* @Type("boolean")
* @var bool
*/
public $is_default;
/**
* @Type("boolean")
* @var bool
*/
public $is_local;
}

View File

@@ -1,60 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class DatabaseUser
{
/**
* @Assert\Blank(groups={"post", "put"})
* @Type("integer")
* @var int
*/
public $id;
/**
* @Assert\NotBlank(groups={"post"})
* @Type("string")
* @var string
*/
public $login;
/**
* @Assert\Blank(groups={"put"})
* @Type("integer")
* @var int|null
*/
public $database_id;
/**
* @ApiAssert\PasswordStrength(groups={"post", "put"})
* @Assert\NotBlank(groups={"post"})
* @Type("string")
* @var string
*/
public $password;
/**
* Webspace ID
*
* @Assert\Blank(groups={"put"})
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var DomainReference|null
*/
public $parent_domain;
/**
* @Assert\Blank(groups={"put"})
* @Type("integer")
* @var int|null
*/
public $server_id;
/**
* @Assert\IsTrue(
* message="Either parent_domain and server_id, or database_id should be specified",
* groups={"post"}
* )
*/
public function isBoundToOneObject() : bool
{
return $this->database_id xor $this->server_id;
}
}

View File

@@ -1,50 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DnsRecord
{
/**
* @Type("integer")
*/
public $id;
/**
* @Type("string")
* @Assert\Choice({
"A",
"CNAME",
"PTR",
"MX",
"NS",
"TXT",
"SOA",
"AXFR",
"SRV",
"AAAA",
"DS",
"CAA",
"TLSA",
"HTTPS"
})
*/
public $type;
/**
* @Type("string")
*/
public $host;
/**
* @Type("string")
*/
public $value;
/**
* @Type("string")
*/
public $opt;
/**
* @Type("integer")
*/
public $ttl;
}

View File

@@ -1,46 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DnsRecordRequest
{
/**
* @Type("string")
* @Assert\Choice({
"A",
"CNAME",
"PTR",
"MX",
"NS",
"TXT",
"SOA",
"AXFR",
"SRV",
"AAAA",
"DS",
"CAA",
"TLSA",
"HTTPS"
})
*/
public $type;
/**
* @Type("string")
*/
public $host;
/**
* @Type("string")
*/
public $value;
/**
* @Type("string")
*/
public $opt;
/**
* @Type("integer")
*/
public $ttl;
}

View File

@@ -1,59 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class DomainAlias
{
/**
* Alias id
* @Assert\Type("integer")
* @Type("integer")
* @var integer
*/
public $id;
/**
* Alias name
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Alias display name
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $ascii_name;
/**
* Specifies whether web hosting is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $web;
/**
* Specifies whether DNS service is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $dns;
/**
* Specifies whether mail service is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $mail;
/**
* Specifies whether 301 redirect to HTTPS is enabled for this alias
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $seo_redirect;
}

View File

@@ -1,36 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class DomainReference
{
/**
* Domain ID
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $id;
/**
* Domain name
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Domain GUID
*
* @Assert\Uuid()
* @Type("string")
* @var string
*/
public $guid;
}

View File

@@ -1,130 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class DomainRequest
{
/**
* Domain name
*
* @Assert\NotBlank(groups={"post"})
* @Type("string")
* @var string
*/
public $name;
/**
* It specifies a description for the domain.
*
* @Type("string")
* @var string
*/
public $description;
/**
* Hosting type
*
* @Assert\NotBlank(groups={"post"})
* @Assert\Choice({"virtual", "standard_forwarding", "frame_forwarding", "none"})
* @Type("string")
* @var string
*/
public $hosting_type;
/**
* @Assert\NotBlank(groups={"post"})
* @Assert\Collection(
* fields = {
* "ftp_login" = @ApiAssert\UniqueFtpLogin(),
* "ftp_password" = @ApiAssert\PasswordStrength()
* },
* allowMissingFields = true,
* allowExtraFields = true,
* )
* @Type("array")
* @var array
*/
public $hosting_settings;
/**
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var array
*/
public $base_domain;
/**
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var array
*/
public $parent_domain;
/**
* @Type("PleskExt\RestApi\v2\Entity\OwnerClientReference")
* @var array
*/
public $owner_client;
/**
* @Assert\Type("array")
* @Assert\All({
* @Assert\Ip(version="all")
* })
* @Type("array")
* @var array
*/
public $ip_addresses = [];
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $php_settings;
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $permissions;
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $limits;
/**
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $limits_overuse;
/**
* @Type("PleskExt\RestApi\v2\Entity\PlanReference")
* @var array
*/
public $plan;
/**
* @Assert\Type("array")
* @Type("PleskExt\RestApi\v2\Entity\MailPreferences")
* @var array
*/
public $mail;
/**
* @Assert\Type("array")
* @Assert\All({
* @Assert\Ip(version="4")
* })
* @Type("array")
*
* @deprecated
* @var array
*/
public $ipv4;
/**
* @Assert\Type("array")
* @Assert\All({
* @Assert\Ip(version="6")
* })
* @Type("array")
*
* @deprecated
* @var array
*/
public $ipv6;
}

View File

@@ -1,69 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class DomainResponse
{
/**
* The domain ID
* @Type("integer")
* @var int
*/
public $id;
/**
* Creation date
* @Type("string")
* @var string
*/
public $created;
/**
* Domain name
* @Type("string")
* @var string
*/
public $name;
/**
* Domain display name
* @Type("string")
* @var string
*/
public $ascii_name;
/**
* It specifies the status of the created site. Data type: string. Allowed values: 0 | 8 | 16 | 64. Meanings: 0 - site is active, 8 - web service for the site is suspended by Administrator, 16 - site is disabled by Administrator, 32 - site is disabled by Reseller, 64 - site is disabled by a customer
* @Type("integer")
* @var int
*/
public $status;
/**
* Base domain ID
* @Type("integer")
* @var string
*/
public $base_domain_id;
/**
* @Type("string")
* @var string
*/
public $guid;
/**
* @Type("string")
* @var string
*/
public $hosting_type;
/**
* @Type("string")
* @var string
*/
public $www_root;
/**
* @Assert\Type("array<PleskExt\RestApi\v2\Entity\DomainAlias>")
* @Type("array<PleskExt\RestApi\v2\Entity\DomainAlias>")
* @var array
*/
public $aliases;
}

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class DomainStatus
{
/**
* Domain status
*
* @Assert\NotNull()
* @Assert\Choice({"active", "suspended", "disabled"})
* @Type("string")
* @var string
*/
public $status;
}

View File

@@ -1,21 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class ErrorResponse
{
/**
* @Type("integer")
* @var int
*/
public $code;
/**
* @Type("string")
* @var string
*/
public $message;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class Extension
{
/**
* Extension identifier.
*
* @Type("string")
* @var string
*/
public $id;
/**
* Human readable name.
*
* @Type("string")
* @var string
*/
public $name;
/**
* Extension version.
*
* @Type("string")
* @var string
*/
public $version;
/**
* Extension release number.
*
* @Type("string")
* @var string
*/
public $release;
/**
* Extension status.
*
* @Type("bool")
* @var bool
*/
public $active;
}

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskRestApi\Symfony\Component\Validator\Context\ExecutionContextInterface;
class ExtensionInstallRequest
{
/**
* Installation by Identifier.
*
* @Type("string")
* @var string
*/
public $id;
/**
* Installation by URL.
*
* @Assert\Url()
* @Type("string")
* @var string
*/
public $url;
/**
* Installation by File.
*
* @Type("string")
* @var string
*/
public $file;
/**
* @Assert\Callback
*/
public function validate(ExecutionContextInterface $context, $payload)
{
$types = ['id', 'url', 'file'];
$choosenType = null;
foreach ($types as $type) {
if (!empty($this->{$type})) {
if ($choosenType !== null) {
$context->buildViolation("Only the one method of installation should be chosen")->atPath($type)->addViolation();
}
$choosenType = $type;
}
}
if ($choosenType === null) {
$context->buildViolation("You need choose method of installation")->addViolation();
}
}
}

View File

@@ -1,55 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
class FtpUser
{
/**
* The user ID
*
* @Type("integer")
* @var integer
*/
public $id;
/**
* User name
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Home subdirectory
*
* @Type("string")
* @var string
*/
public $home;
/**
* Quota
*
* @Assert\Type("integer")
* @Type("integer")
* @var integer
*/
public $quota;
/**
* Permissions
*
* @Assert\Type("array")
* @Type("array<string, string>")
* @var array
*/
public $permissions;
/**
* Webspace ID
*
* @Type("integer")
* @var integer
*/
public $parent_domain;
}

View File

@@ -1,62 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class FtpUserRequest
{
/**
* User name
*
* @Assert\NotBlank()
* @Assert\Type("string")
* @ApiAssert\UniqueFtpLogin()
* @Type("string")
* @var string
*/
public $name;
/**
* Password
*
* @ApiAssert\PasswordStrength()
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $password;
/**
* Home subdirectory
*
* @Type("string")
* @var string|null
*/
public $home;
/**
* Quota
*
* @Assert\Type("integer")
* @Type("integer")
* @var integer|null
*/
public $quota;
/**
* Permissions
*
* @Assert\Type("array")
* @Type("array<string, boolean>")
* @var array
*/
public $permissions;
/**
* Webspace ID
*
* @Assert\NotBlank()
* @Type("PleskExt\RestApi\v2\Entity\DomainReference")
* @var DomainReference
*/
public $parent_domain;
}

View File

@@ -1,52 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
use PleskExt\RestApi\v2\Constraints as ApiAssert;
class FtpUserUpdateRequest
{
/**
* User name
*
* @Assert\Type("string")
* @ApiAssert\UniqueFtpLogin()
* @Type("string")
* @var string
*/
public $name;
/**
* Password
*
* @ApiAssert\PasswordStrength()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $password;
/**
* Home subdirectory
*
* @Type("string")
* @var string|null
*/
public $home;
/**
* Quota
*
* @Assert\Type("integer")
* @Type("integer")
* @var integer|null
*/
public $quota;
/**
* Permissions
*
* @Assert\Type("array")
* @Type("array<string, boolean>")
* @var array
*/
public $permissions;
}

View File

@@ -1,45 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class MailPreferences
{
/**
* @Type("PleskExt\RestApi\v2\Entity\OutgoingMessages")
* @var OutgoingMessages
*/
public $outgoing_messages;
/**
* @Type("PleskExt\RestApi\v2\Entity\NonExistentUser")
* @var NonExistentUser
*/
public $nonexistent_user;
/**
* It specifies whether mail users will have access to their mail via a webmail application.
* @Type("bool")
* @var bool
*/
public $webmail;
/**
* If the DomainKeys spam protection is available on the server, the node specifies whether the spam protection is turned on on the site.
* @Type("bool")
* @var bool
*/
public $spam_protect_sign;
/**
* If the greylisting spam protection is available on the server, the node specifies whether the spam protection is turned on on the site.
* @Type("bool")
* @var bool
*/
public $greylisting;
/**
* It switches on or off the mail service on a specified domain.
* @Type("bool")
* @var bool
*/
public $mailservice;
}

View File

@@ -1,29 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class NonExistentUser
{
/**
* The field is used to modify the default rejection message.
* @Type("string")
* @var string
*/
public $bounce;
/**
* The field specifies the mail address to which undelivered mail should be forwarded.
* @Type("string")
* @var string
*/
public $forward;
/**
* The field is used to reject such mail messages (they will not be accepted by the mail server).
* @Type("bool")
* @var bool
*/
public $reject;
}

View File

@@ -1,41 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class OutgoingMessages
{
/**
* Mailname outgoing messsages (per hour).
* @Type("integer")
* @var int
*/
public $mbox_limit;
/**
* Domain outgoing messages (per hour).
* @Type("integer")
* @var int
*/
public $domain_limit;
/**
* Subscription outgoing messages (per hour).
* @Type("integer")
* @var int
*/
public $subscription_limit;
/**
* Scripts will be able to send mail even when the limits on outgoing messages are reached for the corresponding mailbox and domain.
* @Type("bool")
* @var bool
*/
public $enable_sendmail;
/**
* Percentage of email messages to accept into mail queue and retry for delivery in next hour.
* @Type("integer")
* @var int
*/
public $overlimit_percent;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class OwnerClientReference
{
/**
* Client ID
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $id;
/**
* Client login
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $login;
/**
* Client GUID
*
* @Assert\Uuid()
* @Type("string")
* @var string
*/
public $guid;
/**
* A GUID of a subscription owner received from the Plesk components
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $external_id;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
*/
class PlanReference
{
/**
* Plan ID
*
* @Assert\Type("integer")
* @Type("integer")
* @var int
*/
public $id;
/**
* Plan name
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $name;
/**
* Plan GUID
*
* @Assert\Uuid()
* @Type("string")
* @var string
*/
public $guid;
/**
* External ID
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $external_id;
}

View File

@@ -1,47 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* Secret key parameters
*/
class SecretKeyRequest
{
/**
* The IP address that will be linked to the key. If this node or 'ips' node is not
* specified, the IP address of the request sender will be used.
*
* @Assert\Ip(version="all")
* @Type("string")
* @var string
*/
public $ip;
/**
* Array of IP addresses that will be linked to the key. If this node or 'ip' node is not
* specified, the IP address of the request sender will be used.
*
* @Assert\Type("array")
* @Type("array")
* @var array
*/
public $ips;
/**
* The login name of an existing customer or a reseller that will have this secret key. The customer&#39;s or reseller&#39;s account should be active. If this node is not specified, the administrator&#39;s login will be used. Data type: string.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $login;
/**
* Additional information about the key.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $description;
}

View File

@@ -1,18 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
/**
*/
class SecretKeyResponse
{
/**
* Secret key value
*
* @Type("string")
* @var string
*/
public $key;
}

View File

@@ -1,38 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* Initial server setup parameters
*/
class ServerInit
{
/**
* The full host name.
*
* @Type("string")
* @var string
*/
public $server_name;
/**
* Admin info
*
* @Assert\NotBlank()
* @Assert\Type("PleskExt\RestApi\v2\Entity\Admin")
* @Type("PleskExt\RestApi\v2\Entity\Admin")
* @var Admin
*/
public $admin;
/**
* The new Plesk Administrator&#39;s password that will replace the default one.
*
* @Assert\NotBlank()
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $password;
}

View File

@@ -1,44 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class ServerIp
{
/**
* The IP address in Plesk database (IP v4).
*
* @Type("string")
* @var string
*/
public $ipv4;
/**
* The IP address in Plesk database (IP v6).
*
* @Type("string")
* @var string
*/
public $ipv6;
/**
* The netmask of the network.
*
* @Type("string")
* @var string
*/
public $netmask;
/**
* The server network interface name.
*
* @Type("string")
* @var string
*/
public $interface;
/**
* The type of IP address. Allowed values: shared | exclusive.
*
* @Type("string")
* @var string
*/
public $type;
}

View File

@@ -1,37 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
use PleskRestApi\Symfony\Component\Validator\Constraints as Assert;
/**
* License parameters
*/
class ServerLicense
{
/**
* License key data.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $key;
/**
* Activation code.
*
* @Assert\Type("string")
* @Type("string")
* @var string
*/
public $code;
/**
* It specifies if the key that will be installed is an additional key.
*
* @Assert\Type("bool")
* @Type("bool")
* @var bool
*/
public $additional;
}

View File

@@ -1,72 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class ServerMeta
{
/**
* Server platform type.
*
* @Type("string")
* @var string
*/
public $platform;
/**
* Server hostname.
*
* @Type("string")
* @var string
*/
public $hostname;
/**
* Server GUID.
*
* @Type("string")
* @var string
*/
public $guid;
/**
* Product version.
*
* @Type("string")
* @var string
*/
public $panel_version;
/**
* Product build revision.
*
* @Type("string")
* @var string
*/
public $panel_revision;
/**
* Product build date.
*
* @Type("string")
* @var string
*/
public $panel_build_date;
/**
* Product installed update version.
*
* @Type("string")
* @var string
*/
public $panel_update_version;
/**
* REST API extension version.
*
* @Type("string")
* @var string
*/
public $extension_version;
/**
* REST API extension release number.
*
* @Type("string")
* @var string
*/
public $extension_release;
}

View File

@@ -1,14 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class StatusResponse
{
/**
* @Type("string")
* @var string
*/
public $status;
}

View File

@@ -1,14 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Entity;
use PleskRestApi\JMS\Serializer\Annotation\Type;
class SuccessResponse extends \PleskExt\RestApi\v2\Entity\StatusResponse
{
/**
* @Type("string")
* @var string
*/
public $status = 'success';
}

View File

@@ -1,34 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Entity\ErrorResponse;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Entity\SecretKeyRequest;
use PleskExt\RestApi\v2\Entity\SecretKeyResponse;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class AuthKeys extends InvokableHandler
{
/**
* @Consumer(type=SecretKeyRequest::class)
*/
protected function post(Request $request, Response $response)
{
$secretKeyRequest = $this->consume();
$secretKey = new SecretKeyResponse();
$secretKey->key = SDK\pm_Auth::createSecretKey(\array_merge((array) $secretKeyRequest->ip, (array) $secretKeyRequest->ips) ?: null, $secretKeyRequest->description, $secretKeyRequest->login);
$response->getBody()->write($this->produce($secretKey));
return $response->withStatus(201);
}
protected function delete(Request $request, Response $response)
{
SDK\pm_Auth::deleteSecretKey($request->getAttribute('key'));
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,31 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\CliCallRequest;
use PleskExt\RestApi\v2\Entity\CliCallResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class CliCall extends InvokableHandler
{
/**
* @Consumer(type=CliCallRequest::class)
*/
protected function post(Request $request, Response $response)
{
$cmd = $request->getAttribute('id');
/** @var CliCallRequest $cliCall */
$cliCall = $this->consume();
$result = SDK\pm_ApiCli::call($cmd, $cliCall->params, \pm_ApiCli::RESULT_FULL, $cliCall->env);
$data = new CliCallResponse();
$data->code = (int) $result['code'];
$data->stdout = \trim((string) $result['stdout']);
$data->stderr = \trim((string) $result['stderr']);
$response->getBody()->write($this->serialize($data));
return $response;
}
}

View File

@@ -1,18 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class CliCommands extends InvokableHandler
{
protected function get(Request $request, Response $response)
{
$commands = SDK\pm_ApiCli::getCommands();
$response->getBody()->write($this->serialize($commands));
return $response;
}
}

View File

@@ -1,20 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class CliReference extends InvokableHandler
{
protected function get(Request $request, Response $response)
{
$result = SDK\pm_ApiCli::getReference($request->getAttribute('id'));
$result['allowed_commands'] = (object) $result['allowed_commands'];
$result['allowed_options'] = (object) $result['allowed_options'];
$response->getBody()->write($this->serialize($result));
return $response;
}
}

View File

@@ -1,36 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Clients as ClientsMapper;
use PleskExt\RestApi\v2\Mapper\Response as ResponseMapper;
use PleskExt\RestApi\v2\Entity\Client as ClientEntity;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class Clients extends InvokableHandler
{
/**
* @Producer(mapper=ClientsMapper::class)
*/
protected function get(Request $request, Response $response)
{
$clients = \pm_Client::getAll();
$response->getBody()->write($this->produce($clients));
return $response;
}
/**
* @Consumer(type=ClientEntity::class)
* @Producer(mapper=ResponseMapper::class)
*/
protected function post(Request $request, Response $response)
{
$client = SDK\pm_Client::create($this->consume());
$response->getBody()->write($this->produce($client));
return $response->withStatus(201);
}
}

View File

@@ -1,47 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Response as ResponseMapper;
use PleskExt\RestApi\v2\Mapper\Client as ClientMapper;
use PleskExt\RestApi\v2\Entity\Client as ClientEntity;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ClientsId extends InvokableHandler
{
/**
* @Producer(mapper=ClientMapper::class)
*/
protected function get(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$response->getBody()->write($this->produce($client));
return $response;
}
/**
* @Consumer(type=ClientEntity::class)
* @Producer(mapper=ResponseMapper::class)
*/
protected function put(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$client->update($this->consume());
$response->getBody()->write($this->produce($client));
return $response;
}
/**
* @Producer(mapper=ResponseMapper::class)
*/
protected function delete(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$client->delete();
$response->getBody()->write($this->produce($client));
return $response;
}
}

View File

@@ -1,20 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ClientsIdActivate extends InvokableHandler
{
protected function put(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$client->activate();
$response->getBody()->write($this->serialize(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,24 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Domains as DomainsMapper;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ClientsIdDomains extends InvokableHandler
{
/**
* @Producer(mapper=DomainsMapper::class)
*/
protected function get(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$domains = \pm_Domain::getDomainsByClient($client);
$response->getBody()->write($this->produce($domains));
return $response;
}
}

View File

@@ -1,24 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\ClientStatistics as ClientStatisticsMapper;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ClientsIdStatistics extends InvokableHandler
{
/**
* @Producer(mapper=ClientStatisticsMapper::class)
*/
protected function get(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$statistics = $client->getStatistics();
$response->getBody()->write($this->produce($statistics));
return $response;
}
}

View File

@@ -1,20 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ClientsIdSuspend extends InvokableHandler
{
protected function put(Request $request, Response $response)
{
$client = SDK\pm_Client::getByClientId($request->getAttribute('id'));
$client->suspend();
$response->getBody()->write($this->serialize(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,26 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\DatabaseServers as DatabaseServersMapper;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class DatabaseServers extends InvokableHandler
{
/**
* @Producer(mapper=DatabaseServersMapper::class)
*/
protected function get(Request $request, Response $response)
{
if (null !== ($id = $this->getQueryParam('id'))) {
$response->getBody()->write($this->produce([SDK\pm_DatabaseServer::getById($id)]));
} else {
$response->getBody()->write($this->produce(SDK\pm_DatabaseServer::getAll()));
}
return $response;
}
}

View File

@@ -1,59 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Entity\DatabaseUser;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\DatabaseUser as DatabaseUserMapper;
use PleskExt\RestApi\v2\Mapper\DatabaseUsers as DatabaseUsersMapper;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class DatabaseUsers extends InvokableHandler
{
/**
* @Producer(mapper=DatabaseUsersMapper::class)
*/
protected function get(Request $request, Response $response)
{
if (null !== ($databaseId = $this->getQueryParam('dbId'))) {
$database = SDK\pm_Database::getById($databaseId);
$users = SDK\pm_DatabaseUser::getForDatabase($database);
} else {
$users = SDK\pm_DatabaseUser::getAll();
}
$response->getBody()->write($this->produce($users));
return $response;
}
/**
* @Consumer(type=DatabaseUser::class)
*/
protected function put(Request $request, Response $response)
{
$user = SDK\pm_DatabaseUser::getById($request->getAttribute('id'));
$user->update($this->consume());
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
/**
* @Consumer(type=DatabaseUser::class)
* @Producer(mapper=DatabaseUserMapper::class)
*/
protected function post(Request $request, Response $response)
{
$user = SDK\pm_DatabaseUser::create($this->consume());
$response->getBody()->write($this->produce($user));
return $response;
}
protected function delete(Request $request, Response $response)
{
$user = SDK\pm_DatabaseUser::getById($request->getAttribute('id'));
$user->delete();
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,49 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Entity\DatabaseRequest;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Database as DatabaseMapper;
use PleskExt\RestApi\v2\Mapper\Databases as DatabasesMapper;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class Databases extends InvokableHandler
{
/**
* @Producer(mapper=DatabasesMapper::class)
*/
protected function get(Request $request, Response $response)
{
if (null !== ($domainName = $this->getQueryParam('domain'))) {
$domain = SDK\pm_Domain::getByName($domainName);
$databases = SDK\pm_Database::getForDomain($domain);
} else {
$databases = SDK\pm_Database::getAll();
}
$response->getBody()->write($this->produce($databases));
return $response;
}
/**
* @Consumer(type=DatabaseRequest::class)
* @Producer(mapper=DatabaseMapper::class)
*/
protected function post(Request $request, Response $response)
{
$database = SDK\pm_Database::create($this->consume());
$response->getBody()->write($this->produce($database));
return $response;
}
protected function delete(Request $request, Response $response)
{
$database = SDK\pm_Database::getById($request->getAttribute('id'));
$database->delete();
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,120 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Entity;
use PleskExt\RestApi\v2\Mapper;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK\Exception\InvalidDataException;
use PleskExt\RestApi\v2\SDK\Exception\NotFoundException;
use PleskExt\RestApi\v2\SDK\Helper\VersionTrait;
use PleskExt\RestApi\v2\SDK\pm_DnsRecord;
use PleskExt\RestApi\v2\SDK\pm_Domain;
use PleskExt\RestApi\v2\SDK\pm_DomainAlias;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class DnsRecords extends InvokableHandler
{
use VersionTrait;
public function __call($name, $args)
{
self::requiredVersion('18.0.33');
if (\method_exists($this, $name)) {
return \call_user_func_array(array($this, $name), $args);
} else {
return parent::__call($name, $args);
}
}
/**
* @Producer(mapper=Mapper\DnsRecords::class)
*/
private function get(Request $request, Response $response)
{
$id = $request->getAttribute('id');
if ($id !== null) {
if (!\ctype_digit($id)) {
throw new InvalidDataException("Invalid DNS record id '{$id}'");
}
$dnsrec = pm_DnsRecord::getById($id);
$response->getBody()->write($this->produce($dnsrec));
} elseif ($domain = $this->getQueryParam('domain')) {
$dnsZone = $this->getDomainOrAliasDnsZoneByName($domain);
$dnsrecs = $dnsZone->getRecords();
$response->getBody()->write($this->produce($dnsrecs));
} else {
throw new InvalidDataException();
}
}
/**
* @Consumer(type=Entity\DnsRecordRequest::class)
* @Producer(mapper=Mapper\DnsRecords::class)
*/
private function post(Request $request, Response $response)
{
if (null === ($domainName = $this->getQueryParam('domain'))) {
throw new InvalidDataException();
}
$zone = $this->getDomainOrAliasDnsZoneByName($domainName);
/** @var Entity\DnsRecordRequest $entity */
$entity = $this->consume();
$dnsrec = new \pm_Dns_Record();
try {
$dnsrec->setType($entity->type)->setHost($entity->host)->setValue($entity->value)->setOption($entity->opt)->setTtl($entity->ttl)->setZone($zone);
} catch (\TypeError $e) {
throw new InvalidDataException();
}
pm_DnsRecord::save($dnsrec);
$response->getBody()->write($this->produce($dnsrec));
return $response;
}
/**
* @Consumer(type=Entity\DnsRecord::class)
*/
private function put(Request $request, Response $response)
{
$id = $request->getAttribute('id');
if (!\ctype_digit($id)) {
throw new InvalidDataException("Invalid DNS record id '{$id}'");
}
$dnsrec = pm_DnsRecord::getById($id);
$entity = $this->consume();
try {
$dnsrec->setId($id)->setType($entity->type)->setHost($entity->host)->setValue($entity->value)->setOption($entity->opt)->setTtl($entity->ttl);
} catch (\TypeError $e) {
throw new InvalidDataException();
}
pm_DnsRecord::save($dnsrec);
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
private function delete(Request $request, Response $response)
{
$id = $request->getAttribute('id');
if (!\ctype_digit($id)) {
throw new InvalidDataException("Invalid DNS record id '{$id}'");
}
pm_DnsRecord::getById($id)->remove();
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
/**
* @throws NotFoundException
* @throws \pm_Exception
*/
private function getDomainOrAliasDnsZoneByName(string $name) : \pm_Dns_Zone
{
try {
return pm_Domain::getByName($name)->getDnsZone();
} catch (NotFoundException $e) {
try {
return pm_DomainAlias::getByName($name)->getDnsZone();
} catch (NotFoundException $e) {
throw new NotFoundException("Domain or Domain Alias not found by name '{$name}'", $e->getCode(), $e);
}
}
}
}

View File

@@ -1,16 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\ApiReference;
use PleskExt\RestApi\v2\Helper\Application;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class Documentation
{
public function __invoke(Request $request, Response $response)
{
return Application::get()->getContainer()->get('renderer')->render($response, 'v2/ui.phtml', ['schemas' => \json_encode(ApiReference::getSchemas())]);
}
}

View File

@@ -1,45 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Domains as DomainsMapper;
use PleskExt\RestApi\v2\Mapper\Response as ResponseMapper;
use PleskExt\RestApi\v2\Entity\DomainRequest as DomainRequestEntity;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class Domains extends InvokableHandler
{
/**
* @Producer(mapper=DomainsMapper::class)
*/
protected function get(Request $request, Response $response)
{
$domains = [];
$name = $this->getQueryParam('name');
if ($name) {
try {
$domains = [SDK\pm_Domain::getByName($name)];
} catch (SDK\Exception\NotFoundException $e) {
}
} else {
$domains = SDK\pm_Domain::getAllDomains();
}
$response->getBody()->write($this->produce($domains));
return $response;
}
/**
* @Consumer(type=DomainRequestEntity::class)
* @Producer(mapper=ResponseMapper::class)
*/
protected function post(Request $request, Response $response)
{
$domain = SDK\pm_Domain::create($this->consume());
$response->getBody()->write($this->produce($domain));
return $response->withStatus(201);
}
}

View File

@@ -1,47 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Domain as DomainMapper;
use PleskExt\RestApi\v2\Mapper\Response as ResponseMapper;
use PleskExt\RestApi\v2\Entity\DomainRequest as DomainRequestEntity;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class DomainsId extends InvokableHandler
{
/**
* @Producer(mapper=DomainMapper::class)
*/
protected function get(Request $request, Response $response)
{
$domain = SDK\pm_Domain::getByDomainId($request->getAttribute('id'));
$response->getBody()->write($this->produce($domain));
return $response;
}
/**
* @Consumer(type=DomainRequestEntity::class)
* @Producer(mapper=ResponseMapper::class)
*/
protected function put(Request $request, Response $response)
{
$domain = SDK\pm_Domain::getByDomainId($request->getAttribute('id'));
$domain->update($this->consume());
$response->getBody()->write($this->produce($domain));
return $response;
}
/**
* @Producer(mapper=ResponseMapper::class)
*/
protected function delete(Request $request, Response $response)
{
$domain = SDK\pm_Domain::getByDomainId($request->getAttribute('id'));
$domain->delete();
$response->getBody()->write($this->produce($domain));
return $response;
}
}

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\Client as ClientMapper;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class DomainsIdClient extends InvokableHandler
{
/**
* @Producer(mapper=ClientMapper::class)
*/
protected function get(Request $request, Response $response)
{
$domain = SDK\pm_Domain::getByDomainId($request->getAttribute('id'));
$response->getBody()->write($this->produce($domain->getClient()));
return $response;
}
}

View File

@@ -1,36 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Mapper\DomainStatus as DomainStatusMapper;
use PleskExt\RestApi\v2\Entity\DomainStatus as DomainStatusEntity;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class DomainsIdStatus extends InvokableHandler
{
/**
* @Producer(mapper=DomainStatusMapper::class)
*/
protected function get(Request $request, Response $response)
{
$domain = SDK\pm_Domain::getByDomainId($request->getAttribute('id'));
$response->getBody()->write($this->produce($domain));
return $response;
}
/**
* @Consumer(type=DomainStatusEntity::class)
* @Producer(mapper=DomainStatusMapper::class)
*/
protected function put(Request $request, Response $response)
{
$domain = SDK\pm_Domain::getByDomainId($request->getAttribute('id'));
$domain->setStatus($this->consume());
$response->getBody()->write($this->produce(SDK\pm_Domain::getByDomainId($request->getAttribute('id'))));
return $response;
}
}

View File

@@ -1,48 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Mapper\Extensions as ExtensionsMapper;
use PleskExt\RestApi\v2\Mapper\Extension as ExtensionMapper;
use PleskExt\RestApi\v2\Entity\ExtensionInstallRequest;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\Exception\InvalidDataException;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class Extensions extends InvokableHandler
{
/**
* @Producer(mapper=ExtensionsMapper::class)
*/
protected function get(Request $request, Response $response)
{
$extensions = SDK\pm_Extension::getExtensions();
$response->getBody()->write($this->produce($extensions));
return $response;
}
/**
* @Consumer(type=ExtensionInstallRequest::class)
* @Producer(mapper=ExtensionMapper::class)
*/
protected function post(Request $request, Response $response)
{
/** @var ExtensionInstallRequest $requestData */
$requestData = $this->consume();
if ($requestData->id) {
SDK\pm_Extension::installById($requestData->id);
} elseif ($requestData->url) {
SDK\pm_Extension::installByUrl($requestData->url);
} elseif ($requestData->file) {
SDK\pm_Extension::installByFile($requestData->file);
} else {
throw new InvalidDataException("Unsupported installation type");
}
$response->getBody()->write($this->serialize(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,32 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Mapper\Extension as ExtensionMapper;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ExtensionsId extends InvokableHandler
{
/**
* @Producer(mapper=ExtensionMapper::class)
*/
protected function get(Request $request, Response $response)
{
$extension = SDK\pm_Extension::getById($request->getAttribute('id'));
$response->getBody()->write($this->produce($extension));
return $response;
}
protected function delete(Request $request, Response $response)
{
$successResponseData = $this->serialize(new SuccessResponse());
$extension = SDK\pm_Extension::getById($request->getAttribute('id'));
$extension->uninstall();
$response->getBody()->write($successResponseData);
return $response;
}
}

View File

@@ -1,20 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ExtensionsIdDisable extends InvokableHandler
{
protected function put(Request $request, Response $response)
{
$extension = SDK\pm_Extension::getById($request->getAttribute('id'));
$extension->disable();
$response->getBody()->write($this->serialize(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,20 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ExtensionsIdEnable extends InvokableHandler
{
protected function put(Request $request, Response $response)
{
$extension = SDK\pm_Extension::getById($request->getAttribute('id'));
$extension->enable();
$response->getBody()->write($this->serialize(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,62 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Entity\FtpUserRequest;
use PleskExt\RestApi\v2\Entity\FtpUserUpdateRequest;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\FtpUser as FtpUserMapper;
use PleskExt\RestApi\v2\Mapper\FtpUsers as FtpUsersMapper;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class FtpUsers extends InvokableHandler
{
/**
* @Producer(mapper=FtpUsersMapper::class)
*/
protected function get(Request $request, Response $response)
{
if (null !== ($name = $this->getQueryParam('name'))) {
$users = [SDK\pm_FtpUser::getByName($name)];
} elseif (null !== ($domainName = $this->getQueryParam('domain'))) {
$domain = SDK\pm_Domain::getByName($domainName);
$users = SDK\pm_FtpUser::getForDomain($domain);
} else {
$users = SDK\pm_FtpUser::getAll();
}
$response->getBody()->write($this->produce($users));
return $response;
}
/**
* @Consumer(type=FtpUserUpdateRequest::class)
*/
protected function put(Request $request, Response $response)
{
$user = SDK\pm_FtpUser::getByName($request->getAttribute('name'));
$user->update($this->consume());
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
/**
* @Consumer(type=FtpUserRequest::class)
* @Producer(mapper=FtpUserMapper::class)
*/
protected function post(Request $request, Response $response)
{
$user = SDK\pm_FtpUser::create($this->consume());
$response->getBody()->write($this->produce($user));
return $response;
}
protected function delete(Request $request, Response $response)
{
$user = SDK\pm_FtpUser::getByName($request->getAttribute('name'));
$user->delete();
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,30 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\SDK;
use PleskExt\RestApi\v2\Entity\ServerMeta;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class Server extends InvokableHandler
{
protected function get(Request $request, Response $response)
{
$entity = new ServerMeta();
$entity->platform = SDK\pm_ProductInfo::getPlatform();
$entity->hostname = SDK\pm_Server::getHostname();
$entity->guid = SDK\pm_Server::getGuid();
$entity->panel_version = SDK\pm_ProductInfo::getVersion();
$entity->panel_revision = SDK\pm_ProductInfo::getRevision();
$entity->panel_build_date = \date('Y-m-d', SDK\pm_ProductInfo::getBuildDate());
$entity->panel_update_version = SDK\pm_ProductInfo::getLastInstalledUpdate();
$extension = \pm_Extension::getById('rest-api');
$entity->extension_version = $extension->getVersion();
$entity->extension_release = $extension->getRelease();
$response->getBody()->write($this->serialize($entity));
return $response;
}
}

View File

@@ -1,26 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Entity\ServerInit as ServerInitEntity;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ServerInit extends InvokableHandler
{
/**
* @Consumer(type=ServerInitEntity::class)
*/
protected function post(Request $request, Response $response)
{
/** @var ServerInitEntity $serverInit */
$serverInit = $this->consume();
SDK\pm_Server::initSetup($serverInit->admin, $serverInit->password, $serverInit->server_name);
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,23 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Producer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Mapper\ServerIps as ServerIpsMapper;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ServerIps extends InvokableHandler
{
/**
* @Producer(mapper=ServerIpsMapper::class)
*/
protected function get(Request $request, Response $response)
{
$ipAddresses = SDK\pm_Server::getIpAddresses();
$response->getBody()->write($this->produce($ipAddresses));
return $response;
}
}

View File

@@ -1,26 +0,0 @@
<?php
// Copyright 1999-2024. WebPros International GmbH. All rights reserved.
namespace PleskExt\RestApi\v2\Handler;
use PleskExt\RestApi\v2\Annotation\Consumer;
use PleskExt\RestApi\v2\Helper\InvokableHandler;
use PleskExt\RestApi\v2\Entity\ServerLicense as ServerLicenseEntity;
use PleskExt\RestApi\v2\Entity\SuccessResponse;
use PleskExt\RestApi\v2\SDK;
use PleskRestApi\Slim\Psr7\Request;
use PleskRestApi\Slim\Psr7\Response;
class ServerLicense extends InvokableHandler
{
/**
* @Consumer(type=ServerLicenseEntity::class)
*/
protected function post(Request $request, Response $response)
{
/** @var ServerLicenseEntity $serverLicense */
$serverLicense = $this->consume();
SDK\pm_License::install($serverLicense);
$response->getBody()->write($this->produce(new SuccessResponse()));
return $response;
}
}

View File

@@ -1,7 +0,0 @@
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK_18');
?>
pU?P<>_<EFBFBD>C|<7C>
<EFBFBD>3H<EFBFBD>5T0>Ltz'<>[(<28><><EFBFBD><EFBFBD>X<03>U0<55>f<EFBFBD><66>=?<1C><><15><><17><><EFBFBD>sx'<10>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD><EFBFBD> <20><>0<EFBFBD>WG<57><47>T<EFBFBD><54><EFBFBD>Ri[-<2D><><EFBFBD><EFBFBD><0E><>a<EFBFBD><61><1C><12>-<2D><><EFBFBD>M<EFBFBD><4D><14><>x;xpb㽣R<E3BDA3><52><02><>0.@<40><1E><>
<EFBFBD><EFBFBD>RC<52><1F>g~yT<79>x<EFBFBD>ޢ:9<><39>t<>|Fx<46><01>R<1A><>+<2B>W<EFBFBD><57>i<EFBFBD> @<40><>"o<14><>gw<67><77>Z<><5A>b<EFBFBD>^<5E>~<7E>2n<32><1C><>}<1F><18><><EFBFBD>n<>xR<78>s-<2D><04>9#9O{<7B><><EFBFBD>14<31>@<40><>/i<>PdA<64>e<7F><65><EFBFBD><EFBFBD><1D>;<3B>oᗇ<6F><E19787>Wpa~ˡ{9<>`<60><>u<EFBFBD><75>‰<EFBFBD>꓈L<EA9388>l<EFBFBD><<3C><02>%<<3C><>L(<28>XO<58><4F>Q<EFBFBD>O~D<><44><1D>Ǹ<EFBFBD>]t<>Y<EFBFBD><59>7<EFBFBD>M<EFBFBD><4D><18><><EFBFBD>39s<39><73><EFBFBD><1D>

View File

@@ -1,8 +0,0 @@
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK_18');
?>
pU?P<>_<EFBFBD>C|<7C>
<EFBFBD>3H<EFBFBD>5T0>Ltz'<>[(<28><><EFBFBD><EFBFBD>X<03>U0<55>f<EFBFBD><66>=?<1C><><15><><17><><EFBFBD>sx'<10>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD><EFBFBD> <20><>0<EFBFBD>WG<57><47>T<EFBFBD><54><EFBFBD>Ri[-<2D><><EFBFBD><EFBFBD><0E><>a<EFBFBD><61><1C><12>-<2D><><EFBFBD>M<EFBFBD><4D><14><>x;xpb㽣R<E3BDA3><52><02><>0.@<40><1E><>
<EFBFBD><EFBFBD>RC<52><1F>g~yT<79>x<EFBFBD>ޢ:9<><39>t<>|Fx<46><01>R<1A><>+<2B>W<EFBFBD><57>i<EFBFBD> Gr<47>E3˪nèE<V<>Y<EFBFBD><59>rBK<42>ƹ<EFBFBD><C6B9><EFBFBD><EFBFBD><EFBFBD>3K<33><4B>ܣ<EFBFBD><DCA3>!<21> |=<3D><>Ept<70> <0C><><EFBFBD>ti<74><69><EFBFBD>s<EFBFBD>N<EFBFBD><03>Bd<42>s<EFBFBD><73>3<EFBFBD><33><18>g!<21>8<><38><EFBFBD>!<21><13>9<EFBFBD><39>H*i<>3L<33><4C><EFBFBD>}}
<EFBFBD>D<EFBFBD>P<EFBFBD><EFBFBD>=3<><33><EFBFBD><EFBFBD>

View File

@@ -1,6 +0,0 @@
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK_18');
?>
4<EFBFBD><14>C<EFBFBD>+x<>%Y<>G<EFBFBD><47><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.<2E>,<2C>l1Zv<5A><76>\+<2B>ޤ<EFBFBD>/fx2@<40><>E<EFBFBD>BקPy~<7E><><EFBFBD>0<EFBFBD><30>s|<12><07><>!<21>gd<67><64><EFBFBD>oIR_<52><5F><EFBFBD>i<18><><EFBFBD><EFBFBD><EFBFBD>$E<>"<22><><EFBFBD>4<EFBFBD><34>zG6<>5!=<1D><EFBFBD>£kFC8<43>1M<31>=G-!<1F><><06>~ <20>O_$W<><57><EFBFBD>al<61>ڹ=
0<EFBFBD><EFBFBD>k-<2D> <0B><><EFBFBD><EFBFBD><EFBFBD>CG<43>m<EFBFBD>dTD<54>f<08>P<EFBFBD><50><EFBFBD>Л<<3C><><EFBFBD>=<3D>+Q<>8i<38>i} <20>I@<19>o

View File

@@ -1,7 +0,0 @@
<?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK_18');
?>
pU?P<>_<EFBFBD>C|<7C>
<EFBFBD>3H<EFBFBD>5T0>Ltz'<>[(<28><><EFBFBD><EFBFBD>X<03>U0<55>f<EFBFBD><66>=?<1C><><15><><17><><EFBFBD>sx'<10>ܧ<EFBFBD><DCA7><EFBFBD><EFBFBD><EFBFBD> <20><>0<EFBFBD>WG<57><47>T<EFBFBD><54><EFBFBD>Ri[-<2D><><EFBFBD><EFBFBD><0E><>a<EFBFBD><61><1C><12>-<2D><><EFBFBD>M<EFBFBD><4D><14><>x;xpb<70>㇈ZM<16>4<EFBFBD><03><>[<5B>r><3E><><EFBFBD>v>!<21>3XwŹ <0B>?<3F><1A>N<><4E>d%<25><>%ᩬn<E1A9AC><6E><EFBFBD><18>.S-<1B><>x"<22>+<2B><1F><1C>OV<4F>>C<>ѝ<EFBFBD><D19D>J<><4A><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>cq<63><71>0<EFBFBD>0<EFBFBD> <09><><EFBFBD>W<EFBFBD><57>
<EFBFBD>=<16><>nu<>l/M<><4D><EFBFBD>4<EFBFBD><34><EFBFBD>&<26><><EFBFBD><03> <09><17><18><><EFBFBD><EFBFBD><EFBFBD>s<EFBFBD><73><EFBFBD>j#<23><1A>Do<44>)<29>P%k<><6B>@lm~2<><32><EFBFBD><EFBFBD><EFBFBD>o<EFBFBD>hW<><57>+<2B>l<EFBFBD><6C>g<EFBFBD>q 9<><12>X<>G<EFBFBD><47>e<EFBFBD><65><EFBFBD><EFBFBD>v<EFBFBD><76><EFBFBD>[ ݊P<DD8A><50><0F><>[<5B><><EFBFBD><EFBFBD><1B>t<EFBFBD><05>Y<><59><EFBFBD><EFBFBD><11>h<EFBFBD>/<2F><>;w<0F> V<><56>/<2F>73<37><33><EFBFBD>H6\[x_<78>@B<>f<EFBFBD>w<EFBFBD><77>`<60>z<EFBFBD>u<16><><EFBFBD>T/<2F><><EFBFBD>u<EFBFBD><75>ڮ<13>q<EFBFBD><71>}<7D>1./y<>y<EFBFBD>2<EFBFBD>_/<2F>r̅2<CC85> <0C><>b<EFBFBD>5<EFBFBD><35><EFBFBD><EFBFBD>sn<11><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'<27>BԌʧ+8<>

Some files were not shown because too many files have changed in this diff Show More