first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Empik\Marketplace\Traits;
trait ErrorsTrait
{
protected $errors = [];
public function hasErrors()
{
return !empty($this->errors);
}
public function getErrors()
{
return $this->errors;
}
protected function resetErrors()
{
$this->errors = [];
return $this;
}
protected function addError($error)
{
$this->errors[] = $error;
return $this;
}
protected function setErrors(array $errors)
{
$this->errors = $errors;
return $this;
}
}

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;