<% if (isset("Action")) { if (Action == "UnqueMusicplaylist") { var ItemCount; var z; ItemCount = xbmcCommand("catalog","items"); for (z = 0; z < ItemCount; z = z + 1) { // dirty workaround, cause unque, + z won't work xbmcCommand("navigate", Action); xbmcCommand("catalog","unque"); } Action = "musicplaylist"; } xbmcCommand("navigate", Action); } if (isset("command")) { // execute a few commands before listing the contents if (command == "select") { xbmcCommand("catalog", "select," + item); } else if (command == "unque") { xbmcCommand("catalog", "unque," + item); } } var navigatorstate; var BannerClass; var InfoClass; var BackgroundClass; var ItemFileClass; navigatorstate = xbmcCommand("navigatorstate"); if (isset("DisplayConfiguration")) { BannerClass = "SiteBannerConfiguration"; InfoClass = "SiteInfoConfiguration"; BackgroundClass = "SiteBackgroundConfiguration"; } else if (navigatorstate == "pictures") { BannerClass = "SiteBannerMyPictures"; InfoClass = "SiteInfoMyPictures"; BackgroundClass = "SiteBackgroundMyPictures"; ItemFileClass = "ItemFileMyPictures"; } else if (navigatorstate == "music") { BannerClass = "SiteBannerMyMusic"; InfoClass = "SiteInfoMyMusic"; BackgroundClass = "SiteBackgroundMyMusic"; ItemFileClass = "ItemFileMyMusic"; } else if (navigatorstate == "videos") { BannerClass = "SiteBannerMyVideos"; InfoClass = "SiteInfoMyVideos"; BackgroundClass = "SiteBackgroundMyVideos"; ItemFileClass = "ItemFileMyVideos"; } else if (navigatorstate == "musicplaylist") { BannerClass = "SiteBannerMusicPlaylist"; InfoClass = "SiteInfoMusicPlaylist"; BackgroundClass = "SiteBackgroundMusicPlaylist"; ItemFileClass = "ItemFileMusicPlaylist"; } else if (navigatorstate == "videoplaylist") { BannerClass = "SiteBannerVideoPlaylist"; InfoClass = "SiteInfoVideoPlaylist"; BackgroundClass = "SiteBackgroundVideoPlaylist"; ItemFileClass = "ItemFileVideoPlaylist"; } else { BannerClass = "SiteBannerNone"; InfoClass = "SiteInfoLogo"; BackgroundClass = "SiteBackgroundHome"; } %> Xbox Media Center - Remote Control
<% if (isset("DisplayConfiguration") ) { /* * xbmc configuration options xbmcCfgBookmarkSize(type) xbmcCfgGetBookmark(type, parameter, id) xbmcCfgAddBookmark(type, name, path [, position]) xbmcCfgSaveBookmark(type, name, path, position) xbmcCfgRemoveBookmark(type, position) xbmcCfgSaveConfiguration(filename) xbmcCfgGetOption(name) xbmcCfgSetOption(name, value) */ write("bookmarks \n"); write("xbmc options \n"); write("load / save \n"); write("
\n"); write("
\n"); /* if action isset we want to save / edit or remove something */ if (isset("action")) { if (action == "savebookmark") { if (isset("name") == "1" && isset("path") == "1" && isset("type") == "1" && isset("position") == "1") { xbmcCfgSaveBookmark(type, name, path, position); } else write("Error"); } if (action == "addbookmark") { if (isset("name") == "1" && isset("path") == "1" && isset("type") == "1") { xbmcCfgAddBookmark(type, name, path); } else write("Error"); } if (action == "remove") { if (isset("page")) { // return to bookmark page and not to editbookmarks page = "bookmarks"; xbmcCfgRemoveBookmark(type, position); } } if (action == "saveoptions") { xbmcCfgSetOption("home", home); xbmcCfgSetOption("CDDBIpAdres", CDDBIpAdres); var usef = "no"; if (isset("useFDrive")) usef = "yes"; xbmcCfgSetOption("useFDrive", usef); var useg = "no"; if (isset("useGDrive")) useg = "yes"; xbmcCfgSetOption("useGDrive", useg); xbmcCfgSetOption("dashboard", dashboard); xbmcCfgSetOption("dvdplayer", dvdplayer); xbmcCfgSetOption("subtitles", subtitles); xbmcCfgSetOption("startwindow", startwindow); xbmcCfgSetOption("pictureextensions", pictureextensions); xbmcCfgSetOption("musicextensions", musicextensions); xbmcCfgSetOption("videoextensions", videoextensions); xbmcCfgSetOption("thumbnails", thumbnails); xbmcCfgSetOption("shortcuts", shortcuts); xbmcCfgSetOption("albums", albums); xbmcCfgSetOption("recordings", recordings); xbmcCfgSetOption("screenshots", screenshots); var remcodes = "no"; if (isset("displayremotecodes")) remcodes = "yes"; xbmcCfgSetOption("displayremotecodes", remcodes); } if (action == "save") { xbmcCfgSaveConfiguration("XBoxMediaCenter.xml"); } } if (isset("page")) { var i; var name; var value; var options; if (page == "bookmarks") { var musicbookmarks = xbmcCfgBookmarkSize("music"); var picturebookmarks = xbmcCfgBookmarkSize("pictures"); var videobookmarks = xbmcCfgBookmarkSize("video"); var filebookmarks = xbmcCfgBookmarkSize("files"); var programbookmarks = xbmcCfgBookmarkSize("myprograms"); /* Add new Bookmark button */ write("
\n"); write("
\n"); write("
\n"); /* Display Music Bookmarks */ write("
\n"); write(" Music Bookmarks:
\n"); write(" \n"); write(" \n"); write(" \n"); write("
\n"); /* Display Picture Bookmarks */ write("
\n"); write("Picture Bookmarks:
\n"); write(" \n"); write(" \n"); write(" \n"); write("
\n"); /* Display Video Bookmarks */ write("
\n"); write("Video Bookmarks:
\n"); write(" \n"); write(" \n"); write(" \n"); write("
\n"); /* Display File Bookmarks */ write("
\n"); write("File Bookmarks:
\n"); write(" \n"); write(" \n"); write(" \n"); write("
\n"); /* Display Program Bookmarks */ write("
\n"); write("Program Bookmarks:
\n"); write(" \n"); write(" \n"); write(" \n"); write("
\n"); } else if (page == "options") { write("
" + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " "); // Use F Drive write(" " + \ " " + \ " "); // Use G Drive write(" " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " " ); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); write(" " + \ " " + \ " " + \ " "); // Display remote codes write(" " + \ " " + \ " "); write("

" + \ "
" + \ " "); else write(">"); write("
" + \ " "); else write(">"); write("












" + \ " "); else write(">"); write("

" + \ " " + \ "

"); } else if (page == "editbookmark") { if (isset("type") == "1" && isset("position") == "1") { write("
\n"); write("\n"); write("\n"); write(" \n"); write(" \n"); write(" \n"); write(" \n"); write(" \n"); write(" \n"); write(" \n"); write(" \n"); write(" \n"); write("

\n"); write(" \n"); write("
\n"); } } else if (page == "addbookmark") { var data = "
\n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + " \n"; data = data + "
"; data = data + " \n"; data = data + "

\n"; data = data + " \n"; data = data + "
\n"; write(data); } if (page == "load_save") { write("

Save\n"); } } } else { var z; var n; var i; var data; n = xbmcCommand("catalog","items"); // number of items to list file = xbmcCommand("catalog","first"); if ( n > 0) { write("
    \n"); } for (z=0; z
"; } else { data = data + "
"; } if (file != ".." && navigatorstate != "musicplaylist" && navigatorstate != "videoplaylist" && navigatorstate != "pictures") { data = data + ""; } else if (navigatorstate == "musicplaylist" || navigatorstate == "videoplaylist") { data = data + ""; } if (type != "directory") { // we have a file to play, send command to server when clicked and do not refresh the current page data = data + "
"; } else { data = data + ""; data = data + "\n"; write(data); file = xbmcCommand("catalog","next"); } if ( n > 0) { write(" \n"); } if (navigatorstate == "musicplaylist") { write ("Clear Playlist\n"); } } %>