Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2011
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.87 KB | None | 0 0
  1. <?php
  2. // Only set the $mfpsecured variable to true if you have secured
  3. // MediaFrontPage with a password via .htaccess or some other method
  4. // use at your own risk as this can create a security vulnerability in
  5. // the wControl widget.
  6. $mfpsecured = false;
  7.  
  8. // Alternativly you can set a unique key here.
  9. $mfpapikey = ''; //
  10.  
  11. // enter hostname and port of the xbmc json service here. By default 8080
  12. $xbmcjsonservice = "http://USER:PASSWORD@localhost:8083/jsonrpc"; //remove 'USER:PASSWORD@' if your xbmc install does not require a password.
  13. $xbmcimgpath = 'http://localhost:8083/vfs/'; //leave as default if unsure
  14.  
  15. $xbmcdbconn = array(
  16. 'video' => array('dns' => 'sqlite:/home/xbmc/.xbmc/userdata/Database/MyVideos34.db', 'username' => '', 'password' => '', 'options' => array()),
  17. 'music' => array('dns' => 'sqlite:/home/xbmc/.xbmc/userdata/Database/MyMusic7.db', 'username' => '', 'password' => '', 'options' => array()),
  18. );
  19. //Example of mysql connections
  20. /*
  21. $xbmcdbconn = array(
  22. 'video' => array(
  23. 'dns' => 'mysql:host=hostname;dbname=videos',
  24. 'username' => 'xbmc',
  25. 'password' => 'xbmc',
  26. 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
  27. ),
  28. 'music' => array(
  29. 'dns' => 'mysql:host=hostname;dbname=music',
  30. 'username' => 'xbmc',
  31. 'password' => 'xbmc',
  32. 'options' => array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")
  33. ),
  34.  
  35. );
  36. */
  37.  
  38. // enter path to sickbeards's coming episodes page
  39. $sickbeardcomingepisodes = 'http://user:password@COMPUTER:PORT/sickbeard/comingEpisodes/';
  40. $sickbeardurl = "http://user:password@COMPUTER:PORT/sickbeard/";
  41.  
  42. // enter SABnzbd+ URL and API key
  43. $saburl = 'http://localhost:8080/sabnzbd/'; // The full URL you use to access SABnzbd.
  44. $sabapikey = 'xxxxxxxxxxxxxxxxxxxxxx'; // SABnzbd's API Key found in Config>General.
  45.  
  46. //enter NZBmatrix login
  47. $nzbusername = 'xxxxxxx'; //username
  48. $nzbapi = 'xxxxxxxxxxxxxxxxxx'; //api
  49.  
  50. // enter navigation bar links
  51. $navlink;
  52. $navlink["XBMC"] = "http://localhost:8083";
  53. $navlink["Sickbeard"] = "http://localhost:8081";
  54. $navlink["Couch Potato"] = "http://localhost:5000";
  55. //$navlink["TV Headend"] = "/tvheadend";
  56. $navlink["Sabnzbd"] = "http://localhost:8080";
  57.  
  58. // enter shortcut links for control section
  59. $shortcut;
  60. $shortcut["Shutdown XBMC"] = array("cmd" => 'shutdown');
  61. $shortcut["Update XBMC Video Library"] = array("cmd" => 'vidscan');
  62. $shortcut["Clean XBMC Video Library"] = array("xbmcsend" => 'CleanLibrary(video)'); // Optionally add 'host' => 'localhost', 'port' => 9777 to connect to a different machine.
  63. $shortcut["Update XBMC Audio Library"] = array("json" => '{"jsonrpc": "2.0", "method": "AudioLibrary.ScanForContent", "id" : 1 }');
  64. $shortcut["Google"] = "http://www.google.com/";
  65. /*
  66. $shortcut["Input - XBMC"] = "http://192.168.1.6:8083/input/xbmc";
  67. //$shortcut["Input - Pay TV"] = "/input/cable";
  68. //$shortcut["Input - Games"] = "/input/games";
  69. $shortcut["Now Playing"] = "http://192.168.1.6:8083/nowplaying";
  70. $shortcut["Turn TV On"] = "http://192.168.1.6:8083/tv/on";
  71. $shortcut["Turn TV Off"] = "http://192.168.1.6:8083/tv/off";
  72. //$shortcut["Turn Xbox On"] = "/xbox/on";
  73. //$shortcut["Turn Xbox Off"] = "/xbox/off";
  74. */
  75.  
  76. // enter directories for hard drive section
  77. $drive;
  78. $drive["/"] = "/";
  79. $drive["Sata 1"] = "D:/TV Shows";
  80. $drive["Sata 2"] = "G:/TV Shows";
  81. $drive["Sata 3"] = "H:/TV Shows";
  82. $drive["Sata 4"] = "K:/TV Shows";
  83. $drive["Sata 5"] = "L:/TV Shows";
  84. $drive["Sata 6"] = "E:/Movies";
  85.  
  86.  
  87. // enter rss feeds. Ensure sabnzbd > config > index sites is set. Supports cat, pp, script, priority as per the sabnzbd api.
  88. $rssfeeds["NZBMatrix - TV Shows (DivX)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=6", "cat" => "tv");
  89. $rssfeeds["NZBMatrix - TV Shows (HD x264)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=41", "cat" => "tv");
  90. $rssfeeds["NZBMatrix - Movies (DivX)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=2", "cat" => "movies");
  91. $rssfeeds["NZBMatrix - Movies (HD x264)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=42", "cat" => "movies");
  92. $rssfeeds["NZBMatrix - Music (MP3)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=22", "cat" => "music");
  93. $rssfeeds["NZBMatrix - Music (Lossless)"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=23", "cat" => "music");
  94. $rssfeeds["NZBMatrix - Sports"] = array("url" => "http://rss.nzbmatrix.com/rss.php?subcat=7", "cat" => "sports");
  95. $rssfeeds["MediaFrontPage on Github"] = array("url" => "https://github.com/nick8888/mediafrontpage/commits/master.atom", "type" => "atom");
  96.  
  97. $customStyleSheet = "";
  98. //Example of how to use this
  99. //$customStyleSheet = "css/lighttheme.css";
  100.  
  101. //Show only posters for coming episodes
  102. //$customStyleSheet = "css/comingepisodes-minimal-poster.css";
  103.  
  104. //Show only banners for coming episodes
  105. //$customStyleSheet = "css/comingepisodes-minimal-banner.css";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement