TheDukeBastardo

code1

Sep 17th, 2018
22,047
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.93 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <meta http-equiv="X-Frame-Options" content="deny">
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>IPTV Server</title>
  6. <link rel="stylesheet" type="text/css" href="../templates/css/layout.css" type="text/css" media="screen" />
  7. <link rel="stylesheet" type="text/css" href="../templates/css/jquery.datetimepicker.css" />
  8. <link rel="stylesheet" type="text/css" href="../templates/css/jquery-te-1.4.0.css" />
  9. <link rel="stylesheet" type="text/css" href="../templates/css/jqueryFileTree.css" />
  10. <link rel="stylesheet" type="text/css" href="../templates/css/bootstrap.min.css" />
  11. <link rel="stylesheet" type="text/css" href="../templates/css/jquery-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="../templates/css/jquery.jOrgChart.css" />
  13. <link rel="stylesheet" type="text/css" href="../templates/css/w2ui-1.4.2.min.css" />
  14. <link rel="stylesheet" type="text/css" href="../templates/css/jquery.multiselect.css" />
  15. <link rel="stylesheet" type="text/css" href="../templates/css/chosen.css" />
  16. <link rel="stylesheet" type="text/css" href="../templates/css/jquery.fancybox-1.3.1.css" />
  17. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
  18. <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" />
  19. <script type="text/javascript" src="../templates/js/jquery.min.js"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
  21. <script type="text/javascript" src="../templates/js/jquery-ui.min.js"></script>
  22. <script type="text/javascript" src="../templates/js/jquery.blockUI.js"></script>
  23. <script type="text/javascript" src="../templates/js/jquery.datetimepicker.js"></script>
  24. <script type="text/javascript" src="../templates/js/jquery.searchit.js"></script>
  25. <script type="text/javascript" src="../templates/js/jqueryFileTree.js"></script>
  26. <script type="text/javascript" src="../templates/js/jquery-te-1.4.0.min.js"></script>
  27. <script type="text/javascript" src="../templates/js/multiselect.js"></script>
  28. <script type="text/javascript" src="../templates/js/w2ui-1.4.2.min.js"></script>
  29. <script type="text/javascript" src="../templates/js/jquery.multiselect.js"></script>
  30. <script type="text/javascript" src="../templates/js/jquery.nestable.js"></script>
  31. <script type="text/javascript" src="../templates/js/chosen.jquery.min.js"></script>
  32. <script type="text/javascript" src="../templates/js/jquery.fancybox-1.3.1.js"></script>
  33. <script type="text/javascript" src="../templates/js/custom.js"></script>
  34. <script type="text/javascript" src="../templates/js/jquery.multisortable.js"></script>
  35. <script type="text/javascript">
  36. function popitup(url) {
  37. newwindow = window.open(url, 'name', 'height=540,width=840');
  38. if (window.focus) {
  39. newwindow.focus()
  40. }
  41. return false;
  42. }
  43.  
  44. function openfileDialog(idInput, ServerID) {
  45. $("#dialog-explorer").dialog({
  46. autoOpen: false,
  47. width: $(document).width() * 0.5,
  48. height: $(document).height() * 0.5,
  49. buttons: {
  50. "I'm Done": function() {
  51. $(this).dialog("close");
  52. }
  53. }
  54. });
  55.  
  56. $("#dialog-explorer").dialog('open');
  57. $('#dialogContent').fileTree({
  58. root: '/',
  59. script: 'filexplorer.php',
  60. server: ServerID,
  61. multiFolder: false,
  62. loadMessage: 'Loading files...'
  63. },
  64. function(file) {
  65. $("#" + idInput).val(file).change();
  66.  
  67. $("#dialog-explorer").dialog("close");
  68. },
  69. function(dire) {
  70. $("#" + idInput).val(dire).change();
  71. }
  72. );
  73.  
  74.  
  75. return false;
  76. }
  77.  
  78. function loadAjax(url) {
  79. $.blockUI({
  80. message: "Please wait for this process to be completed. It can take a while. Do not close this window !",
  81. fadeIn: 700,
  82. fadeOut: 700,
  83. css: {
  84. border: 'none',
  85. padding: '15px',
  86. backgroundColor: '#000',
  87. '-webkit-border-radius': '10px',
  88. '-moz-border-radius': '10px',
  89. opacity: .5,
  90. color: '#fff'
  91. }
  92. });
  93.  
  94. $.ajax({
  95. url: url,
  96. success: function(response) {
  97. $.unblockUI();
  98. window.location.href = window.location.href
  99. }
  100. });
  101.  
  102. }
  103.  
  104. function selectAll(selectBox, selectAll) {
  105. for (i = 0; i < selectBox.length; i++) {
  106. if (typeof selectBox[i] == "string") {
  107. selectBox_form = document.getElementById(selectBox[i]);
  108. }
  109. // is the select box a multiple select box?
  110. if (selectBox_form.type == "select-multiple") {
  111. for (var j = 0; j < selectBox_form.options.length; j++) {
  112. selectBox_form.options[j].selected = selectAll;
  113. }
  114. }
  115. }
  116. }
  117.  
  118. function ajax_request_dialog(site_url, title, custom_background, custom_width, custom_height) {
  119.  
  120. if (typeof(custom_background) === 'undefined') custom_background = 'white';
  121. if (typeof(custom_width) === 'undefined') custom_width = '1020';
  122. if (typeof(custom_height) === 'undefined') custom_height = '700';
  123. if (typeof(debug) === 'undefined') debug = '';
  124.  
  125. $("#dialogDiv").dialog({
  126. autoOpen: false,
  127. modal: true,
  128. width: custom_width,
  129. height: custom_height,
  130. resizeable: true
  131. });
  132.  
  133.  
  134.  
  135. $("#dialogDiv").dialog({
  136. title: title
  137. });
  138. $("#dialogDiv").dialog('open');
  139. $('.ui-widget-overlay').css('background', 'white');
  140. $('.ui-dialog-content').css('background', custom_background);
  141. $('#dialogDiv').html("<center><img src='../templates/images/big_load.GIF' /><br />Please wait while loading...</center>");
  142. $.ajax({
  143. url: site_url,
  144. success: function(response) {
  145. $('#dialogDiv').html(response);
  146. }
  147. });
  148. }
  149. </script>
  150. </head>
  151. <body>
  152.  
  153. <div id="dialog-explorer" title="File Browser" style="display: none;">
  154. <div id="dialogContent"></div>
  155. </div><script>
  156. </script>
  157. <section id="secondary_bar">
  158. <div class="user">
  159. <p>ciwarafrance (<font color='orange'><u>66 Credits</u></font>) - <a href="index.php?action=logout"><u>Logout</u></a></p>
  160. </div>
  161. </section>
  162. <aside id="sidebar" class="column">
  163. <form class="logo">
  164. <img src="https://i.imgur.com/36mBzQv.png" width="70%" />
  165. </form>
  166. <hr />
  167. <h3 id="Main">Main</h3>
  168. <ul>
  169. <li class="icn_main_page"><a href="index.php">Main Page</a></li>
  170. </ul>
  171. <h3 id="StreamingLines">Streaming Lines</h3>
  172. <ul>
  173. <li class="icn_add_user"><a href="add_user.php">Create New Line</a></li><li class="icn_extend"><a href="extend.php">Extend Line</a></li><li class="icn_user_stats"><a href="user_stats.php">User Stats</a></li> <li class="icn_users"><a href="mnglines.php">Manage Lines</a></li>
  174. </ul>
  175. <h3 id="MAGDevices">MAG Devices</h3>
  176. <ul>
  177. <li class="icn_add_mag"><a href="add_mag.php">Add New MAG Device</a></li>
  178. <li class="icn_extend"><a href="extend_mag.php">Extend MAG</a></li>
  179. <li class="icn_manage_mag"><a href="manage_mag.php">Manage MAG Devices</a></li>
  180. </ul>
  181. <h3 id="Enigma2Devices">Enigma2 Devices</h3>
  182. <ul>
  183. <li class="icn_add_e2"><a href="add_e2.php">Add new E2 Box</a></li>
  184. <li class="icn_extend"><a href="extend_e2.php">Extend E2</a></li>
  185. <li class="icn_manage_e2"><a href="manage_e2.php">Manage E2 Devices</a></li>
  186. </ul>
  187. <h3 id="Profile">Profile</h3>
  188. <ul>
  189. <li class="icn_add_user"><a href="profile.php">Manage profile</a></li>
  190. </ul>
  191. <h3 id="TicketsSupport">Tickets Support</h3>
  192. <ul>
  193. <li class="icn_new_ticket"><a href="new_ticket.php">Create Support Ticket</a></li>
  194. <li class="icn_manage_tickets"><a href="manage_tickets.php">Manage Tickets</a></li>
  195. </ul>
  196. <h3 id="Tools">Tools</h3>
  197. <ul>
  198. </ul>
  199. <h3 id="Logs">Logs</h3>
  200. <ul>
  201. <li class="icn_reg_userlog"><a href="reg_userlog.php">Line Activity Log</a></li>
  202. </ul>
  203. <footer>
  204. <hr />
  205. <p>
  206. </p>
  207. </footer>
  208. </aside>
  209. <section id="main" class="column">
  210. <article class="module width_full">
  211. <header><h3 class="tabs_involved">Manage my streaming lines</h3>
  212. </header>
  213. <div id="dialogDiv" style="display: none;">Loading content... Please wait!</div>
  214. <div id="grid" style="text-align:center; width: 100%; height: 800px;"></div>
  215. <script>
  216. $(document).ready(function() {
  217. $('#grid').w2grid({
  218. name: 'grid',
  219. header: "Manage Lines",
  220. show: {
  221. header : true,
  222. lineNumbers : true,
  223. toolbar: true,
  224. footer: true
  225.  
  226. },
  227. columns: [
  228. { field: 'online', caption: "Online", size: '15%', resizable: true, sortable: true },
  229. { field: 'status', caption: "Status", size: '25%', resizable: true, sortable: true },
  230. { field: 'owner', caption: "Owner", size: '30%', resizable: true, sortable: true },
  231. { field: 'username', caption: "Username", size: '35%', resizable: true, sortable: true },
  232. { field: 'password', caption: "Password", size: '35%', resizable: true, sortable: true },
  233. { field: 'expire', caption: "Expire Date", size: '40%', resizable: true, sortable: true },
  234. { field: 'max_cons', caption: "Connections", size: '120px', resizable: true, sortable: true },
  235. { field: 'con_info', caption: "Last Connection", size: '120px', resizable: true, sortable: true },
  236. { field: 'channel', caption: "Last Seen Channel", size: '120px', resizable: true, sortable: true },
  237. { field: 'notes', caption: "Notes", size: '20%', resizable: true, sortable: true },
  238. { field: 'statistics', caption: "Statistics", size: '20%', resizable: true, sortable: true },
  239. { field: 'download', caption: "Download", size: '15%', resizable: true, sortable: true },
  240. { field: 'options', caption: "Options", size: '50%', resizable: true, sortable: true }
  241. ],
  242. searches: [
  243. { type: 'text', field: 'status', caption: "Status" },
  244. { type: 'text', field: 'owner', caption: "Owner" },
  245. { type: 'text', field: 'username', caption: "Username" },
  246. { type: 'text', field: 'password', caption: "Password" },
  247. { type: 'text', field: 'notes', caption: "Notes" },
  248. { type: 'text', field: 'expire', caption: "Expire Date" },
  249. { type: 'text', field: 'channel', caption: "Last Seen Channel" }
  250. ]
  251. });
  252.  
  253. w2ui['grid'].load('mnglines.php?action=load_users');
  254.  
  255. });
  256. </script> <div class="spacer"></div>
  257. </section>
  258. </body>
  259. <script src="../templates/js/jquery.datetimepicker.js"></script>
  260. <script>
  261. $('#expire_date').datetimepicker();
  262. </script>
  263. </html>
Add Comment
Please, Sign In to add comment