-
-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from cytopia/release-0.10
Release v0.10
- Loading branch information
Showing
33 changed files
with
714 additions
and
234 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php require '../config.php'; ?> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<?php echo loadClass('Html')->getHead(); ?> | ||
</head> | ||
|
||
<body> | ||
<?php echo loadClass('Html')->getNavbar(); ?> | ||
|
||
<div class="container"> | ||
|
||
<h1>MongoDB Databases</h1> | ||
<br/> | ||
<br/> | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
|
||
<?php if (!loadClass('Mongo')->isAvailable()): ?> | ||
<p>MongoDB container is not running.</p> | ||
<?php else: ?> | ||
<table class="table table-striped "> | ||
<thead class="thead-inverse "> | ||
<tr> | ||
<th>Name</th> | ||
<th>Size</th> | ||
<th>Empty</th> | ||
</th> | ||
</thead> | ||
<tbody> | ||
<?php foreach (loadClass('Mongo')->getDatabases() as $db): ?> | ||
<tr> | ||
<td><?php echo $db['name'];?></td> | ||
<td><?php echo round($db['size']/(1024*1024), 2);?> MB</td> | ||
<td><?php echo $db['empty'];?></td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<?php endif; ?> | ||
|
||
</div> | ||
</div> | ||
|
||
</div><!-- /.container --> | ||
|
||
<?php echo loadClass('Html')->getFooter(); ?> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php require '../config.php'; ?> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<?php echo loadClass('Html')->getHead(); ?> | ||
</head> | ||
|
||
<body> | ||
<?php echo loadClass('Html')->getNavbar(); ?> | ||
|
||
<div class="container"> | ||
|
||
<h1>MongoDB Info</h1> | ||
<br/> | ||
<br/> | ||
|
||
<div class="row"> | ||
<div class="col-md-12"> | ||
|
||
<?php if (!loadClass('Mongo')->isAvailable()): ?> | ||
<p>MongoDB container is not running.</p> | ||
<?php else: ?> | ||
<table class="table table-striped"> | ||
<thead class="thead-inverse"> | ||
<tr> | ||
<th>Variable</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach (loadClass('Mongo')->getInfo() as $key => $val): ?> | ||
<tr> | ||
<td><?php print_r($key);?></td> | ||
<td class="break-word"><pre><?php print_r($val);?></pre></td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<?php endif; ?> | ||
|
||
</div> | ||
</div> | ||
|
||
</div><!-- /.container --> | ||
|
||
<?php echo loadClass('Html')->getFooter(); ?> | ||
</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
Oops, something went wrong.