Archived
1
0

x changed setup code to automagically find Settings.php (hopefully)

* rearranged stuff in template to use less room (set <form>-block margin to 0)
+ calculate /Sources/ directory dynamically from SMF setup
This commit is contained in:
mbirth
2006-08-04 08:23:20 +00:00
parent 1abb114e0b
commit f47e84672c
3 changed files with 30 additions and 24 deletions

View File

@ -47,7 +47,7 @@ else
if ((isset($_REQUEST['man'])) || (!isset($db_name)))
{
include_once ("Settings.php");
require_once (dirname(realpath($_SERVER['SCRIPT_FILENAME'])) . "/Settings.php");
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
mysql_select_db($db_name);
}