// Lets update the database with our vars sdb_query("INSERT INTO `".$__settings['dbprefix']."options` SET option_name = 'sitepad_vars', option_value = '".addslashes(serialize($abc))."' ON DUPLICATE KEY UPDATE option_value = '".addslashes(serialize($abc))."';", $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
// Also add the login details $tmp['sp-login'] = generateRandStr(32); $tmp['time'] = time();
$q = "INSERT INTO `".$__settings['dbprefix']."options` SET option_name = 'sp-login', option_value = '".addslashes(serialize($tmp))."' ON DUPLICATE KEY UPDATE option_value = '".addslashes(serialize($tmp))."';"; sdb_query($q, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);