.htconfig.php.sample 414 B

123456789101112131415161718192021
  1. <?php
  2. define("DB_HOST", "localhost");
  3. define("DB_PORT", 3306);
  4. define("DB_NAME", "irc_anope");
  5. define("DB_USER", "root");
  6. define("DB_PASS", "");
  7. // DO NOT EDIT BELOW
  8. $dblink = null;
  9. try {
  10. global $dblink;
  11. $dblink = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME.";port=".DB_PORT, DB_USER, DB_PASS);
  12. }
  13. catch (Exception $e) {
  14. echo "Error: (" .$e->getCode() .") " .$e->getMessage();
  15. exit();
  16. }
  17. ?>