Skip to content

Commit c5f272c

Browse files
Update update.php
Minor Bugfixes
1 parent fb7639f commit c5f272c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

update-0-0-1-beta-1-0-0-1-beta-2/update.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
echo '<p>Thank you for your patience.</p>';
55
//Alter the functions file
66
$FunctionsFile = file_get_contents('../functions.php');
7-
$FunctionsFile = explode('?><?php', $FunctionsFileData);
7+
$FunctionsFileData = explode('?><?php', $FunctionsFile);
88
$FunctionsFileNew = $FunctionsFileData[0] . "?>" . file_get_contents('./functions.php.new');
99
file_put_contents('../functions.php',$FunctionsFileNew);
1010
echo '<p>11% Complete.</p>';
1111
//Alter Database
1212
require_once('../functions.php');
13-
$DBConnection = mysqli_connect($DBServer,$DBUsername,$DBPassword,$DBName);
13+
$DBConnection = mysqli_connect(DBSERVER,DBUSER,DBPASS,DBNAME);
1414
if (!$DBConnection)
1515
{
1616
die('Could not connect to database. Please try again later.');
1717
}
18-
$DBQuery = "ALTER TABLE ". $DBPrefix . "_LoginTable ADD COLUMN UserBlurb LONGTEXT,ADD COLUMN UserImage VARCHAR(255);";
18+
$DBQuery = "ALTER TABLE ". DBPREFIX . "_LoginTable ADD COLUMN UserBlurb LONGTEXT,ADD COLUMN UserImage VARCHAR(255);";
1919
mysqli_query($DBConnection,$DBQuery);
2020
mysqli_close($DBConnection);
2121
echo '<p>22% Complete.</p>';

0 commit comments

Comments
 (0)