admin.php 206 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
const IS_ACTIVE = true;

class Admin {

  private $db;

  public function __construct ($db) {
    $this->db=$db;
  }

  public function isActive() {
    return $this->db->config()['isactive'];
  }

}