Private GIT

Skip to content
Snippets Groups Projects
Commit f29328e8 authored by Miha Petkovsek's avatar Miha Petkovsek
Browse files

Added PUBLISHED flag to hide dbversion in footer

parent 17d2c03b
Branches
No related tags found
No related merge requests found
<table class="donate">
<tr>
<td>
<a href="http://phpipam.net">phpIPAM IP address management <?php print '[v'. VERSION_VISIBLE. ']'; ?><?php if(DBVERSION > 0) { print " dbversion".DBVERSION; } ?></a>
<?php var_dump(PUBLISHED); ?>
<a href="http://phpipam.net">phpIPAM IP address management <?php print '[v'. VERSION_VISIBLE. ']'; ?><?php if(PUBLISHED===false) { print " dbversion".DBVERSION; } ?></a>
</td>
<?php
......
......@@ -4,9 +4,11 @@ define("VERSION", "1.4"); //decimal release version e.g 1.32
/* set latest version */
define("VERSION_VISIBLE", "1.4"); //visible version in footer e.g 1.3.2
/* set latest revision */
define("REVISION", "036"); //increment on static content changes (js/css) or point releases to avoid caching issues
define("REVISION", "025"); //increment on static content changes (js/css) or point releases to avoid caching issues
/* set last possible upgrade */
define("LAST_POSSIBLE", "1.19"); //minimum required version to be able to upgrade
/* set published - hide dbversion in footer */
define("PUBLISHED", true); //hide dbversion in footer
// Automatically set DBVERSION as everyone forgets!
function get_dbversion() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment