PageRenderTime 1843ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/rutorrent/home/req/plugin_data.php

https://gitlab.com/billyprice1/QuickBox
PHP | 738 lines | 664 code | 0 blank | 74 comment | 369 complexity | c49a3e69347662074817b8e54888d030 MD5 | raw file
  1. <?php
  2. if ($_GET['installplugin-getdir']) {
  3. //header('Location: /');
  4. header('Refresh: 5; /');
  5. writeMsg("Hello <b>$username</b>: I have installed the <b>getdir plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  6. $message = "Hello <b>$username</b>: I have installed the <b>getdir plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  7. shell_exec("sudo -u root /usr/bin/installplugin-getdir");
  8. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  9. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  10. $newURL = $myURL;
  11. }
  12. if ($_GET['removeplugin-getdir']) {
  13. //header('Location: /');
  14. header('Refresh: 5; /');
  15. writeMsg("Hello <b>$username</b>: I have removed the <b>getdir plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  16. $message = "Hello <b>$username</b>: I have removed the <b>getdir plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  17. shell_exec("sudo -u root /usr/bin/removeplugin-getdir");
  18. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  19. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  20. $newURL = $myURL;
  21. }
  22. if ($_GET['installplugin-task']) {
  23. //header('Location: /');
  24. header('Refresh: 5; /');
  25. writeMsg("Hello <b>$username</b>: I have installed the <b>task plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  26. $message = "Hello <b>$username</b>: I have installed the <b>task plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  27. shell_exec("sudo -u root /usr/bin/installplugin-task");
  28. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  29. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  30. $newURL = $myURL;
  31. }
  32. if ($_GET['removeplugin-task']) {
  33. //header('Location: /');
  34. header('Refresh: 5; /');
  35. writeMsg("Hello <b>$username</b>: I have removed the <b>task plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  36. $message = "Hello <b>$username</b>: I have removed the <b>task plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  37. shell_exec("sudo -u root /usr/bin/removeplugin-task");
  38. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  39. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  40. $newURL = $myURL;
  41. }
  42. if ($_GET['installplugin-autodl']) {
  43. //header('Location: /');
  44. header('Refresh: 5; /');
  45. writeMsg("Hello <b>$username</b>: I have installed the <b>autodl-irssi plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  46. $message = "Hello <b>$username</b>: I have installed the <b>autodl-irssi plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  47. shell_exec("sudo -u root /usr/bin/installplugin-autodl");
  48. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  49. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  50. $newURL = $myURL;
  51. }
  52. if ($_GET['removeplugin-autodl']) {
  53. //header('Location: /');
  54. header('Refresh: 5; /');
  55. writeMsg("Hello <b>$username</b>: I have removed the <b>autodl-irssi plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  56. $message = "Hello <b>$username</b>: I have removed the <b>autodl-irssi plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  57. shell_exec("sudo -u root /usr/bin/removeplugin-autodl");
  58. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  59. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  60. $newURL = $myURL;
  61. }
  62. if ($_GET['installplugin-autotools']) {
  63. //header('Location: /');
  64. header('Refresh: 5; /');
  65. writeMsg("Hello <b>$username</b>: I have installed the <b>autotools plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  66. $message = "Hello <b>$username</b>: I have installed the <b>autotools plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  67. shell_exec("sudo -u root /usr/bin/installplugin-autotools");
  68. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  69. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  70. $newURL = $myURL;
  71. }
  72. if ($_GET['removeplugin-autotools']) {
  73. //header('Location: /');
  74. header('Refresh: 5; /');
  75. writeMsg("Hello <b>$username</b>: I have removed the <b>autotools plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  76. $message = "Hello <b>$username</b>: I have removed the <b>autotools plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  77. shell_exec("sudo -u root /usr/bin/removeplugin-autotools");
  78. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  79. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  80. $newURL = $myURL;
  81. }
  82. if ($_GET['installplugin-checkport']) {
  83. //header('Location: /');
  84. header('Refresh: 5; /');
  85. writeMsg("Hello <b>$username</b>: I have installed the <b>checkport plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  86. $message = "Hello <b>$username</b>: I have installed the <b>checkport plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  87. shell_exec("sudo -u root /usr/bin/installplugin-checkport");
  88. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  89. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  90. $newURL = $myURL;
  91. }
  92. if ($_GET['removeplugin-checkport']) {
  93. //header('Location: /');
  94. header('Refresh: 5; /');
  95. writeMsg("Hello <b>$username</b>: I have removed the <b>checkport plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  96. $message = "Hello <b>$username</b>: I have removed the <b>checkport plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  97. shell_exec("sudo -u root /usr/bin/removeplugin-checkport");
  98. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  99. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  100. $newURL = $myURL;
  101. }
  102. if ($_GET['installplugin-chunks']) {
  103. //header('Location: /');
  104. header('Refresh: 5; /');
  105. writeMsg("Hello <b>$username</b>: I have installed the <b>chunks plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  106. $message = "Hello <b>$username</b>: I have installed the <b>chunks plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  107. shell_exec("sudo -u root /usr/bin/installplugin-chunks");
  108. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  109. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  110. $newURL = $myURL;
  111. }
  112. if ($_GET['removeplugin-chunks']) {
  113. //header('Location: /');
  114. header('Refresh: 5; /');
  115. writeMsg("Hello <b>$username</b>: I have removed the <b>chunks plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  116. $message = "Hello <b>$username</b>: I have removed the <b>chunks plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  117. shell_exec("sudo -u root /usr/bin/removeplugin-chunks");
  118. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  119. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  120. $newURL = $myURL;
  121. }
  122. if ($_GET['installplugin-cookies']) {
  123. //header('Location: /');
  124. header('Refresh: 5; /');
  125. writeMsg("Hello <b>$username</b>: I have installed the <b>cookies plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  126. $message = "Hello <b>$username</b>: I have installed the <b>cookies plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  127. shell_exec("sudo -u root /usr/bin/installplugin-cookies");
  128. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  129. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  130. $newURL = $myURL;
  131. }
  132. if ($_GET['removeplugin-cookies']) {
  133. //header('Location: /');
  134. header('Refresh: 5; /');
  135. writeMsg("Hello <b>$username</b>: I have removed the <b>cookies plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  136. $message = "Hello <b>$username</b>: I have removed the <b>cookies plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  137. shell_exec("sudo -u root /usr/bin/removeplugin-cookies");
  138. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  139. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  140. $newURL = $myURL;
  141. }
  142. if ($_GET['installplugin-cpuload']) {
  143. //header('Location: /');
  144. header('Refresh: 5; /');
  145. writeMsg("Hello <b>$username</b>: I have installed the <b>cpuload plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  146. $message = "Hello <b>$username</b>: I have installed the <b>cpuload plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  147. shell_exec("sudo -u root /usr/bin/installplugin-cpuload");
  148. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  149. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  150. $newURL = $myURL;
  151. }
  152. if ($_GET['removeplugin-cpuload']) {
  153. //header('Location: /');
  154. header('Refresh: 5; /');
  155. writeMsg("Hello <b>$username</b>: I have removed the <b>cpuload plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  156. $message = "Hello <b>$username</b>: I have removed the <b>cpuload plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  157. shell_exec("sudo -u root /usr/bin/removeplugin-cpuload");
  158. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  159. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  160. $newURL = $myURL;
  161. }
  162. if ($_GET['installplugin-create']) {
  163. //header('Location: /');
  164. header('Refresh: 5; /');
  165. writeMsg("Hello <b>$username</b>: I have installed the <b>create plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  166. $message = "Hello <b>$username</b>: I have installed the <b>create plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  167. shell_exec("sudo -u root /usr/bin/installplugin-create");
  168. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  169. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  170. $newURL = $myURL;
  171. }
  172. if ($_GET['removeplugin-create']) {
  173. //header('Location: /');
  174. header('Refresh: 5; /');
  175. writeMsg("Hello <b>$username</b>: I have removed the <b>create plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  176. $message = "Hello <b>$username</b>: I have removed the <b>create plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  177. shell_exec("sudo -u root /usr/bin/removeplugin-create");
  178. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  179. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  180. $newURL = $myURL;
  181. }
  182. if ($_GET['installplugin-data']) {
  183. //header('Location: /');
  184. header('Refresh: 5; /');
  185. writeMsg("Hello <b>$username</b>: I have installed the <b>data plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  186. $message = "Hello <b>$username</b>: I have installed the <b>data plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  187. shell_exec("sudo -u root /usr/bin/installplugin-data");
  188. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  189. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  190. $newURL = $myURL;
  191. }
  192. if ($_GET['removeplugin-data']) {
  193. //header('Location: /');
  194. header('Refresh: 5; /');
  195. writeMsg("Hello <b>$username</b>: I have removed the <b>data plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  196. $message = "Hello <b>$username</b>: I have removed the <b>data plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  197. shell_exec("sudo -u root /usr/bin/removeplugin-data");
  198. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  199. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  200. $newURL = $myURL;
  201. }
  202. if ($_GET['installplugin-datadir']) {
  203. //header('Location: /');
  204. header('Refresh: 5; /');
  205. writeMsg("Hello <b>$username</b>: I have installed the <b>datadir plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  206. $message = "Hello <b>$username</b>: I have installed the <b>datadir plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  207. shell_exec("sudo -u root /usr/bin/installplugin-datadir");
  208. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  209. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  210. $newURL = $myURL;
  211. }
  212. if ($_GET['removeplugin-datadir']) {
  213. //header('Location: /');
  214. header('Refresh: 5; /');
  215. writeMsg("Hello <b>$username</b>: I have removed the <b>datadir plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  216. $message = "Hello <b>$username</b>: I have removed the <b>datadir plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  217. shell_exec("sudo -u root /usr/bin/removeplugin-datadir");
  218. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  219. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  220. $newURL = $myURL;
  221. }
  222. if ($_GET['installplugin-diskspace']) {
  223. //header('Location: /');
  224. header('Refresh: 5; /');
  225. writeMsg("Hello <b>$username</b>: I have installed the <b>diskspace plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  226. $message = "Hello <b>$username</b>: I have installed the <b>diskspace plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  227. shell_exec("sudo -u root /usr/bin/installplugin-diskspace");
  228. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  229. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  230. $newURL = $myURL;
  231. }
  232. if ($_GET['removeplugin-diskspace']) {
  233. //header('Location: /');
  234. header('Refresh: 5; /');
  235. writeMsg("Hello <b>$username</b>: I have removed the <b>diskspace plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  236. $message = "Hello <b>$username</b>: I have removed the <b>diskspace plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  237. shell_exec("sudo -u root /usr/bin/removeplugin-diskspace");
  238. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  239. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  240. $newURL = $myURL;
  241. }
  242. if ($_GET['installplugin-edit']) {
  243. //header('Location: /');
  244. header('Refresh: 5; /');
  245. writeMsg("Hello <b>$username</b>: I have installed the <b>edit plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  246. $message = "Hello <b>$username</b>: I have installed the <b>edit plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  247. shell_exec("sudo -u root /usr/bin/installplugin-edit");
  248. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  249. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  250. $newURL = $myURL;
  251. }
  252. if ($_GET['removeplugin-edit']) {
  253. //header('Location: /');
  254. header('Refresh: 5; /');
  255. writeMsg("Hello <b>$username</b>: I have removed the <b>edit plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  256. $message = "Hello <b>$username</b>: I have removed the <b>edit plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  257. shell_exec("sudo -u root /usr/bin/removeplugin-edit");
  258. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  259. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  260. $newURL = $myURL;
  261. }
  262. if ($_GET['installplugin-erasedata']) {
  263. //header('Location: /');
  264. header('Refresh: 5; /');
  265. writeMsg("Hello <b>$username</b>: I have installed the <b>erasedata plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  266. $message = "Hello <b>$username</b>: I have installed the <b>erasedata plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  267. shell_exec("sudo -u root /usr/bin/installplugin-erasedata");
  268. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  269. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  270. $newURL = $myURL;
  271. }
  272. if ($_GET['removeplugin-erasedata']) {
  273. //header('Location: /');
  274. header('Refresh: 5; /');
  275. writeMsg("Hello <b>$username</b>: I have removed the <b>erasedata plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  276. $message = "Hello <b>$username</b>: I have removed the <b>erasedata plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  277. shell_exec("sudo -u root /usr/bin/removeplugin-erasedata");
  278. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  279. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  280. $newURL = $myURL;
  281. }
  282. if ($_GET['installplugin-extratio']) {
  283. //header('Location: /');
  284. header('Refresh: 5; /');
  285. writeMsg("Hello <b>$username</b>: I have installed the <b>extratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  286. $message = "Hello <b>$username</b>: I have installed the <b>extratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  287. shell_exec("sudo -u root /usr/bin/installplugin-extratio");
  288. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  289. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  290. $newURL = $myURL;
  291. }
  292. if ($_GET['removeplugin-extratio']) {
  293. //header('Location: /');
  294. header('Refresh: 5; /');
  295. writeMsg("Hello <b>$username</b>: I have removed the <b>extratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  296. $message = "Hello <b>$username</b>: I have removed the <b>extratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  297. shell_exec("sudo -u root /usr/bin/removeplugin-extratio");
  298. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  299. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  300. $newURL = $myURL;
  301. }
  302. if ($_GET['installplugin-extsearch']) {
  303. //header('Location: /');
  304. header('Refresh: 5; /');
  305. writeMsg("Hello <b>$username</b>: I have installed the <b>extsearch plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  306. $message = "Hello <b>$username</b>: I have installed the <b>extsearch plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  307. shell_exec("sudo -u root /usr/bin/installplugin-extsearch");
  308. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  309. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  310. $newURL = $myURL;
  311. }
  312. if ($_GET['removeplugin-extsearch']) {
  313. //header('Location: /');
  314. header('Refresh: 5; /');
  315. writeMsg("Hello <b>$username</b>: I have removed the <b>extsearch plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  316. $message = "Hello <b>$username</b>: I have removed the <b>extsearch plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  317. shell_exec("sudo -u root /usr/bin/removeplugin-extsearch");
  318. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  319. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  320. $newURL = $myURL;
  321. }
  322. if ($_GET['installplugin-feeds']) {
  323. //header('Location: /');
  324. header('Refresh: 5; /');
  325. writeMsg("Hello <b>$username</b>: I have installed the <b>feeds plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  326. $message = "Hello <b>$username</b>: I have installed the <b>feeds plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  327. shell_exec("sudo -u root /usr/bin/installplugin-feeds");
  328. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  329. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  330. $newURL = $myURL;
  331. }
  332. if ($_GET['removeplugin-feeds']) {
  333. //header('Location: /');
  334. header('Refresh: 5; /');
  335. writeMsg("Hello <b>$username</b>: I have removed the <b>feeds plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  336. $message = "Hello <b>$username</b>: I have removed the <b>feeds plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  337. shell_exec("sudo -u root /usr/bin/removeplugin-feeds");
  338. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  339. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  340. $newURL = $myURL;
  341. }
  342. if ($_GET['installplugin-filedrop']) {
  343. //header('Location: /');
  344. header('Refresh: 5; /');
  345. writeMsg("Hello <b>$username</b>: I have installed the <b>filedrop plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  346. $message = "Hello <b>$username</b>: I have installed the <b>filedrop plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  347. shell_exec("sudo -u root /usr/bin/installplugin-filedrop");
  348. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  349. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  350. $newURL = $myURL;
  351. }
  352. if ($_GET['removeplugin-filedrop']) {
  353. //header('Location: /');
  354. header('Refresh: 5; /');
  355. writeMsg("Hello <b>$username</b>: I have removed the <b>filedrop plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  356. $message = "Hello <b>$username</b>: I have removed the <b>filedrop plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  357. shell_exec("sudo -u root /usr/bin/removeplugin-filedrop");
  358. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  359. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  360. $newURL = $myURL;
  361. }
  362. if ($_GET['installplugin-filemanager']) {
  363. //header('Location: /');
  364. header('Refresh: 5; /');
  365. writeMsg("Hello <b>$username</b>: I have installed the <b>filemanager plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  366. $message = "Hello <b>$username</b>: I have installed the <b>filemanager plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  367. shell_exec("sudo -u root /usr/bin/installplugin-filemanager");
  368. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  369. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  370. $newURL = $myURL;
  371. }
  372. if ($_GET['removeplugin-filemanager']) {
  373. //header('Location: /');
  374. header('Refresh: 5; /');
  375. writeMsg("Hello <b>$username</b>: I have removed the <b>filemanager plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  376. $message = "Hello <b>$username</b>: I have removed the <b>filemanager plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  377. shell_exec("sudo -u root /usr/bin/removeplugin-filemanager");
  378. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  379. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  380. $newURL = $myURL;
  381. }
  382. if ($_GET['installplugin-fileshare']) {
  383. //header('Location: /');
  384. header('Refresh: 5; /');
  385. writeMsg("Hello <b>$username</b>: I have installed the <b>fileshare plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  386. $message = "Hello <b>$username</b>: I have installed the <b>fileshare plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  387. shell_exec("sudo -u root /usr/bin/installplugin-fileshare");
  388. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  389. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  390. $newURL = $myURL;
  391. }
  392. if ($_GET['removeplugin-fileshare']) {
  393. //header('Location: /');
  394. header('Refresh: 5; /');
  395. writeMsg("Hello <b>$username</b>: I have removed the <b>fileshare plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  396. $message = "Hello <b>$username</b>: I have removed the <b>fileshare plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  397. shell_exec("sudo -u root /usr/bin/removeplugin-fileshare");
  398. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  399. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  400. $newURL = $myURL;
  401. }
  402. if ($_GET['installplugin-fileupload']) {
  403. //header('Location: /');
  404. header('Refresh: 5; /');
  405. writeMsg("Hello <b>$username</b>: I have installed the <b>fileupload plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  406. $message = "Hello <b>$username</b>: I have installed the <b>fileupload plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  407. shell_exec("sudo -u root /usr/bin/installplugin-fileupload");
  408. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  409. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  410. $newURL = $myURL;
  411. }
  412. if ($_GET['removeplugin-fileupload']) {
  413. //header('Location: /');
  414. header('Refresh: 5; /');
  415. writeMsg("Hello <b>$username</b>: I have removed the <b>fileupload plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  416. $message = "Hello <b>$username</b>: I have removed the <b>fileupload plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  417. shell_exec("sudo -u root /usr/bin/removeplugin-fileupload");
  418. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  419. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  420. $newURL = $myURL;
  421. }
  422. if ($_GET['installplugin-history']) {
  423. //header('Location: /');
  424. header('Refresh: 5; /');
  425. writeMsg("Hello <b>$username</b>: I have installed the <b>history plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  426. $message = "Hello <b>$username</b>: I have installed the <b>history plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  427. shell_exec("sudo -u root /usr/bin/installplugin-history");
  428. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  429. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  430. $newURL = $myURL;
  431. }
  432. if ($_GET['removeplugin-history']) {
  433. //header('Location: /');
  434. header('Refresh: 5; /');
  435. writeMsg("Hello <b>$username</b>: I have removed the <b>history plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  436. $message = "Hello <b>$username</b>: I have removed the <b>history plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  437. shell_exec("sudo -u root /usr/bin/removeplugin-history");
  438. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  439. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  440. $newURL = $myURL;
  441. }
  442. if ($_GET['installplugin-httprpc']) {
  443. //header('Location: /');
  444. header('Refresh: 5; /');
  445. writeMsg("Hello <b>$username</b>: I have installed the <b>httprpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  446. $message = "Hello <b>$username</b>: I have installed the <b>httprpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  447. shell_exec("sudo -u root /usr/bin/installplugin-httprpc");
  448. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  449. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  450. $newURL = $myURL;
  451. }
  452. if ($_GET['removeplugin-httprpc']) {
  453. //header('Location: /');
  454. header('Refresh: 5; /');
  455. writeMsg("Hello <b>$username</b>: I have removed the <b>httprpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  456. $message = "Hello <b>$username</b>: I have removed the <b>httprpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  457. shell_exec("sudo -u root /usr/bin/removeplugin-httprpc");
  458. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  459. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  460. $newURL = $myURL;
  461. }
  462. if ($_GET['installplugin-ipad']) {
  463. //header('Location: /');
  464. header('Refresh: 5; /');
  465. writeMsg("Hello <b>$username</b>: I have installed the <b>ipad plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  466. $message = "Hello <b>$username</b>: I have installed the <b>ipad plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  467. shell_exec("sudo -u root /usr/bin/installplugin-ipad");
  468. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  469. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  470. $newURL = $myURL;
  471. }
  472. if ($_GET['removeplugin-ipad']) {
  473. //header('Location: /');
  474. header('Refresh: 5; /');
  475. writeMsg("Hello <b>$username</b>: I have removed the <b>ipad plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  476. $message = "Hello <b>$username</b>: I have removed the <b>ipad plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  477. shell_exec("sudo -u root /usr/bin/removeplugin-ipad");
  478. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  479. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  480. $newURL = $myURL;
  481. }
  482. if ($_GET['installplugin-loginmgr']) {
  483. //header('Location: /');
  484. header('Refresh: 5; /');
  485. writeMsg("Hello <b>$username</b>: I have installed the <b>loginmgr plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  486. $message = "Hello <b>$username</b>: I have installed the <b>loginmgr plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  487. shell_exec("sudo -u root /usr/bin/installplugin-loginmgr");
  488. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  489. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  490. $newURL = $myURL;
  491. }
  492. if ($_GET['removeplugin-loginmgr']) {
  493. //header('Location: /');
  494. header('Refresh: 5; /');
  495. writeMsg("Hello <b>$username</b>: I have removed the <b>loginmgr plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  496. $message = "Hello <b>$username</b>: I have removed the <b>loginmgr plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  497. shell_exec("sudo -u root /usr/bin/removeplugin-loginmgr");
  498. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  499. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  500. $newURL = $myURL;
  501. }
  502. if ($_GET['installplugin-logoff']) {
  503. //header('Location: /');
  504. header('Refresh: 5; /');
  505. writeMsg("Hello <b>$username</b>: I have installed the <b>logoff plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  506. $message = "Hello <b>$username</b>: I have installed the <b>logoff plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  507. shell_exec("sudo -u root /usr/bin/installplugin-logoff");
  508. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  509. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  510. $newURL = $myURL;
  511. }
  512. if ($_GET['removeplugin-logoff']) {
  513. //header('Location: /');
  514. header('Refresh: 5; /');
  515. writeMsg("Hello <b>$username</b>: I have removed the <b>logoff plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  516. $message = "Hello <b>$username</b>: I have removed the <b>logoff plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  517. shell_exec("sudo -u root /usr/bin/removeplugin-logoff");
  518. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  519. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  520. $newURL = $myURL;
  521. }
  522. if ($_GET['installplugin-lookat']) {
  523. //header('Location: /');
  524. header('Refresh: 5; /');
  525. writeMsg("Hello <b>$username</b>: I have installed the <b>lookat plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  526. $message = "Hello <b>$username</b>: I have installed the <b>lookat plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  527. shell_exec("sudo -u root /usr/bin/installplugin-lookat");
  528. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  529. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  530. $newURL = $myURL;
  531. }
  532. if ($_GET['removeplugin-lookat']) {
  533. //header('Location: /');
  534. header('Refresh: 5; /');
  535. writeMsg("Hello <b>$username</b>: I have removed the <b>lookat plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  536. $message = "Hello <b>$username</b>: I have removed the <b>lookat plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  537. shell_exec("sudo -u root /usr/bin/removeplugin-lookat");
  538. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  539. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  540. $newURL = $myURL;
  541. }
  542. if ($_GET['installplugin-mediainfo']) {
  543. //header('Location: /');
  544. header('Refresh: 5; /');
  545. writeMsg("Hello <b>$username</b>: I have installed the <b>mediainfo plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  546. $message = "Hello <b>$username</b>: I have installed the <b>mediainfo plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  547. shell_exec("sudo -u root /usr/bin/installplugin-mediainfo");
  548. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  549. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  550. $newURL = $myURL;
  551. }
  552. if ($_GET['removeplugin-mediainfo']) {
  553. //header('Location: /');
  554. header('Refresh: 5; /');
  555. writeMsg("Hello <b>$username</b>: I have removed the <b>mediainfo plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  556. $message = "Hello <b>$username</b>: I have removed the <b>mediainfo plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  557. shell_exec("sudo -u root /usr/bin/removeplugin-mediainfo");
  558. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  559. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  560. $newURL = $myURL;
  561. }
  562. if ($_GET['installplugin-mobile']) {
  563. //header('Location: /');
  564. header('Refresh: 5; /');
  565. writeMsg("Hello <b>$username</b>: I have installed the <b>mobile plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  566. $message = "Hello <b>$username</b>: I have installed the <b>mobile plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  567. shell_exec("sudo -u root /usr/bin/installplugin-mobile");
  568. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  569. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  570. $newURL = $myURL;
  571. }
  572. if ($_GET['removeplugin-mobile']) {
  573. //header('Location: /');
  574. header('Refresh: 5; /');
  575. writeMsg("Hello <b>$username</b>: I have removed the <b>mobile plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  576. $message = "Hello <b>$username</b>: I have removed the <b>mobile plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  577. shell_exec("sudo -u root /usr/bin/removeplugin-mobile");
  578. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  579. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  580. $newURL = $myURL;
  581. }
  582. if ($_GET['installplugin-noty']) {
  583. //header('Location: /');
  584. header('Refresh: 5; /');
  585. writeMsg("Hello <b>$username</b>: I have installed the <b>noty plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  586. $message = "Hello <b>$username</b>: I have installed the <b>noty plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  587. shell_exec("sudo -u root /usr/bin/installplugin-noty");
  588. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  589. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  590. $newURL = $myURL;
  591. }
  592. if ($_GET['removeplugin-noty']) {
  593. //header('Location: /');
  594. header('Refresh: 5; /');
  595. writeMsg("Hello <b>$username</b>: I have removed the <b>noty plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  596. $message = "Hello <b>$username</b>: I have removed the <b>noty plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  597. shell_exec("sudo -u root /usr/bin/removeplugin-noty");
  598. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  599. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  600. $newURL = $myURL;
  601. }
  602. if ($_GET['installplugin-pausewebui']) {
  603. //header('Location: /');
  604. header('Refresh: 5; /');
  605. writeMsg("Hello <b>$username</b>: I have installed the <b>pausewebui plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  606. $message = "Hello <b>$username</b>: I have installed the <b>pausewebui plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  607. shell_exec("sudo -u root /usr/bin/installplugin-pausewebui");
  608. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  609. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  610. $newURL = $myURL;
  611. }
  612. if ($_GET['removeplugin-pausewebui']) {
  613. //header('Location: /');
  614. header('Refresh: 5; /');
  615. writeMsg("Hello <b>$username</b>: I have removed the <b>pausewebui plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  616. $message = "Hello <b>$username</b>: I have removed the <b>pausewebui plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  617. shell_exec("sudo -u root /usr/bin/removeplugin-pausewebui");
  618. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  619. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  620. $newURL = $myURL;
  621. }
  622. if ($_GET['installplugin-ratio']) {
  623. //header('Location: /');
  624. header('Refresh: 5; /');
  625. writeMsg("Hello <b>$username</b>: I have installed the <b>ratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  626. $message = "Hello <b>$username</b>: I have installed the <b>ratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  627. shell_exec("sudo -u root /usr/bin/installplugin-ratio");
  628. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  629. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  630. $newURL = $myURL;
  631. }
  632. if ($_GET['removeplugin-ratio']) {
  633. //header('Location: /');
  634. header('Refresh: 5; /');
  635. writeMsg("Hello <b>$username</b>: I have removed the <b>ratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  636. $message = "Hello <b>$username</b>: I have removed the <b>ratio plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  637. shell_exec("sudo -u root /usr/bin/removeplugin-ratio");
  638. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  639. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  640. $newURL = $myURL;
  641. }
  642. if ($_GET['installplugin-ratiocolor']) {
  643. //header('Location: /');
  644. header('Refresh: 5; /');
  645. writeMsg("Hello <b>$username</b>: I have installed the <b>ratiocolor plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  646. $message = "Hello <b>$username</b>: I have installed the <b>ratiocolor plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  647. shell_exec("sudo -u root /usr/bin/installplugin-ratiocolor");
  648. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  649. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  650. $newURL = $myURL;
  651. }
  652. if ($_GET['removeplugin-ratiocolor']) {
  653. //header('Location: /');
  654. header('Refresh: 5; /');
  655. writeMsg("Hello <b>$username</b>: I have removed the <b>ratiocolor plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  656. $message = "Hello <b>$username</b>: I have removed the <b>ratiocolor plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  657. shell_exec("sudo -u root /usr/bin/removeplugin-ratiocolor");
  658. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  659. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  660. $newURL = $myURL;
  661. }
  662. if ($_GET['installplugin-retrackers']) {
  663. //header('Location: /');
  664. header('Refresh: 5; /');
  665. writeMsg("Hello <b>$username</b>: I have installed the <b>retrackers plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  666. $message = "Hello <b>$username</b>: I have installed the <b>retrackers plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  667. shell_exec("sudo -u root /usr/bin/installplugin-retrackers");
  668. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  669. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  670. $newURL = $myURL;
  671. }
  672. if ($_GET['removeplugin-retrackers']) {
  673. //header('Location: /');
  674. header('Refresh: 5; /');
  675. writeMsg("Hello <b>$username</b>: I have removed the <b>retrackers plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  676. $message = "Hello <b>$username</b>: I have removed the <b>retrackers plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  677. shell_exec("sudo -u root /usr/bin/removeplugin-retrackers");
  678. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  679. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  680. $newURL = $myURL;
  681. }
  682. if ($_GET['installplugin-rpc']) {
  683. //header('Location: /');
  684. header('Refresh: 5; /');
  685. writeMsg("Hello <b>$username</b>: I have installed the <b>rpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  686. $message = "Hello <b>$username</b>: I have installed the <b>rpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  687. shell_exec("sudo -u root /usr/bin/installplugin-rpc");
  688. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  689. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  690. $newURL = $myURL;
  691. }
  692. if ($_GET['removeplugin-rpc']) {
  693. //header('Location: /');
  694. header('Refresh: 5; /');
  695. writeMsg("Hello <b>$username</b>: I have removed the <b>rpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  696. $message = "Hello <b>$username</b>: I have removed the <b>rpc plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  697. shell_exec("sudo -u root /usr/bin/removeplugin-rpc");
  698. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  699. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  700. $newURL = $myURL;
  701. }
  702. if ($_GET['installplugin-rss']) {
  703. //header('Location: /');
  704. header('Refresh: 5; /');
  705. writeMsg("Hello <b>$username</b>: I have installed the <b>rss plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  706. $message = "Hello <b>$username</b>: I have installed the <b>rss plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  707. shell_exec("sudo -u root /usr/bin/installplugin-rss");
  708. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  709. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  710. $newURL = $myURL;
  711. }
  712. if ($_GET['removeplugin-rss']) {
  713. //header('Location: /');
  714. header('Refresh: 5; /');
  715. writeMsg("Hello <b>$username</b>: I have removed the <b>rss plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  716. $message = "Hello <b>$username</b>: I have removed the <b>rss plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  717. shell_exec("sudo -u root /usr/bin/removeplugin-rss");
  718. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  719. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  720. $newURL = $myURL;
  721. }
  722. if ($_GET['installplugin-rssurlrewrite']) {
  723. //header('Location: /');
  724. header('Refresh: 5; /');
  725. writeMsg("Hello <b>$username</b>: I have installed the <b>rssurlrewrite plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  726. $message = "Hello <b>$username</b>: I have installed the <b>rssurlrewrite plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  727. shell_exec("sudo -u root /usr/bin/installplugin-rssurlrewrite");
  728. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && !in_array(strtolower($_SERVER['HTTPS']),array('off','no'))) ? 'https' : 'http';
  729. $myUrl .= '://'.$_SERVER['HTTP_HOST'];
  730. $newURL = $myURL;
  731. }
  732. if ($_GET['removeplugin-rssurlrewrite']) {
  733. //header('Location: /');
  734. header('Refresh: 5; /');
  735. writeMsg("Hello <b>$username</b>: I have removed the <b>rssurlrewrite plugin</b> for ruTorrent. Your browser will refresh now ... <br>");
  736. $message = "Hello <b>$username</b>: I have removed the <b>rssurlrewrite plugin</b> for ruTorrent. Your browser will refresh now ... <br>";
  737. shell_exec("sudo -u root /usr/bin/removeplugin-rssurlrewrite");
  738. $myUrl = (isset($_SERVER['HTTPS']) && $_SERVER