If you delete your config.php somehow, you can re-create a config.php by hand editing based on this copy:
<?php
$dbtype = 'mysqli';
if (!function_exists('mysqli_connect')) $dbtype == 'mysql';
require_once 'databases/'.$dbtype.'.php';
$dbuser = 'root';
$dbpass = '';
$dbhost = 'localhost';
$databasename = 'wsnlinks';
$adb = new db($dbhost, $dbuser, $dbpass, $databasename);
if ($adb->dbh) $connection = $adb->dbh;
$prefix = 'wsnlinks_';
$dirurl = 'http://localhost/wsnlinks';
$uploadpath = '/var/www/wsnlinks/attachments/';
?>
$dbtype = 'mysqli';
if (!function_exists('mysqli_connect')) $dbtype == 'mysql';
require_once 'databases/'.$dbtype.'.php';
$dbuser = 'root';
$dbpass = '';
$dbhost = 'localhost';
$databasename = 'wsnlinks';
$adb = new db($dbhost, $dbuser, $dbpass, $databasename);
if ($adb->dbh) $connection = $adb->dbh;
$prefix = 'wsnlinks_';
$dirurl = 'http://localhost/wsnlinks';
$uploadpath = '/var/www/wsnlinks/attachments/';
?>
You'll need to enter your database user, password, database name, tables prefix, installation url and installation path to attachments directory in the above. When you save it, make sure you don't have any spaces or line breaks before the <? or after ?> as extra spaces there will cause header/cookie errors.