remove more base_url

git-svn-id: http://www.observium.org/svn/observer/trunk@2490 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-09-17 19:07:42 +00:00
parent 448dcaa939
commit ab8471158c
4 changed files with 6 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ if ($if_list)
if (dbFetchCell("SELECT count(*) FROM mac_accounting WHERE interface_id = ?", array($interface['interface_id'])))
{
echo("<span style='float: right;'><a href='".$config['base_url']."/device/".$interface['device_id']."/port/".$interface['interface_id']."/macaccounting/'><img src='/images/16/chart_curve.png' align='absmiddle'> MAC Accounting</a></span>");
echo("<span style='float: right;'><a href='device/".$interface['device_id']."/port/".$interface['interface_id']."/macaccounting/'><img src='/images/16/chart_curve.png' align='absmiddle'> MAC Accounting</a></span>");
}
echo("</td></tr><tr bgcolor='$bg'><td>");

View File

@@ -36,7 +36,7 @@ if (passwordscanchange($_SESSION['username']))
{
echo("<div style='font-size: 18px; font-weight: bold; margin-bottom: 5px;'>Change Password</div>");
echo($changepass_message);
echo("<form method='post' action='".$config['base_url']."/preferences/'><input type=hidden name='action' value='changepass'>
echo("<form method='post' action='preferences/'><input type=hidden name='action' value='changepass'>
<table>
<tr><td>Old Password</td><td><input type=password name=old_pass autocomplete='off'></input></td></tr>
<tr><td>New Password</td><td><input type=password name=new_pass autocomplete='off'></input></td></tr>

View File

@@ -2,8 +2,8 @@
print_optionbar_start();
echo("<a href='".$config['base_url']."/pseudowires/'>Details</a> | Graphs :
<a href='".$config['base_url']."/pseudowires/graphs/mini/'>Mini</a>
echo("<a href='pseudowires/'>Details</a> | Graphs :
<a href='pseudowires/graphs/mini/'>Mini</a>
");
print_optionbar_end();
@@ -34,7 +34,7 @@ foreach (dbFetchRows("SELECT * FROM pseudowires AS P, ports AS I, devices AS D W
} else {
if ($bg == "ffffff") { $bg = "e5e5e5"; } else { $bg="ffffff"; }
echo("<tr style=\"background-color: #$bg;\"><td rowspan=2 style='font-size:18px; padding:4px;'>".$pw_a['cpwVcID']."</td><td>".generate_device_link($pw_a)."</td><td>".generate_port_link($pw_a)."</td>
<td rowspan=2> <img src='".$config['base_url']."/images/16/arrow_right.png'> </td>
<td rowspan=2> <img src='images/16/arrow_right.png'> </td>
<td>".generate_device_link($pw_b)."</td><td>".generate_port_link($pw_b)."</td></tr>");
echo("<tr style=\"background-color: #$bg;\"><td colspan=2>".$pw_a['ifAlias']."</td><td colspan=2>".$pw_b['ifAlias']."</td></tr>");

View File

@@ -17,7 +17,7 @@ foreach ($menu_options as $option => $text)
{
echo("<span class='pagemenu-selected'>");
}
echo('<a href="'.$config['base_url'].'/services/' . $option . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $text . '</a>');
echo('<a href="services/' . $option . ($_GET['optb'] ? '/' . $_GET['optb'] : ''). '/">' . $text . '</a>');
if ($_GET['opta'] == $option)
{
echo("</span>");