Файл: hashtag.io-2629a1a4ea078149b002e45e2e12bb946062c2b8/config/class/needy_class.php
Строк: 9
<?php
class N{
public static $e;
public static $database;
public static $DIR = "/insta";
public static $GMAIL = "abc@gmail.com";
public static $GMAIL_PASSWORD = "abc";
public static function _DB(){
try {
self::$database = new PDO('mysql:host=localhost;dbname=myinstagram;charset=utf8mb4','root','');
self::$database->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$e = self::$e;
} catch (PDOException $e) {
echo $e->getMessage();
}
return self::$database;
}
}
?>