Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix for issue #46 Error on page_password while installing
- Move session_start(); up to be the first statement
  • Loading branch information
torinfo committed Mar 1, 2014
1 parent 70282af commit 7279067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup/page2.php
@@ -1,4 +1,5 @@
<?php
session_start();

$success = true;

Expand Down Expand Up @@ -81,7 +82,6 @@
{


session_start();

$_SESSION['DATABASE_HOST'] = $_POST['host'];
$_SESSION['DATABASE_NAME'] = $_POST['database_name'];
Expand Down
2 changes: 1 addition & 1 deletion setup/page_password.php
@@ -1,7 +1,7 @@
<?php
session_start();

echo file_get_contents("page_top");
session_start();
$success = true;
// First try if we have access to the db
$mysql_connect_id = mysql_connect($_SESSION['DATABASE_HOST'], $_POST['account'], $_POST['accountpw']);
Expand Down

0 comments on commit 7279067

Please sign in to comment.