forked from Terrorhawk/Capri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
50 lines (46 loc) · 1.17 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|LF_STANDARD|
|?TREE=|
|HTM_HEADER|
|HTM_CONFIG|
<div id="widthphp" style="display: none;">
|$|SK_PHP|
<?php
$text = <<<EOF
|TEXT|
EOF;
$result = <<<EOF
|RESULT|
EOF;
$refferr='|COMMAND|';
if(strlen($result)>3) {
$res = $result;
}
$all = strtolower($text.$result);
if(strstr($all,'error') || strstr($all,'not')) {
$type="error";
}
if(strstr($all,'success') || strstr($all,'created') || strstr($all,'restores') || strstr($all,'added') || strstr($all,'deleted') || strstr($all,'changed') || strstr($all,'modified') || strstr($all,'updated')
|| strstr($all,'removed') || strstr($all,'applied')) {
$type="succ2";
}
echo '<div id="result" class="'.$type.'"><a class=tree href="'.$refferr.'">'.$text.'</a></div></a>';
if($res) { echo '<div id="resultDetails" class="'.$type.'">'.$res.'</div>'; }
?>
DONE|
</div>
<div id="widthoutphp" style="display: none;">
<div id="result2">|TEXT|</div>
<div id="resultDetails2">|RESULT|</div>
</div>
<script language="JavaScript" type="text/javascript">
<!--
$(function(){
$("#widthphp").show();
$("#widthphp:contains('cannot find file')").each(function(){
$(this).hide();
$("#widthoutphp").show();
});
});
//-->
</script>
|HTM_FOOTER|