forked from tomoconnor/mhvtl-gui
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Many fixes and modifications also new features
- Loading branch information
Showing
51 changed files
with
955 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
$cmdout = shell_exec ('sudo -u root -S rm -f /tmp/mhvtl.act.tmp; sudo -u root -S lsscsi -g | grep mediumx | grep -o "[^dev]*$" | while read each; do sudo -u root -S lsscsi -g | grep /dev$each$|cut -d "]" -f2 ; sudo -u root -S mtx -f /dev$each status | sudo -u root -S grep "Loaded"; done >>/tmp/mhvtl.act.tmp'); | ||
$ACTIVITY=`sudo -u root -S cat /tmp/mhvtl.act.tmp| grep -v mediumx`; | ||
$cmdout2 = shell_exec ('sudo -u root -S cat /tmp/mhvtl.act.tmp| grep -v mediumx| cut -d ":" -f2,3|cut -c5- | while read eachone; do echo "<FONT COLOR=#FFFF00>Testing, Please Wait ...</FONT><br><br> <img src=images/test.animated_dot.gif align=top />" "<FONT COLOR=#00FFFF>$eachone</FONT>" ; done'); | ||
$output1=`if [ ! -z "$ACTIVITY" ] ; then echo "$cmdout2" ;fi`; | ||
$output = shell_exec('cat /tmp/mhvtl.quick.test.tmp'); | ||
$output2=`if [ ! -z "$ACTIVITY" ] ; then sudo -u root -S cat /tmp/mhvtl.act.tmp| awk 'BEGIN{RS="mediumx" } /Data Transfer Element/' ;else echo "<FONT COLOR=#008000></FONT><br><pre><FONT COLOR=#FFFFFF>$output</FONT></pre>";fi`; | ||
|
||
echo "<pre><b><FONT COLOR=#FFFFFF>$output1</FONT></b></pre>"; | ||
echo "<pre><b><FONT COLOR=#FFFFFF>$output2</FONT></b></pre>"; | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<html> | ||
<head><title>MHVTL Web Console</title></head> | ||
<link href="styles.css" rel="stylesheet" type="text/css"> | ||
<body> | ||
|
||
<script type="text/javascript"> | ||
var ray={ | ||
ajax:function(st) | ||
{ | ||
this.show('load'); | ||
}, | ||
show:function(el) | ||
{ | ||
this.getID(el).style.display=''; | ||
}, | ||
getID:function(el) | ||
{ | ||
return document.getElementById(el); | ||
} | ||
} | ||
</script> | ||
|
||
|
||
<script type="text/javascript"> | ||
|
||
function Ajax() | ||
{ | ||
var | ||
$http, | ||
$self = arguments.callee; | ||
|
||
if (window.XMLHttpRequest) { | ||
$http = new XMLHttpRequest(); | ||
} else if (window.ActiveXObject) { | ||
try { | ||
$http = new ActiveXObject('Msxml2.XMLHTTP'); | ||
} catch(e) { | ||
$http = new ActiveXObject('Microsoft.XMLHTTP'); | ||
} | ||
} | ||
|
||
if ($http) { | ||
$http.onreadystatechange = function() | ||
{ | ||
if (/4|^complete$/.test($http.readyState)) { | ||
document.getElementById('ReloadThis').innerHTML = $http.responseText; | ||
setTimeout(function(){$self();}, 100); | ||
} | ||
}; | ||
$http.open('GET', 'act.test.php' + '?' + new Date().getTime(), true); | ||
$http.send(null); | ||
} | ||
|
||
} | ||
|
||
</script> | ||
<script type="text/javascript"> | ||
setTimeout(function() {Ajax();}, 100); | ||
</script> | ||
|
||
<div id="ReloadThis" > | ||
<?php | ||
include 'act.test.php' ; | ||
?> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<html> | ||
<head><title>MHVTL</title></head> | ||
<link href="styles.css" rel="stylesheet" type="text/css"> | ||
<body> | ||
<hr width="100%" size=10 color="blue"> | ||
<b><font color=purple size=3>Misc Tools</font><b> | ||
<hr width="100%" size=1 color="blue"> | ||
|
||
|
||
<tr> | ||
<td align=left valign=middle> | ||
<img src="images/operation.png" > | ||
</td> | ||
</tr> | ||
|
||
<?php | ||
echo "<pre><b>Empty :</b></pre>"; | ||
?> | ||
|
||
<hr width="100%" size=1 color="blue"> | ||
|
||
This function is currently not implemented | ||
|
||
<hr width="100%" size=1 color="blue"> | ||
<br> | ||
<input type="submit"></form> | ||
<FORM ACTION="form.patch.mhvtl.php"> | ||
<INPUT TYPE=SUBMIT VALUE="Return"> | ||
</FORM> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.