Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Only set the $mfpsecured variable to true if you have secured
- // MediaFrontPage with a password via .htaccess or some other method
- // use at your own risk as this can create a security vulnerability in
- // the wControl widget.
- $mfpsecured = false;
- // Alternativly you can set a unique key here.
- $mfpapikey = ''; //
- // enter hostname and port of the xbmc json service here. By default 8080
- $xbmcjsonservice = "http://USER:PASSWORD@localhost:8083/jsonrpc"; //remove 'USER:PASSWORD@' if your xbmc install does not require a password.
- $xbmcimgpath = 'http://localhost:8083/vfs/'; //leave as default if unsure
- $xbmcdbconn = array(
- 'video' => array('dns' => 'sqlite:/home/xbmc/.xbmc/userdata/Database/MyVideos34.db', 'username' => '', 'password' => '', 'options' => array()),
- 'music' => array('dns' => 'sqlite:/home/xbmc/.xbmc/userdata/Database/MyMusic7.db', 'username' => '', 'password' => '', 'options' => array()),
- );
- //Example of mysql connections
- /*
- $xbmcdbconn = array(
- 'video' => array(
- 'dns' => 'mysql:host=hostname;dbname=videos',
- 'username' => 'xbmc',
- 'password' => 'xbmc',
- 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
- ),
- 'music' => array(
- 'dns' => 'mysql:host=hostname;dbname=music',
- 'username' => 'xbmc',
- 'password' => 'xbmc',
- 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
- ),
- );
- */
- // enter path to sickbeards's coming episodes page
- $sickbeardcomingepisodes = 'http://user:password@COMPUTER:PORT/sickbeard/comingEpisodes/';
- $sickbeardurl = "http://user:password@COMPUTER:PORT/sickbeard/";
- // enter SABnzbd+ URL and API key
- $saburl = 'http://localhost:8080/sabnzbd/'; // The full URL you use to access SABnzbd.
- $sabapikey = 'xxxxxxxxxxxxxxxxxxxxxx'; // SABnzbd's API Key found in Config>General.
- //enter NZBmatrix login
- $nzbusername = 'xxxxxxx'; //username
- $nzbapi = 'xxxxxxxxxxxxxxxxxx'; //api
- // enter navigation bar links
- $navlink;
- $navlink["XBMC"] = "http://localhost:8083";
- $navlink["Sickbeard"] = "http://localhost:8081";
- $navlink["Couch Potato"] = "http://localhost:5000";
- //$navlink["TV Headend"] = "/tvheadend";
- $navlink["Sabnzbd"] = "http://localhost:8080";
- // enter shortcut links for control section
- $shortcut;
- $shortcut["Shutdown XBMC"] = array("cmd" => 'shutdown');
- $shortcut["Update XBMC Video Library"] = array("cmd" => 'vidscan');
- $shortcut["Clean XBMC Video Library"] = array("xbmcsend" => 'CleanLibrary(video)'); // Optionally add 'host' => 'localhost', 'port' => 9777 to connect to a different machine.
- $shortcut["Update XBMC Audio Library"] = array("json" => '{"jsonrpc": "2.0", "method": "AudioLibrary.ScanForContent", "id" : 1 }');
- $shortcut["Google"] = "http://www.google.com/";
- /*
- $shortcut["Input - XBMC"] = "http://192.168.1.6:8083/input/xbmc";
- //$shortcut["Input - Pay TV"] = "/input/cable";
- //$shortcut["Input - Games"] = "/input/games";
- $shortcut["Now Playing"] = "http://192.168.1.6:8083/nowplaying";
- $shortcut["Turn TV On"] = "http://192.168.1.6:8083/tv/on";
- $shortcut["Turn TV Off"] = "http://192.168.1.6:8083/tv/off";
- //$shortcut["Turn Xbox On"] = "/xbox/on";
- //$shortcut["Turn Xbox Off"] = "/xbox/off";
- */
- // enter directories for hard drive section
- $drive;
- $drive["/"] = "/";
- $drive["Sata 1"] = "D:/TV Shows";
- $drive["Sata 2"] = "G:/TV Shows";
- $drive["Sata 3"] = "H:/TV Shows";
- $drive["Sata 4"] = "K:/TV Shows";
- $drive["Sata 5"] = "L:/TV Shows";
- $drive["Sata 6"] = "E:/Movies";
- // enter rss feeds. Ensure sabnzbd > config > index sites is set. Supports cat, pp, script, priority as per the sabnzbd api.
- $rssfeeds["NZBMatrix - TV Shows (DivX)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=6", "cat" => "tv");
- $rssfeeds["NZBMatrix - TV Shows (HD x264)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=41", "cat" => "tv");
- $rssfeeds["NZBMatrix - Movies (DivX)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=2", "cat" => "movies");
- $rssfeeds["NZBMatrix - Movies (HD x264)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=42", "cat" => "movies");
- $rssfeeds["NZBMatrix - Music (MP3)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=22", "cat" => "music");
- $rssfeeds["NZBMatrix - Music (Lossless)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=23", "cat" => "music");
- $rssfeeds["NZBMatrix - Sports"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=7", "cat" => "sports");
- $rssfeeds["MediaFrontPage on Github"] = array("url" => "https://github.com/nick8888/mediafrontpage/commits/master.atom", "type" => "atom");
- $customStyleSheet = "";
- //Example of how to use this
- //$customStyleSheet = "css/lighttheme.css";
- //Show only posters for coming episodes
- //$customStyleSheet = "css/comingepisodes-minimal-poster.css";
- //Show only banners for coming episodes
- //$customStyleSheet = "css/comingepisodes-minimal-banner.css";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement