implement wtv-favorites with huge help from @JarHead4
@@ -67,7 +67,7 @@ if (auth === true) {
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan=3 height=6>
|
<td colspan=3 height=6>
|
||||||
<tr>
|
<tr>
|
||||||
<td><!-- TODO -->
|
<td><a href="wtv-admin:/regenfavs">Restore Favs for User</a>
|
||||||
<td width = 10>
|
<td width = 10>
|
||||||
<td><!-- TODO -->
|
<td><!-- TODO -->
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
98
zefie_wtvp_minisrv/ServiceVault/wtv-admin/regenfavs.js
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var WTVAdmin = require("./WTVAdmin.js");
|
||||||
|
var wtva = new WTVAdmin(minisrv_config, ssid_sessions[socket.ssid], service_name);
|
||||||
|
var auth = wtva.isAuthorized();
|
||||||
|
if (auth === true) {
|
||||||
|
var password = null;
|
||||||
|
if (request_headers.Authorization) {
|
||||||
|
var authheader = request_headers.Authorization.split(' ');
|
||||||
|
if (authheader[0] == "Basic") {
|
||||||
|
password = Buffer.from(authheader[1], 'base64').toString();
|
||||||
|
if (password) password = password.split(':')[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (wtva.checkPassword(password)) {
|
||||||
|
if (request_headers.query.username) {
|
||||||
|
var user_info = wtva.getAccountInfo(request_headers.query.username.toLowerCase()); // username search
|
||||||
|
if (user_info) {
|
||||||
|
var userAccount = wtva.getAccountBySSID(user_info.ssid);
|
||||||
|
userAccount.switchUserID(user_info.user_id, false, false);
|
||||||
|
if (request_headers.query.folder) {
|
||||||
|
if (userAccount.favstore.favstoreExists()) {
|
||||||
|
if (userAccount.favstore.folderExists(request_headers.query.folder)) {
|
||||||
|
userAccount.favstore.deleteFolder(request_headers.query.folder);
|
||||||
|
}
|
||||||
|
userAccount.favstore.createTemplateFolder(request_headers.query.folder);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
headers = `200 OK
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-admin:/regenfavs
|
||||||
|
wtv-noback-all: wtv-admin:/regenfavs`;
|
||||||
|
data = `<html>
|
||||||
|
<body>
|
||||||
|
<display nosave nosend>
|
||||||
|
<title>${minisrv_config.config.service_name} Admin Tricks</title>
|
||||||
|
<sidebar width=20%>
|
||||||
|
<img src="wtv-tricks:/images/Favorites_bg.jpg">
|
||||||
|
</sidebar>
|
||||||
|
<body bgcolor="#0a0a0a" text="#CC1111" link="#ff55ff" vlink="#ff55ff" vspace=0>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<h1>${minisrv_config.config.service_name} Admin Tricks</h1>
|
||||||
|
<br>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 height=6>
|
||||||
|
<h3>Restore a default favorites folder for a User</h3>
|
||||||
|
<form action="wtv-admin:/regenfavs" method="POST">
|
||||||
|
<input type="text" name="username" value="${(request_headers.query.username) ? request_headers.query.username : ""}"> <input type="submit" value="Look Up User">
|
||||||
|
</form><br><br>`
|
||||||
|
if (request_headers.query.username) {
|
||||||
|
if (user_info && !request_headers.query.folder) {
|
||||||
|
if (userAccount.favstore.favstoreExists()) {
|
||||||
|
data += `<form action="wtv-admin:/regenfavs" method="POST">
|
||||||
|
<input type="hidden" name="username" value="${user_info.username}">
|
||||||
|
<select name="folder">`;
|
||||||
|
|
||||||
|
Object.keys(minisrv_config.favorites.folder_templates).forEach(function (k) {
|
||||||
|
data += `<option value="${k}">${k}</option`;
|
||||||
|
});
|
||||||
|
data += `</select>
|
||||||
|
<input type="submit" value="Restore Folder">
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
`
|
||||||
|
data += `</table>`;
|
||||||
|
} else {
|
||||||
|
data += `<strong>${user_info.username} has not initialized their favorites.</strong><br><br>`;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
data += `<strong>Successfully regenerated folder ${request_headers.query.folder} for user "${user_info.username}"</strong><br><br>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<tr>
|
||||||
|
</table>
|
||||||
|
<p align="right">
|
||||||
|
<a href="client:goback">Go Back</a>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
`;
|
||||||
|
} else {
|
||||||
|
var errpage = wtvshared.doErrorPage(401, "Please enter the administration password, you can leave the username blank.");
|
||||||
|
headers = errpage[0];
|
||||||
|
data = errpage[1];
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
var errpage = wtvshared.doErrorPage(403, auth);
|
||||||
|
headers = errpage[0];
|
||||||
|
data = errpage[1];
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 132 B |
|
After Width: | Height: | Size: 826 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 372 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 210 B |
|
After Width: | Height: | Size: 961 B |
|
After Width: | Height: | Size: 211 B |
|
After Width: | Height: | Size: 1006 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 257 B |
|
After Width: | Height: | Size: 7.3 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/ROMCache/fkey.gif
Normal file
|
After Width: | Height: | Size: 991 B |
45
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/add.js
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
function hex_to_ascii(POST)
|
||||||
|
{
|
||||||
|
var hex = POST.toString();
|
||||||
|
var str = '';
|
||||||
|
for (var n = 0; n < hex.length; n += 2) {
|
||||||
|
str += String.fromCharCode(parseInt(hex.substr(n, 2), 16));
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
|
var POST = request_headers.post_data;
|
||||||
|
var image = hex_to_ascii(POST);
|
||||||
|
|
||||||
|
var url = request_headers.request;
|
||||||
|
|
||||||
|
var title = url.split('favorite-title=')[1]
|
||||||
|
title = title.split('&')[0]
|
||||||
|
|
||||||
|
var folder = url.split('favorite-category=')[1]
|
||||||
|
folder = folder.split('&')[0]
|
||||||
|
folder = folder.replaceAll("+", " ")
|
||||||
|
|
||||||
|
var imagetype = url.split('favorite-thumbnail-type=')[1]
|
||||||
|
imagetype = imagetype.split('&')[0]
|
||||||
|
|
||||||
|
var favurl = url.split('favorite-url=')[1]
|
||||||
|
favurl = favurl.split('&')[0]
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
var favstore_exists = ssid_sessions[socket.ssid].favstore.favstoreExists();
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(folder);
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
if (favoritenum == minisrv_config.services[service_name].max_favorites_per_folder)
|
||||||
|
{
|
||||||
|
headers = `400 You can only have ${minisrv_config.services[service_name].max_favorites_per_folder} favorites in a folder. Discard some favorites or choose a different folder, then try again.`
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var createresult = ssid_sessions[socket.ssid].favstore.createFavorite(title, favurl, folder, image, imagetype);
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
wtv-expire: wtv-favorite:/serve-browser?favorite_folder_name=${folder}`
|
||||||
|
}
|
||||||
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/90s.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/Music.gif
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/Thumbs.db
Normal file
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/funlover.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/halen.gif
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 760 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/magnavox.gif
Normal file
|
After Width: | Height: | Size: 548 B |
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 429 B |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/news.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/oldnet.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/samsung.gif
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/canned/sony.gif
Normal file
|
After Width: | Height: | Size: 709 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,36 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.new_folder_name;
|
||||||
|
var favstore_exists = ssid_sessions[socket.ssid].favstore.favstoreExists();
|
||||||
|
var folder_exists = ssid_sessions[socket.ssid].favstore.folderExists(foldername);
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
if (foldername)
|
||||||
|
{
|
||||||
|
if (favstore_exists != true)
|
||||||
|
ssid_sessions[socket.ssid].favstore.createFavstore();
|
||||||
|
|
||||||
|
if (folder_exists != true)
|
||||||
|
{
|
||||||
|
if (folder_array.length < minisrv_config.services[service_name].max_folders)
|
||||||
|
{
|
||||||
|
//if (ssid_sessions[socket.ssid].favstore.checkFolderName(foldername) == true)
|
||||||
|
//{
|
||||||
|
ssid_sessions[socket.ssid].favstore.createFolder(foldername);
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
Location: wtv-favorite:/favorite
|
||||||
|
wtv-expire-all: wtv-favorite:`
|
||||||
|
//} else {
|
||||||
|
// headers = `400 That folder name is not valid. Choose a different name and try again.`
|
||||||
|
//}
|
||||||
|
} else {
|
||||||
|
headers = `400 You can only have ${minisrv_config.services[service_name].max_folders} folders at one time. Delete some folders and try again.`
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
headers = `400 That folder already exists. Choose a different name and try again.`
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
headers = `400 Please type a folder name.`
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var with_pictures = request_headers.query.with_pictures
|
||||||
|
|
||||||
|
if (with_pictures = "on")
|
||||||
|
{
|
||||||
|
ssid_sessions[socket.ssid].setSessionData("subscriber_fav_images", true)
|
||||||
|
} else {
|
||||||
|
ssid_sessions[socket.ssid].setSessionData("subscriber_fav_images", false)
|
||||||
|
}
|
||||||
|
ssid_sessions[socket.ssid].saveSessionData();
|
||||||
|
|
||||||
|
headers = `300 OK
|
||||||
|
Location: wtv-favorite:/favorite`
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
var errpage;
|
||||||
|
|
||||||
|
var query = request_headers.query
|
||||||
|
|
||||||
|
var discardAll = request_headers.query.DiscardAll
|
||||||
|
|
||||||
|
if (discardAll != "Discard All")
|
||||||
|
{
|
||||||
|
var strName, strValue ;
|
||||||
|
|
||||||
|
for(strName in query)
|
||||||
|
{
|
||||||
|
if (strName != "favorite_folder_name")
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
strName = strName.replaceAll("+", " ");
|
||||||
|
}
|
||||||
|
var folder = request_headers.query.favorite_folder_name;
|
||||||
|
if (request_headers.query.ForwardToBrowser)
|
||||||
|
{
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
Location: wtv-favorite:/serve-browser?favorite_folder_name=${folder}`
|
||||||
|
} else if (strName != "getCaseInsensitiveKey") {
|
||||||
|
var favorite = ssid_sessions[socket.ssid].favstore.getFavorite(folder, strName);
|
||||||
|
|
||||||
|
if (errpage) {
|
||||||
|
headers = errpage[0];
|
||||||
|
data = errpage[1];
|
||||||
|
} else {
|
||||||
|
if (!request_headers.query.confirm_remove) {
|
||||||
|
if (discardAll == "Discard All")
|
||||||
|
{
|
||||||
|
var message = `Are you sure you want to discard all favorites in this folder?`;
|
||||||
|
var removeurl = request_headers.request_url;
|
||||||
|
removeurl += "&confirm_remove=true&DiscardAll=Discard All";
|
||||||
|
} else {
|
||||||
|
var message = `Are you sure you want to discard <b>${favorite.title}</b>?`;
|
||||||
|
var removeurl = request_headers.request_url;
|
||||||
|
removeurl += "&confirm_remove=true";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var confirmAlert = new clientShowAlert({
|
||||||
|
'message': message,
|
||||||
|
'buttonlabel1': "Don't Remove",
|
||||||
|
'buttonaction1': "client:donothing",
|
||||||
|
'buttonlabel2': "Remove",
|
||||||
|
'buttonaction2': removeurl,
|
||||||
|
'noback': true,
|
||||||
|
}).getURL();
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:
|
||||||
|
wtv-visit: ${confirmAlert}
|
||||||
|
Location: ${confirmAlert}`
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var gourl = `wtv-favorite:/serve-discard-favorites?favorite_folder_name=${folder}`;
|
||||||
|
if (discardAll == "Discard All")
|
||||||
|
{
|
||||||
|
ssid_sessions[socket.ssid].favstore.clearFolder(folder);
|
||||||
|
} else {
|
||||||
|
ssid_sessions[socket.ssid].favstore.deleteFavorite(strName, folder);
|
||||||
|
}
|
||||||
|
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:
|
||||||
|
wtv-visit: ${gourl}
|
||||||
|
Location: ${gourl}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
Location: wtv-favorite:/serve-browser?favorite_folder_name=${folder}`
|
||||||
|
}
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
var errpage;
|
||||||
|
|
||||||
|
var query = request_headers.query
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
var totalfavorites = folder_array.length;
|
||||||
|
|
||||||
|
var strName, strValue ;
|
||||||
|
|
||||||
|
for(strName in query)
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
strName = strName.replaceAll("+", " ");
|
||||||
|
|
||||||
|
if (request_headers.query.ForwardToFolders)
|
||||||
|
{
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
Location: wtv-favorite:/favorite`
|
||||||
|
} else if (strName != "getCaseInsensitiveKey") {
|
||||||
|
var folder = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
var folderdata = ssid_sessions[socket.ssid].favstore.listFavorites(strName);
|
||||||
|
var numoffavorites = Object.keys(folderdata).length;
|
||||||
|
|
||||||
|
if (totalfavorites == 1) {
|
||||||
|
errpage = wtvshared.doErrorPage(400, "You cannot remove your last folder.");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (errpage) {
|
||||||
|
headers = errpage[0];
|
||||||
|
data = errpage[1];
|
||||||
|
} else {
|
||||||
|
if (!request_headers.query.confirm_remove) {
|
||||||
|
var message = '';
|
||||||
|
if (numoffavorites == 0) {
|
||||||
|
message = `Are you sure you want to remove <b>${strName}</b>?`;
|
||||||
|
} else {
|
||||||
|
message = `Removing <b>${strName}</b> will also remove the ${numoffavorites} favorites it contains.`;
|
||||||
|
}
|
||||||
|
var removeurl = request_headers.request_url;
|
||||||
|
removeurl += "&confirm_remove=true";
|
||||||
|
|
||||||
|
var confirmAlert = new clientShowAlert({
|
||||||
|
'message': message,
|
||||||
|
'buttonlabel1': "Don't Remove",
|
||||||
|
'buttonaction1': "client:donothing",
|
||||||
|
'buttonlabel2': "Remove",
|
||||||
|
'buttonaction2': removeurl,
|
||||||
|
'noback': true,
|
||||||
|
}).getURL();
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:
|
||||||
|
Location: ${confirmAlert}`
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var gourl = "wtv-favorite:/serve-discard-folders";
|
||||||
|
ssid_sessions[socket.ssid].favstore.deleteFolder(strName);
|
||||||
|
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:
|
||||||
|
Location: ${gourl}`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
Location: wtv-favorite:/serve-discard-folders`
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
var folder = request_headers.query.favorite_folder_name || null;
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(folder);
|
||||||
|
var error_occured = false;
|
||||||
|
if (!folder) error_occured = true;
|
||||||
|
else {
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
if (typeof request_headers.query.favoriteid === 'string') {
|
||||||
|
// one favorite
|
||||||
|
var favid = request_headers.query.favoriteid;
|
||||||
|
var favfolder = request_headers.query.favoritefolder;
|
||||||
|
if (folder != favfolder) ssid_sessions[socket.ssid].favstore.moveFavorite(folder, favfolder, favid);
|
||||||
|
} else {
|
||||||
|
if (request_headers.query.favoriteid.length == request_headers.query.favoritefolder.length) {
|
||||||
|
// both queries should have the same number of entries
|
||||||
|
Object.keys(request_headers.query.favoriteid).forEach(function (k) {
|
||||||
|
var favid = request_headers.query.favoriteid[k];
|
||||||
|
var favfolder = request_headers.query.favoritefolder[k];
|
||||||
|
if (folder != favfolder) ssid_sessions[socket.ssid].favstore.moveFavorite(folder, favfolder, favid);
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
error_occured = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!error_occured) {
|
||||||
|
var gourl = `wtv-favorite:/serve-browser?favorite_folder_name=${folder}`;
|
||||||
|
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:
|
||||||
|
wtv-visit: ${gourl}
|
||||||
|
Location: ${gourl}`
|
||||||
|
} else {
|
||||||
|
var err = doErrorPage(500);
|
||||||
|
headers = err[0];
|
||||||
|
data = err[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
var folder = request_headers.query.favorite_folder_name;
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(folder);
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
for (let i = 0; i < favoritenum; i++) {
|
||||||
|
switch(i) {
|
||||||
|
case 0:
|
||||||
|
var favid = request_headers.query.favorite0id;
|
||||||
|
var favname = request_headers.query.favorite0name;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
var favid = request_headers.query.favorite1id;
|
||||||
|
var favname = request_headers.query.favorite1name;
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
var favid = request_headers.query.favorite2id;
|
||||||
|
var favname = request_headers.query.favorite2name;
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
var favid = request_headers.query.favorite3id;
|
||||||
|
var favname = request_headers.query.favorite3name;
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
var favid = request_headers.query.favorite4id;
|
||||||
|
var favname = request_headers.query.favorite4name;
|
||||||
|
break;
|
||||||
|
case 5:
|
||||||
|
var favid = request_headers.query.favorite5id;
|
||||||
|
var favname = request_headers.query.favorite5name;
|
||||||
|
break;
|
||||||
|
case 6:
|
||||||
|
var favid = request_headers.query.favorite6id;
|
||||||
|
var favname = request_headers.query.favorite6name;
|
||||||
|
break;
|
||||||
|
case 7:
|
||||||
|
var favid = request_headers.query.favorite7id;
|
||||||
|
var favname = request_headers.query.favorite7name;
|
||||||
|
break;
|
||||||
|
case 8:
|
||||||
|
var favid = request_headers.query.favorite8id;
|
||||||
|
var favname = request_headers.query.favorite8name;
|
||||||
|
break;
|
||||||
|
case 9:
|
||||||
|
var favid = request_headers.query.favorite9id;
|
||||||
|
var favname = request_headers.query.favorite9name;
|
||||||
|
break;
|
||||||
|
case 10:
|
||||||
|
var favid = request_headers.query.favorite10id;
|
||||||
|
var favname = request_headers.query.favorite10name;
|
||||||
|
break;
|
||||||
|
case 11:
|
||||||
|
var favid = request_headers.query.favorite11id;
|
||||||
|
var favname = request_headers.query.favorite11name;
|
||||||
|
break;
|
||||||
|
case 12:
|
||||||
|
var favid = request_headers.query.favorite12id;
|
||||||
|
var favname = request_headers.query.favorite12name;
|
||||||
|
break;
|
||||||
|
case 13:
|
||||||
|
var favid = request_headers.query.favorite13id;
|
||||||
|
var favname = request_headers.query.favorite13name;
|
||||||
|
break;
|
||||||
|
case 14:
|
||||||
|
var favid = request_headers.query.favorite14id;
|
||||||
|
var favname = request_headers.query.favorite14name;
|
||||||
|
break;
|
||||||
|
case 15:
|
||||||
|
var favid = request_headers.query.favorite15id;
|
||||||
|
var favname = request_headers.query.favorite15name;
|
||||||
|
break;
|
||||||
|
case 16:
|
||||||
|
var favid = request_headers.query.favorite16id;
|
||||||
|
var favname = request_headers.query.favorite16name;
|
||||||
|
break;
|
||||||
|
case 17:
|
||||||
|
var favid = request_headers.query.favorite17id;
|
||||||
|
var favname = request_headers.query.favorite17name;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
ssid_sessions[socket.ssid].favstore.changeFavoriteName(favid, folder, favname);
|
||||||
|
}
|
||||||
|
|
||||||
|
var gourl = `wtv-favorite:/serve-browser?favorite_folder_name=${folder}`;
|
||||||
|
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:
|
||||||
|
wtv-visit: ${gourl}
|
||||||
|
Location: ${gourl}`
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var totalfavorites = 0;
|
||||||
|
|
||||||
|
var createFun = request_headers.query.Fun;
|
||||||
|
var createMoney = request_headers.query.Money;
|
||||||
|
var createMovies = request_headers.query.Movies;
|
||||||
|
var createNews = request_headers.query.News;
|
||||||
|
var createRecommended = request_headers.query.Recommended;
|
||||||
|
var createReference = request_headers.query.Reference;
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
totalfavorites = folder_array.length;
|
||||||
|
|
||||||
|
if (totalfavorites < 14)
|
||||||
|
{
|
||||||
|
if (createFun == "true")
|
||||||
|
ssid_sessions[socket.ssid].favstore.createTemplateFolder("Fun");
|
||||||
|
|
||||||
|
if (createMoney == "true")
|
||||||
|
ssid_sessions[socket.ssid].favstore.createTemplateFolder("Money");
|
||||||
|
|
||||||
|
if (createMovies == "true")
|
||||||
|
ssid_sessions[socket.ssid].favstore.createTemplateFolder("Movies");
|
||||||
|
|
||||||
|
if (createNews == "true")
|
||||||
|
ssid_sessions[socket.ssid].favstore.createTemplateFolder("News");
|
||||||
|
|
||||||
|
if (createRecommended == "true")
|
||||||
|
ssid_sessions[socket.ssid].favstore.createTemplateFolder("Recommended");
|
||||||
|
console.log("FUGHFVJSGHJFDGIJUFDSHGFJDSKHJKLGFHJKHDJKHJKLGF " + createRecommended)
|
||||||
|
|
||||||
|
if (createReference == "true")
|
||||||
|
ssid_sessions[socket.ssid].favstore.createTemplateFolder("Reference");
|
||||||
|
|
||||||
|
headers = `300 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
Location: wtv-favorite:/favorite
|
||||||
|
wtv-expire-all: wtv-favorite:`
|
||||||
|
} else {
|
||||||
|
headers = `400 You can only have 14 folders at one time. Delete some folders and try again.`
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var folder = request_headers.query.favorite_folder_name;
|
||||||
|
var key = request_headers.query.Choose;
|
||||||
|
var id = request_headers.query.favoriteid;
|
||||||
|
|
||||||
|
ssid_sessions[socket.ssid].favstore.createShortcutKey();
|
||||||
|
ssid_sessions[socket.ssid].favstore.updateShortcutKey("none", key, folder, id);
|
||||||
|
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favstore_exists = ssid_sessions[socket.ssid].favstore.favstoreExists();
|
||||||
|
|
||||||
|
if (favstore_exists != true)
|
||||||
|
{
|
||||||
|
ssid_sessions[socket.ssid].favstore.createFavstore();
|
||||||
|
headers = `300 OK
|
||||||
|
Location: wtv-favorite:/favorite`
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
var url = request_headers.request;
|
||||||
|
var key = url.split('?')[1]
|
||||||
|
|
||||||
|
headers = `400 You have not assigned a favorite to ${key}`
|
||||||
|
|
||||||
|
}
|
||||||
619
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/favorite.js
Normal file
@@ -0,0 +1,619 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favstore_exists = ssid_sessions[socket.ssid].favstore.favstoreExists();
|
||||||
|
|
||||||
|
if (favstore_exists != true)
|
||||||
|
{
|
||||||
|
ssid_sessions[socket.ssid].favstore.createFavstore();
|
||||||
|
headers = `300 OK
|
||||||
|
Location: wtv-favorite:/favorite`
|
||||||
|
} else {
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
var totalfavorites = folder_array.length;
|
||||||
|
var stopdrawing = false;
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:/serve-browser
|
||||||
|
wtv-expire-all: wtv-favorite:/favorite
|
||||||
|
`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
|
||||||
|
<title>
|
||||||
|
Favorite folders
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display ${(minisrv_config.services[service_name].max_folders <= 14) ? "noscroll" : ""}>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td width="100%">
|
||||||
|
<table href="wtv-favorite:/serve-add-folder-page?favorite_folder_name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Add folder
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td width="100%">
|
||||||
|
<table href="wtv-favorite:/serve-discard-folders?favorite_folder_name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Remove
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td width="100%">
|
||||||
|
<table href="wtv-home:/throwerror" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Help
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">
|
||||||
|
Favorite folders
|
||||||
|
for ${ssid_sessions[socket.ssid].getSessionData("subscriber_username") || "You"}
|
||||||
|
</font><blackface><shadow>
|
||||||
|
</shadow></blackface></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="225" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[0]}" selected="">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[0]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
var kval = 0;
|
||||||
|
// process evens
|
||||||
|
Object.keys(folder_array).forEach(function (k) {
|
||||||
|
if (k == 0) return; // skip 0 since it was processed above
|
||||||
|
if (parseInt(k) % 2 == 0) {
|
||||||
|
// even
|
||||||
|
// Left Middle
|
||||||
|
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[k]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[k]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`;
|
||||||
|
kval = k;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// process end if total is even
|
||||||
|
if (folder_array.length > 1) {
|
||||||
|
if (folder_array.length % 2 == 0) {
|
||||||
|
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// process middle (folder 2 (id 1))
|
||||||
|
if (folder_array.length == 1) {
|
||||||
|
// no folder 2
|
||||||
|
data += `<tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="6" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</tr><td></td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table width="225" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightTopEdgeOnly.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else {
|
||||||
|
// process folder 2 (id 1)
|
||||||
|
data += `<tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="6" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</tr><td></td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table width="225" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="21" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightTop.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[1]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[1]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
// process odds
|
||||||
|
Object.keys(folder_array).forEach(function (k) {
|
||||||
|
if (k == 1) return; // skip 1 since it was processed above
|
||||||
|
if (parseInt(k) % 2 != 0) {
|
||||||
|
// odd
|
||||||
|
// Right Middle
|
||||||
|
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[k]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[k]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// process end if total is odd
|
||||||
|
if (folder_array.length > 1) {
|
||||||
|
if (folder_array.length % 2 != 0) {
|
||||||
|
data += `</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
if (totalfavorites > 2)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[2]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[2]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 2) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 4)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[4]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[4]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 4) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 6)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[6]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[6]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 6) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 8)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[8]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[8]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 8) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 10)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[10]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[10]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 10) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 12)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[12]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[12]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 12) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
}
|
||||||
|
|
||||||
|
if (totalfavorites == 14) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/LeftBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 1)
|
||||||
|
{
|
||||||
|
data += `<tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="6" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</tr><td></td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table width="225" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="21" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightTop.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[1]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[1]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 1) {
|
||||||
|
data += `<tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="6" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</tr><td></td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table width="225" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightTopEdgeOnly.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 3)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[3]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[3]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 3) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 5)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[5]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[5]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 5) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 7)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[7]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[7]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 7) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 9)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[9]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[9]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 9) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 11)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[11]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[11]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 11) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
if (totalfavorites > 13)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightMiddle.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
<a href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[13]}">
|
||||||
|
<font size="-1">
|
||||||
|
<limittext value="${folder_array[13]}" width="140"></limittext></font></a><font size="-1">
|
||||||
|
</font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else if (totalfavorites == 13) {
|
||||||
|
data += `
|
||||||
|
</td></tr><tr><td width="225" valign="middle" height="42" background="ROMCache/RightBottom.gif" align="center">
|
||||||
|
<table width="50%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="20">
|
||||||
|
</td><td maxlines="1" width="140" height="20" align="center">
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
|
||||||
|
stopdrawing = true;
|
||||||
|
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
data += `
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="451" height="2" background="ROMCache/FoldersCoverBorder.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</display></body></html>
|
||||||
|
`;
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var errpage = null;
|
||||||
|
|
||||||
|
var id = request_headers.query.id;
|
||||||
|
var folder = request_headers.query.folder;
|
||||||
|
var favorite = ssid_sessions[socket.ssid].favstore.getFavorite(folder, id);
|
||||||
|
if (!favorite) errpage = wtvshared.doErrorPage(400, "Invalid favorite ID");
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Content-Type: ${favorite.imagetype}`;
|
||||||
|
data = new Buffer.from(favorite.image, 'base64');
|
||||||
|
After Width: | Height: | Size: 353 B |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/images/fkey.gif
Normal file
|
After Width: | Height: | Size: 991 B |
16
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/list-folders.js
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favstore_exists = ssid_sessions[socket.ssid].favstore.favstoreExists();
|
||||||
|
|
||||||
|
if (favstore_exists != true)
|
||||||
|
{
|
||||||
|
ssid_sessions[socket.ssid].favstore.createFavstore();
|
||||||
|
}
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
var data = "";
|
||||||
|
|
||||||
|
for (let i = 0; i < folder_array.length; i++) data += folder_array[i] + "\0";
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Content-type: text/plain`
|
||||||
@@ -0,0 +1,123 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<TITLE>
|
||||||
|
Add a folder
|
||||||
|
</TITLE>
|
||||||
|
<DISPLAY
|
||||||
|
>
|
||||||
|
</HEAD>
|
||||||
|
<body bgcolor="#191919" text="#44cc55" link="#FFE99B" vlink="#FFE99B" fontsize="medium" vspace=0 hspace=0>
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td align="left">
|
||||||
|
<shadow><blackface><font size=4 color="e7ce4a">
|
||||||
|
Add a folder
|
||||||
|
</font><blackface><shadow>
|
||||||
|
<td width=21>
|
||||||
|
<td width=13>
|
||||||
|
<spacer type=horizontal size=13>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<tr>
|
||||||
|
<td colspan=2 height=4 bgcolor=#544447>
|
||||||
|
</table>
|
||||||
|
</shadow></blackface>
|
||||||
|
</table>
|
||||||
|
<tr><table cellspacing=0 cellpadding=0 width=456 height=274 bgcolor=#191919>
|
||||||
|
<td abswidth=19>
|
||||||
|
<td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td absheight=10>
|
||||||
|
<tr><td>
|
||||||
|
Type the name of the new folder you want<br>
|
||||||
|
to add, and then choose <b>Add</b>.<br>
|
||||||
|
<br>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=18>
|
||||||
|
<tr><td align=right>
|
||||||
|
<form action="wtv-favorite:/commit-add-folder">
|
||||||
|
<input type=hidden name="favorite-folder-name" value="">
|
||||||
|
Folder name
|
||||||
|
<font color="#E6CD4A">
|
||||||
|
<input bgcolor=#111111 AutoCaps text=#ffdd33 cursor=#cc9933
|
||||||
|
type=text width=150
|
||||||
|
usestyle
|
||||||
|
MAXLENGTH=15
|
||||||
|
name="new_folder_name"
|
||||||
|
selected>
|
||||||
|
</font>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=4 height=1>
|
||||||
|
<font color="#E6CD4A"><shadow>
|
||||||
|
<input
|
||||||
|
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Add name="Add" usestyle width=108>
|
||||||
|
</shadow></font>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=2 height=1>
|
||||||
|
</form>
|
||||||
|
<tr><td absheight=25>
|
||||||
|
<tr><td absheight=25>
|
||||||
|
<tr><td>
|
||||||
|
Or choose <b>Samples</b> to select one or<br>
|
||||||
|
more sample folders.<br>
|
||||||
|
<tr><td absheight=18>
|
||||||
|
<tr><td align=right>
|
||||||
|
<form action=wtv-favorite:/serve-samples-page>
|
||||||
|
<input type=hidden name="favorite-folder-name" value="">
|
||||||
|
<font color="#E6CD4A"><shadow>
|
||||||
|
<input
|
||||||
|
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Samples name="Samples"
|
||||||
|
nosubmit usestyle width=108>
|
||||||
|
</shadow></font>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=14 height=1>
|
||||||
|
</form>
|
||||||
|
<tr><td absheight=12>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table> </BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,233 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Listing favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/favorite" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Folders
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-add-folder-page" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Add folder
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93">
|
||||||
|
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Help
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Listing favorites in this folder:
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="${foldername}" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||||
|
</td></tr></tbody></table></table>
|
||||||
|
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=14>
|
||||||
|
<td colspan=3>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
</table>
|
||||||
|
<td abswidth=20>
|
||||||
|
<TR>
|
||||||
|
<td>
|
||||||
|
<td WIDTH=198 HEIGHT=216 VALIGN=top ALIGN=left>
|
||||||
|
<p>Choose With pictures
|
||||||
|
to display the favorite's
|
||||||
|
pictures.
|
||||||
|
<p>If With pictures is
|
||||||
|
unchecked, the
|
||||||
|
favorites will be listed
|
||||||
|
by name only.
|
||||||
|
<TD WIDTH=20>
|
||||||
|
<TD WIDTH=198 VALIGN=top ALIGN=left>
|
||||||
|
<form action="wtv-favorite:/commit-arrange-favorites">
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td valign=top>
|
||||||
|
<input type=hidden name=autosubmit autosubmit=onleave>
|
||||||
|
<INPUT TYPE="checkbox" NAME="with_pictures" `
|
||||||
|
if (ssid_sessions[socket.ssid].getSessionData("subscriber_fav_images") == "true")
|
||||||
|
console.log("SELECTED")
|
||||||
|
data += "checked"
|
||||||
|
data += ` selected>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td valign=top>
|
||||||
|
<font size=-1>With pictures</font>
|
||||||
|
<tr><td absheight=10>
|
||||||
|
<tr>
|
||||||
|
<td valign=top>
|
||||||
|
</table>
|
||||||
|
<TR>
|
||||||
|
<TD>
|
||||||
|
<TD COLSPAN=4 HEIGHT=14 VALIGN=top ALIGN=left>
|
||||||
|
<tr>
|
||||||
|
<TD>
|
||||||
|
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
||||||
|
<spacer type=block width=436 height=1>
|
||||||
|
<tr>
|
||||||
|
<TD>
|
||||||
|
<td colspan=4 height=1 valign=top align=left>
|
||||||
|
<tr>
|
||||||
|
<TD>
|
||||||
|
<td colspan=4 height=2 valign=top align=left bgcolor="0D0D0D">
|
||||||
|
<spacer type=block width=436 height=1>
|
||||||
|
<TR>
|
||||||
|
<TD>
|
||||||
|
<TD COLSPAN=4 HEIGHT=4 VALIGN=top ALIGN=left>
|
||||||
|
<TR>
|
||||||
|
<TD>
|
||||||
|
<TD COLSPAN=3 VALIGN=top ALIGN=right>
|
||||||
|
<FONT COLOR="#E7CE4A" SIZE=-1><SHADOW>
|
||||||
|
<INPUT name="Done" value="Done" WIDTH=103
|
||||||
|
TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" NAME="Button2" USESTYLE WIDTH=103>
|
||||||
|
</SHADOW></FONT></FORM>
|
||||||
|
<TD>
|
||||||
|
</TABLE>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
237
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/serve-browser.js
Normal file
@@ -0,0 +1,237 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html
|
||||||
|
wtv-expire-all: wtv-favorite:/serve-browser
|
||||||
|
wtv-expire-all: wtv-favorite:/favorite
|
||||||
|
`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/favorite" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Folders
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Organize
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93">
|
||||||
|
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Help
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Favorites for ${ssid_sessions[socket.ssid].getSessionData("subscriber_username") || "You"}
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">`
|
||||||
|
if (folderid !== 0)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTopWithPreviousTab.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[folderid - 1]}&backward=selected" width="20" height="20" cellspacing="0" cellpadding="0">`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table width="20" height="20" cellspacing="0" cellpadding="0">`
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="${foldername}" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">`
|
||||||
|
if (folderid !== numoffolders - 1)
|
||||||
|
{
|
||||||
|
data += `<table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTopWithNextTab.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="top" height="28" align="right">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="8">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table href="wtv-favorite:/serve-browser?favorite_folder_name=${folder_array[folderid + 1]}&forward=selected" selected="" width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
} else {
|
||||||
|
data += `<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table></table>`
|
||||||
|
} data += `
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
</table><table cellspacing="0" cellpadding="0">
|
||||||
|
</table><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="15">`;
|
||||||
|
|
||||||
|
// favorite loop
|
||||||
|
Object.keys(favarray).forEach(function (k) {
|
||||||
|
var url = decodeURIComponent(favarray[k].url);
|
||||||
|
data += `</td><td abswidth="139" valign="top">
|
||||||
|
<table href="${url}" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">`;
|
||||||
|
if (favarray[k].imagetype == "url")
|
||||||
|
data += `<img src="${favarray[k].image}" width="70" vspace="5" height="52"><br>`;
|
||||||
|
else
|
||||||
|
data += `<img src="get-thumbnail?folder=${favarray[k].folder}&id=${favarray[k].id}" width="70" vspace="5" height="52"><br>`;
|
||||||
|
data += `<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
${favarray[k].title}
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>`;
|
||||||
|
if ((parseInt(k) + 1) % 3 == 0) {
|
||||||
|
// every 3 objects
|
||||||
|
data += `</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="15">`;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
data += `</display></body></html>`;
|
||||||
@@ -0,0 +1,404 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var favid = request_headers.query.favoriteid;
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
var favoritedata = ssid_sessions[socket.ssid].favstore.getFavorite(foldername, favid);
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Choose shortcut label
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="6" absheight="26">
|
||||||
|
</td><td width="100%"><table href="wtv-favorite:/serve-browser?favorite-folder-name=Personal" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Favorites
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Choose shortcut label</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="25"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td width="13">
|
||||||
|
</td><td valign="middle" align="left">
|
||||||
|
Choose a shortcut label for <b>${favoritedata.title}</b>, then choose <b>Done</b> below.
|
||||||
|
</td></tr><tr></tr></tbody></table><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<form action="wtv-favorite:/commit-shortcuts-favorites">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F1 > F1
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F2 > F2
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F3 > F3
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F4 > F4
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F5 > F5
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F6 > F6
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td width="13">
|
||||||
|
</td><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
<table bgcolor="000000">
|
||||||
|
<tbody><tr><td><img src="wtv-home:/ROMCache/Spacer.gif" width="70" height="52">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10">
|
||||||
|
</td><td width="279" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
Not assigned<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td><td>
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<input type="radio" NAME="Choose" VALUE=F7 > F7
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td absheight="15"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td><table width="100%" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="10">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="2B2B2B" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="0D0D0D" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<input type="hidden" name="favorite_folder_name" value="${foldername}">
|
||||||
|
<input type="hidden" name="favoriteid" value="${favid}">
|
||||||
|
<table absheight="52" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="10"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="center" align="right">
|
||||||
|
<font size="-1" color="#E7CE4A"><shadow>
|
||||||
|
<input type="submit" borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done" name="GoBack" usestyle="" width="110">
|
||||||
|
</shadow></font>
|
||||||
|
</td><td abswidth="13">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</form>
|
||||||
|
</display></body></html>`
|
||||||
@@ -0,0 +1,228 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Discard favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width=109 height=384>
|
||||||
|
<tr><td absheight=384>
|
||||||
|
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||||
|
<tr><td valign=top absheight=196>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||||
|
<tr>
|
||||||
|
<td valign=top width=100% height=50%>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 width=100% absheight=1>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=6>
|
||||||
|
<td width=100% align=center absheight=79>
|
||||||
|
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td width=100% align=center>
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=6 absheight=26>
|
||||||
|
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}">
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||||
|
Organize
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td absheight=1>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td valign=top absheight=188>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||||
|
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Discard favorites in this folder:
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="${foldername}" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<form id="Discard" action="wtv-favorite:/commit-discard-favorites">
|
||||||
|
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||||
|
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||||
|
</td></tr></tbody></table></table>`
|
||||||
|
if (favoritenum == 0)
|
||||||
|
{
|
||||||
|
data += "<font size=2> <i>There are no favorites to discard in this folder.</i></font>";
|
||||||
|
} else {
|
||||||
|
for (let i = 0; i < favoritenum; i++) {
|
||||||
|
data += `<tr><table cellspacing=0 cellpadding=0>
|
||||||
|
<td abswidth=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td abswidth=75 height=52 align=center valign=center>`
|
||||||
|
if (favarray[i].imagetype == "url")
|
||||||
|
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||||
|
else
|
||||||
|
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||||
|
data += `
|
||||||
|
<td abswidth=5 align=left valign=center>
|
||||||
|
<td abswidth=245 align=left valign=center maxlines=2>
|
||||||
|
${favarray[i].title}<br>
|
||||||
|
</font>
|
||||||
|
<td abswidth=8>
|
||||||
|
<td abswidth=90>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Discard
|
||||||
|
name="${favarray[i].id}" usestyle
|
||||||
|
abswidth=90>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=13>
|
||||||
|
</table>
|
||||||
|
<tr><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=4>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td height=4>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<hr align=left width=100%><br>`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
</form>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table width=451 cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=4>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<form action="wtv-favorite:/commit-discard-favorites">
|
||||||
|
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||||
|
<tr><td align=right valign=center>
|
||||||
|
<table height=50 valign=center cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=5 height=10 ><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=center>
|
||||||
|
<td valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>`
|
||||||
|
if (favoritenum != 0)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<input
|
||||||
|
type=submit useform="Discard"
|
||||||
|
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Discard All"
|
||||||
|
name="DiscardAll" usestyle
|
||||||
|
width=119>`
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=9 align=center valign=center>
|
||||||
|
<td valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit
|
||||||
|
useform="Discard"
|
||||||
|
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||||
|
name="ForwardToBrowser"
|
||||||
|
usestyle
|
||||||
|
width=90>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=13>
|
||||||
|
<tr><td width=5 height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,202 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
var totalfavorites = folder_array.length;
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<TITLE>
|
||||||
|
Remove folders
|
||||||
|
</TITLE>
|
||||||
|
<DISPLAY>
|
||||||
|
</HEAD>
|
||||||
|
<body bgcolor="#191919" text="#44cc55" link="#FFE99B" vlink="#FFE99B" fontsize="medium" vspace=0 hspace=0>
|
||||||
|
<sidebar width=109 height=384>
|
||||||
|
<tr><td absheight=384>
|
||||||
|
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||||
|
<tr><td valign=top absheight=196>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||||
|
<tr>
|
||||||
|
<td valign=top width=100% height=50%>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 width=100% absheight=1>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=6>
|
||||||
|
<td width=100% align=center absheight=79>
|
||||||
|
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td width=100% align=center>
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=6 absheight=26>
|
||||||
|
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/favorite">
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||||
|
Favorites
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td absheight=1>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td valign=top absheight=188>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||||
|
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td align="left">
|
||||||
|
<shadow><blackface><font size=4 color="e7ce4a">
|
||||||
|
Remove folders
|
||||||
|
</font><blackface><shadow>
|
||||||
|
</shadow></blackface></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<form id="Discard" action="wtv-favorite:/commit-discard-folders">
|
||||||
|
<input type=hidden autosubmit=onLeave>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td align=left valign=top>
|
||||||
|
<table cellspacing=0 cellpadding=0 width=225>
|
||||||
|
<tr><td width=225>
|
||||||
|
<table width=100% cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=42 align=left valign=middle background="ROMCache/LeftTop.gif">
|
||||||
|
<table width=100% cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td width=40>
|
||||||
|
<td align=center height=20>
|
||||||
|
<font size=-1>
|
||||||
|
<limittext value="${folder_array[0]}" width=140>
|
||||||
|
</font>
|
||||||
|
<td width=20>
|
||||||
|
</table>
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=20>
|
||||||
|
</table>
|
||||||
|
</table>`
|
||||||
|
for (let i = 1; i < totalfavorites; i++) {
|
||||||
|
data += `<tr><td width=225>
|
||||||
|
<table width=100% cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=42 align=left valign=middle background="ROMCache/LeftMiddleTabOnly.gif">
|
||||||
|
<table width=100% cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td width=40>
|
||||||
|
<td align=center height=20>
|
||||||
|
<font size=-1>
|
||||||
|
<limittext value="${folder_array[i]}" width=140>
|
||||||
|
</font>
|
||||||
|
<td width=20>
|
||||||
|
</table>
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=20>
|
||||||
|
</table>
|
||||||
|
</table>`
|
||||||
|
}
|
||||||
|
if (totalfavorites == 1)
|
||||||
|
data += `<tr><td align=left valign=top> </table>
|
||||||
|
<td valign=top align=left>
|
||||||
|
<table cellspacing=0 cellpadding=0 width=115><tr><td width=227 height=20 bgcolor=#2b2b2b>
|
||||||
|
<tr><td width=227>
|
||||||
|
<tr><td height=15 align=center valign=middle background="ROMCache/RightTopEdgeOnly.gif">
|
||||||
|
<tr><td height=0>
|
||||||
|
`
|
||||||
|
else
|
||||||
|
data += `<tr><td align=left valign=top>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=20><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table> </table>
|
||||||
|
<td valign=top align=left>
|
||||||
|
<table cellspacing=0 cellpadding=0 width=115>
|
||||||
|
<tr><td width=227 height=20 bgcolor=#2b2b2b><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td width=227>
|
||||||
|
<table width=100% cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=22 align=center valign=middle background="ROMCache/RightTopEdgeOnly.gif">
|
||||||
|
<tr><td height=40>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<td width=107>
|
||||||
|
<td valign=top align=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Remove
|
||||||
|
name="${folder_array[0]}" usestyle
|
||||||
|
width=110>
|
||||||
|
</shadow></font>
|
||||||
|
</table>
|
||||||
|
</table>`
|
||||||
|
for (let i = 1; i < totalfavorites; i++) {
|
||||||
|
data += `
|
||||||
|
<tr><td width=227>
|
||||||
|
<table width=100% cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=22 align=center valign=middle background="ROMCache/RightMiddleEdgeOnly.gif">
|
||||||
|
<tr><td height=40>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<td width=107>
|
||||||
|
<td valign=top align=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Remove
|
||||||
|
name="${folder_array[i]}" usestyle
|
||||||
|
width=110>
|
||||||
|
</shadow></font>
|
||||||
|
</table>
|
||||||
|
</table>`
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</form>`
|
||||||
|
if (totalfavorites == 1)
|
||||||
|
data += "<i> You cannot delete your last folder.</i>"
|
||||||
|
data += `
|
||||||
|
<hr width=420>
|
||||||
|
<form action="wtv-favorite:/commit-discard-folders">
|
||||||
|
<input type=hidden name=favorite-folder-name value="Personal">
|
||||||
|
<tr><td><table absheight=50 cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=10><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td width=330 align=center valign=center>
|
||||||
|
<td align=center valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit
|
||||||
|
useform="Discard"
|
||||||
|
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||||
|
name="ForwardToFolders"
|
||||||
|
usestyle
|
||||||
|
width=110>
|
||||||
|
</shadow></font>
|
||||||
|
<tr><td height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,239 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
var foldernum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
foldernum = folder_array.length;
|
||||||
|
|
||||||
|
var folderlist = `<select name="newfolder" width=140>
|
||||||
|
<option value="${foldername}" selected="">${foldername}</option>
|
||||||
|
`
|
||||||
|
for (let i = 0; i < foldernum; i++) {
|
||||||
|
if (folder_array[i] == foldername)
|
||||||
|
{
|
||||||
|
} else {
|
||||||
|
folderlist += `<option value="${folder_array[i]}">${folder_array[i]}</option>
|
||||||
|
`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
folderlist += "</select>"
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Move favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width=109 height=384>
|
||||||
|
<tr><td absheight=384>
|
||||||
|
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||||
|
<tr><td valign=top absheight=196>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||||
|
<tr>
|
||||||
|
<td valign=top width=100% height=50%>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 width=100% absheight=1>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=6>
|
||||||
|
<td width=100% align=center absheight=79>
|
||||||
|
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td width=100% align=center>
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=6 absheight=26>
|
||||||
|
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}">
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||||
|
Organize
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td absheight=1>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td valign=top absheight=188>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||||
|
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Move favorites in this folder:
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="${foldername}" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<form id="Move" action="wtv-favorite:/commit-move-favorites">
|
||||||
|
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||||
|
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||||
|
</td></tr></tbody></table></table>`
|
||||||
|
if (favoritenum == 0)
|
||||||
|
{
|
||||||
|
data += "<font size=2> <i>There are no favorites to move in this folder.</i></font>";
|
||||||
|
} else {
|
||||||
|
for (let i = 0; i < favoritenum; i++) {
|
||||||
|
data += `<tr><table cellspacing=0 cellpadding=0>
|
||||||
|
<td abswidth=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td abswidth=75 height=52 align=center valign=center>`
|
||||||
|
if (favarray[i].imagetype == "url")
|
||||||
|
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||||
|
else
|
||||||
|
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||||
|
data += `
|
||||||
|
<td abswidth=5 align=left valign=center>
|
||||||
|
<td abswidth=195 align=left valign=center maxlines=2>
|
||||||
|
${favarray[i].title}<br>
|
||||||
|
</font>
|
||||||
|
<td abswidth=8>
|
||||||
|
<td abswidth=140>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input type=hidden name=favoriteid value="${favarray[i].id}">`
|
||||||
|
data += `<select name="favoritefolder" width=140>
|
||||||
|
<option value="${foldername}" selected="">${foldername}</option>
|
||||||
|
`
|
||||||
|
for (let i = 0; i < foldernum; i++) {
|
||||||
|
if (folder_array[i] == foldername)
|
||||||
|
{
|
||||||
|
} else {
|
||||||
|
data += `<option value="${folder_array[i]}">${folder_array[i]}</option>
|
||||||
|
`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += `</select>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=13>
|
||||||
|
</table>
|
||||||
|
<tr><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=4>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td height=4>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<hr align=left width=100%><br>`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table width=451 cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=4>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<tr><td align=right valign=center>
|
||||||
|
<table height=50 valign=center cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=5 height=10 ><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=center>
|
||||||
|
<td valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=9 align=center valign=center>
|
||||||
|
<td valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit
|
||||||
|
useform="Move"
|
||||||
|
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||||
|
name="ForwardToBrowser"
|
||||||
|
usestyle
|
||||||
|
width=90>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=13>
|
||||||
|
<tr><td width=5 height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,220 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Organize favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/favorite" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Folders
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-add-folder-page" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Add folder
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93">
|
||||||
|
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Help
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Organize favorites in this folder:
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="${foldername}" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||||
|
</td></tr></tbody></table></table>
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
</table><table cellspacing="0" cellpadding="0">
|
||||||
|
</table><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="106" width="18"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td WIDTH=198 HEIGHT=206 VALIGN=top ALIGN=left>
|
||||||
|
<A HREF="wtv-favorite:/serve-discard-favorites?favorite_folder_name=${foldername}" selected><BLACKFACE>Discard</BLACKFACE></A><BR>
|
||||||
|
<FONT SIZE="-1">Remove unwanted favorites from this folder</FONT><BR>
|
||||||
|
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||||
|
<!--<A HREF="wtv-favorite:/serve-arrange-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Listing</BLACKFACE></A><BR>
|
||||||
|
<FONT SIZE="-1">Change how favorites are listed</FONT><BR>
|
||||||
|
<spacer type=block WIDTH=1 HEIGHT=7><BR>-->
|
||||||
|
<A HREF="wtv-favorite:/serve-move-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Move to folder</BLACKFACE></A><BR>
|
||||||
|
<FONT SIZE="-1">Move favorites from this folder to another</FONT><BR>
|
||||||
|
|
||||||
|
<TD WIDTH=20>
|
||||||
|
|
||||||
|
<TD WIDTH=198 VALIGN=top ALIGN=left>
|
||||||
|
<A HREF="wtv-favorite:/serve-rename-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Rename</BLACKFACE></A><BR>
|
||||||
|
<FONT SIZE="-1">Rename favorites in this folder</FONT><BR>
|
||||||
|
<!--<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||||
|
<A HREF="wtv-favorite:/serve-shortcuts-favorites?favorite_folder_name=${foldername}"><BLACKFACE>Shortcuts</BLACKFACE></A><BR>
|
||||||
|
<FONT SIZE="-1">Assign a keyboard shortcut to a favorite, or <a href="client:showalert?message=fuck">view a list</a> of all shortcuts</FONT><BR>-->
|
||||||
|
|
||||||
|
<TR>
|
||||||
|
<TD>
|
||||||
|
<TD COLSPAN=4 HEIGHT=9 VALIGN=top ALIGN=left>
|
||||||
|
<tr>
|
||||||
|
<TD>
|
||||||
|
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
||||||
|
<spacer type=block width=436 height=1>
|
||||||
|
<tr>
|
||||||
|
<TD>
|
||||||
|
<td colspan=4 height=1 valign=top align=left>
|
||||||
|
<tr>
|
||||||
|
<TD>
|
||||||
|
<td colspan=4 height=2 valign=top align=left bgcolor="0D0D0D">
|
||||||
|
<spacer type=block width=436 height=1>
|
||||||
|
<TR>
|
||||||
|
<TD>
|
||||||
|
<TD COLSPAN=4 HEIGHT=4 VALIGN=top ALIGN=left>
|
||||||
|
<TR>
|
||||||
|
<TD>
|
||||||
|
<TD COLSPAN=2 VALIGN=top ALIGN=left>
|
||||||
|
<TD VALIGN=top ALIGN=right>
|
||||||
|
<FORM action="wtv-favorite:/serve-browser?favorite_folder_name=${foldername}">
|
||||||
|
<FONT COLOR="#E7CE4A" SIZE=-1><SHADOW>
|
||||||
|
<INPUT TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" Value=Done NAME="Done" USESTYLE WIDTH=103>
|
||||||
|
</SHADOW></FONT></FORM>
|
||||||
|
<TD>
|
||||||
|
</TABLE>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,218 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html><head>
|
||||||
|
<title>
|
||||||
|
Rename favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
<sidebar width=109 height=384>
|
||||||
|
<tr><td absheight=384>
|
||||||
|
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||||
|
<tr><td valign=top absheight=196>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||||
|
<tr>
|
||||||
|
<td valign=top width=100% height=50%>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 width=100% absheight=1>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=6>
|
||||||
|
<td width=100% align=center absheight=79>
|
||||||
|
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td width=100% align=center>
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=6 absheight=26>
|
||||||
|
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}">
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||||
|
Organize
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td absheight=1>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td valign=top absheight=188>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||||
|
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Rename favorites in this folder:
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="${foldername}" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<form id="Rename" action="wtv-favorite:/commit-rename-favorites">
|
||||||
|
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||||
|
<tbody><tr><spacer type=block WIDTH=199 HEIGHT=0><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="199" height="1">
|
||||||
|
</td></tr></tbody></table></table>`
|
||||||
|
if (favoritenum == 0)
|
||||||
|
{
|
||||||
|
data += "<font size=2> <i>There are no favorites to rename in this folder.</i></font>";
|
||||||
|
} else {
|
||||||
|
for (let i = 0; i < favoritenum; i++) {
|
||||||
|
data += `<tr><table cellspacing=0 cellpadding=0>
|
||||||
|
<td abswidth=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td abswidth=75 height=52 align=center valign=center>`
|
||||||
|
if (favarray[i].imagetype == "url")
|
||||||
|
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||||
|
else
|
||||||
|
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||||
|
data += `
|
||||||
|
<td abswidth=5 align=left valign=center>
|
||||||
|
<td abswidth=320 align=left valign=center maxlines=2>
|
||||||
|
<font color="44cc55" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
bgcolor=#191919
|
||||||
|
type=text value="${favarray[i].title}"
|
||||||
|
name="favorite${[i]}name" usestyle
|
||||||
|
width=320>
|
||||||
|
<input type=hidden name=favorite${[i]}id value="${favarray[i].id}">
|
||||||
|
</font>
|
||||||
|
<td abswidth=8>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=13>
|
||||||
|
</table>
|
||||||
|
<tr><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=4>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td height=4>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<hr align=left width=100%><br>`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
</form>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table width=451 cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td height=4>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<form action="wtv-favorite:/commit-rename-favorites">
|
||||||
|
<input type=hidden name=favorite_folder_name value="${foldername}">
|
||||||
|
<tr><td align=right valign=center>
|
||||||
|
<table height=50 valign=center cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=5 height=10 ><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=center>
|
||||||
|
<td valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=9 align=center valign=center>
|
||||||
|
<td valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit
|
||||||
|
useform="Rename"
|
||||||
|
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done"
|
||||||
|
name="ForwardToBrowser"
|
||||||
|
usestyle
|
||||||
|
width=90>
|
||||||
|
</shadow></font>
|
||||||
|
<td abswidth=13>
|
||||||
|
<tr><td width=5 height=8><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</BODY>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,271 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<HTML>
|
||||||
|
<HEAD>
|
||||||
|
<TITLE>
|
||||||
|
Add sample folders
|
||||||
|
</TITLE>
|
||||||
|
<DISPLAY>
|
||||||
|
</HEAD>
|
||||||
|
<BODY BGCOLOR=191919 TEXT=44cc55 LINK=189cd6 VLINK=189cd6 HSPACE=0 VSPACE=0 FONTSIZE=large>
|
||||||
|
<sidebar width=109 height=384>
|
||||||
|
<tr><td absheight=384>
|
||||||
|
<table cellspacing=0 cellpadding=0 bgcolor=284a52>
|
||||||
|
<tr><td valign=top absheight=196>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=196>
|
||||||
|
<tr>
|
||||||
|
<td valign=top width=100% height=50%>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td colspan=3 width=100% absheight=1>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=6>
|
||||||
|
<td width=100% align=center absheight=79>
|
||||||
|
<table href="wtv-home:/home" width=100% absheight=79 cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td width=100% align=center>
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width=87 height=67>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=1>
|
||||||
|
<tr><td colspan=3 width=100% absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1> <tr><td width=100% absheight=32 colspan=3>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=6 absheight=26>
|
||||||
|
<td width=100%><table width=100% cellspacing=0 cellpadding=0 href="wtv-favorite:/favorite">
|
||||||
|
<tr><td>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><shadow><font color=E7CE4A size=-1>
|
||||||
|
Favorites
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=1f3136>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td absheight=1>
|
||||||
|
<tr><td colspan=3 width=104 absheight=2 bgcolor=436f79>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td valign=top absheight=188>
|
||||||
|
<table cellspacing=0 cellpadding=0 absheight=188>
|
||||||
|
<tr><td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=bottom><img src="ROMCache/FavoritesBanner.gif" width=50 height=188>
|
||||||
|
</table>
|
||||||
|
<td abswidth=5 background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</sidebar>
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td abswidth=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><table cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||||
|
<tr><td width=14 absheight=16><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td width=14 absheight=12><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td align=left>
|
||||||
|
<shadow><blackface><font color=e7ce4a>
|
||||||
|
Add sample folders
|
||||||
|
</font><blackface><shadow>
|
||||||
|
</table>
|
||||||
|
<tr><td height=18><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
</shadow></blackface>
|
||||||
|
</table>
|
||||||
|
<tr><table cellspacing=0 cellpadding=0 bgcolor=191919> <tr><td width=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td width=14><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td><font size=-1>
|
||||||
|
Mark the sample folders you want<br>
|
||||||
|
to add, and then choose <b>Add</b>.<br>
|
||||||
|
<br>
|
||||||
|
You can remove an existing sample folder<br>
|
||||||
|
by going to the folder and choosing <b>Organize</b>.<br>
|
||||||
|
<br>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=18>
|
||||||
|
</font>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table> <form name="SampleFolders" action="wtv-favorite:/commit-samples-page">
|
||||||
|
<table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td width=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td width=100% valign=top>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td width=100%>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<td width=25>
|
||||||
|
<tr>
|
||||||
|
<td width=25>`
|
||||||
|
if (ssid_sessions[socket.ssid].favstore.folderExists("Fun") == true)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=30 align=center valign=middle>
|
||||||
|
<img src="/images/checkmark.gif" width=20 height=20>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1> <i>Fun</i>
|
||||||
|
</font>
|
||||||
|
</table>`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1>
|
||||||
|
<input type="checkbox" name="Fun" value="true"> Fun
|
||||||
|
</font>`
|
||||||
|
}
|
||||||
|
if (ssid_sessions[socket.ssid].favstore.folderExists("Money") == true)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=30 align=center valign=middle>
|
||||||
|
<img src="/images/checkmark.gif" width=20 height=20>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1> <i>Money</i>
|
||||||
|
</font>
|
||||||
|
</table>`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1>
|
||||||
|
<input type="checkbox" name="Money" value="true"> Money
|
||||||
|
</font>`
|
||||||
|
} data += `
|
||||||
|
<td width=25>
|
||||||
|
<tr>
|
||||||
|
<td width=25>`
|
||||||
|
if (ssid_sessions[socket.ssid].favstore.folderExists("Movies") == true)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=30 align=center valign=middle>
|
||||||
|
<img src="/images/checkmark.gif" width=20 height=20>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1> <i>Movies</i>
|
||||||
|
</font>
|
||||||
|
</table>`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1>
|
||||||
|
<input type="checkbox" name="Movies" value="true"> Movies
|
||||||
|
</font>`
|
||||||
|
}
|
||||||
|
if (ssid_sessions[socket.ssid].favstore.folderExists("News") == true)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=30 align=center valign=middle>
|
||||||
|
<img src="/images/checkmark.gif" width=20 height=20>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1> <i>News</i>
|
||||||
|
</font>
|
||||||
|
</table>`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1>
|
||||||
|
<input type="checkbox" name="News" value="true"> News
|
||||||
|
</font>`
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
<td width=25>
|
||||||
|
<tr>
|
||||||
|
<td width=25>`
|
||||||
|
if (ssid_sessions[socket.ssid].favstore.folderExists("Recommended") == true)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=30 align=center valign=middle>
|
||||||
|
<img src="/images/checkmark.gif" width=20 height=20>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1> <i>Recommended</i>
|
||||||
|
</font>
|
||||||
|
</table>`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1>
|
||||||
|
<input type="checkbox" name="Recommended" value="true"> Recommended
|
||||||
|
</font>`
|
||||||
|
}
|
||||||
|
if (ssid_sessions[socket.ssid].favstore.folderExists("Reference") == true)
|
||||||
|
{
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<table valign=top cellspacing=0 cellpadding=0>
|
||||||
|
<tr>
|
||||||
|
<td abswidth=30 align=center valign=middle>
|
||||||
|
<img src="/images/checkmark.gif" width=20 height=20>
|
||||||
|
<td abswidth=4>
|
||||||
|
<td absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1> <i>Reference</i>
|
||||||
|
</font>
|
||||||
|
</table>`
|
||||||
|
} else {
|
||||||
|
data += `
|
||||||
|
<td width=50% absheight=30 align=left valign=middle>
|
||||||
|
<font color=E7CE4A size=-1>
|
||||||
|
<input type="checkbox" name="Reference" value="true"> Reference
|
||||||
|
</font>`
|
||||||
|
}
|
||||||
|
data += `
|
||||||
|
</table>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||||
|
<tr><td><table width=5 cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||||
|
<tr><td width=5 absheight=15><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
</table>
|
||||||
|
<td><table width=442 cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||||
|
<tr><td height=10>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center bgcolor="2B2B2B"><img src="wtv-home:/ROMCache/Spacer.gif" height=1>
|
||||||
|
<tr><td width=5 height=1>
|
||||||
|
<tr><td width=15>
|
||||||
|
<td absheight=2 valign=middle align=center bgcolor="0D0D0D"><img src="wtv-home:/ROMCache/Spacer.gif" height=1>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
<tr><td><table cellspacing=0 cellpadding=0 bgcolor=191919>
|
||||||
|
<tr><td width=5 height=10><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<tr><td width=5><img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||||
|
<td width=100%><img src="wtv-home:/ROMCache/Spacer.gif" width=100% height=1>
|
||||||
|
<td align=right valign=center>
|
||||||
|
<font color="#E7CE4A" size=-1><shadow>
|
||||||
|
<input
|
||||||
|
type=submit
|
||||||
|
borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Add"
|
||||||
|
name="ForwardToBrowser"
|
||||||
|
usestyle
|
||||||
|
width=110>
|
||||||
|
</shadow></font>
|
||||||
|
<td width=13>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</HTML>
|
||||||
|
`;
|
||||||
@@ -0,0 +1,204 @@
|
|||||||
|
var minisrv_service_file = true;
|
||||||
|
|
||||||
|
var favoritenum = 0;
|
||||||
|
|
||||||
|
var foldername = request_headers.query.favorite_folder_name;
|
||||||
|
|
||||||
|
var favarray = ssid_sessions[socket.ssid].favstore.listFavorites(foldername);
|
||||||
|
|
||||||
|
var folder_array = ssid_sessions[socket.ssid].favstore.getFolders();
|
||||||
|
|
||||||
|
var folderid = folder_array.indexOf(foldername);
|
||||||
|
|
||||||
|
var numoffolders = folder_array.length;
|
||||||
|
|
||||||
|
favoritenum = Object.keys(favarray).length;
|
||||||
|
|
||||||
|
|
||||||
|
headers = `200 OK
|
||||||
|
Connection: Keep-Alive
|
||||||
|
Content-Type: text/html`
|
||||||
|
|
||||||
|
|
||||||
|
data = `<html>
|
||||||
|
<head>
|
||||||
|
</head>
|
||||||
|
<body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919">
|
||||||
|
<title>
|
||||||
|
Assign shortcut to favorite
|
||||||
|
</title>
|
||||||
|
<display>
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="6" absheight="26">
|
||||||
|
</td><td width="100%"><table href="wtv-favorite:/serve-organize-favorites?favorite_folder_name=${foldername}" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Organize
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Assign shortcut to favorite</font><shadow><blackface>
|
||||||
|
<shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="227" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="227" valign="middle" height="42" background="ROMCache/LeftTop.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="40">
|
||||||
|
</td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="Personal" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table width="224" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td width="224" valign="middle" height="22" background="ROMCache/RightTopEdgeOnly.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr></tr></tbody></table><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="4"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td valign="middle" align="left">
|
||||||
|
<font size="-1" color="#42BC52">`
|
||||||
|
if (favoritenum == 0)
|
||||||
|
{
|
||||||
|
data += "<font size=2> <i>There are no favorites to move in this folder.</i></font>";
|
||||||
|
} else {
|
||||||
|
data += `To assign a keyboard shortcut to a favorite, <br>
|
||||||
|
choose the button to the right of the favorite. <br>
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="4"><br>
|
||||||
|
</font>
|
||||||
|
</td></tr><tr></tr></tbody></table>`
|
||||||
|
for (let i = 0; i < favoritenum; i++) {
|
||||||
|
data += `<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr>
|
||||||
|
<td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="1E1E1E" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="121212" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td></tr><tr><td height="4">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="25">
|
||||||
|
</td><td width="354">
|
||||||
|
<table bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="70" valign="center" align="center">
|
||||||
|
`
|
||||||
|
if (favarray[i].imagetype == "url")
|
||||||
|
data += `<img src="${favarray[i].image}" width="70" vspace="5" height="52"><br>`
|
||||||
|
else
|
||||||
|
data += `<img src="get-thumbnail?folder=${favarray[i].folder}&id=${favarray[i].id}" width="70" vspace="5" height="52"><br>`
|
||||||
|
data += `
|
||||||
|
</td><td width="7">
|
||||||
|
</td><td width="100%" valign="center" align="left">
|
||||||
|
<font size="-1" color="#42BC52">
|
||||||
|
${favarray[i].title}<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td> <table bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="62" valign="center" align="center">
|
||||||
|
<table absheight="38" href="wtv-favorite:/serve-choose-shortcut-favorites?favorite_folder_name=${foldername}&favoriteid=${favarray[i].id}" width="53" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="middle" background="images/FKey.gif" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="8">
|
||||||
|
</td><td absheight="38" width="44" valign="center" align="center">
|
||||||
|
<font size="-2" color="#F1F1F1">
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="3">
|
||||||
|
</td></tr></tbody></table>`
|
||||||
|
}
|
||||||
|
}
|
||||||
|
data += `<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td><table width="451" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="4">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="2B2B2B" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||||
|
</td></tr><tr><td width="5" height="1">
|
||||||
|
</td></tr><tr><td width="15">
|
||||||
|
</td><td absheight="2" valign="middle" bgcolor="0D0D0D" align="center"><img src="wtv-home:/ROMCache/Spacer.gif" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<form action="wtv-favorite:/commit-shortcuts-favorites">
|
||||||
|
<input type="hidden" name="favorite_folder_name" value="${foldername}">
|
||||||
|
<table height="50" cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
<tbody><tr><td height="10"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="center" align="right">
|
||||||
|
<font size="-1" color="#E7CE4A"><shadow>
|
||||||
|
<input type="submit" useform="Shortcuts" borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Done" name="ForwardToBrowser" usestyle="" width="110">
|
||||||
|
</shadow></font>
|
||||||
|
</td><td abswidth="13">
|
||||||
|
</td></tr><tr><td height="8"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</form>
|
||||||
|
</display></body></html>
|
||||||
|
`;
|
||||||
247
zefie_wtvp_minisrv/ServiceVault/wtv-favorite/sony.html
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
<html><head>
|
||||||
|
<title>
|
||||||
|
Favorites
|
||||||
|
</title>
|
||||||
|
</head><body fontsize="large" vspace="0" hspace="0" vlink="189cd6" text="44cc55" link="189cd6" bgcolor="191919"><display>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<sidebar width="109" height="384">
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="284a52">
|
||||||
|
<tbody><tr><td absheight="196" valign="top">
|
||||||
|
<table absheight="196" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" valign="top" height="50%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td abswidth="6">
|
||||||
|
</td><td absheight="79" width="100%" align="center">
|
||||||
|
<table href="wtv-home:/home" absheight="79" width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="100%" align="center">
|
||||||
|
<img src="wtv-home:/ROMCache/WebTVLogoJewel.gif" width="87" height="67">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="1" width="100%">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="100%" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1"> </td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-folders?favorite-folder-name=Sony" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Folders
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93"><table abswidth="93" href="wtv-favorite:/serve-organize-favorites?favorite-folder-name=Sony" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Organize
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr><tr><td absheight="32" colspan="3" width="100%">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td abswidth="5" absheight="26">
|
||||||
|
</td><td abswidth="93">
|
||||||
|
<table abswidth="93" href="wtv-guide:/quickhelp?title=Favorites" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td><shadow><font size="-1" color="E7CE4A">
|
||||||
|
Help
|
||||||
|
</font></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="6">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="1f3136">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="1">
|
||||||
|
</td></tr><tr><td colspan="3" absheight="2" width="104" bgcolor="436f79">
|
||||||
|
<img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr><td absheight="188" valign="top">
|
||||||
|
<table absheight="188" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="100%"><img src="wtv-home:/ROMCache/Spacer.gif" width="100%" height="1">
|
||||||
|
</td><td valign="bottom" align="right"><img src="ROMCache/FavoritesBanner.gif" width="50" height="188">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="5" background="ROMCache/Shadow.gif"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</sidebar>
|
||||||
|
<table width="451" cellspacing="0" cellpadding="0" bgcolor="2b2b2b">
|
||||||
|
<tbody><tr>
|
||||||
|
<td width="4" height="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="12"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="16"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td><table width="428" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td align="left">
|
||||||
|
<shadow><blackface><font color="e7ce4a">Favorites for ${ssid_sessions[socket.ssid].getSessionData("subscriber_username") || "You"}
|
||||||
|
</font><shadow><blackface>
|
||||||
|
</blackface></shadow></blackface></shadow></td></tr></tbody></table>
|
||||||
|
</td></tr><tr>
|
||||||
|
<td width="4" height="14"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td valign="top" align="left">
|
||||||
|
<table width="221" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="221" valign="middle" height="42" background="ROMCache/LeftTopWithPreviousTab.gif" align="left">
|
||||||
|
<table width="100%" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="10"> </td><td width="20" valign="top" height="28" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td height="1">
|
||||||
|
</td></tr><tr><td height="20">
|
||||||
|
<table href="wtv-favorite:/serve-browser?favorite-folder-name=Recommended&backward=selected" width="20" height="20" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td width="10"> </td><td height="20" align="center">
|
||||||
|
<font size="-1" color="#E6CD4A">
|
||||||
|
<limittext value="Sony" width="140">
|
||||||
|
</limittext></font>
|
||||||
|
</td><td width="20">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td valign="top" align="left">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td>
|
||||||
|
<table abswidth="178" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="20" bgcolor="2b2b2b">
|
||||||
|
</td></tr><tr><td abswidth="178" valign="middle" height="22" background="ROMCache/MiddleTop.gif" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td>
|
||||||
|
<table abswidth="52" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr></tr></tbody></table><table abswidth="52" cellspacing="0" cellpadding="0" background="ROMCache/FarRightTop.gif">
|
||||||
|
<tbody><tr><td width="20" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="25" valign="middle" height="42" align="left">
|
||||||
|
</td><td width="7" valign="middle" height="40" align="left">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td width="5" height="13"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0" bgcolor="191919">
|
||||||
|
</table><table cellspacing="0" cellpadding="0">
|
||||||
|
</table><table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="15">
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.spe.sony.com/tv/index.html" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/images/ctt-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
Columbia TriStar Television
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.jumpcity.com/webtv/" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/jumpcity.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
JumpCity
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.soapcity.com" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/images/soap-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
SoapCity
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="15">
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.sel.sony.com" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/sony.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
Sony Electronics
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.spe.sony.com/movies/index.html" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/images/film-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
Sony Pictures Movie Site
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.spe.sony.com/store/index.html" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/images/spestore-wtv.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
Sony Studio Store
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td absheight="106" width="5"><img src="wtv-home:/ROMCache/Spacer.gif" width="1" height="1">
|
||||||
|
</td><td width="15">
|
||||||
|
</td><td abswidth="139" valign="top">
|
||||||
|
<table href="http://www.sony.inergy.com" bgcolor="191919">
|
||||||
|
<tbody><tr><td abswidth="139" align="center">
|
||||||
|
<img src="canned/websitefortv.gif" width="70" vspace="5" height="52"><br>
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody><tr><td maxlines="2" align="center"><font size="-1" color="#189CD6">
|
||||||
|
WebSite for TV
|
||||||
|
<br>
|
||||||
|
</font>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
</td></tr></tbody></table>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</display></body></html>
|
||||||
@@ -127,10 +127,12 @@ wtv-ssl-log-url: wtv-log:/log
|
|||||||
headers += `wtv-bypass-proxy: false
|
headers += `wtv-bypass-proxy: false
|
||||||
user-id: ${userid}
|
user-id: ${userid}
|
||||||
wtv-human-name: ${human_name}
|
wtv-human-name: ${human_name}
|
||||||
wtv-mail-url: wtv-mail:/listmail
|
|
||||||
${ssid_sessions[socket.ssid].setIRCNick(nickname)}
|
${ssid_sessions[socket.ssid].setIRCNick(nickname)}
|
||||||
wtv-domain: ${ssid_sessions[socket.ssid].getSessionData("messenger_domain")}
|
wtv-domain: ${ssid_sessions[socket.ssid].getSessionData("messenger_domain")}
|
||||||
passport-domain: ${ssid_sessions[socket.ssid].getSessionData("messenger_domain")}
|
passport-domain: ${ssid_sessions[socket.ssid].getSessionData("messenger_domain")}
|
||||||
|
wtv-mail-url: wtv-mail:/listmail
|
||||||
|
wtv-favorite-url: wtv-favorite:/favorite
|
||||||
|
wtv-favorites-folders-url: wtv-favorite:/list-folders
|
||||||
wtv-input-timeout: 14400
|
wtv-input-timeout: 14400
|
||||||
wtv-connection-timeout: 1440
|
wtv-connection-timeout: 1440
|
||||||
wtv-fader-timeout: 1440
|
wtv-fader-timeout: 1440
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ minisrv v${minisrv_config.version}${(minisrv_config.config.git_commit) ? ' git-'
|
|||||||
<li><a href="client:relog">client:relog (direct)</a></li>
|
<li><a href="client:relog">client:relog (direct)</a></li>
|
||||||
<li><a href="wtv-flashrom:/willie" selected>Ultra Willies</a> ~ <a href="wtv-tricks:/tricks">Tricks</a></li>
|
<li><a href="wtv-flashrom:/willie" selected>Ultra Willies</a> ~ <a href="wtv-tricks:/tricks">Tricks</a></li>
|
||||||
<li><a href="wtv-setup:/setup">Setup (Including BG Music)</a></li>
|
<li><a href="wtv-setup:/setup">Setup (Including BG Music)</a></li>
|
||||||
|
<li><a href="wtv-favorite:/favorite">Favorites</a> <sup>new!</sup></li>
|
||||||
<li><a href="${ssid_sessions[socket.ssid].mailstore.checkMailIntroSeen() ? 'wtv-mail:/listmail' : 'wtv-mail:/DiplomaMail'}">Mail (beta)</a>
|
<li><a href="${ssid_sessions[socket.ssid].mailstore.checkMailIntroSeen() ? 'wtv-mail:/listmail' : 'wtv-mail:/DiplomaMail'}">Mail (beta)</a>
|
||||||
<li><a href="wtv-news:/lobby">Usenet (not ready)</a>
|
<li><a href="wtv-news:/lobby">Usenet (not ready)</a>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ const { lib } = require('crypto-js');
|
|||||||
const CryptoJS = require('crypto-js');
|
const CryptoJS = require('crypto-js');
|
||||||
const WTVMail = require('./WTVMail.js')
|
const WTVMail = require('./WTVMail.js')
|
||||||
const WTVSec = require('./WTVSec.js');
|
const WTVSec = require('./WTVSec.js');
|
||||||
|
const WTVFavorites = require('./WTVFavorites.js');
|
||||||
|
|
||||||
|
|
||||||
class WTVClientSessionData {
|
class WTVClientSessionData {
|
||||||
@@ -13,6 +14,7 @@ class WTVClientSessionData {
|
|||||||
data_store = null;
|
data_store = null;
|
||||||
session_store = null;
|
session_store = null;
|
||||||
mailstore = null;
|
mailstore = null;
|
||||||
|
favstore = null;
|
||||||
login_security = null;
|
login_security = null;
|
||||||
capabilities = null;
|
capabilities = null;
|
||||||
session_storage = "";
|
session_storage = "";
|
||||||
@@ -55,6 +57,7 @@ class WTVClientSessionData {
|
|||||||
this.lockdownWhitelist.push(minisrv_config.config.unauthorized_url);
|
this.lockdownWhitelist.push(minisrv_config.config.unauthorized_url);
|
||||||
this.lockdownWhitelist.push(minisrv_config.config.service_logo);
|
this.lockdownWhitelist.push(minisrv_config.config.service_logo);
|
||||||
this.mailstore = new WTVMail(this.minisrv_config, this)
|
this.mailstore = new WTVMail(this.minisrv_config, this)
|
||||||
|
this.favstore = new WTVFavorites(this.minisrv_config, this)
|
||||||
this.loginWhitelist = Object.assign([], this.lockdownWhitelist); // clone lockdown whitelist into login whitelist
|
this.loginWhitelist = Object.assign([], this.lockdownWhitelist); // clone lockdown whitelist into login whitelist
|
||||||
this.loginWhitelist.push("wtv-head-waiter:/choose-user");
|
this.loginWhitelist.push("wtv-head-waiter:/choose-user");
|
||||||
this.loginWhitelist.push("wtv-head-waiter:/password");
|
this.loginWhitelist.push("wtv-head-waiter:/password");
|
||||||
|
|||||||
387
zefie_wtvp_minisrv/WTVFavorites.js
Normal file
@@ -0,0 +1,387 @@
|
|||||||
|
class WTVFavorites {
|
||||||
|
|
||||||
|
fs = require('fs');
|
||||||
|
path = require('path');
|
||||||
|
uuid = require('uuid');
|
||||||
|
|
||||||
|
ssid = null;
|
||||||
|
minisrv_config = [];
|
||||||
|
wtvshared = null;
|
||||||
|
wtvmime = null;
|
||||||
|
wtvclient = null;
|
||||||
|
WTVClientSessionData = null;
|
||||||
|
favFileExt = ".zfav";
|
||||||
|
favstore_dir = null;
|
||||||
|
folderArr = [];
|
||||||
|
messageArr = [];
|
||||||
|
|
||||||
|
constructor(minisrv_config, wtvclient) {
|
||||||
|
if (!minisrv_config) throw ("minisrv_config required");
|
||||||
|
if (!wtvclient) throw ("WTVClientSessionData required");
|
||||||
|
var WTVShared = require('./WTVShared.js')['WTVShared'];
|
||||||
|
var WTVMime = require('./WTVMime.js');
|
||||||
|
this.WTVClientSessionData = require('./WTVClientSessionData.js');
|
||||||
|
this.minisrv_config = minisrv_config;
|
||||||
|
this.wtvshared = new WTVShared(minisrv_config);
|
||||||
|
this.wtvmime = new WTVMime(minisrv_config);
|
||||||
|
this.wtvclient = wtvclient;
|
||||||
|
this.ssid = wtvclient.ssid;
|
||||||
|
this.folderArr = this.folderArr;
|
||||||
|
this.messageArr = this.messageArr;
|
||||||
|
}
|
||||||
|
|
||||||
|
checkFavIntroSeen() {
|
||||||
|
return (this.wtvclient.getSessionData("subscriber_fav_intro_seen")) ? this.wtvclient.getSessionData("subscriber_fav_intro_seen") : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
setFavIntroSeen(seen) {
|
||||||
|
this.wtvclient.setSessionData("subscriber_fav_intro_seen", (seen) ? true : false);
|
||||||
|
}
|
||||||
|
|
||||||
|
favstoreExists() {
|
||||||
|
if (!this.isguest) {
|
||||||
|
if (this.favstore_dir === null) {
|
||||||
|
// set favstore directory local var so we don't call the function every time
|
||||||
|
var userstore_dir = this.wtvclient.getUserStoreDirectory();
|
||||||
|
|
||||||
|
// FavStore
|
||||||
|
var store_dir = "FavStore" + this.path.sep;
|
||||||
|
this.favstore_dir = userstore_dir + store_dir;
|
||||||
|
}
|
||||||
|
return this.fs.existsSync(this.favstore_dir);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
folderExists(foldername) {
|
||||||
|
var folder_dir = null;
|
||||||
|
if (this.favstoreExists()) {
|
||||||
|
if (!foldername) return null;
|
||||||
|
|
||||||
|
var folder_dir = foldername + this.path.sep;
|
||||||
|
var store_dir = this.favstore_dir + folder_dir;
|
||||||
|
}
|
||||||
|
return (store_dir !== null) ? this.fs.existsSync(store_dir) : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
getFolderDir(foldername) {
|
||||||
|
var folder_dir = null;
|
||||||
|
if (this.favstoreExists()) {
|
||||||
|
if (!foldername) return null;
|
||||||
|
|
||||||
|
var folder_dir = foldername + this.path.sep;
|
||||||
|
var store_dir = this.favstore_dir + folder_dir;
|
||||||
|
}
|
||||||
|
return store_dir;
|
||||||
|
}
|
||||||
|
|
||||||
|
createTemplateFolder(folder) {
|
||||||
|
// create emply folder
|
||||||
|
this.createFolder(folder)
|
||||||
|
var folder_templates = this.minisrv_config.favorites.folder_templates;
|
||||||
|
// populate it if a template exists
|
||||||
|
var self = this;
|
||||||
|
if (folder_templates[folder]) {
|
||||||
|
Object.keys(folder_templates[folder]).forEach(function (k) {
|
||||||
|
self.createFavorite(folder_templates[folder][k].title, folder_templates[folder][k].url, "Recommended", (folder_templates[folder][k].image_type == "image/wtv-bitmap") ? atob(folder_templates[folder][k].image) : folder_templates[folder][k].image, folder_templates[folder][k].image_type);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
createDefaultFolders() {
|
||||||
|
var brandId = this.ssid.charAt(8);
|
||||||
|
this.createTemplateFolder("Recommended");
|
||||||
|
if (brandId == 7)
|
||||||
|
this.createTemplateFolder("Personal (Samsung)");
|
||||||
|
else
|
||||||
|
this.createTemplateFolder("Personal");
|
||||||
|
|
||||||
|
if (brandId == 0)
|
||||||
|
this.createTemplateFolder("Sony");
|
||||||
|
}
|
||||||
|
|
||||||
|
createFavstore() {
|
||||||
|
if (this.favstoreExists() === false) {
|
||||||
|
if (!this.fs.existsSync(this.favstore_dir)) this.fs.mkdirSync(this.favstore_dir, { recursive: true });
|
||||||
|
this.createDefaultFolders();
|
||||||
|
this.wtvclient.setSessionData("subscriber_fav_images", true)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
createFolder(foldername) {
|
||||||
|
var folder_exists = this.folderExists(foldername);
|
||||||
|
if (folder_exists === false) {
|
||||||
|
var folderdir = foldername + this.path.sep;
|
||||||
|
var store_dir = this.favstore_dir + folderdir;
|
||||||
|
if (!this.fs.existsSync(store_dir)) this.fs.mkdirSync(store_dir, { recursive: true });
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return folder_exists;
|
||||||
|
}
|
||||||
|
|
||||||
|
getFolders() {
|
||||||
|
var path = this.favstore_dir;
|
||||||
|
var self = this;
|
||||||
|
return this.fs.readdirSync(path).filter(function (file) {
|
||||||
|
self.folderArr.push(file);
|
||||||
|
return self.folderArr;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
createFavoriteID() {
|
||||||
|
return this.uuid.v1();
|
||||||
|
}
|
||||||
|
|
||||||
|
createFavorite(title, url, folder, image, imagetype) {
|
||||||
|
var folderpath = this.getFolderDir(folder);
|
||||||
|
var favoriteid = this.createFavoriteID();
|
||||||
|
var favoritefile = favoriteid + this.favFileExt;
|
||||||
|
var favoritefileout = folderpath + favoritefile;
|
||||||
|
if (imagetype != "url")
|
||||||
|
image = btoa(image);
|
||||||
|
|
||||||
|
title = decodeURIComponent(title).replaceAll("+", " ");
|
||||||
|
url = decodeURIComponent(url)
|
||||||
|
var favoritedata = {
|
||||||
|
"title": title,
|
||||||
|
"url": url,
|
||||||
|
"folder": folder,
|
||||||
|
"image": image,
|
||||||
|
"imagetype": imagetype,
|
||||||
|
"id": favoriteid
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (this.fs.existsSync(favoritefileout)) {
|
||||||
|
console.log(" * ERROR: Favorite with this UUID (" + favoriteid + ") already exists (should never happen). Favorite lost.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// encode favorite into json
|
||||||
|
var result = this.fs.writeFileSync(favoritefileout, JSON.stringify(favoritedata));
|
||||||
|
if (!result) return false;
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.error(" # FavErr: Favorite Store failed\n", e, "\n", favoritefileout, "\n", favorite ,"\n");
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
listFavorites(folder) {
|
||||||
|
var folderpath = this.getFolderDir(folder);
|
||||||
|
var self = this;
|
||||||
|
self.messageArr = [];
|
||||||
|
var files = this.fs.readdirSync(folderpath)
|
||||||
|
.map(function (v) {
|
||||||
|
var favorite_data_raw = null;
|
||||||
|
var favoritepath = folderpath + self.path.sep + v;
|
||||||
|
if (self.fs.existsSync(favoritepath)) favorite_data_raw = self.fs.readFileSync(favoritepath);
|
||||||
|
if (favorite_data_raw) {
|
||||||
|
var favorite_data = JSON.parse(favorite_data_raw);
|
||||||
|
self.messageArr.push(favorite_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
return self.messageArr;
|
||||||
|
}
|
||||||
|
|
||||||
|
getFavorite(folder, favoriteid) {
|
||||||
|
var folder_path = this.getFolderDir(folder);
|
||||||
|
var folder_file = favoriteid + this.favFileExt;
|
||||||
|
var folder_file_in = folder_path + this.path.sep + folder_file;
|
||||||
|
var folder_data_raw = null;
|
||||||
|
|
||||||
|
if (this.fs.existsSync(folder_file_in)) folder_data_raw = this.fs.readFileSync(folder_file_in);
|
||||||
|
else console.error(" # FavErr: could not find ", folder_file_in);
|
||||||
|
|
||||||
|
if (folder_data_raw) {
|
||||||
|
var folder_data = JSON.parse(folder_data_raw);
|
||||||
|
folder_data.folder_path = folder_path;
|
||||||
|
folder_data.folder_file = folder_file;
|
||||||
|
if (folder_data) {
|
||||||
|
folder_data.id = favoriteid;
|
||||||
|
|
||||||
|
return folder_data;
|
||||||
|
}
|
||||||
|
else console.error(" # FavErr: could not parse json in ", folder_file_in);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteFolder(folder){
|
||||||
|
var dir = this.getFolderDir(folder);
|
||||||
|
this.fs.rmdirSync(dir, { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
|
checkFolderName(folder) {
|
||||||
|
var check1 = /^([A-Za-z0-9\-\_])$/.test(folder);
|
||||||
|
var check2 = /^[A-Za-z]/.test(folder);
|
||||||
|
return (check1 && check2);
|
||||||
|
}
|
||||||
|
|
||||||
|
deleteFavorite(favoriteid, folder) {
|
||||||
|
var folderdir = this.getFolderDir(folder);
|
||||||
|
this.fs.unlinkSync(folderdir + favoriteid + ".zfav", { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
|
clearFolder(folder) {
|
||||||
|
const { readdirSync, rmSync } = require('fs');
|
||||||
|
var dir = this.getFolderDir(folder);
|
||||||
|
readdirSync(dir).forEach(f => rmSync(`${dir}${f}`));
|
||||||
|
}
|
||||||
|
|
||||||
|
updateFavorite(favoritedata, folder) {
|
||||||
|
// encode message into json
|
||||||
|
var favoriteout = new Object();
|
||||||
|
var folderpath = this.getFolderDir(folder);
|
||||||
|
Object.assign(favoriteout, favoritedata);
|
||||||
|
delete favoriteout.folderpath;
|
||||||
|
delete favoriteout.favoritefile;
|
||||||
|
var result = this.fs.writeFileSync(folderpath + favoritedata.id + ".zfav", JSON.stringify(favoriteout));
|
||||||
|
if (!result) return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
changeFavoriteName(favoriteid, folder, name) {
|
||||||
|
var favorite = this.getFavorite(folder, favoriteid);
|
||||||
|
if (!favorite) return false;
|
||||||
|
|
||||||
|
favorite.title = name;
|
||||||
|
this.updateFavorite(favorite, folder);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
moveFavorite(oldfolder, newfolder, favoriteid) {
|
||||||
|
var favorite = this.getFavorite(oldfolder, favoriteid);
|
||||||
|
if (!favorite) return false;
|
||||||
|
|
||||||
|
var newfolderdata = this.listFavorites(newfolder);
|
||||||
|
var newfoldernum = newfolderdata.length
|
||||||
|
|
||||||
|
if (newfoldernum > 17)
|
||||||
|
return;
|
||||||
|
|
||||||
|
favorite.folder = newfolder;
|
||||||
|
this.updateFavorite(favorite, oldfolder);
|
||||||
|
var favoriteout = new Object();
|
||||||
|
var folderpath = this.getFolderDir(newfolder);
|
||||||
|
Object.assign(favoriteout, favorite);
|
||||||
|
delete favoriteout.folderpath;
|
||||||
|
delete favoriteout.favoritefile;
|
||||||
|
this.fs.writeFileSync(folderpath + favorite.id + ".zfav", JSON.stringify(favoriteout));
|
||||||
|
this.deleteFavorite(favoriteid, oldfolder)
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
createShortcutKey() {
|
||||||
|
var favoritefileout = this.favstore_dir + "KeyStore.zfav";
|
||||||
|
var keydata = {};
|
||||||
|
|
||||||
|
keydata.F1 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
keydata.F2 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
keydata.F3 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
keydata.F4 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
keydata.F5 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
keydata.F6 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
keydata.F7 = {
|
||||||
|
folder: "none",
|
||||||
|
id: "none"
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// encode favorite into json
|
||||||
|
var result = this.fs.writeFileSync(favoritefileout, keydata);
|
||||||
|
if (!result) return false;
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.error(" # FavErr: Key Store failed\n", e, "\n", favoritefileout);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
updateShortcutKey(oldkey, newkey, folder, id) {
|
||||||
|
var folderpath = this.getFolderDir(folder);
|
||||||
|
var favoritefileout = this.favstore_dir + "KeyStore.zfav";
|
||||||
|
var keydata = {};
|
||||||
|
|
||||||
|
keydata = this.fs.readFileSync(favoritefileout)
|
||||||
|
console.log(newkey)
|
||||||
|
switch(newkey) {
|
||||||
|
case "F1":
|
||||||
|
keydata.F1.folder = folder;
|
||||||
|
break
|
||||||
|
case "F2":
|
||||||
|
keydata.F2 = {
|
||||||
|
folder: folder,
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "F3":
|
||||||
|
keydata.F3 = {
|
||||||
|
folder: folder,
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "F4":
|
||||||
|
keydata.F4 = {
|
||||||
|
folder: folder,
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "F5":
|
||||||
|
keydata.F5 = {
|
||||||
|
folder: folder,
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "F6":
|
||||||
|
keydata.F6 = {
|
||||||
|
folder: folder,
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "F7":
|
||||||
|
keydata.F7 = {
|
||||||
|
folder: folder,
|
||||||
|
id: id
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (oldkey == "none")
|
||||||
|
{
|
||||||
|
//no
|
||||||
|
} else {
|
||||||
|
keydata[oldkey].folder = null;
|
||||||
|
keydata[oldkey].id = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
// encode favorite into json
|
||||||
|
var result = this.fs.writeFileSync(favoritefileout, keydata);
|
||||||
|
if (!result) return false;
|
||||||
|
|
||||||
|
} catch (e) {
|
||||||
|
console.error(" # FavErr: Key Store failed\n", e, "\n", favoritefileout);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
module.exports = WTVFavorites;
|
||||||
@@ -498,7 +498,7 @@ async function processURL(socket, request_headers) {
|
|||||||
} else {
|
} else {
|
||||||
request_headers.query[k] = unescape(qraw[i].split("=")[1].replace(/\+/g, "%20"));
|
request_headers.query[k] = unescape(qraw[i].split("=")[1].replace(/\+/g, "%20"));
|
||||||
}
|
}
|
||||||
} else if (qraw[i].length > 0) {
|
} else if (qraw[i].length == 1) {
|
||||||
request_headers.query[qraw[i]] = null;
|
request_headers.query[qraw[i]] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,6 +115,13 @@
|
|||||||
"wtv-passport": {
|
"wtv-passport": {
|
||||||
"port": 1654
|
"port": 1654
|
||||||
},
|
},
|
||||||
|
"wtv-favorite": {
|
||||||
|
"port": 1611,
|
||||||
|
"connections": 3,
|
||||||
|
"enable_multi_query": true,
|
||||||
|
"max_folders": 14,
|
||||||
|
"max_favorites_per_folder": 18
|
||||||
|
},
|
||||||
"wtv-admin": {
|
"wtv-admin": {
|
||||||
"port": 1698,
|
"port": 1698,
|
||||||
"enable_multi_query": true,
|
"enable_multi_query": true,
|
||||||
@@ -147,5 +154,55 @@
|
|||||||
"allow_https": false,
|
"allow_https": false,
|
||||||
"force_https": false
|
"force_https": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"favorites": {
|
||||||
|
"folder_templates": {
|
||||||
|
"Recommended": [
|
||||||
|
{
|
||||||
|
"title": "DuckDuckGo",
|
||||||
|
"url": "http://lite.duckduckgo.com/lite",
|
||||||
|
"image_type": "image/wtv-bitmap",
|
||||||
|
"image": "AAAAAAAAAQQAJAAAAAAAAAAAAAAAAAA0AAAARgAAAAABlAAAAAQBkLmAuYC5gLmAt3y5gJ1xsJKUgJeApoCIgLmAuYC5f7mAlG+umaVymJy5gLmAkoCMf5eAl4CigKOAuYC5gLN6sYe5gLmAm4CbgHCAlICdgJ6Ag22jqJ9znZ3YgNiAwIDAgJ54sZKlepmbuYC5gJuCm4CXgJeAo4CjgLmAuYCwebOHtH65gpd0qpmqcaKUmHCwlsWAj4C1gJCAjICMgLmAuYC5gLmAoXa3jZ+Aa4CggJOAl4CVgJuAo4CdgLmAfYC5gHKAbYCXgJaAuYCsgJeAj4CVcpalmW2jnH6AuoB5gLqAj4C7f5WAs3+ib5qcmG6omrmAuYChd7GQZ4B0gJeAloChcKqUl3Gjnbl5uYC5fbmAp3KrkJdxp5uUdZampXGdmbh9uYCWb6uZtX+xhZ54np2XbrmSn3CanotunKigcp2c2IXYgMCCwICqcZqYmnCmmrmAroC5gLmAlHOWpqBwopm0frGFl3Kin7d9uYCTbaubuYC5gKN3rpG4f66FmXOinYqAjIC5gLmAAAAAAAAAAAAAAAAAAAAAAAAAACUtBy4QLCQPHhAvARQDAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAwrKSAnJiMdIgoEGhEhAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAFDQgICAgICAgICAgICAgICAgICAgICBkCBg4WFwAAAIAAAAAcKAsLCwsLCwsLCwsLCwsLCwsLCwsLCxIVGB8JGwAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACowExMTAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Old'aVista",
|
||||||
|
"url": "http://www.oldavista.com/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/oldavista.gif"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "RetroSite",
|
||||||
|
"url": "http://retrosite.ga/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/retrosite.gif"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "68k.news",
|
||||||
|
"url": "http://68k.news/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/news.gif"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "The Old Net",
|
||||||
|
"url": "http://theoldnet.com/lite",
|
||||||
|
"image_type": "image/wtv-bitmap",
|
||||||
|
"image": "AAAAAAAAAQQAJAAAAAAAAAAAAAAAAAA0AAAARgAAAAACBAAAAAQCALmAuYC5gLmAuHy5ga9ftIu2f7iCmHWjoISusnuoj699knKVbK18rnm8gL2AuIC4gISdh3mojKN9uIC4gJudmXyRdJessXywiZdwjq+XdaShkauQebCLsH65gLmAsIG0gLWEt393q555lIKaf7uBlX94gHOAiICGgKtsto+yebiF2IDYgLqAuoCZkJyLp4iqhZmAmYDYgNiAp4CmgHKAfICjgKKAg4CUgLmElYC2gqSAt4CnfoiSnnqPgI+A0IDQgIyAkoCJgIeAk4CTgKGAzICfgHOAe4CHgIqAnX+RgMp/uYC5gJeAmYCOgJGAn4CjgL6AkYC4gJOAdIB4gKCAnICggJ2Ak4CdgI6AhoCggJKAqIS7gLKBtoCTfbt+s3+4gKOAo4CwgK+AjoCMgLeAuICvf6aAtoCygI+YmXyli6p9oICNgJ2AgoCHgI6AjICcgIWAlYC9gLyAuYC5gLKApn+SlIV6rYSrfnWuiXeejq58koOKf6qBo4C3f7mBnnW5kbiAuYCcdaFyzYDNgLOAs4C5gLmAo4CngLmAt4CvgJF/noB1f7aAtYCAgG+AtIC3gG2AiYC1gLKAs4CNgLaAtoCWgJOAeIBtgJGAuYCSgLmAnJSNe6KOoX2kgHiAqoCMgKSApoCBgHqAuYC4gLiAsoCXgJuAcoB3gKaAooCYgHiAAAAAADMMBwcHBwcHAi8BAQEWDAwwMDAwMDACAgICLwAAAAAAAAAAADQKLQMGCgYDCA8PDw8NBgMEBAQEBCMICQkIDwAAAACIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAA9CwsLCwsLCwsLCws9HBwcHBwzHBwLAAAAAAAAAAAAAAAeOBQpDS4dISQuGxISEhINKDg+KTsgOBQ5AAAAAAAHAAAAAAAAJgAmBQUFBQUFAAUFBRwgPj4+Pho/PiAjAAAAAAAGAAAAAAAAHiEZEhISEhISEhISDT88Ezw/ExMTIDkAAAAAAABVAAAAAAAANwsFMTExMTExMTExFRQYGBgYGBgYPCMAAAAAAAB5AAAAAAAAHi4lFxcXFxcXFxcXDSgYGCk+GBgYKTkAAAAAAABVAAAAAAAAFSIiEBAQEBAQEBAQHhoODhgODg4OGDkAAAAAAABVAAAAAAAAMxwcHBwcHBwcHBwcHCEdHR0pHSEdHTIAAAAAAABVAAAAAAAAHiojEBAQEBAQEBAQHjsfHx8fDiEfKTkAAAAAAAB6AAAAAAEAAAAAPQAAAAAAAAAAACUlJSUlJSUlJQsLCwsAAABVAAAAPSYkJiYkJiQmJCQkJCMkJiQkJCIkJCYkJCQkJCIAAABVAAAAAAAAAAAAJiYmJCYkJiQkJCQmJCYREQsAAAAAAAAAAABVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB6AAAAAAAAAAAAAAAAKws9Cz0LACsAPQsAAAAAAAAAAAAAAABVAAAAAAAAAAAAAAAAJAYnLCcnBgYnBiIAAAAAAAAAAAAAAABVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVAAAzMjMcMzIyMjIrHDIyMisyMjILHDIyCzMzMjIyMisLAAB6AAA3NTc2JTY0JTY0NTU1JSU2NTU3NTU1NDUlNjU1NjQqAABVPQAAAD0AAAAAAD0ANzYfDh0fHyEfHwsAPQsAAAAAAAA9AABVFR0pIS4pLjonJzonJzoVJzo6OjoGOicnLjY7ITsoIRg7ITlVAAAAAAAAAAAAAAAAAAAoGBQ/IBQUAAAAAAAAAAAAAAAAAAB6ADMTPD8TPhM/ExM8OD88PzgUExQ8Ez4UPBQTExQ+PD8UOQBV"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Personal": [
|
||||||
|
{
|
||||||
|
"title": "The Midnight Archive",
|
||||||
|
"url": "http://archive.midnightchanne.net/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/midnightchannel.gif"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "WebTV/MSNTV Secrets",
|
||||||
|
"url": "http://turdinc.kicks-ass.net/Msntv/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/mattman69.gif"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,5 +71,22 @@
|
|||||||
"password": "implemented"
|
"password": "implemented"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"favorites": {
|
||||||
|
"folder_templates": {
|
||||||
|
"Personal": [
|
||||||
|
{
|
||||||
|
"title": "The Midnight Archive",
|
||||||
|
"url": "http://archive.midnightchanne.net/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/midnightchannel.gif"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "WebTV/MSNTV Secrets",
|
||||||
|
"url": "http://turdinc.kicks-ass.net/Msntv/",
|
||||||
|
"image_type": "url",
|
||||||
|
"image": "canned/mattman69.gif"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@@ -44,6 +44,19 @@
|
|||||||
<Content Include="ServiceVault\http_pc\viewergen\viewers\WebTVIntel--2.5.exe.gz" />
|
<Content Include="ServiceVault\http_pc\viewergen\viewers\WebTVIntel--2.5.exe.gz" />
|
||||||
<Content Include="ServiceVault\wtv-1800\noflash.js" />
|
<Content Include="ServiceVault\wtv-1800\noflash.js" />
|
||||||
<Content Include="ServiceVault\wtv-1800\offer-open-isp-suggest.js" />
|
<Content Include="ServiceVault\wtv-1800\offer-open-isp-suggest.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\admin.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\ban.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\deleteaccount.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\deleteuser.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\findaccount.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\images\nuke.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\images\nuke_inverted.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\images\polyzoot.jpg" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\polyzoot.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\regenfavs.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\reloadconfig.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\removeuserpasswd.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-admin\unban.js" />
|
||||||
<Content Include="ServiceVault\wtv-chat\home.js" />
|
<Content Include="ServiceVault\wtv-chat\home.js" />
|
||||||
<Content Include="ServiceVault\wtv-chat\images\htv_chat.gif" />
|
<Content Include="ServiceVault\wtv-chat\images\htv_chat.gif" />
|
||||||
<Content Include="ServiceVault\wtv-chat\images\htv_chat.jpg" />
|
<Content Include="ServiceVault\wtv-chat\images\htv_chat.jpg" />
|
||||||
@@ -67,6 +80,81 @@
|
|||||||
<Content Include="ServiceVault\wtv-disk\userstore.js">
|
<Content Include="ServiceVault\wtv-disk\userstore.js">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\add.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\90s.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\funlover.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\halen.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\amazon.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\barnesandnoble.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\chicago_tribune.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\ctt-wtv.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\discovery.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\e_online.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\la_times.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\msnbc.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\ny_times.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\pbs_online.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\premiere.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\roget.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\soap-wtv.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\trivialpursuit.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\images\webster.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\magnavox.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\mitsubishi.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\Music.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\news.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\oldavista.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\oldnet.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\RetroSite.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\samsung.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\simulator.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\sony.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\sony_pictures.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\canned\sony_pictures_store.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-add-folder.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-arrange-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-discard-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-discard-folders.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-move-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-rename-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-samples-page.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\commit-shortcuts-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\favorite-index.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\favorite.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\get-thumbnail.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\images\checkmark.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\images\fkey.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\list-folders.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\FarRightTop.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\FarRightTopWithNextTab.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\FavoritesBanner.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\fkey.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\FoldersCoverBorder.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\LeftBottom.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\LeftMiddle.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\LeftMiddleTabOnly.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\LeftTop.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\LeftTopWithPreviousTab.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\MiddleTop.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\RightBottom.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\RightMiddle.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\RightMiddleEdgeOnly.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\RightTop.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\RightTopEdgeOnly.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\RightTopMost.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\ROMCache\WebTVLogoJewel.gif" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-add-folder-page.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-arrange-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-browser.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-choose-shortcut-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-discard-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-discard-folders.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-move-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-organize-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-rename-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-samples-page.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\serve-shortcuts-favorites.js" />
|
||||||
|
<Content Include="ServiceVault\wtv-favorite\sony.html" />
|
||||||
<Content Include="ServiceVault\wtv-flashrom\content\content-serve.js" />
|
<Content Include="ServiceVault\wtv-flashrom\content\content-serve.js" />
|
||||||
<Content Include="ServiceVault\wtv-flashrom\current-noflash.js">
|
<Content Include="ServiceVault\wtv-flashrom\current-noflash.js">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
@@ -429,6 +517,7 @@
|
|||||||
<Content Include="WTVDownloadList.js">
|
<Content Include="WTVDownloadList.js">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="WTVFavorites.js" />
|
||||||
<Content Include="WTVFlashrom.js">
|
<Content Include="WTVFlashrom.js">
|
||||||
<SubType>Code</SubType>
|
<SubType>Code</SubType>
|
||||||
</Content>
|
</Content>
|
||||||
@@ -460,6 +549,13 @@
|
|||||||
<Folder Include="ServiceVault\http_pc\" />
|
<Folder Include="ServiceVault\http_pc\" />
|
||||||
<Folder Include="ServiceVault\http_pc\viewergen\" />
|
<Folder Include="ServiceVault\http_pc\viewergen\" />
|
||||||
<Folder Include="ServiceVault\http_pc\viewergen\viewers\" />
|
<Folder Include="ServiceVault\http_pc\viewergen\viewers\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-admin\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-admin\images\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-favorite\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-favorite\canned\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-favorite\canned\images\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-favorite\images\" />
|
||||||
|
<Folder Include="ServiceVault\wtv-favorite\ROMCache\" />
|
||||||
<Folder Include="ServiceVault\wtv-mail\" />
|
<Folder Include="ServiceVault\wtv-mail\" />
|
||||||
<Folder Include="ServiceVault\wtv-chat\" />
|
<Folder Include="ServiceVault\wtv-chat\" />
|
||||||
<Folder Include="ServiceVault\wtv-chat\images\" />
|
<Folder Include="ServiceVault\wtv-chat\images\" />
|
||||||
|
|||||||