Skip to content

Commit

Permalink
by: Mark Harvey <markh794@gmail.com> Add missing </a> tag on homepage
Browse files Browse the repository at this point in the history
Signed-off-by: niadev67 <niadev67@gmail.com>
  • Loading branch information
niadev67 committed Sep 5, 2011
1 parent dcd6d67 commit 32ac490
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
21 changes: 16 additions & 5 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</tr>

<br>
<a href="http://sites.google.com/site/linuxvtl2/"><b><font size=1>Developed by Mark Harvey & Community (markh794@gmail.com)<b>
<a href="http://sites.google.com/site/linuxvtl2/"><b><font size=1>Developed by Mark Harvey & Community (markh794@gmail.com)<b></a>
<br>
Web Console GUI built by (nia) <a href="http://mhvtl-community-forums.966029.n3.nabble.com/">mhvtl-community-forums</a>

Expand All @@ -33,8 +33,8 @@
<FONT SIZE=3 COLOR=#FF00FF ><center><b> Verifying all required components </b></center></FONT>
<br>


<?php

/* $output = shell_exec('scripts/check_before_use.sh testphp');echo "<pre><FONT COLOR=#FFFFFF>$output</FONT></pre>"; */
$output = shell_exec('scripts/check_before_use.sh testsudo');echo "<pre><FONT COLOR=#FFFFFF>$output</FONT></pre>";
$output = shell_exec('scripts/check_before_use.sh testmhvtl');echo "<pre><FONT COLOR=#FFFFFF>$output</FONT></pre>";
Expand All @@ -48,10 +48,21 @@
$output = shell_exec('scripts/check_before_use.sh testscst');echo "<pre><FONT COLOR=#FFFFFF>$output</FONT></pre>";
*/

$login = include 'go.php';
$output = shell_exec('CHECK=`cat /tmp/test.required.components.* | grep -v "PASS" | sort -u`; if [ -z "$CHECK" ]; then echo $login ;else echo "<pre><FONT COLOR=#FF0000><b>Error: Required Components Not Verified </b></FONT></pre>";fi');
echo "<pre>$output</pre>";
$CMD = shell_exec('cat /tmp/test.required.components.* | grep -v "PASS" | sort -u|wc -l');

if ($CMD == 0 )
{
include 'go.php' ;
}
else
{
echo "<pre><FONT COLOR=#FF0000><b>Error: Required Components Not Verified </b></FONT></pre>";
}
?>




</table>
<?php echo "<pre><b><FONT size=2><a href='http://sites.google.com/site/linuxvtl2/'>MHVTL</a> - <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU GENERAL PUBLIC LICENSE : GPL v2 : Copyright (C) 2011. All rights reserved.</a></FONT></b></pre>";?>
</center>
Expand Down
12 changes: 9 additions & 3 deletions scripts/check_before_use.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
testmhvtl()
{
MAJORVER="1"
MINRELEASE="17"
MINVERSION="15"
RELEASE=`sudo -u root -S vtlcmd -V| cut -d ":" -f2|cut -d "." -f2`
VERSION=`sudo -u root -S vtlcmd -V| cut -d ":" -f2|cut -d "." -f3| cut -d"-" -f1`
if [ $RELEASE -gt $MINRELEASE ] && [ $VERSION -gt $MINVERSION ] ; then
_RELEASE=`sudo -u root -S vtlcmd -V| awk '{print $2}'|cut -d "-" -f1`
MAJ=`echo $_RELEASE|awk -F. '{print $1}'`
RELEASE=`echo $_RELEASE|awk -F. '{print $2}'`
VERSION=`echo $_RELEASE|awk -F. '{print $3}'`
if [ $MAJORVER -eq $MAJ ]; then # Version 1.0 is OK
echo '<img src="html/images/green_light.png" align=top />' PASS: MHVTL Version $MAJ.$RELEASE.$VERSION [INSTALLED]
echo "PASS" >/tmp/test.required.components.testmhvtl
elif [ $RELEASE -gt $MINRELEASE ] && [ $VERSION -gt $MINVERSION ] ; then
echo '<img src="html/images/green_light.png" align=top />' PASS: MHVTL Version $RELEASE.$VERSION [INSTALLED]
echo "PASS" >/tmp/test.required.components.testmhvtl
else
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.18.17-8cfe775
0.18.17-dcd6d67

0 comments on commit 32ac490

Please sign in to comment.