Compare commits

..

5 Commits

Author SHA1 Message Date
tracer d5bdb1bade initial commit 2022-09-21 15:52:13 +02:00
tracer 1ae9434558 initial commit 2022-09-21 15:51:48 +02:00
tracer de98f12ff5 initial commit 2022-09-21 15:51:17 +02:00
tracer 3f4bf92b62 initial commit 2022-09-21 15:44:43 +02:00
tracer 4fe29f350f removed some typos 2022-09-20 19:17:28 +02:00
5 changed files with 581 additions and 5 deletions

View File

@ -6,8 +6,8 @@
6. [DynDNS](#6-dyndns)
7. [Conclusion](#7-conclusion)
NOTICE: This documentation is not current as of September, 2022.
After I finished the refactoring I'll updrage it.
NOTICE: This documentation is not current as of September 2022.
After I finished the refactoring I'll upgrade it.
// important: Migration to v2022.2
@ -133,7 +133,7 @@ https://git.24unix.net/tracer/bindAPI/archive/1.0.1.tar.gz
I'd suggest checking here for the latest version:
https://git.24unix.net/tracer/bindAPI/releases
Or just use git to checkout the latest update:
Or just use git to check out the latest update:
```
git clone https://git.24unix.net/tracer/bindAPI.git
@ -324,7 +324,7 @@ Should I try to create them? (y/N): y
Tables have been created.
```
When we now call the console it displays it's options:
When we now call the console it displays its options:
![CLI Interface](https://bindapi.24unix.net/assets/bindAPI_cli.png)
@ -423,7 +423,7 @@ No second level domains found.
Keyhelp-Panel: tector.24unix.net
No second level domains found.
```
The output is a little bit ugly, maybe I'll come up with something nicer.
The output is a bit ugly, maybe I'll come up with something nicer.
So, now we have our nameservers, our panels.

View File

@ -0,0 +1,44 @@
<?php
namespace App\Entity\KeyHelp;
/**
*
*/
class Apache
{
private ?string $httpDirectives;
private ?string $httpsDirectives;
/**
* @return string
*/
public function getHttpDirectives(): string
{
return $this->httpDirectives;
}
/**
* @param string|null $httpDirectives
*/
public function setHttpDirectives(?string $httpDirectives): void
{
$this->httpDirectives = $httpDirectives;
}
/**
* @return string
*/
public function getHttpsDirectives(): string
{
return $this->httpsDirectives;
}
/**
* @param string|null $httpsDirectives
*/
public function setHttpsDirectives(?string $httpsDirectives): void
{
$this->httpsDirectives = $httpsDirectives;
}
}

View File

@ -0,0 +1,341 @@
<?php
namespace App\Entity\KeyHelp;
use DateTime;
/**
*
*/
class KeyHelpDomain
{
private int $id;
private int $idUser;
private int $idParentDomain;
private int $status;
private string $domain;
private string $domainUtf8;
private DateTime $createdAt;
private string $phpVersion;
private bool $isDisabled;
private ?DateTime $deleteOn;
private string $dkimTxtRecord;
private bool $isCustomDns;
private bool $isDnsDisabled;
private bool $isSubdomain;
private bool $isSystemDomain;
private bool $isEmailDomain;
private Target $target;
private Security $security;
private Apache $apache;
/**
* @return Apache
*/
public function getApache(): Apache
{
return $this->apache;
}
/**
* @param Apache $apache
*/
public function setApache(Apache $apache): void
{
$this->apache = $apache;
}
/**
* @return Security
*/
public function getSecurity(): Security
{
return $this->security;
}
/**
* @param Security $security
*/
public function setSecurity(Security $security): void
{
$this->security = $security;
}
/**
* @return Target
*/
public function getTarget(): Target
{
return $this->target;
}
/**
* @param Target $target
*/
public function setTarget(Target $target): void
{
$this->target = $target;
}
/**
* @return bool
*/
public function isEmailDomain(): bool
{
return $this->isEmailDomain;
}
/**
* @param bool $isEmailDomain
*/
public function setIsEmailDomain(bool $isEmailDomain): void
{
$this->isEmailDomain = $isEmailDomain;
}
/**
* @return bool
*/
public function isSystemDomain(): bool
{
return $this->isSystemDomain;
}
/**
* @param bool $isSystemDomain
*/
public function setIsSystemDomain(bool $isSystemDomain): void
{
$this->isSystemDomain = $isSystemDomain;
}
/**
* @return bool
*/
public function isSubdomain(): bool
{
return $this->isSubdomain;
}
/**
* @param bool $isSubdomain
*/
public function setIsSubdomain(bool $isSubdomain): void
{
$this->isSubdomain = $isSubdomain;
}
/**
* @return bool
*/
public function isDnsDisabled(): bool
{
return $this->isDnsDisabled;
}
/**
* @param bool $isDnsDisabled
*/
public function setIsDnsDisabled(bool $isDnsDisabled): void
{
$this->isDnsDisabled = $isDnsDisabled;
}
/**
* @return bool
*/
public function isCustomDns(): bool
{
return $this->isCustomDns;
}
/**
* @param bool $isCustomDns
*/
public function setIsCustomDns(bool $isCustomDns): void
{
$this->isCustomDns = $isCustomDns;
}
/**
* @return string
*/
public function getDkimTxtRecord(): string
{
return $this->dkimTxtRecord;
}
/**
* @param string $dkimTxtRecord
*/
public function setDkimTxtRecord(string $dkimTxtRecord): void
{
$this->dkimTxtRecord = $dkimTxtRecord;
}
/**
* @return DateTime
*/
public function getDeleteOn(): DateTime
{
return $this->deleteOn;
}
/**
* @param DateTime|null $deleteOn
*/
public function setDeleteOn(?DateTime $deleteOn): void
{
$this->deleteOn = $deleteOn;
}
/**
* @return bool
*/
public function isDisabled(): bool
{
return $this->isDisabled;
}
/**
* @param bool $isDisabled
*/
public function setIsDisabled(bool $isDisabled): void
{
$this->isDisabled = $isDisabled;
}
/**
* @return string
*/
public function getPhpVersion(): string
{
return $this->phpVersion;
}
/**
* @param string $phpVersion
*/
public function setPhpVersion(string $phpVersion): void
{
$this->phpVersion = $phpVersion;
}
/**
* @return DateTime
*/
public function getCreatedAt(): DateTime
{
return $this->createdAt;
}
/**
* @param DateTime $createdAt
*/
public function setCreatedAt(DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
/**
* @return string
*/
public function getDomainUtf8(): string
{
return $this->domainUtf8;
}
/**
* @param string $domainUtf8
*/
public function setDomainUtf8(string $domainUtf8): void
{
$this->domainUtf8 = $domainUtf8;
}
/**
* @return string
*/
public function getDomain(): string
{
return $this->domain;
}
/**
* @param string $domain
*/
public function setDomain(string $domain): void
{
$this->domain = $domain;
}
/**
* @return int
*/
public function getStatus(): int
{
return $this->status;
}
/**
* @param int $status
*/
public function setStatus(int $status): void
{
$this->status = $status;
}
/**
* @return int
*/
public function getIdParentDomain(): int
{
return $this->idParentDomain;
}
/**
* @param int $idParentDomain
*/
public function setIdParentDomain(int $idParentDomain): void
{
$this->idParentDomain = $idParentDomain;
}
/**
* @return int
*/
public function getIdUser(): int
{
return $this->idUser;
}
/**
* @param int $idUser
*/
public function setIdUser(int $idUser): void
{
$this->idUser = $idUser;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
}

View File

@ -0,0 +1,130 @@
<?php
namespace App\Entity\KeyHelp;
/**
*
*/
class Security
{
private int $idCertificate;
private bool $letsEncrypt;
private bool $forceHttps;
private bool $isHsts;
private int $hstsMaxAge;
private bool $hstsInclude;
private bool $hstsPreload;
/**
* @return int
*/
public function getIdCertificate(): int
{
return $this->idCertificate;
}
/**
* @param int $idCertificate
*/
public function setIdCertificate(int $idCertificate): void
{
$this->idCertificate = $idCertificate;
}
/**
* @return bool
*/
public function isLetsEncrypt(): bool
{
return $this->letsEncrypt;
}
/**
* @param bool $letsEncrypt
*/
public function setLetsEncrypt(bool $letsEncrypt): void
{
$this->letsEncrypt = $letsEncrypt;
}
/**
* @return bool
*/
public function isHsts(): bool
{
return $this->isHsts;
}
/**
* @param bool $isHsts
*/
public function setIsHsts(bool $isHsts): void
{
$this->isHsts = $isHsts;
}
/**
* @return int
*/
public function getHstsMaxAge(): int
{
return $this->hstsMaxAge;
}
/**
* @param int $hstsMaxAge
*/
public function setHstsMaxAge(int $hstsMaxAge): void
{
$this->hstsMaxAge = $hstsMaxAge;
}
/**
* @return bool
*/
public function isHstsInclude(): bool
{
return $this->hstsInclude;
}
/**
* @param bool $hstsInclude
*/
public function setHstsInclude(bool $hstsInclude): void
{
$this->hstsInclude = $hstsInclude;
}
/**
* @return bool
*/
public function isHstsPreload(): bool
{
return $this->hstsPreload;
}
/**
* @param bool $hstsPreload
*/
public function setHstsPreload(bool $hstsPreload): void
{
$this->hstsPreload = $hstsPreload;
}
/**
* @return bool
*/
public function isForceHttps(): bool
{
return $this->forceHttps;
}
/**
* @param bool $forceHttps
*/
public function setForceHttps(bool $forceHttps): void
{
$this->forceHttps = $forceHttps;
}
}

View File

@ -0,0 +1,61 @@
<?php
namespace App\Entity\KeyHelp;
/**
*
*/
class Target
{
private string $target;
private bool $isForwarding;
private ?string $forwardingType;
/**
* @return string
*/
public function getForwardingType(): string
{
return $this->forwardingType;
}
/**
* @param string|null $forwardingType
*/
public function setForwardingType(?string $forwardingType): void
{
$this->forwardingType = $forwardingType;
}
/**
* @return bool
*/
public function isForwarding(): bool
{
return $this->isForwarding;
}
/**
* @param bool $isForwarding
*/
public function setIsForwarding(bool $isForwarding): void
{
$this->isForwarding = $isForwarding;
}
/**
* @return string
*/
public function getTarget(): string
{
return $this->target;
}
/**
* @param string $target
*/
public function setTarget(string $target): void
{
$this->target = $target;
}
}