function DB_open()
{
- global $DB;
- if ( $DB = mysql_connect('mysql.nubati.net','doko', '$DoKo#.') )
- mysql_select_db('dokodb') or die('Could not select database');
+ global $DB,$DB_user,$DB_host,$DB_database,$DB_password;
+ if ( $DB = mysql_connect($DB_host,$DB_user, $DB_password) )
+ mysql_select_db($DB_database) or die('Could not select database');
else
die (mysql_error());
<?php
-/*
- * config
- */
-
-$host = "http://doko.nubati.net/database/index.php";
-$wiki = "http://wiki.nubati.net/index.php?title=EmailDoko";
-$debug = 0;
-
-$last=-2;
-
-/*
- * end config
- */
-
-
-/* helper function */
function mymail($To,$Subject,$message)
{
global $debug;