Use relative instead of absolute URLs in webadmin

This should make it possible to use webadmin together with apache's mod_proxy.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1253 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-10-17 16:27:18 +00:00
parent f8462bffdd
commit aca6783f6f
12 changed files with 48 additions and 48 deletions
+7 -7
View File
@@ -3,7 +3,7 @@
<head>
<title>ZNC - <?VAR Title ESC=HTML?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
@@ -15,15 +15,15 @@
<div id="sidebar">
<ul class="nav">
<li><a href="/home">Home</a></li>
<li><a href="home">Home</a></li>
<? IF IsAdmin ?>
<li><a href="/settings">Settings</a></li>
<li><a href="/adduser">Add User</a></li>
<li><a href="/listusers">Edit Users</a></li>
<li><a href="settings">Settings</a></li>
<li><a href="adduser">Add User</a></li>
<li><a href="listusers">Edit Users</a></li>
<? ELSE ?>
<li><a href="/edituser">My Settings</a></li>
<li><a href="edituser">My Settings</a></li>
<? ENDIF ?>
<li><a href="/switchuser">Switch User</a></li>
<li><a href="switchuser">Switch User</a></li>
</ul>
</div>
@@ -1,6 +1,6 @@
<? INC Header.tmpl ?>
<?IF !UserLoop?>
There are no users defined. Click <a href="/adduser">here</a> if you would like to add one.
There are no users defined. Click <a href="adduser">here</a> if you would like to add one.
<?ELSE?>
<table>
<thead>
@@ -17,8 +17,8 @@
<tr class="<?IF __EVEN__?>evenrow<?ELSE?>oddrow<?ENDIF?>">
<td>
<span class="nowrap">
[<a href="/edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
<? IF !IsSelf ?>[<a href="/deluser?user=<?VAR Username ESC=URL?>" onClick="return confirm('Do you really wish to remove this user?');">Delete</a>]<? ENDIF ?>
[<a href="edituser?user=<?VAR Username ESC=URL?>">Edit</a>]
<? IF !IsSelf ?>[<a href="deluser?user=<?VAR Username ESC=URL?>" onClick="return confirm('Do you really wish to remove this user?');">Delete</a>]<? ENDIF ?>
</span>
</td>
<td><? VAR Username ESC=HTML ?></td>
+2 -2
View File
@@ -139,7 +139,7 @@
<table>
<thead>
<tr>
<td>[<a href="/addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
<td>[<a href="addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
<? IF ChannelLoop ?>
<td>Save</td>
<td>Name</td>
@@ -157,7 +157,7 @@
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
<td>
<input type="hidden" name="channel" value="<? VAR Name ESC=HTML ?>" />
[<a href="/editchan?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="/delchan?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>">Del</a>]
[<a href="editchan?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&amp;name=<? VAR Name ESC=URL ?>">Del</a>]
</td>
<td><input type="checkbox" name="save_<? VAR Name ESC=HTML ?>"<? IF InConfig ?> checked="checked"<? ENDIF ?> /></td>
<td><? VAR Name ESC=HTML ?></td>