mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
<title>ZNC - Webadmin module - <?VAR Title ESC=HTML?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -22,7 +22,7 @@
|
||||
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="padding-left: 5px;"><b>Logged in as:</b> <?VAR SessionUser ESC=HTML?> <i>(from: <?VAR SessionIP ESC=HTML?>)</i></td>
|
||||
<td class="switchuser"><a href="/switchuser">Logout</a></td>
|
||||
<td class="switchuser"><a href="switchuser">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -35,22 +35,22 @@
|
||||
<td class="menu">
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "home" ?>in<? ENDIF ?>active"><a href="/home">Home</a></td>
|
||||
<td class="menu<? IF Action != "home" ?>in<? ENDIF ?>active"><a href="home">Home</a></td>
|
||||
</tr>
|
||||
|
||||
<? IF IsAdmin ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "settings" ?>in<? ENDIF ?>active"><a href="/settings">Settings</a></td>
|
||||
<td class="menu<? IF Action != "settings" ?>in<? ENDIF ?>active"><a href="settings">Settings</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "adduser" ?>in<? ENDIF ?>active"><a href="/adduser">Add User</a></td>
|
||||
<td class="menu<? IF Action != "adduser" ?>in<? ENDIF ?>active"><a href="adduser">Add User</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "listusers" && Action != "edituser" ?>in<? ENDIF ?>active"><a href="/listusers">List Users</a></td>
|
||||
<td class="menu<? IF Action != "listusers" && Action != "edituser" ?>in<? ENDIF ?>active"><a href="listusers">List Users</a></td>
|
||||
</tr>
|
||||
<? ELSE ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "edituser" ?>in<? ENDIF ?>active"><a href="/edituser">My Settings</a></td>
|
||||
<td class="menu<? IF Action != "edituser" ?>in<? ENDIF ?>active"><a href="edituser">My Settings</a></td>
|
||||
</tr>
|
||||
<? ENDIF ?>
|
||||
</table>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<?IF !UserLoop?>
|
||||
There are no users defined.<br>
|
||||
Click <a href="/adduser">here</a>, if you would like to add one.
|
||||
Click <a href="adduser">here</a>, if you would like to add one.
|
||||
<?ELSE?>
|
||||
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
@@ -18,8 +18,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><b><? VAR Username ESC=HTML ?></b></td>
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
<? IF Edit ?>
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">[<a href="/addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">[<a href="addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
|
||||
<? IF ChannelLoop ?>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Save</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
@@ -219,7 +219,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 ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="/delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="/delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&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>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
||||
<title>ZNC - Webadmin module - <?VAR Title ESC=HTML?></title>
|
||||
<link rel="stylesheet" type="text/css" href="/css/main.css">
|
||||
<link rel="stylesheet" type="text/css" href="css/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -22,7 +22,7 @@
|
||||
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td style="padding-left: 5px;"><b>Logged in as:</b> <?VAR SessionUser ESC=HTML?> <i>(from: <?VAR SessionIP ESC=HTML?>)</i></td>
|
||||
<td class="switchuser"><a href="/switchuser">Logout</a></td>
|
||||
<td class="switchuser"><a href="switchuser">Logout</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -35,22 +35,22 @@
|
||||
<td class="menu">
|
||||
<table width="100%" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "home" ?>in<? ENDIF ?>active"><a href="/home">Home</a></td>
|
||||
<td class="menu<? IF Action != "home" ?>in<? ENDIF ?>active"><a href="home">Home</a></td>
|
||||
</tr>
|
||||
|
||||
<? IF IsAdmin ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "settings" ?>in<? ENDIF ?>active"><a href="/settings">Settings</a></td>
|
||||
<td class="menu<? IF Action != "settings" ?>in<? ENDIF ?>active"><a href="settings">Settings</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "adduser" ?>in<? ENDIF ?>active"><a href="/adduser">Add User</a></td>
|
||||
<td class="menu<? IF Action != "adduser" ?>in<? ENDIF ?>active"><a href="adduser">Add User</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "listusers" && Action != "edituser" ?>in<? ENDIF ?>active"><a href="/listusers">List Users</a></td>
|
||||
<td class="menu<? IF Action != "listusers" && Action != "edituser" ?>in<? ENDIF ?>active"><a href="listusers">List Users</a></td>
|
||||
</tr>
|
||||
<? ELSE ?>
|
||||
<tr>
|
||||
<td class="menu<? IF Action != "edituser" ?>in<? ENDIF ?>active"><a href="/edituser">My Settings</a></td>
|
||||
<td class="menu<? IF Action != "edituser" ?>in<? ENDIF ?>active"><a href="edituser">My Settings</a></td>
|
||||
</tr>
|
||||
<? ENDIF ?>
|
||||
</table>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<?IF !UserLoop?>
|
||||
There are no users defined.<br>
|
||||
Click <a href="/adduser">here</a>, if you would like to add one.
|
||||
Click <a href="adduser">here</a>, if you would like to add one.
|
||||
<?ELSE?>
|
||||
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
@@ -18,8 +18,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><b><? VAR Username ESC=HTML ?></b></td>
|
||||
|
||||
@@ -202,7 +202,7 @@
|
||||
<? IF Edit ?>
|
||||
<table width="98%" cellpadding="0" cellspacing="0" style="border: 1px solid #000000;" align="center">
|
||||
<tr>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">[<a href="/addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
|
||||
<td width="100" class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">[<a href="addchan?user=<? VAR Username ESC=URL ?>">Add</a>]</td>
|
||||
<? IF ChannelLoop ?>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Save</td>
|
||||
<td class="main2title" style="border-bottom: 1px solid #000000; border-right: 1px solid #000000;">Name</td>
|
||||
@@ -219,7 +219,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 ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="/delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&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>
|
||||
|
||||
@@ -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>
|
||||
@@ -16,15 +16,15 @@
|
||||
<div id="gnav">
|
||||
<div id="nav">
|
||||
<ul id="menu">
|
||||
<li<? IF Action == "home" ?> class="on"<? ENDIF ?>><a href="/home">Home</a></li>
|
||||
<li<? IF Action == "home" ?> class="on"<? ENDIF ?>><a href="home">Home</a></li>
|
||||
<? IF IsAdmin ?>
|
||||
<li<? IF Action == "settings" ?> class="on"<? ENDIF ?>><a href="/settings">Settings</a></li>
|
||||
<li<? IF Action == "adduser" ?> class="on"<? ENDIF ?>><a href="/adduser">Add User</a></li>
|
||||
<li<? IF Action == "listusers" || Action == "edituser" ?> class="on"<? ENDIF ?>><a href="/listusers">Edit Users</a></li>
|
||||
<li<? IF Action == "settings" ?> class="on"<? ENDIF ?>><a href="settings">Settings</a></li>
|
||||
<li<? IF Action == "adduser" ?> class="on"<? ENDIF ?>><a href="adduser">Add User</a></li>
|
||||
<li<? IF Action == "listusers" || Action == "edituser" ?> class="on"<? ENDIF ?>><a href="listusers">Edit Users</a></li>
|
||||
<? ELSE ?>
|
||||
<li<? IF Action == "edituser" ?> class="on"<? ENDIF ?>><a href="/edituser">My Settings</a></li>
|
||||
<li<? IF Action == "edituser" ?> class="on"<? ENDIF ?>><a href="edituser">My Settings</a></li>
|
||||
<? ENDIF ?>
|
||||
<li<? IF Action == "switchuser" ?> class="on"<? ENDIF ?>><a href="/switchuser">Switch User</a></li>
|
||||
<li<? IF Action == "switchuser" ?> class="on"<? ENDIF ?>><a href="switchuser">Switch User</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</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>
|
||||
|
||||
@@ -138,7 +138,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>
|
||||
@@ -156,7 +156,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 ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="/delchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Del</a>]
|
||||
[<a href="editchan?user=<? VAR Username ESC=URL ?>&name=<? VAR Name ESC=URL ?>">Edit</a>] [<a href="delchan?user=<? VAR Username ESC=URL ?>&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>
|
||||
|
||||
Reference in New Issue
Block a user