Skip to content

Commit

Permalink
Version Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrist19 committed Jan 29, 2022
1 parent f334835 commit 1bb1f92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
//DO NOT EDIT
$conn = mysqli_connect("{$dbhost}", "{$dbuser}", "{$dbpass}", "{$dbname}") or die("Connection Error: " . mysqli_error($conn));
$version = "1.3.1";
$version = "1.3.2";
?>';
fwrite($conffile, $data);
Expand Down Expand Up @@ -61,7 +61,7 @@
//DO NOT EDIT
$conn = mysqli_connect("{$dbhost}", "{$dbuser}", "{$dbpass}", "{$dbname}") or die("Connection Error: " . mysqli_error($conn));
$version = "1.3.1";
$version = "1.3.2";
?>';
fwrite($conffile, $data);
Expand Down Expand Up @@ -132,11 +132,11 @@
<div class="card-body">
<?php
if (file_exists('config.php')) {
if (version_compare($version_numerical, '1.3.1') >= 0) {
if (version_compare($version_numerical, '1.3.2') >= 0) {
echo 'A newer version is already installed. <a href="?delete">Delete install.php file</a>';
} else {
?>
<p>This will update your installation from <?=$version?> to V1.3.1 (It will not delete any data but you are advised to backup your database before update)</p>
<p>This will update your installation from <?=$version?> to V1.3.2 (It will not delete any data but you are advised to backup your database before update)</p>
<a href="?update">Update Installation</a>
<p class="login-box-msg"><b>Warning! The updater may not work correctly as it's still in the testing phase. If you wish to safely update the CMS delete 'install.php' file and visit <a href="https://service.dtprojects.eu.org/support/knowledgebase.php?article=1">this page</a></b></p>
<?php
Expand Down

0 comments on commit 1bb1f92

Please sign in to comment.