ヤミRoot VoidGate
User / IP
:
216.73.216.84
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
src
/
Entity
/
Viewing: Visitor.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\VisitorRepository; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; /** * @ApiResource() * @ORM\Entity(repositoryClass=VisitorRepository::class) */ class Visitor { /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255,unique=true) */ private $webAgent; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $ipLocation; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $countryLocation; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $visitorName; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $visitorPhone; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $physicalLocationAdd; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $longitudeAdd; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $latitudeAdd; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $continent; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $region; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $ville; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $visitorEmail; /** * @ORM\OneToMany(targetEntity=Contact::class, mappedBy="visitor", orphanRemoval=true) */ private $contacts; /** * @ORM\Column(type="boolean", nullable=true, options={"default":0}) */ private $isAdmin; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $countryCode; public function getId(): ?int { return $this->id; } public function getWebAgent(): ?string { return $this->webAgent; } public function setWebAgent(string $webAgent): self { $this->webAgent = $webAgent; return $this; } public function getIpLocation(): ?string { return $this->ipLocation; } public function setIpLocation(string $ipLocation): self { $this->ipLocation = $ipLocation; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getCountryLocation(): ?string { return $this->countryLocation; } public function setCountryLocation(string $countryLocation): self { $this->countryLocation = $countryLocation; return $this; } public function getVisitorName(): ?string { return $this->visitorName; } public function setVisitorName(string $visitorName): self { $this->visitorName = $visitorName; return $this; } public function getVisitorPhone(): ?string { return $this->visitorPhone; } public function setVisitorPhone(string $visitorPhone): self { $this->visitorPhone = $visitorPhone; return $this; } public function getPhysicalLocationAdd(): ?string { return $this->physicalLocationAdd; } public function setPhysicalLocationAdd(string $physicalLocationAdd): self { $this->physicalLocationAdd = $physicalLocationAdd; return $this; } public function getLongitudeAdd(): ?string { return $this->longitudeAdd; } public function setLongitudeAdd(string $longitudeAdd): self { $this->longitudeAdd = $longitudeAdd; return $this; } public function getLatitudeAdd(): ?string { return $this->latitudeAdd; } public function setLatitudeAdd(string $latitudeAdd): self { $this->latitudeAdd = $latitudeAdd; return $this; } public function __construct() { $this->createdAt = new \DateTime( ); $this->webAgent = $_SERVER['HTTP_USER_AGENT']; $this->contacts = new ArrayCollection(); } public function getContinent(): ?string { return $this->continent; } public function setContinent(?string $continent): self { $this->continent = $continent; return $this; } public function getRegion(): ?string { return $this->region; } public function setRegion(?string $region): self { $this->region = $region; return $this; } public function getVille(): ?string { return $this->ville; } public function setVille(?string $ville): self { $this->ville = $ville; return $this; } public function getVisitorEmail(): ?string { return $this->visitorEmail; } public function setVisitorEmail(?string $visitorEmail): self { $this->visitorEmail = $visitorEmail; return $this; } /** * @return Collection|Contact[] */ public function getContacts(): Collection { return $this->contacts; } public function addContact(Contact $contact): self { if (!$this->contacts->contains($contact)) { $this->contacts[] = $contact; $contact->setVisitor($this); } return $this; } public function removeContact(Contact $contact): self { if ($this->contacts->contains($contact)) { $this->contacts->removeElement($contact); // set the owning side to null (unless already changed) if ($contact->getVisitor() === $this) { $contact->setVisitor(null); } } return $this; } public function getIsAdmin(): ?bool { return $this->isAdmin; } public function setIsAdmin(?bool $isAdmin): self { $this->isAdmin = $isAdmin; return $this; } public function __toString() { // TODO: Implement __toString() method. return "(".$this->id.")". $this->getWebAgent(); } public function getCountryCode(): ?string { return $this->countryCode; } public function setCountryCode(?string $countryCode): self { $this->countryCode = $countryCode; return $this; } }
Coded With 💗 by
0x6ick