Advertisement
Guest User

Untitled

a guest
Apr 5th, 2011
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.92 KB | None | 0 0
  1. <?php
  2.  
  3. # Configuration file for nzbget web-interface
  4.  
  5.  
  6. ##############################################################################
  7. ### COMMUNICATION WITH NZBGET-SERVER ###
  8.  
  9. # IP of NZBGet-server.
  10. #
  11. # See option <ServerIp> in nzbget.conf-file.
  12. $ServerIp='127.0.0.1';
  13.  
  14. # Port of NZBGet-server (1-65535).
  15. #
  16. # See option <ServerPort> in nzbget.conf-file.
  17. $ServerPort=6789;
  18.  
  19. # Password to NZBGet-server.
  20. #
  21. # See option <ServerPassword> in nzbget.conf-file.
  22. $ServerPassword='tegbzn6789';
  23.  
  24. # Connect timeout (seconds).
  25. $ConnectTimeout=30;
  26.  
  27. # Full path to server configuration file.
  28. #
  29. # Needed if you want to edit server options via web-interface.
  30. #
  31. # Example (POSIX): $ServerConfigFile='/tmp/harddisk/download/nzb/nzbget.conf'.
  32. # Example (Windows): $ServerConfigFile='C:\\Downloads\\nzbget\\nzbget.conf'.
  33. #
  34. # NOTE: Backslashes (on Windows) must be doubled.
  35. $ServerConfigFile='/mnt/cache/.nzbget/nzbget.conf';
  36.  
  37. # Full path to the example of server configuration file.
  38. # This file is used to read the list of options and their descriptions.
  39. # Needed if you want to edit server options via web-interface.
  40. #
  41. # Example (POSIX): $ServerConfigTemplate='/tmp/harddisk/www/nzbgetweb/nzbget.conf.example'.
  42. # Example (Windows): $ServerConfigTemplate='C:\\Program Files\\apache\htdocs\nzbgetweb\\nzbget.conf.example'.
  43. #
  44. # NOTE: Use the file nzbget.conf.example distributed with the version of NZBGet,
  45. # which you are currently using (at least 0.6.0).
  46. #
  47. # NOTE: Backslashes (on Windows) must be doubled.
  48. $ServerConfigTemplate='/mnt/cache/.nzbget/nzbget.conf.example';
  49.  
  50. # Command line to start NZBGet-server.
  51. #
  52. # Leave this option empty if you do not want/need to shutdown and start
  53. # NZBGet-server via web-interface.
  54. #
  55. # Example (POSIX): $ServerStartCommand='/usr/bin/nzbget -D -c /usr/etc/nzbget.conf 2>&1';
  56. # Example (Windows): $ServerStartCommand='net start NZBGet';
  57. #
  58. # NOTE: if system cannot execute the command (permission problem, etc.) it
  59. # prints error messages to stderr. To see that messages use output redirection,
  60. # add " 2>&1" at the end of command, see the example above. (POSIX only).
  61. #
  62. # NOTE: VERY IMPORTANT: the command is executed under web-server user-account, you
  63. # must ensure the web-server has permissions to start nzbget
  64. # and access nzbget-directories (read/write).
  65. $ServerStartCommand='/tmp/nzbget-0.8.0-testing/nzbget -c /mnt/cache/.nzbget/nzbget.conf -D';
  66.  
  67. # Command line to stop NZBGet-server.
  68. #
  69. # The server can be stopped using RPC-command "shutdown". However you might
  70. # need to perform additional steps while stopping the server. In this case
  71. # you can use this option to execute your own stop-script.
  72. #
  73. # Example (POSIX): $ServerStopCommand='/usr/bin/nzbget -Q -c /usr/etc/nzbget.conf 2>&1';
  74. # Example (Windows): $ServerStartCommand='net stop NZBGet';
  75. #
  76. # NOTE: if system cannot execute the command (permission problem, etc.) it
  77. # prints error messages to stderr. To see that messages use output redirection,
  78. # add " 2>&1" at the end of command, see the example above. (POSIX only).
  79. #
  80. # NOTE: VERY IMPORTANT: the command is executed under web-server user-account.
  81. #
  82. # NOTE: Leave this option empty to stop server using internal RPC-command.
  83. $ServerStopCommand='/tmp/nzbget-0.8.0-testing/nzbget -Q -c /mnt/cache/.nzbget/nzbget.conf';
  84.  
  85. # Directory to upload nzb-files.
  86. #
  87. # Set it to the same value as option "NzbDir" in nzbget.conf-file.
  88. #
  89. # Example (POSIX): $NzbDir = '/tmp/harddisk/download/nzb'.
  90. # Example (Windows): $NzbDir = 'C:\\Downloads\\nzbget\\nzb'.
  91. # Example (Windows): $NzbDir = '\\\\192.168.1.1\\share$\\download\\nzb'.
  92. #
  93. # NOTE: Backslashes (on Windows) must be doubled.
  94. $NzbDir='/mnt/cache/.nzbget/nzbget./nzb';
  95.  
  96. # The max file size to upload via web-interface (bytes).
  97. $UploadMaxFileSize=10000000;
  98.  
  99. # Set protocol and library to be used for communication with NZBGet-server
  100. # (auto, json-rpc-ext, json-rpc-lib, xml-rpc-ext, xml-rpc-lib).
  101. #
  102. # NZBGetWeb can communicate with NZBGet-server using either XML-RPC or JSON-RPC.
  103. # For each of these two protocols NZBGetWeb supports two PHP-implementations.
  104. #
  105. # Set the option to "json-rpc-ext" to use the fastest library "JSON".
  106. # From Version 5.2 of PHP this extension is built into PHP and there is
  107. # no need to install any separate extension or library.
  108. # For early versions of PHP you can compile the extension yourself.
  109. # Source code is available on http://www.aurore.net/projects/php-json/.
  110. #
  111. # Set to "xml-rpc-ext" to use extension "xmlrpc" - fast and also recommended.
  112. # On windows you need to select the extension in section "Extensions"
  113. # during setup of php. On linux the extension is available as package "php-xmlrpc".
  114. # You can also recompile PHP with configure option "--with-xmlrpc".
  115. #
  116. # Set to "xml-rpc-lib" to use library "XMLRPC for PHP" (very slow, not recommended).
  117. # You need first to download the library from http://phpxmlrpc.sourceforge.net,
  118. # unpack it and put the directory "lib" from archive into the nzbgetweb-directory.
  119. #
  120. # Set to "json-rpc-lib" to use library "JSON-PHP" (very slow, not recommended).
  121. # You need first to download the library from
  122. # http://pear.php.net/pepr/pepr-proposal-show.php?id=198,
  123. # unpack it and put the file JSON.php in nzbgetweb-directory.
  124. #
  125. # Set to "auto" to automatically detect the installed
  126. # extensions/libraries and to use the best available option.
  127. $RpcApi='auto';
  128.  
  129.  
  130. ##############################################################################
  131. ### CONFIGURATION OF POSTPROCESSING-SCRIPT ###
  132.  
  133. # Full path to configuration file for postprocessing-script.
  134. #
  135. # Set this option if you use postprocessing-script and it supports
  136. # configuration via web-interface.
  137. #
  138. # Please refer to documentation of your postprocessing-script.
  139. #
  140. # Example (POSIX): $PostProcessConfigFile='/tmp/harddisk/download/nzb/unpack.conf'.
  141. # Example (Windows): $PostProcessConfigFile='C:\\Downloads\\nzbget\\unpack.conf'.
  142. #
  143. # NOTE: Backslashes (on Windows) must be doubled.
  144. $PostProcessConfigFile='/mnt/cache/.nzbget/postprocess.conf';
  145.  
  146. # Full path to the template of configuration file for postprocessing-script.
  147. # This file is used to read the list of options and their descriptions.
  148. #
  149. # Set this option if you use postprocessing-script and it supports
  150. # configuration via web-interface.
  151. #
  152. # Please refer to documentation of your postprocessing-script.
  153. #
  154. # Example (POSIX): $PostProcessConfigTemplate='/tmp/harddisk/www/nzbgetweb/unpack-template.conf'.
  155. # Example (Windows): $PostProcessConfigTemplate='C:\\Program Files\\apache\htdocs\nzbgetweb\\unpack-template.conf'.
  156. #
  157. # NOTE: Backslashes (on Windows) must be doubled.
  158. $PostProcessConfigTemplate='/mnt/cache/.nzbget/postprocess-example.conf';
  159.  
  160.  
  161. ##############################################################################
  162. ### LOGIN-SCREEN ###
  163.  
  164. # User name for web-interface.
  165. #
  166. # Leave blank to disable authorization-check.
  167. $WebUsername = '';
  168.  
  169. # Password for web-interface.
  170. $WebPassword = 'pass';
  171.  
  172.  
  173. ##############################################################################
  174. ### DISPLAY ###
  175.  
  176. # Page refresh interval for group-mode (which is default mode) (seconds).
  177. #
  178. # "0" disables automatic refreshing.
  179. $GroupModeRefreshInterval=3;
  180.  
  181. # Page refresh interval for file-mode (seconds).
  182. #
  183. # "0" disables automatic refreshing.
  184. $FileModeRefreshInterval=0;
  185.  
  186. # Number of groups per page in groupmode (1-999).
  187. $GroupsPerPage=20;
  188.  
  189. # Number of files per page in filemode (1-999).
  190. $FilesPerPage=20;
  191.  
  192. # Number of downloads per page in historymode (1-999).
  193. $HistoryPerPage=20;
  194.  
  195. # Number of downloads on the main page history (0-999).
  196. #
  197. # Set to "0" to hide the history on the main page.
  198. $HistoryPerMainPage=2;
  199.  
  200. # Format for timestamp in historymode.
  201. #
  202. # See description of php-function "date" for the list of possible
  203. # format-characters - http://www.php.net/date.
  204. $HistoryTimeFormat='r';
  205.  
  206. # Show latest downloads at the top of list (true, false).
  207. $NewHistoryFirst=true;
  208.  
  209. # Number of log-messages retrieved from server (0-99999).
  210. $LogLines=100;
  211.  
  212. # List of filters for log messages.
  213. #
  214. # If you want to see less log messages you can define filters.
  215. # Each filter is a substring. If a log message has this substring,
  216. # the message will not be displayed.
  217. #
  218. # Example (if editing config via web-interface): Successfully downloaded, Verifying file
  219. #
  220. # Example (if editing "settings.php" in a texteditor): $LogFilter=array('Successfully downloaded', 'Verifying file');
  221. #
  222. # NOTE: the log message are received from NZBGet server first, then filtered
  223. # by web-interface. It may require some CPU time.
  224. $LogFilter=array('');
  225.  
  226. # Format for timestamp in log-entries.
  227. #
  228. # See description of php-function "date" for the list of possible
  229. # format-characters - http://www.php.net/date.
  230. # Set to empty string ('') to hide timestamps.
  231. $LogTimeFormat='r';
  232.  
  233. # Correction for timestamps (hours).
  234. #
  235. # If nzbgetweb shows incorrect times you can adjust it here (-23..+23).
  236. $TimeZoneCorrection=0;
  237.  
  238. # Number of log-messages per page (1-999).
  239. $MessagesPerPage=20;
  240.  
  241. # Number of messages per page in post-processing log (1-999).
  242. #
  243. # Set to "0" to hide the section with script-messages.
  244. $PostMessagesPerPage=10;
  245.  
  246. # Show new log-messages at the top of list (true, false).
  247. $NewMessagesFirst=false;
  248.  
  249. # Show log-messages in file-mode (true, false).
  250. $FileModeLog=false;
  251.  
  252. # The list of characters to replace with blank-char for better word-breaks in browser.
  253. $NameReplaceChars='_.';
  254.  
  255. # The list of characters to add extra blank-char for better word-breaks in browser.
  256. #
  257. # Example: $LogBreakChars='_.-\\\/'.
  258. $LogBreakChars='_.-\\\/';
  259.  
  260. # Path to check for available disk-space.
  261. #
  262. # Set it to the same value as option "DstDir" in nzbget.conf-file.
  263. #
  264. # Example (POSIX): $CheckSpaceDir = '/tmp/harddisk/download'.
  265. # Example (Windows): $CheckSpaceDir = 'C:\\'.
  266. # Example (Windows): $CheckSpaceDir = '\\\\192.168.1.1\\share$\\download'.
  267. #
  268. # NOTE: Backslashes (on Windows) must be doubled.
  269. $CheckSpaceDir='/mnt/cache';
  270.  
  271. # List of available categories.
  272. #
  273. # Empty item allows to set the empty category.
  274. $Categories=array('', 'music', 'video', 'TV', 'linux', 'P');
  275.  
  276. # Tranfer method for web-forms (post, get).
  277. #
  278. # Method "post" is recommended for better security.
  279. # However web-server thttpd on optware doesn't support method "post".
  280. $FormMethod='post';
  281.  
  282.  
  283. ##############################################################################
  284. ### MINI-THEME ###
  285.  
  286. # The list of characters to replace with blank-char for better word-breaks in browser.
  287. #
  288. # NOTE: Only for mini theme (mini.php).
  289. $MiniLogReplaceChars='_.';
  290.  
  291. # Font name in mini theme.
  292. #
  293. # NOTE: Only for mini theme (mini.php).
  294. $MiniFontName='Verdana';
  295.  
  296. # Font size in mini theme (1-999).
  297. #
  298. # NOTE: Only for mini theme (mini.php).
  299. $MiniFontSize='12';
  300.  
  301. # Allow usage of JavaScript in mini theme (true, false).
  302. # If enabled, a little javascript code is used in mini theme. That allows
  303. # better formatting. If the browser on your mobile device does not support
  304. # JavaScript, you can disable the option.
  305. #
  306. # NOTE: Only for mini theme (mini.php).
  307. $MiniJavaScript=true;
  308.  
  309. # Display log-messages in two columns (Kind-Text) in mini theme (true, false).
  310. # If disabled, the Kind and Text are displayed in one column,
  311. # saving screen space.
  312. #
  313. # NOTE: Only for mini theme (mini.php).
  314. $MiniLogColumns=false;
  315.  
  316.  
  317. ##############################################################################
  318. ### NEWZBIN ###
  319.  
  320. # User name for www.newzbin.com.
  321. #
  322. # Leave blank to hide newzbin-input box (if you don't have a newzbin account).
  323. $NewzbinUsername='';
  324.  
  325. # Password for www.newzbin.com.
  326. $NewzbinPassword='';
  327.  
  328. # Automatically download nzb's to the Newzbin defined category (true, false).
  329. $NewzbinUseCategories=true;
  330.  
  331. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement