Skip to content

Commit

Permalink
Merge pull request #1133 from itflow-org/develop
Browse files Browse the repository at this point in the history
Release system - 24.12
  • Loading branch information
wrongecho authored Dec 30, 2024
2 parents 4711955 + 955f7c3 commit 0bde1cc
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
10 changes: 7 additions & 3 deletions admin_debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,12 +519,16 @@ function getDirStats($dir) {

<table class="table table-bordered mb-3">
<tr>
<td>Current App Version</td>
<th><?php echo $commitHash; ?></th>
<th>ITFlow release version</th>
<th><?php echo APP_VERSION; ?></th>
</tr>
<tr>
<td>Current Code Commit</td>
<td><?php echo $commitHash; ?></td>
</tr>
<tr>
<td>Current DB Version</td>
<th><?php echo CURRENT_DATABASE_VERSION; ?></th>
<td><?php echo CURRENT_DATABASE_VERSION; ?></td>
</tr>
</table>

Expand Down
9 changes: 3 additions & 6 deletions admin_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

require_once "database_version.php";


$updates = fetchUpdates();

$latest_version = $updates->latest_version;
Expand Down Expand Up @@ -43,8 +42,6 @@
<br>
<small class="text-secondary">Latest DB Version: <?php echo LATEST_DATABASE_VERSION; ?></small>
<br>
<small class="text-secondary">Branch: <?php echo $repo_branch; ?></small>

<hr>

<?php } else {
Expand All @@ -54,9 +51,9 @@
<a class="btn btn-danger btn-lg" href="post.php?update&force_update=1"><i class="fas fa-fw fa-4x fa-hammer mb-1"></i><h5>FORCE Update App</h5></a>

<?php } else { ?>
<p class="text-secondary">Current Database Version:<br><strong class="text-dark"><?php echo CURRENT_DATABASE_VERSION; ?></strong></p>
<p class="text-secondary">Current App Version:<br><strong class="text-dark"><?php echo $current_version; ?></strong></p>
<p class="text-secondary">Branch:<br><strong class="text-dark"><?php echo $repo_branch; ?></strong></p>
<p><strong>Application Release Version:<br><strong class="text-dark"><?php echo APP_VERSION; ?></strong></p>
<p class="text-secondary">Database Version:<br><strong class="text-dark"><?php echo CURRENT_DATABASE_VERSION; ?></strong></p>
<p class="text-secondary">Code Commit:<br><strong class="text-dark"><?php echo $current_version; ?></strong></p>
<p class="text-muted">You are up to date!<br>Everything is going to be alright</p>
<i class="far fa-3x text-dark fa-smile-wink"></i><br>
<?php }
Expand Down
8 changes: 8 additions & 0 deletions app_version.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php
/*
* ITFlow
* This file defines the current ITFlow release/version
* Update this file each time we merge develop into master. Format is YY.M (add a .v if there is more than one release a month.
*/

DEFINE("APP_VERSION", "24.12");
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<?php
if (str_contains(basename($_SERVER["PHP_SELF"]), "admin_")) { ?>
<p class="text-right font-weight-light">ITFlow /versioning coming soon/ &nbsp; · &nbsp; <a target="_blank" href="https://docs.itflow.org">Docs</a> &nbsp; · &nbsp; <a target="_blank" href="https://forum.itflow.org">Forum</a> &nbsp; · &nbsp; <a target="_blank" href="https://services.itflow.org">Services</a></p>
<p class="text-right font-weight-light">ITFlow <?php echo APP_VERSION ?> &nbsp; · &nbsp; <a target="_blank" href="https://docs.itflow.org">Docs</a> &nbsp; · &nbsp; <a target="_blank" href="https://forum.itflow.org">Forum</a> &nbsp; · &nbsp; <a target="_blank" href="https://services.itflow.org">Services</a></p>
<br>
<?php } ?>

Expand Down
4 changes: 3 additions & 1 deletion inc_all_admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
validateAdminRole();

// TODO: Change this to enforceAdminPermission();
// We can't do this until everyone has the new database fields added in 1.4.9 on Sept 14th 2024
// We can't do this until everyone has the new database fields added in db 1.4.9 on Sept 14th 2024

require_once "header.php";

Expand All @@ -22,3 +22,5 @@
require_once "inc_alert_feedback.php";

require_once "filter_header.php";

require_once "app_version.php";

0 comments on commit 0bde1cc

Please sign in to comment.