Skip to content

Commit

Permalink
added show version capability
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@63 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Dec 11, 2000
1 parent facaf66 commit abcbf1d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config_inc.php
Expand Up @@ -57,7 +57,7 @@
$g_show_advanced_report = 1;
$g_show_advanced_update = 1;

$g_show_version = 0;
$g_show_version = 1;

# requires PHP4
# 0 = disabled; 1 = admin only; 2 = anyone
Expand Down
10 changes: 10 additions & 0 deletions core_API.php
Expand Up @@ -96,6 +96,7 @@ function print_footer() {
print_source_link();

PRINT "<hr size=1>";
print_mantis_version();
PRINT "<address><font size=-1>Copyright (c) 2000</font></address>";
PRINT "<address><font size=-1><a href=\"mailto:$g_webmaster_email\">$g_webmaster_email</a></font></address>";
}
Expand Down Expand Up @@ -140,6 +141,15 @@ function print_source_link() {
}
}
#--------------------
### checks to see whether we need to be displaying the source link
function print_mantis_version() {
global $g_mantis_version, $g_show_version;

if ( $g_show_version==1 ) {
PRINT "<i>Mantis version $g_mantis_version</i>";
}
}
#--------------------
####################
# String printing API
####################
Expand Down

0 comments on commit abcbf1d

Please sign in to comment.