Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
5312470e
Commit
5312470e
authored
Jun 27, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: Unifiy web/ code
parent
b10406df
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
74 deletions
+42
-74
admin/includes/web-page.xsl
admin/includes/web-page.xsl
+30
-0
web/auth.xsl
web/auth.xsl
+4
-25
web/server_version.xsl
web/server_version.xsl
+4
-25
web/status.xsl
web/status.xsl
+4
-24
No files found.
admin/includes/web-page.xsl
0 → 100644
View file @
5312470e
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
xmlns=
"http://www.w3.org/1999/xhtml"
>
<xsl:output
omit-xml-declaration=
"no"
method=
"xml"
doctype-public=
"-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent=
"yes"
encoding=
"UTF-8"
/>
<!-- Import include files -->
<xsl:template
match=
"/node()"
>
<html>
<head>
<title><xsl:value-of
select=
"$title"
/>
— Icecast Streaming Media Server
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style.css"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=yes"
/>
</head>
<body>
<h1
id=
"header"
>
Icecast
<xsl:value-of
select=
"$title"
/></h1>
<!--index header menu -->
<div
id=
"menu"
>
<ul>
<li><a
href=
"admin/"
>
Administration
</a></li>
<li><a
href=
"status.xsl"
>
Server Status
</a></li>
<li><a
href=
"server_version.xsl"
>
Version
</a></li>
</ul>
</div>
<!--end index header menu -->
<xsl:call-template
name=
"content"
namespace=
"http://www.w3.org/1999/xhtml"
/>
<div
id=
"footer"
>
Support icecast development at
<a
href=
"http://www.icecast.org"
>
www.icecast.org
</a>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
web/auth.xsl
View file @
5312470e
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
>
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
xmlns=
"http://www.w3.org/1999/xhtml"
>
<xsl:output
omit-xml-declaration=
"no"
method=
"xml"
doctype-public=
"-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent=
"yes"
encoding=
"UTF-8"
/>
<xsl:template
match =
"/icestats"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<title>
Icecast Streaming Media Server
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style.css"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=yes"
/>
</head>
<body>
<h1
id=
"header"
>
Icecast2 Status
</h1>
<!--index header menu -->
<div
id=
"menu"
>
<ul>
<li><a
href=
"admin/"
>
Administration
</a></li>
<li><a
href=
"status.xsl"
>
Server Status
</a></li>
<li><a
href=
"server_version.xsl"
>
Version
</a></li>
</ul>
</div>
<!--end index header menu -->
<h2>
Authorization Page
</h2>
<xsl:include
href=
"includes/web-page.xsl"
/>
<xsl:variable
name=
"title"
>
Authorization Page
</xsl:variable>
<xsl:template
name=
"content"
>
<xsl:for-each
select=
"source"
>
<xsl:choose>
<xsl:when
test=
"listeners"
>
...
...
@@ -50,10 +34,5 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<div
id=
"footer"
>
Support icecast development at
<a
href=
"http://www.icecast.org"
>
www.icecast.org
</a>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
web/server_version.xsl
View file @
5312470e
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
>
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
xmlns=
"http://www.w3.org/1999/xhtml"
>
<xsl:output
omit-xml-declaration=
"no"
method=
"xml"
doctype-public=
"-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent=
"yes"
encoding=
"UTF-8"
/>
<xsl:template
match =
"/icestats"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<title>
Icecast Streaming Media Server
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style.css"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=yes"
/>
</head>
<body>
<h1
id=
"header"
>
Server Information
</h1>
<!--index header menu -->
<div
id=
"menu"
>
<ul>
<li><a
href=
"admin/"
>
Administration
</a></li>
<li><a
href=
"status.xsl"
>
Server Status
</a></li>
<li><a
href=
"server_version.xsl"
>
Version
</a></li>
</ul>
</div>
<!--end index header menu -->
<xsl:include
href=
"includes/web-page.xsl"
/>
<xsl:variable
name=
"title"
>
Server Information
</xsl:variable>
<xsl:template
name=
"content"
>
<div
class=
"roundbox"
>
<h3>
Server Information
</h3>
<table
class=
"yellowkeys"
>
...
...
@@ -64,10 +48,5 @@
</tbody>
</table>
</div>
<div
id=
"footer"
>
Support icecast development at
<a
href=
"http://www.icecast.org"
>
www.icecast.org
</a>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
web/status.xsl
View file @
5312470e
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
>
<xsl:stylesheet
xmlns:xsl =
"http://www.w3.org/1999/XSL/Transform"
version =
"1.0"
xmlns=
"http://www.w3.org/1999/xhtml"
>
<xsl:output
omit-xml-declaration=
"no"
method=
"xml"
doctype-public=
"-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system=
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent=
"yes"
encoding=
"UTF-8"
/>
<xsl:template
match =
"/icestats"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<title>
Icecast Streaming Media Server
</title>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"style.css"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, user-scalable=yes"
/>
</head>
<body>
<h1
id=
"header"
>
Icecast2 Status
</h1>
<!--index header menu -->
<div
id=
"menu"
>
<ul>
<li><a
href=
"admin/"
>
Administration
</a></li>
<li><a
href=
"status.xsl"
>
Server Status
</a></li>
<li><a
href=
"server_version.xsl"
>
Version
</a></li>
</ul>
</div>
<!--end index header menu -->
<xsl:include
href=
"includes/web-page.xsl"
/>
<xsl:variable
name=
"title"
>
Status
</xsl:variable>
<xsl:template
name=
"content"
>
<xsl:text
disable-output-escaping=
"yes"
>
<
!-- WARNING:
DO NOT ATTEMPT TO PARSE ICECAST HTML OUTPUT!
...
...
@@ -180,10 +165,5 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<div
id=
"footer"
>
Support icecast development at
<a
href=
"http://www.icecast.org"
>
www.icecast.org
</a>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment