2020-11-17 23:27:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class Auth
|
|
|
|
{
|
2021-03-25 22:05:32 +01:00
|
|
|
private $configs;
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
session_start();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function sessionStatus()
|
|
|
|
{
|
|
|
|
if (isset($_SESSION["member"])) {
|
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
//return $this->secret;
|
|
|
|
}
|
|
|
|
}
|