mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
patch login & device pages
This commit is contained in:
@@ -166,7 +166,7 @@ foreach (dbFetchRows($sql, $param) as $device) {
|
|||||||
$port_count = dbFetchCell('SELECT COUNT(*) FROM `ports` WHERE `device_id` = ?', array($device['device_id']));
|
$port_count = dbFetchCell('SELECT COUNT(*) FROM `ports` WHERE `device_id` = ?', array($device['device_id']));
|
||||||
$sensor_count = dbFetchCell('SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ?', array($device['device_id']));
|
$sensor_count = dbFetchCell('SELECT COUNT(*) FROM `sensors` WHERE `device_id` = ?', array($device['device_id']));
|
||||||
|
|
||||||
$actions = ('<div class="row">
|
$actions = ('<div class="container-fluid"><div class="row">
|
||||||
<div class="col-xs-1">');
|
<div class="col-xs-1">');
|
||||||
$actions .= '<a href="'.generate_device_url($device).'"> <img src="images/16/server.png" border="0" align="absmiddle" alt="View device" title="View device" /></a> ';
|
$actions .= '<a href="'.generate_device_url($device).'"> <img src="images/16/server.png" border="0" align="absmiddle" alt="View device" title="View device" /></a> ';
|
||||||
$actions .= ('</div>
|
$actions .= ('</div>
|
||||||
@@ -190,7 +190,7 @@ foreach (dbFetchRows($sql, $param) as $device) {
|
|||||||
<div class="col-xs-1">
|
<div class="col-xs-1">
|
||||||
<a href="https://'.$device['hostname'].'"><img src="images/16/http.png" alt="https" title="Launch browser https://'.$device['hostname'].'" border="0" width="16" height="16" target="_blank"></a>
|
<a href="https://'.$device['hostname'].'"><img src="images/16/http.png" alt="https" title="Launch browser https://'.$device['hostname'].'" border="0" width="16" height="16" target="_blank"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>');
|
</div></div>');
|
||||||
|
|
||||||
$hostname = generate_device_link($device);
|
$hostname = generate_device_link($device);
|
||||||
$platform = $device['hardware'].'<br />'.$device['features'];
|
$platform = $device['hardware'].'<br />'.$device['features'];
|
||||||
|
|||||||
+14
-10
@@ -5,38 +5,42 @@ if( $config['twofactor'] && isset($twofactorform) ) {
|
|||||||
else {
|
else {
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-4"></div>
|
<div class="col-md-offset-4 col-md-4">
|
||||||
<div class="col-md-4">
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h3 class="panel-title">
|
<h3 class="panel-title">
|
||||||
<center>
|
<center>
|
||||||
<img src="images/librenms_logo_light.png">
|
<img src="images/librenms_logo_light.png">
|
||||||
</center></h3>
|
</center>
|
||||||
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<form class="form-horizontal" role="form" action="" method="post" name="logonform">
|
<form class="form-horizontal" role="form" action="" method="post" name="logonform">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
<input type="text" name="username" id="username" class="form-control" placeholder="Username" required autofocus />
|
<input type="text" name="username" id="username" class="form-control" placeholder="Username" required autofocus />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
<input type="password" name="password" id="password" class="form-control" placeholder="Password" />
|
<input type="password" name="password" id="password" class="form-control" placeholder="Password" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
<label class="checkbox">
|
<div class="checkbox">
|
||||||
|
<label>
|
||||||
<input type="checkbox" name="remember" id="remember" /> Remember me.
|
<input type="checkbox" name="remember" id="remember" /> Remember me.
|
||||||
</label>
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<div class="col-md-12">
|
||||||
<button type="submit" class="btn btn-default btn-block" name="submit" type="submit">Login</button>
|
<button type="submit" class="btn btn-default btn-block" name="submit" type="submit">Login</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
if (isset($auth_message)) {
|
if (isset($auth_message)) {
|
||||||
$msg_box[] = array('type'=>'error','message'=>$auth_message,'title'=>'Login error');
|
$msg_box[] = array('type'=>'error','message'=>$auth_message,'title'=>'Login error');
|
||||||
|
|||||||
Reference in New Issue
Block a user