mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
vastly simplified .htaccess and cleaned up how we use variables a little
git-svn-id: http://www.observium.org/svn/observer/trunk@2446 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -19,7 +19,7 @@ if ($_SESSION['userlevel'] >= "7")
|
||||
|
||||
echo("<span style='font-weight: bold;'>Config</span> » ");
|
||||
|
||||
if (!$_GET['opta']) {
|
||||
if (!$_GET['optc']) {
|
||||
echo('<span class="pagemenu-selected">');
|
||||
echo("<a href='device/".$device['device_id']."/showconfig/'> Latest</a>");
|
||||
echo("</span>");
|
||||
@@ -38,10 +38,10 @@ if ($_SESSION['userlevel'] >= "7")
|
||||
echo($sep);
|
||||
$revlist[] = $svnlog["rev"];
|
||||
|
||||
if ($_GET['opta'] == $svnlog["rev"]) { echo('<span class="pagemenu-selected">'); }
|
||||
if ($_GET['optc'] == $svnlog["rev"]) { echo('<span class="pagemenu-selected">'); }
|
||||
|
||||
echo("<a href='device/".$device['device_id']."/showconfig/" . $svnlog["rev"] . "/'> r" . $svnlog["rev"] ." <small>". date("d M H:i", strtotime($svnlog["date"])) . "</small></a>");
|
||||
if ($_GET['opta'] == $svnlog["rev"]) { echo("</span>"); }
|
||||
if ($_GET['optc'] == $svnlog["rev"]) { echo("</span>"); }
|
||||
|
||||
$sep = " | ";
|
||||
}
|
||||
@@ -49,8 +49,8 @@ if ($_SESSION['userlevel'] >= "7")
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
if (function_exists('svn_log') && in_array($_GET['opta'], $revlist)) {
|
||||
list($diff, $errors) = svn_diff($file, $_GET['opta']-1, $file, $_GET['opta']);
|
||||
if (function_exists('svn_log') && in_array($_GET['optc'], $revlist)) {
|
||||
list($diff, $errors) = svn_diff($file, $_GET['optc']-1, $file, $_GET['optc']);
|
||||
if (!$diff) {
|
||||
$text = "No Difference";
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user