homepage-functions.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. <?php
  2. //homepage order
  3. function homepageOrder(){
  4. $homepageOrder = array(
  5. "homepageOrdercustomhtml" => $GLOBALS['homepageOrdercustomhtml'],
  6. "homepageOrdernotice" => $GLOBALS['homepageOrdernotice'],
  7. "homepageOrderplexsearch" => $GLOBALS['homepageOrderplexsearch'],
  8. "homepageOrderspeedtest" => $GLOBALS['homepageOrderspeedtest'],
  9. "homepageOrdernzbget" => $GLOBALS['homepageOrdernzbget'],
  10. "homepageOrdersabnzbd" => $GLOBALS['homepageOrdersabnzbd'],
  11. "homepageOrderplexnowplaying" => $GLOBALS['homepageOrderplexnowplaying'],
  12. "homepageOrderplexrecent" => $GLOBALS['homepageOrderplexrecent'],
  13. "homepageOrderplexplaylist" => $GLOBALS['homepageOrderplexplaylist'],
  14. "homepageOrderembynowplaying" => $GLOBALS['homepageOrderembynowplaying'],
  15. "homepageOrderembyrecent" => $GLOBALS['homepageOrderembyrecent'],
  16. "homepageOrderombi" => $GLOBALS['homepageOrderombi'],
  17. "homepageOrdercalendar" => $GLOBALS['homepageOrdercalendar'],
  18. "homepageOrdernoticeguest" => $GLOBALS['homepageOrdernoticeguest'],
  19. "homepageOrdertransmission" => $GLOBALS['homepageOrdertransmission'],
  20. "homepageOrderqBittorrent" => $GLOBALS['homepageOrderqBittorrent'],
  21. );
  22. asort($homepageOrder);
  23. return $homepageOrder;
  24. }
  25. function buildHomepage(){
  26. $homepageOrder = homepageOrder();
  27. $homepageBuilt = '';
  28. foreach ($homepageOrder as $key => $value) {
  29. $homepageBuilt .= buildHomepageItem($key);
  30. }
  31. return $homepageBuilt;
  32. }
  33. function buildHomepageItem($homepageItem){
  34. $item = '<div id="'.$homepageItem.'"></div>';
  35. switch ($homepageItem) {
  36. case 'homepageOrderplexsearch':
  37. break;
  38. case 'homepageOrdercustomhtml':
  39. break;
  40. case 'homepageOrdernotice':
  41. break;
  42. case 'homepageOrdernoticeguest':
  43. break;
  44. case 'homepageOrderspeedtest':
  45. break;
  46. case 'homepageOrderqBittorrent':
  47. if($GLOBALS['homepageqBittorrentEnabled']){
  48. $item .= '
  49. <script>
  50. // homepageOrderqBittorrent
  51. homepageDownloader("qBittorrent");
  52. setInterval(function() {
  53. homepageDownloader("qBittorrent");
  54. }, '.$GLOBALS['homepageDownloadRefresh'].');
  55. // End homepageOrderqBittorrent
  56. </script>
  57. ';
  58. }
  59. break;
  60. case 'homepageOrdertransmission':
  61. if($GLOBALS['homepageTransmissionEnabled']){
  62. $item .= '
  63. <script>
  64. // Transmission
  65. homepageDownloader("transmission");
  66. setInterval(function() {
  67. homepageDownloader("transmission");
  68. }, '.$GLOBALS['homepageDownloadRefresh'].');
  69. // End Transmission
  70. </script>
  71. ';
  72. }
  73. break;
  74. case 'homepageOrdernzbget':
  75. if($GLOBALS['homepageNzbgetEnabled']){
  76. $item .= '
  77. <script>
  78. // NZBGet
  79. homepageDownloader("nzbget");
  80. setInterval(function() {
  81. homepageDownloader("nzbget");
  82. }, '.$GLOBALS['homepageDownloadRefresh'].');
  83. // End NZBGet
  84. </script>
  85. ';
  86. }
  87. break;
  88. case 'homepageOrdersabnzbd':
  89. if($GLOBALS['homepageSabnzbdEnabled']){
  90. $item .= '
  91. <script>
  92. // SabNZBd
  93. homepageDownloader("sabnzbd");
  94. setInterval(function() {
  95. homepageDownloader("sabnzbd");
  96. }, '.$GLOBALS['homepageDownloadRefresh'].');
  97. // End SabNZBd
  98. </script>
  99. ';
  100. }
  101. break;
  102. case 'homepageOrderplexnowplaying':
  103. if($GLOBALS['homepagePlexStreams']){
  104. $item .= '
  105. <script>
  106. // Plex Stream
  107. homepageStream("plex");
  108. setInterval(function() {
  109. homepageStream("plex");
  110. }, '.$GLOBALS['homepageStreamRefresh'].');
  111. // End Plex Stream
  112. </script>
  113. ';
  114. }
  115. break;
  116. case 'homepageOrderplexrecent':
  117. if($GLOBALS['homepagePlexRecent']){
  118. $item .= '
  119. <script>
  120. // Plex Recent
  121. homepageRecent("plex");
  122. setInterval(function() {
  123. homepageRecent("plex");
  124. }, '.$GLOBALS['homepageRecentRefresh'].');
  125. // End Plex Recent
  126. </script>
  127. ';
  128. }
  129. break;
  130. case 'homepageOrderplexplaylist':
  131. break;
  132. case 'homepageOrderembynowplaying':
  133. if($GLOBALS['homepageEmbyStreams']){
  134. $item .= '
  135. <script>
  136. // Emby Stream
  137. homepageStream("emby");
  138. setInterval(function() {
  139. homepageStream("emby");
  140. }, '.$GLOBALS['homepageStreamRefresh'].');
  141. // End Emby Stream
  142. </script>
  143. ';
  144. }
  145. break;
  146. case 'homepageOrderembyrecent':
  147. if($GLOBALS['homepageEmbyRecent']){
  148. $item .= '
  149. <script>
  150. // Emby Recent
  151. homepageRecent("emby");
  152. setInterval(function() {
  153. homepageRecent("emby");
  154. }, '.$GLOBALS['homepageRecentRefresh'].');
  155. // End Emby Recent
  156. </script>
  157. ';
  158. }
  159. break;
  160. case 'homepageOrderombi':
  161. break;
  162. case 'homepageOrdercalendar':
  163. break;
  164. default:
  165. # code...
  166. break;
  167. }
  168. return $item;
  169. }
  170. function getHomepageList(){
  171. $groups = groupSelect();
  172. $time = array(
  173. array(
  174. 'name' => '5',
  175. 'value' => '5000'
  176. ),
  177. array(
  178. 'name' => '10',
  179. 'value' => '10000'
  180. ),
  181. array(
  182. 'name' => '15',
  183. 'value' => '15000'
  184. ),
  185. array(
  186. 'name' => '30',
  187. 'value' => '30000'
  188. ),
  189. array(
  190. 'name' => '60 [1 Minute]',
  191. 'value' => '60000'
  192. ),
  193. array(
  194. 'name' => '300 [5 Minutes]',
  195. 'value' => '300000'
  196. ),
  197. array(
  198. 'name' => '900 [15 Minutes]',
  199. 'value' => '900000'
  200. ),
  201. array(
  202. 'name' => '1800 [30 Minutes]',
  203. 'value' => '1800000'
  204. ),
  205. array(
  206. 'name' => '3600 [1 Hour]',
  207. 'value' => '3600000'
  208. ),
  209. );
  210. return array(
  211. array(
  212. 'name' => 'Plex',
  213. 'enabled' => true,
  214. 'image' => 'plugins/images/tabs/plex.png',
  215. 'category' => 'Media Server',
  216. 'settings' => array(
  217. 'Enable' => array(
  218. array(
  219. 'type' => 'switch',
  220. 'name' => 'homepagePlexEnabled',
  221. 'label' => 'Enable',
  222. 'value' => $GLOBALS['homepagePlexEnabled']
  223. ),
  224. array(
  225. 'type' => 'select',
  226. 'name' => 'homepagePlexAuth',
  227. 'label' => 'Minimum Authentication',
  228. 'value' => $GLOBALS['homepagePlexAuth'],
  229. 'options' => $groups
  230. )
  231. ),
  232. 'Connection' => array(
  233. array(
  234. 'type' => 'input',
  235. 'name' => 'plexURL',
  236. 'label' => 'URL',
  237. 'value' => $GLOBALS['plexURL'],
  238. 'placeholder' => 'http(s)://hostname:port'
  239. ),
  240. array(
  241. 'type' => 'input',
  242. 'name' => 'plexToken',
  243. 'label' => 'Token',
  244. 'value' => $GLOBALS['plexToken']
  245. ),
  246. array(
  247. 'type' => 'input',
  248. 'name' => 'plexID',
  249. 'label' => 'Plex Machine',
  250. 'value' => $GLOBALS['plexID']
  251. )
  252. ),
  253. 'Active Streams' => array(
  254. array(
  255. 'type' => 'switch',
  256. 'name' => 'homepagePlexStreams',
  257. 'label' => 'Enable',
  258. 'value' => $GLOBALS['homepagePlexStreams']
  259. ),
  260. array(
  261. 'type' => 'select',
  262. 'name' => 'homepagePlexStreamsAuth',
  263. 'label' => 'Minimum Authorization',
  264. 'value' => $GLOBALS['homepagePlexStreamsAuth'],
  265. 'options' => $groups
  266. ),
  267. array(
  268. 'type' => 'switch',
  269. 'name' => 'homepageShowStreamNames',
  270. 'label' => 'User Information',
  271. 'value' => $GLOBALS['homepageShowStreamNames']
  272. ),
  273. array(
  274. 'type' => 'select',
  275. 'name' => 'homepageShowStreamNamesAuth',
  276. 'label' => 'Minimum Authorization',
  277. 'value' => $GLOBALS['homepageShowStreamNamesAuth'],
  278. 'options' => $groups
  279. ),
  280. array(
  281. 'type' => 'select',
  282. 'name' => 'homepageStreamRefresh',
  283. 'label' => 'Refresh Seconds',
  284. 'value' => $GLOBALS['homepageStreamRefresh'],
  285. 'options' => $time
  286. ),
  287. ),
  288. 'Recent Items' => array(
  289. array(
  290. 'type' => 'switch',
  291. 'name' => 'homepagePlexRecent',
  292. 'label' => 'Enable',
  293. 'value' => $GLOBALS['homepagePlexRecent']
  294. ),
  295. array(
  296. 'type' => 'select',
  297. 'name' => 'homepagePlexRecentAuth',
  298. 'label' => 'Minimum Authorization',
  299. 'value' => $GLOBALS['homepagePlexRecentAuth'],
  300. 'options' => $groups
  301. ),
  302. array(
  303. 'type' => 'select',
  304. 'name' => 'homepageRecentRefresh',
  305. 'label' => 'Refresh Seconds',
  306. 'value' => $GLOBALS['homepageRecentRefresh'],
  307. 'options' => $time
  308. ),
  309. ),
  310. 'Misc Options' => array(
  311. array(
  312. 'type' => 'input',
  313. 'name' => 'plexTabName',
  314. 'label' => 'Plex Tab Name',
  315. 'value' => $GLOBALS['plexTabName'],
  316. 'placeholder' => 'Only use if you have Plex in a reverse proxy'
  317. ),
  318. array(
  319. 'type' => 'input',
  320. 'name' => 'plexTabURL',
  321. 'label' => 'Plex Tab WAN URL',
  322. 'value' => $GLOBALS['plexTabURL'],
  323. 'placeholder' => 'http(s)://hostname:port'
  324. )
  325. )
  326. )
  327. ),
  328. array(
  329. 'name' => 'Emby',
  330. 'enabled' => true,
  331. 'image' => 'plugins/images/tabs/emby.png',
  332. 'category' => 'Media Server',
  333. 'settings' => array(
  334. 'Enable' => array(
  335. array(
  336. 'type' => 'switch',
  337. 'name' => 'homepageEmbyEnabled',
  338. 'label' => 'Enable',
  339. 'value' => $GLOBALS['homepageEmbyEnabled']
  340. ),
  341. array(
  342. 'type' => 'select',
  343. 'name' => 'homepageEmbyAuth',
  344. 'label' => 'Minimum Authentication',
  345. 'value' => $GLOBALS['homepageEmbyAuth'],
  346. 'options' => $groups
  347. )
  348. ),
  349. 'Connection' => array(
  350. array(
  351. 'type' => 'input',
  352. 'name' => 'embyURL',
  353. 'label' => 'URL',
  354. 'value' => $GLOBALS['embyURL'],
  355. 'placeholder' => 'http(s)://hostname:port'
  356. ),
  357. array(
  358. 'type' => 'input',
  359. 'name' => 'embyToken',
  360. 'label' => 'Token',
  361. 'value' => $GLOBALS['embyToken']
  362. )
  363. ),
  364. 'Active Streams' => array(
  365. array(
  366. 'type' => 'switch',
  367. 'name' => 'homepageEmbyStreams',
  368. 'label' => 'Enable',
  369. 'value' => $GLOBALS['homepageEmbyStreams']
  370. ),
  371. array(
  372. 'type' => 'select',
  373. 'name' => 'homepageEmbyStreamsAuth',
  374. 'label' => 'Minimum Authorization',
  375. 'value' => $GLOBALS['homepageEmbyStreamsAuth'],
  376. 'options' => $groups
  377. ),
  378. array(
  379. 'type' => 'switch',
  380. 'name' => 'homepageShowStreamNames',
  381. 'label' => 'User Information',
  382. 'value' => $GLOBALS['homepageShowStreamNames']
  383. ),
  384. array(
  385. 'type' => 'select',
  386. 'name' => 'homepageShowStreamNamesAuth',
  387. 'label' => 'Minimum Authorization',
  388. 'value' => $GLOBALS['homepageShowStreamNamesAuth'],
  389. 'options' => $groups
  390. ),
  391. array(
  392. 'type' => 'select',
  393. 'name' => 'homepageStreamRefresh',
  394. 'label' => 'Refresh Seconds',
  395. 'value' => $GLOBALS['homepageStreamRefresh'],
  396. 'options' => $time
  397. ),
  398. ),
  399. 'Recent Items' => array(
  400. array(
  401. 'type' => 'switch',
  402. 'name' => 'homepageEmbyRecent',
  403. 'label' => 'Enable',
  404. 'value' => $GLOBALS['homepageEmbyRecent']
  405. ),
  406. array(
  407. 'type' => 'select',
  408. 'name' => 'homepageEmbyRecentAuth',
  409. 'label' => 'Minimum Authorization',
  410. 'value' => $GLOBALS['homepageEmbyRecentAuth'],
  411. 'options' => $groups
  412. ),
  413. array(
  414. 'type' => 'select',
  415. 'name' => 'homepageRecentRefresh',
  416. 'label' => 'Refresh Seconds',
  417. 'value' => $GLOBALS['homepageRecentRefresh'],
  418. 'options' => $time
  419. ),
  420. ),
  421. 'Misc Options' => array(
  422. array(
  423. 'type' => 'input',
  424. 'name' => 'embyTabName',
  425. 'label' => 'Emby Tab Name',
  426. 'value' => $GLOBALS['embyTabName'],
  427. 'placeholder' => 'Only use if you have Plex in a reverse proxy'
  428. ),
  429. array(
  430. 'type' => 'input',
  431. 'name' => 'embyTabURL',
  432. 'label' => 'Emby Tab WAN URL',
  433. 'value' => $GLOBALS['embyTabURL'],
  434. 'placeholder' => 'http(s)://hostname:port'
  435. )
  436. )
  437. )
  438. ),
  439. array(
  440. 'name' => 'SabNZBD',
  441. 'enabled' => false,
  442. 'image' => 'plugins/images/tabs/sabnzbd.png',
  443. 'category' => 'Downloader',
  444. 'settings' => array(
  445. 'Enable' => array(
  446. array(
  447. 'type' => 'switch',
  448. 'name' => 'homepageSabnzbdEnabled',
  449. 'label' => 'Enable',
  450. 'value' => $GLOBALS['homepageSabnzbdEnabled']
  451. ),
  452. array(
  453. 'type' => 'select',
  454. 'name' => 'homepageSabnzbdAuth',
  455. 'label' => 'Minimum Authentication',
  456. 'value' => $GLOBALS['homepageSabnzbdAuth'],
  457. 'options' => $groups
  458. )
  459. ),
  460. 'Connection' => array(
  461. array(
  462. 'type' => 'input',
  463. 'name' => 'sabnzbdURL',
  464. 'label' => 'URL',
  465. 'value' => $GLOBALS['sabnzbdURL'],
  466. 'placeholder' => 'http(s)://hostname:port'
  467. ),
  468. array(
  469. 'type' => 'input',
  470. 'name' => 'sabnzbdToken',
  471. 'label' => 'Token',
  472. 'value' => $GLOBALS['sabnzbdToken']
  473. )
  474. ),
  475. 'Misc Options' => array(
  476. array(
  477. 'type' => 'select',
  478. 'name' => 'homepageDownloadRefresh',
  479. 'label' => 'Refresh Seconds',
  480. 'value' => $GLOBALS['homepageDownloadRefresh'],
  481. 'options' => $time
  482. )
  483. )
  484. )
  485. ),
  486. array(
  487. 'name' => 'NZBGet',
  488. 'enabled' => false,
  489. 'image' => 'plugins/images/tabs/nzbget.png',
  490. 'category' => 'Downloader',
  491. 'settings' => array(
  492. 'Enable' => array(
  493. array(
  494. 'type' => 'switch',
  495. 'name' => 'homepageNzbgetEnabled',
  496. 'label' => 'Enable',
  497. 'value' => $GLOBALS['homepageNzbgetEnabled']
  498. ),
  499. array(
  500. 'type' => 'select',
  501. 'name' => 'homepageNzbgetAuth',
  502. 'label' => 'Minimum Authentication',
  503. 'value' => $GLOBALS['homepageNzbgetAuth'],
  504. 'options' => $groups
  505. )
  506. ),
  507. 'Connection' => array(
  508. array(
  509. 'type' => 'input',
  510. 'name' => 'nzbgetURL',
  511. 'label' => 'URL',
  512. 'value' => $GLOBALS['nzbgetURL'],
  513. 'placeholder' => 'http(s)://hostname:port'
  514. ),
  515. array(
  516. 'type' => 'input',
  517. 'name' => 'nzbgetUsername',
  518. 'label' => 'Username',
  519. 'value' => $GLOBALS['nzbgetUsername']
  520. ),
  521. array(
  522. 'type' => 'password',
  523. 'name' => 'nzbgetPassword',
  524. 'label' => 'Password',
  525. 'value' => $GLOBALS['nzbgetPassword']
  526. )
  527. ),
  528. 'Misc Options' => array(
  529. array(
  530. 'type' => 'select',
  531. 'name' => 'homepageDownloadRefresh',
  532. 'label' => 'Refresh Seconds',
  533. 'value' => $GLOBALS['homepageDownloadRefresh'],
  534. 'options' => $time
  535. )
  536. )
  537. )
  538. ),
  539. array(
  540. 'name' => 'Transmission',
  541. 'enabled' => false,
  542. 'image' => 'plugins/images/tabs/transmission.png',
  543. 'category' => 'Downloader',
  544. 'settings' => array(
  545. 'Enable' => array(
  546. array(
  547. 'type' => 'switch',
  548. 'name' => 'homepageTransmissionEnabled',
  549. 'label' => 'Enable',
  550. 'value' => $GLOBALS['homepageTransmissionEnabled']
  551. ),
  552. array(
  553. 'type' => 'select',
  554. 'name' => 'homepageTransmissionAuth',
  555. 'label' => 'Minimum Authentication',
  556. 'value' => $GLOBALS['homepageTransmissionAuth'],
  557. 'options' => $groups
  558. )
  559. ),
  560. 'Connection' => array(
  561. array(
  562. 'type' => 'input',
  563. 'name' => 'transmissionURL',
  564. 'label' => 'URL',
  565. 'value' => $GLOBALS['transmissionURL'],
  566. 'placeholder' => 'http(s)://hostname:port'
  567. ),
  568. array(
  569. 'type' => 'input',
  570. 'name' => 'transmissionUsername',
  571. 'label' => 'Username',
  572. 'value' => $GLOBALS['transmissionUsername']
  573. ),
  574. array(
  575. 'type' => 'password',
  576. 'name' => 'transmissionPassword',
  577. 'label' => 'Password',
  578. 'value' => $GLOBALS['transmissionPassword']
  579. )
  580. ),
  581. 'Misc Options' => array(
  582. array(
  583. 'type' => 'switch',
  584. 'name' => 'transmissionHideSeeding',
  585. 'label' => 'Hide Seeding',
  586. 'value' => $GLOBALS['transmissionHideSeeding']
  587. ),array(
  588. 'type' => 'switch',
  589. 'name' => 'transmissionHideCompleted',
  590. 'label' => 'Hide Completed',
  591. 'value' => $GLOBALS['transmissionHideCompleted']
  592. ),
  593. array(
  594. 'type' => 'select',
  595. 'name' => 'homepageDownloadRefresh',
  596. 'label' => 'Refresh Seconds',
  597. 'value' => $GLOBALS['homepageDownloadRefresh'],
  598. 'options' => $time
  599. )
  600. )
  601. )
  602. ),
  603. array(
  604. 'name' => 'qBittorrent',
  605. 'enabled' => false,
  606. 'image' => 'plugins/images/tabs/qBittorrent.png',
  607. 'category' => 'Downloader',
  608. 'settings' => array(
  609. 'Enable' => array(
  610. array(
  611. 'type' => 'switch',
  612. 'name' => 'homepageqBittorrentEnabled',
  613. 'label' => 'Enable',
  614. 'value' => $GLOBALS['homepageqBittorrentEnabled']
  615. ),
  616. array(
  617. 'type' => 'select',
  618. 'name' => 'homepageqBittorrentAuth',
  619. 'label' => 'Minimum Authentication',
  620. 'value' => $GLOBALS['homepageqBittorrentAuth'],
  621. 'options' => $groups
  622. )
  623. ),
  624. 'Connection' => array(
  625. array(
  626. 'type' => 'input',
  627. 'name' => 'qBittorrentURL',
  628. 'label' => 'URL',
  629. 'value' => $GLOBALS['qBittorrentURL'],
  630. 'placeholder' => 'http(s)://hostname:port'
  631. ),
  632. array(
  633. 'type' => 'input',
  634. 'name' => 'qBittorrentUsername',
  635. 'label' => 'Username',
  636. 'value' => $GLOBALS['qBittorrentUsername']
  637. ),
  638. array(
  639. 'type' => 'password',
  640. 'name' => 'qBittorrentPassword',
  641. 'label' => 'Password',
  642. 'value' => $GLOBALS['qBittorrentPassword']
  643. )
  644. ),
  645. 'Misc Options' => array(
  646. array(
  647. 'type' => 'switch',
  648. 'name' => 'qBittorrentHideSeeding',
  649. 'label' => 'Hide Seeding',
  650. 'value' => $GLOBALS['qBittorrentHideSeeding']
  651. ),array(
  652. 'type' => 'switch',
  653. 'name' => 'qBittorrentnHideCompleted',
  654. 'label' => 'Hide Completed',
  655. 'value' => $GLOBALS['qBittorrentHideCompleted']
  656. ),
  657. array(
  658. 'type' => 'select',
  659. 'name' => 'homepageDownloadRefresh',
  660. 'label' => 'Refresh Seconds',
  661. 'value' => $GLOBALS['homepageDownloadRefresh'],
  662. 'options' => $time
  663. )
  664. )
  665. )
  666. )
  667. );
  668. }