Added the first cdn
This commit is contained in:
15
ContentDeliveryV1/util/DB.php
Normal file
15
ContentDeliveryV1/util/DB.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
class DB {
|
||||
|
||||
private static MySQL $database;
|
||||
|
||||
public static function get(): MySQL {
|
||||
return self::$database;
|
||||
}
|
||||
|
||||
public static function init($hostname = "localhost", $username = "root", $password, $database) {
|
||||
self::$database = new MySQL($hostname, $username, $password, $database);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user