|
...
|
...
|
@@ -112,7 +112,6 @@ else if (isset($_REQUEST['language']))
|
|
112
|
112
|
else
|
|
113
|
113
|
{
|
|
114
|
114
|
include("../config.php");
|
|
115
|
|
- //include("../includes/dbfunctions.php");
|
|
116
|
115
|
|
|
117
|
116
|
$dbconnect = dbconnect($dbhost, $dbuser, $dbpass, $dbname);
|
|
118
|
117
|
$settings = dbquery("SELECT tableprefix, language FROM " . $settingsprefix . "fanfiction_settings WHERE sitekey = '" . $sitekey . "'");
|
|
...
|
...
|
@@ -850,11 +849,8 @@ CREATE TABLE IF NOT EXISTS `" . $tableprefix . "fanfiction_modules` (
|
|
850
|
849
|
|
|
851
|
850
|
case "2";
|
|
852
|
851
|
include("../config.php");
|
|
853
|
|
- //include("../includes/dbfunctions.php");
|
|
854
|
852
|
if (dbnumrows(dbquery("SHOW TABLES LIKE '" . $settingsprefix . "fanfiction_settings'")))
|
|
855
|
853
|
{
|
|
856
|
|
- //include("../config.php");
|
|
857
|
|
- //include("../includes/dbfunctions.php");
|
|
858
|
854
|
$dbconnect = dbconnect($dbhost, $dbuser, $dbpass, $dbname);
|
|
859
|
855
|
$settings = dbquery("SELECT tableprefix, language FROM " . $settingsprefix . "fanfiction_settings WHERE sitekey = '" . $sitekey . "'");
|
|
860
|
856
|
list($tableprefix, $language) = dbrow($settings);
|
|
...
|
...
|
@@ -1058,7 +1054,6 @@ if(!empty(\$sitekey)) \$dbconnect = dbconnect(\$dbhost, \$dbuser,\$dbpass, \$dbn
|
|
1058
|
1054
|
{
|
|
1059
|
1055
|
if (file_exists("../config.php") && !isset($mysqli_access)) {
|
|
1060
|
1056
|
include("../config.php");
|
|
1061
|
|
- //include("../includes/dbfunctions.php");
|
|
1062
|
1057
|
}
|
|
1063
|
1058
|
if (isset($tinyMCE)) $output .= write_message(_CONFIG2DETECTED);
|
|
1064
|
1059
|
else if (isset($sitename) && $sitename) $output .= write_message(_CONFIG1DETECTED);
|