mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-19 04:11:46 +02:00
Add auth support to Playdar procol handling. Needs graphic design BADLY!
add part one of auth fix stage two of auth as well Fix API.
This commit is contained in:
64
data/www/auth.html
Normal file
64
data/www/auth.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Allow Tomahawk Access</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font: normal 12px 'Verdana', sans-serif;
|
||||
}
|
||||
a img,
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
a {
|
||||
color: #598d0c;
|
||||
}
|
||||
a#head {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 68px;
|
||||
background: #cbdab1;
|
||||
}
|
||||
div#content {
|
||||
margin: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
div#content p {
|
||||
margin: 0 0 25px 0;
|
||||
}
|
||||
input.button {
|
||||
border: 1px solid #999;
|
||||
padding: 4px 10px;
|
||||
border-color: #999 #555 #555 #999;
|
||||
background: #ddd;
|
||||
}
|
||||
input.confirm {
|
||||
background: #81bd0e;
|
||||
color: #fff;
|
||||
border-color: #6ba318 #426c0b #426c0b #6ba318;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a href="http://www.playdar.org/" title="Tomahawk - Powered by Playdar" id="head">
|
||||
<img alt="Tomahawk - Powered by Playdar" src="/static/playdar_auth_logo.gif" width="233" height="68"/>
|
||||
</a>
|
||||
|
||||
<div id="content">
|
||||
<form method="post" action="/auth_2/" id="auth">
|
||||
<p>Allow access to Tomahawk from <a href="<%WEBSITE%>"><%NAME%></a></p>
|
||||
<p class="buttons">
|
||||
<input type="button" value="Deny" class="button" onclick="window.close();" />
|
||||
<input type="submit" value="Allow" class="confirm button" />
|
||||
</p>
|
||||
<input type="hidden" name="formtoken" value="<%FORMTOKEN%>" />
|
||||
<input type="hidden" name="receiverurl" value="<%URL%>" />
|
||||
<input type="hidden" name="website" value="<%WEBSITE%>" />
|
||||
<input type="hidden" name="name" value="<%NAME%>" />
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
44
data/www/auth.na.html
Normal file
44
data/www/auth.na.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Allow Tomahawk Access</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font: normal 12px 'Verdana', sans-serif;
|
||||
}
|
||||
a img,
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
a {
|
||||
color: #598d0c;
|
||||
}
|
||||
a#head {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 68px;
|
||||
background: #cbdab1;
|
||||
}
|
||||
div#content {
|
||||
margin: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
div#content p {
|
||||
margin: 0 0 25px 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a href="http://www.playdar.org/" title="Tomahawk - Powered by Playdar" id="head">
|
||||
<img alt="Tomahawk - Powered by Playdar" src="/static/playdar_auth_logo.gif" width="233" height="68"/>
|
||||
</a>
|
||||
|
||||
<div id="content">
|
||||
<p>You have allowed access to Tomahawk from <a href="<%WEBSITE%>"><%NAME%></a></p>
|
||||
<p>Copy and paste this authentication <strong>token</strong> into the status bar then close this window.</p>
|
||||
<p>Token: <input type="text" value="<%AUTHCODE%>" size="35" onclick="this.focus(); this.select();" />
|
||||
</body>
|
||||
</html>
|
BIN
data/www/playdar_auth_logo.gif
Normal file
BIN
data/www/playdar_auth_logo.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user