You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace tests\server_v2;
|
|
|
|
class AuthCheck
|
|
{
|
|
public function before(): void
|
|
{
|
|
if (!isset($_COOKIE['user'])) {
|
|
echo '<span id="infotext">Middleware text:</span> You are not authorized to access this route!';
|
|
}
|
|
}
|
|
}
|