]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - plugins/sql_auth/SQL/sql.php
12 $host_type = "unix_socket";
15 $dsn = "mysql:$host_type=$host;dbname=$db;charset=$charset";
17 PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
18 PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
19 PDO::ATTR_EMULATE_PREPARES => false,
22 $pdo = new PDO($dsn, $user, $pass, $options);
23 } catch (\PDOException $e) {
24 throw new \PDOException($e->getMessage(), (int)$e->getCode());