DNSBlock
This commit is contained in:
13
app/Models/Domain.php
Normal file
13
app/Models/Domain.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
use App\Core\Model;
|
||||
class Domain extends Model
|
||||
{
|
||||
protected $table = 'domains';
|
||||
|
||||
public function countBlocked()
|
||||
{
|
||||
$stmt = $this->conn->query("SELECT COUNT(*) as total FROM domains WHERE status = 'blocked'");
|
||||
return $stmt->fetch()['total'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user