Skip to content

Commit

Permalink
Merge branch 'release/1.3.3' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlawrence committed Aug 9, 2015
2 parents 2e07235 + d825110 commit c87cf41
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 18 deletions.
39 changes: 22 additions & 17 deletions install/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -483,14 +483,14 @@ function get_db_version($db_prefix)

function print_intro()
{
include_once('../version.php');
include_once('../Settings_class.php');
include_once('../version.php');
include_once('../Settings_class.php');

$prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLOBALS['CONFIG']['db_prefix'];
$db_version = Settings::get_db_version($prefix);
$is_upgrade = ($db_version != REQUIRED_VERSION);
$prefix = !empty($_SESSION['db_prefix']) ? $_SESSION['db_prefix'] : $GLOBALS['CONFIG']['db_prefix'];
$db_version = Settings::get_db_version($prefix);
$is_upgrade = ($db_version != REQUIRED_VERSION);

?>
?>
<h3>Welcome to the OpenDocMan Database Installer/Updater Tool</h3>
</div>
<hr>
Expand All @@ -512,22 +512,25 @@ function print_intro()
</td>
</tr>
<?php if ($db_version == 'Unknown') {
?>
?>
<tr>
<td>New Installation (Will wipe any current data!)<br/><br/></td>
</tr>
<tr>
<td>
<a href="index.php?op=install" class="button" onclick="return confirm('Are you sure? This will modify the database you have configured in config.php. Only use this option for a FRESH INSTALL.')">
Click HERE To set up database for v<?php echo $GLOBALS['CONFIG']['current_version'];?> release of OpenDocMan </a><br /><br />
Click HERE To set up database for v<?php echo $GLOBALS['CONFIG']['current_version'];
?> release of OpenDocMan </a><br /><br />
</td>
<?php
} elseif ($is_upgrade) {
?>

} elseif ($is_upgrade) {
?>
<tr>
<td>Your current Database schema version: <strong><?php echo $db_version;
?></strong><br/><br/>
Required Database schema version: <?php echo REQUIRED_VERSION; ?><br/><br />
?></strong><br/><br/>
Required Database schema version: <?php echo REQUIRED_VERSION;
?><br/><br />
</td>
</tr>
<tr>
Expand Down Expand Up @@ -582,21 +585,23 @@ function print_intro()
<td><a href="index.php?op=update_10">Upgrade from DB schema version 1.0</a><br><br></td>
</tr>
<?php
} else {
?>

} else {
?>
<tr>
<td>
Nothing to update<br><br>
Click <a href="../index.php">HERE</a> to login<br>
</td>
</tr>
<?php
}
?>

}
?>
</table>
<?php

}
}
?>
</body>
</html>
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/

$GLOBALS['CONFIG']['current_version'] = '1.3.2';
$GLOBALS['CONFIG']['current_version'] = '1.3.3';

0 comments on commit c87cf41

Please sign in to comment.