├── favicon.ico ├── vendor ├── made_mfm.png └── light_noise_diagonal.png ├── .gitattributes ├── README.md ├── config.ini.php ├── LICENSE ├── app.css ├── app.js ├── api.php └── index.php /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/totoCZ/MikroGlass/HEAD/favicon.ico -------------------------------------------------------------------------------- /vendor/made_mfm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/totoCZ/MikroGlass/HEAD/vendor/made_mfm.png -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set default behaviour, in case users don't have core.autocrlf set. 2 | * text=auto -------------------------------------------------------------------------------- /vendor/light_noise_diagonal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/totoCZ/MikroGlass/HEAD/vendor/light_noise_diagonal.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [](http://unmaintained.tech/) 2 | [Wiki page](https://github.com/TomHetmer/MikroGlass/wiki) 3 | === 4 | -------------------------------------------------------------------------------- /config.ini.php: -------------------------------------------------------------------------------- 1 | ; Download" 15 | 16 | [login] 17 | user=mguser270114 18 | 19 | ; only for putty link 20 | ; leave empty for ssh on linux 21 | password= 22 | 23 | [servers] 24 | fqdn[0]=193.187.80.16 25 | fqdn[1]=demo.mt.lv 26 | fqdn[2]=demo2.mt.lv 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Tomáš Hetmer 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /app.css: -------------------------------------------------------------------------------- 1 | .dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-submenu:hover>a,.dropdown-submenu:focus>a, .navbar ul li a:hover { 2 | background-image: none; 3 | background-color: #d43f3a; 4 | } 5 | 6 | footer { 7 | border-top: 1px solid #e5e5e5; 8 | color: #777; 9 | padding-top: 19px; 10 | } 11 | 12 | .jumbotron h1 { 13 | color: #d43f3a; 14 | font-family: "Josefin Sans"; 15 | } 16 | 17 | .jumbotron h1 { 18 | font-size: 50px; 19 | } 20 | 21 | .mfm { 22 | height: 50px; 23 | position: absolute; 24 | top: 2px; 25 | right: 40px; 26 | border: 0; 27 | } 28 | 29 | @media (min-width: 768px) { 30 | .mfm { right: 2px; } 31 | } 32 | 33 | 34 | .navbar-nav > .active > a,.navbar-nav > .active > a:hover { 35 | background-color: #d43f3a; 36 | color: #eee; 37 | } 38 | 39 | .ug-navbar { 40 | background-color: #d43f3a; 41 | border-bottom: 3px solid #eee; 42 | color: #FFF; 43 | } 44 | 45 | .ug-navbar a,.ug-navbar li a { 46 | border-top: 3px solid #d43f3a; 47 | color: #FFF; 48 | } 49 | 50 | .ug-navbar a:hover,.ug-navbar li a:hover,.ug-navbar li.active a { 51 | border-top: 3px solid #eee; 52 | color: #eee; 53 | } 54 | 55 | body { 56 | font-family: "Droid Sans"; 57 | background: url('vendor/light_noise_diagonal.png'); 58 | } -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | var currentServer = 0; 2 | var currentAction = 'ping'; 3 | 4 | function selectServer(id) { 5 | $('.command').html('Locked on ' + $('.server-' + id).text()); 6 | currentServer = id; 7 | $('.server').removeClass('active'); 8 | $('.server-' + id).addClass('active'); 9 | } 10 | 11 | function quick(type) { 12 | post(currentServer, type); 13 | } 14 | 15 | function switchAction(action) { 16 | prevAction = currentAction; 17 | currentAction = action; 18 | 19 | if (currentAction == 'route' && prevAction != 'route') { 20 | $('#form #fqdn').val(''); 21 | } 22 | if (currentAction != 'route' && prevAction == 'route') { 23 | $('#form #fqdn').val(''); 24 | } 25 | 26 | if (currentAction == 'route') { 27 | $('#btnText').html('BGP Route'); 28 | $('#fqdn').attr('placeholder', 'ip address'); 29 | } else { 30 | $('#fqdn').attr('placeholder', 'ip address or domain name'); 31 | } 32 | 33 | if (currentAction == 'ping') { 34 | $('#btnText').html('Ping IPV4'); 35 | } 36 | 37 | if (currentAction == 'trace') { 38 | $('#btnText').html('Traceroute IPV4'); 39 | } 40 | if (currentAction == 'ping6') { 41 | $('#btnText').html('Ping IPV6'); 42 | } 43 | 44 | if (currentAction == 'trace6') { 45 | $('#btnText').html('Traceroute IPV6'); 46 | } 47 | 48 | if($('#form #fqdn').val() != "") { 49 | post(currentServer, currentAction, $('#form #fqdn').val()); 50 | } 51 | } 52 | 53 | function post(id, type, command) { 54 | $('.command').fadeOut(); 55 | 56 | $.ajax({ 57 | type: 'POST', 58 | url: './api.php', 59 | data: { 60 | id: id, 61 | type: type, 62 | command: command 63 | }, 64 | dataType: 'json', 65 | timeout: 30000, 66 | context: $('body'), 67 | success: function(data) { 68 | if (data.error) 69 | alert('Error: ' + data.error) 70 | else { 71 | $('.command').html(data.command).fadeIn(); 72 | $('.result').prepend(data.result); 73 | $('.result').prepend('
48 |
49 | 59 | You have connected to a looking glass server operated by . 60 |
61 | 62 |Awaiting instructions.117 | 118 | 123 | 124 |