Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2019
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.32 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.  
  4. <head>
  5. <meta charset="utf-8" />
  6. <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
  7. <link rel="icon" type="image/png" href="assets/img/favicon.png">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  9. <title>
  10. Gofile - File sharing platform, anonymous and free
  11. </title>
  12. <meta name="keywords" content="gofile,download,upload,free,host,storage,share,big,file,video,image,audio" />
  13. <meta name="description" content="Gofile is a free and anonymous file-sharing platform. You can store and share data of all types (files, images, music, videos etc...). There is no limit, you download at the maximum speed of your connection and everything is free." />
  14. <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
  15.  
  16. <meta property="og:title" content="Gofile - File sharing platform, anonymous and free">
  17. <meta property="og:description" content="Gofile is a free and anonymous file-sharing platform. You can store and share data of all types (files, images, music, videos etc...). There is no limit, you download at the maximum speed of your connection and everything is free.">
  18. <meta property="og:image" content="https://gofile.io/assets/img/logo-small-og.png">
  19. <meta property="og:type" content="website" />
  20. <!-- Fonts and icons -->
  21. <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
  22. <link href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
  23. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">
  24. <link href="https://cdn.materialdesignicons.com/3.8.95/css/materialdesignicons.min.css" rel="stylesheet">
  25. <!-- CSS Files -->
  26. <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
  27. <link href="assets/css/paper-dashboard.css?v=2.0.1" rel="stylesheet" />
  28. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.1/css/tempusdominus-bootstrap-4.min.css" />
  29. <link href="assets/css/bootstrap-tagsinput.css" rel="stylesheet" />
  30.  
  31. <!-- Matomo -->
  32. <script type="text/javascript">
  33. var _paq = _paq || [];
  34. /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  35. _paq.push(['trackPageView']);
  36. _paq.push(['enableLinkTracking']);
  37. (function() {
  38. var u="//matomo.gofile.io/";
  39. _paq.push(['setTrackerUrl', u+'piwik.php']);
  40. _paq.push(['setSiteId', '1']);
  41. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  42. g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  43. })();
  44. </script>
  45. <!-- End Matomo Code -->
  46.  
  47. <style>
  48. .playMediaDiv > td
  49. {
  50. padding-left: 7px !important;
  51. }
  52. .playMediaDiv > td:first-child::before
  53. {
  54. display: none !important;
  55. }
  56. </style>
  57. </head>
  58.  
  59. <body class="">
  60. <div class="wrapper ">
  61. <div class="sidebar" data-color="" data-active-color="danger">
  62. <!--
  63. Tip 1: You can change the color of the sidebar using: data-color="blue | green | orange | red | yellow"
  64. -->
  65. <div class="logo">
  66. <a href="https://gofile.io" class="simple-text logo-mini">
  67. <div class="logo-image-small">
  68. <img src="assets/img/logo-small.png">
  69. </div>
  70. </a>
  71. <a href="https://gofile.io" class="simple-text logo-normal">
  72. Gofile
  73. <!-- <div class="logo-image-big">
  74. <img src="assets/img/logo-big.png">
  75. </div> -->
  76. </a>
  77. </div>
  78. <div class="sidebar-wrapper">
  79. <div class="user">
  80. <div class="photo">
  81. <img id="accountBlockies" src="" />
  82. </div>
  83. <div class="info">
  84. <a data-toggle="collapse" href="#navCollapse" class="collapsed">
  85. <span>
  86. <span id="accountName" class="text-truncate" style="max-width: 150px; display: inline-block;">guest</span>
  87. <b class="caret"></b>
  88. </span>
  89. </a>
  90. <div class="clearfix"></div>
  91. <div id="navCollapse" class="collapse">
  92. <ul class="nav navActiveCheck">
  93. <li id="li-myProfile">
  94. <a class="ajaxLink" href="?t=myProfile">
  95. <span class="sidebar-mini-icon"><i class="mdi mdi-account"></i></span>
  96. <span class="sidebar-normal">My Profile</span>
  97. </a>
  98. </li>
  99. <li id="li-myUploads">
  100. <a class="ajaxLink" href="?t=myUploads">
  101. <span class="sidebar-mini-icon"><i class="mdi mdi-format-list-bulleted"></i></span>
  102. <span class="sidebar-normal">My Uploads</span>
  103. </a>
  104. </li>
  105. <li id="li-login" class="d-none">
  106. <a class="ajaxLink" href="?t=login">
  107. <span class="sidebar-mini-icon"><i class="mdi mdi-login"></i></span>
  108. <span class="sidebar-normal">login</span>
  109. </a>
  110. </li>
  111. <li id="li-logout" class="d-none">
  112. <a class="ajaxLink" href="?t=logout">
  113. <span class="sidebar-mini-icon"><i class="mdi mdi-logout"></i></span>
  114. <span class="sidebar-normal">logout</span>
  115. </a>
  116. </li>
  117. </ul>
  118. </div>
  119. </div>
  120. </div>
  121. <ul class="nav navActiveCheck">
  122. <li id="li-welcome">
  123. <a class="ajaxLink" href="?t=welcome">
  124. <i class="mdi mdi-home"></i>
  125. <p>Welcome</p>
  126. </a>
  127. </li>
  128. <li id="li-uploadFiles">
  129. <a class="ajaxLink" href="?t=uploadFiles">
  130. <i class="mdi mdi-file-upload"></i>
  131. <p>Upload files</p>
  132. </a>
  133. </li>
  134. <!-- <li id="li-premium">
  135. <a class="ajaxLink" href="?t=premium">
  136. <i class="mdi mdi-medal"></i>
  137. <p>Premium</p>
  138. </a>
  139. </li>-->
  140. <li id="li-api">
  141. <a class="ajaxLink" href="?t=api">
  142. <i class="mdi mdi-code-braces"></i>
  143. <p>API</p>
  144. </a>
  145. </li>
  146. <li id="li-donate">
  147. <a class="ajaxLink" href="?t=donate">
  148. <i class="mdi mdi-gift"></i>
  149. <p>Donate</p>
  150. </a>
  151. </li>
  152. <li id="li-faq">
  153. <a class="ajaxLink" href="?t=faq">
  154. <i class="mdi mdi-help-circle"></i>
  155. <p>FAQ</p>
  156. </a>
  157. </li>
  158. <li id="li-contact">
  159. <a class="ajaxLink" href="?t=contact">
  160. <i class="mdi mdi-email"></i>
  161. <p>Contact</p>
  162. </a>
  163. </li>
  164. </ul>
  165. </div>
  166. </div>
  167. <div class="main-panel">
  168. <!-- Navbar -->
  169. <nav class="navbar navbar-expand-lg navbar-absolute fixed-top navbar-transparent">
  170. <div class="container-fluid">
  171. <div class="navbar-wrapper">
  172. <div class="navbar-minimize">
  173. <button id="minimizeSidebar" class="btn btn-icon btn-round">
  174. <i class="nc-icon nc-minimal-right text-center visible-on-sidebar-mini"></i>
  175. <i class="nc-icon nc-minimal-left text-center visible-on-sidebar-regular"></i>
  176. </button>
  177. </div>
  178. <div class="navbar-toggle">
  179. <button type="button" class="navbar-toggler">
  180. <span class="navbar-toggler-bar bar1"></span>
  181. <span class="navbar-toggler-bar bar2"></span>
  182. <span class="navbar-toggler-bar bar3"></span>
  183. </button>
  184. </div>
  185. <span id="navbarBrand" class="navbar-brand">Gofile</span>
  186. </div>
  187. </div>
  188. </nav>
  189. <!-- End Navbar -->
  190. <!-- <div class="panel-header">
  191.  
  192. <canvas id="bigDashboardChart"></canvas>
  193.  
  194.  
  195. </div> -->
  196. <div id="mainContent" class="content" style="min-height:calc(100vh - 163px);">
  197. <div class="row h-100">
  198. <div class="col-lg-12 col-md-12 col-sm-12 text-center">
  199. <i class="mdi mdi-spin mdi-24px mdi-loading"></i>
  200. </div>
  201. </div>
  202. </div>
  203. <footer class="footer footer-black footer-white ">
  204. <div class="container-fluid">
  205. <div class="row">
  206. <nav class="footer-nav">
  207. <ul>
  208. <li>
  209. <a href="https://gofile.io">Gofile</a>
  210. </li>
  211. <li>
  212. <a class="ajaxLink" href="?t=terms">Terms</a>
  213. </li>
  214. <li>
  215. <a class="ajaxLink" href="?t=copyright">Copyright</a>
  216. </li>
  217. <li>
  218. <a class="ajaxLink" href="?t=faq">FAQ</a>
  219. </li>
  220. <li>
  221. <a class="ajaxLink" href="?t=contact">Contact</a>
  222. </li>
  223. </ul>
  224. </nav>
  225. <div class="credits ml-auto">
  226. <span class="copyright">
  227. ©
  228. <script>
  229. document.write(new Date().getFullYear())
  230. </script>, made with <i class="fa fa-heart heart"></i> by Gofile Team
  231. </span>
  232. </div>
  233. </div>
  234. </div>
  235. </footer>
  236. </div>
  237. </div>
  238. <!-- Core JS Files -->
  239. <!--<script src="assets/js/core/jquery.min.js"></script>-->
  240. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
  241. <script src="assets/js/core/popper.min.js"></script>
  242. <!-- <script src="assets/js/core/bootstrap.min.js"></script>-->
  243. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
  244. <script src="assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
  245. <script src="assets/js/plugins/moment.min.js"></script>
  246. <!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
  247. <script src="assets/js/plugins/bootstrap-switch.js"></script>
  248. <!-- Plugin for Sweet Alert -->
  249. <script src="assets/js/plugins/sweetalert2.min.js"></script>
  250. <!-- Forms Validations Plugin -->
  251. <script src="assets/js/plugins/jquery.validate.min.js"></script>
  252. <!-- Plugin for the Wizard, full documentation here: https://github.com/VinceG/twitter-bootstrap-wizard -->
  253. <script src="assets/js/plugins/jquery.bootstrap-wizard.js"></script>
  254. <!-- Plugin for Select, full documentation here: http://silviomoreto.github.io/bootstrap-select -->
  255. <script src="assets/js/plugins/bootstrap-selectpicker.js"></script>
  256. <!-- Plugin for the DateTimePicker, full documentation here: https://eonasdan.github.io/bootstrap-datetimepicker/ -->
  257. <!--<script src="assets/js/plugins/bootstrap-datetimepicker.js"></script>-->
  258. <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.1/js/tempusdominus-bootstrap-4.min.js"></script>
  259. <!-- DataTables.net Plugin, full documentation here: https://datatables.net/ -->
  260. <script src="assets/js/plugins/jquery.dataTables.min.js"></script>
  261. <script src="//cdn.datatables.net/plug-ins/1.10.19/sorting/datetime-moment.js"></script>
  262. <script src="//cdn.datatables.net/plug-ins/1.10.19/dataRender/ellipsis.js"></script>
  263. <!-- Plugin for Tags, full documentation here: https://github.com/bootstrap-tagsinput/bootstrap-tagsinputs -->
  264. <!--<script src="assets/js/plugins/bootstrap-tagsinput.js"></script>-->
  265. <script src="assets/js/plugins/tagsinput.js"></script>
  266. <!-- Plugin for Fileupload, full documentation here: http://www.jasny.net/bootstrap/javascript/#fileinput -->
  267. <script src="assets/js/plugins/jasny-bootstrap.min.js"></script>
  268. <!-- Full Calendar Plugin, full documentation here: https://github.com/fullcalendar/fullcalendar -->
  269. <script src="assets/js/plugins/fullcalendar.min.js"></script>
  270. <!-- Vector Map plugin, full documentation here: http://jvectormap.com/documentation/ -->
  271. <script src="assets/js/plugins/jquery-jvectormap.js"></script>
  272. <!-- Plugin for the Bootstrap Table -->
  273. <script src="assets/js/plugins/nouislider.min.js"></script>
  274. <!-- Chart JS -->
  275. <script src="assets/js/plugins/chartjs.min.js"></script>
  276. <!-- Notifications Plugin -->
  277. <script src="assets/js/plugins/bootstrap-notify.js"></script>
  278. <!-- Control Center for Now Ui Dashboard: parallax effects, scripts for the example pages etc -->
  279. <script src="assets/js/paper-dashboard.min.js?v=2.0.1" type="text/javascript"></script>
  280. <!-- Blockies to generate icon from account name -->
  281. <script src="https://cdn.rawgit.com/alexvandesande/blockies/master/blockies.js" type="text/javascript"></script>
  282. <!-- qrcode generator -->
  283. <script src="assets/js/plugins/qrcode.min.js"></script>
  284. <!-- sha256 -->
  285. <script src="assets/js/plugins/sha256.min.js"></script>
  286.  
  287. <script>
  288. //Global var
  289. var account = "";
  290. var token = "";
  291. var icon = "";
  292.  
  293. // function onHashChange() {
  294. // if(window.location.hash.substring(1).split("#")[0] == "download")
  295. // {
  296. // //history.pushState(null, '', 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1]);
  297. // window.location = 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1];
  298. // }
  299. // else
  300. // {
  301. // $("#navbarBrand").html(window.location.hash.substring(1).split("#")[0]);
  302. // $("#mainContent").load("content/" + window.location.hash.substring(1).split("#")[0] + ".html");
  303. // $('.navActiveCheck > li').each(function(i) {
  304. // $(this).removeClass("active")
  305. // });
  306. // $("#li-" + window.location.hash.substring(1).split("#")[0]).addClass("active");
  307. // if (window.location.hash.substring(1).split("#")[0] == "myProfile" || window.location.hash.substring(1).split("#")[0] == "myUploads") {
  308. // $('.collapse').collapse("show");
  309. // }
  310. // }
  311. // }
  312.  
  313. function escapeHtml(text) {
  314. var map = {
  315. '&': '&amp;',
  316. '<': '&lt;',
  317. '>': '&gt;',
  318. '"': '&quot;',
  319. "'": '&#039;'
  320. };
  321.  
  322. return text.replace(/[&<>"']/g, function(m) { return map[m]; });
  323. }
  324.  
  325. function onAjaxLink() {
  326. $("#mainContent").html('<div class="col-lg-12 col-md-12 col-sm-12 text-center"><i class="mdi mdi-spin mdi-24px mdi-loading"></i></div>');
  327.  
  328. if(window.location.hash.substring(1).split("#")[0] == "download")
  329. {
  330. //history.pushState(null, '', 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1]);
  331. window.location = 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1];
  332. }
  333. else if(window.location.search == "")
  334. {
  335. /*window.location = 'https://'+window.location.hostname+'/?t=welcome';*/
  336. history.pushState(null, '', 'https://'+window.location.hostname+'/?t=welcome');
  337. }
  338.  
  339. var urlParams = new URLSearchParams(window.location.search);
  340. if(urlParams.get('tk') !== null)
  341. {
  342. //We remove all accounts in localStorage before processing the token
  343. for (var i in localStorage)
  344. {
  345. if (i.match(/account/))
  346. {
  347. localStorage.removeItem(i)
  348. }
  349. }
  350.  
  351. $.ajax({
  352. url: "https://apiv2.gofile.io/verifToken",
  353. data: {
  354. token: urlParams.get('tk'),
  355. },
  356. success: function( result )
  357. {
  358. if(result["status"] == "ok")
  359. {
  360. localStorage['account_' + result.data.email] = result.data.token
  361. window.location = "https://"+window.location.hostname
  362. }
  363. else
  364. {
  365. alert("invalid token")
  366. window.location = "https://"+window.location.hostname
  367. }
  368. }
  369. });
  370.  
  371.  
  372. }
  373. if(urlParams.get('c') !== null)
  374. {
  375. $("#mainContent").load("content/download.html");
  376. $("#navbarBrand").html("download");
  377. }
  378. else if(urlParams.get('t') !== null)
  379. {
  380. $("#mainContent").load("content/"+escapeHtml(urlParams.get('t'))+".html", function(responseText, textStatus) {
  381. if(textStatus == "error")
  382. {
  383. history.pushState(null, '', 'https://'+window.location.hostname+'/?t=welcome');
  384. onAjaxLink()
  385. }
  386. });
  387. $("#navbarBrand").html(escapeHtml(urlParams.get('t')));
  388. $('.navActiveCheck > li').each(function(i) {
  389. $(this).removeClass("active")
  390. });
  391. $("#li-" + urlParams.get('t')).addClass("active");
  392. if (urlParams.get('t') == "myProfile" || urlParams.get('t') == "myUploads") {
  393. $('.collapse').collapse("show");
  394. }
  395. }
  396. else
  397. {
  398. history.pushState(null, '', 'https://'+window.location.hostname+'/?t=welcome');
  399. onAjaxLink()
  400. }
  401. }
  402.  
  403. function isLogged()
  404. {
  405. var isLogged = false
  406. for (var i in localStorage)
  407. {
  408. if (i.match(/account/))
  409. {
  410. isLogged = true
  411. account = i.toString().split("_")[1]
  412. token = localStorage.getItem(i)
  413. }
  414. }
  415. if(account == "")
  416. {
  417. account = "guest"
  418. }
  419. $("#accountName").html(account)
  420. return isLogged;
  421. }
  422.  
  423. function humanFileSize(bytes, si) {
  424. var thresh = si ? 1000 : 1024;
  425. if(Math.abs(bytes) < thresh) {
  426. return bytes + ' B';
  427. }
  428. var units = si
  429. ? ['KB','MB','GB','TB','PB','EB','ZB','YB']
  430. : ['KiB','MiB','GiB','TiB','PiB','EiB','ZiB','YiB'];
  431. var u = -1;
  432. do {
  433. bytes /= thresh;
  434. ++u;
  435. } while(Math.abs(bytes) >= thresh && u < units.length - 1);
  436. return bytes.toFixed(1)+' '+units[u];
  437. }
  438.  
  439. $(document).ready(function() {
  440. $("body").on('click', '.ajaxLink', function(e) {
  441. history.pushState(null, '', 'https://'+window.location.hostname+'/'+$(this).attr("href"));
  442. onAjaxLink();
  443. e.preventDefault();
  444. });
  445.  
  446. onAjaxLink();
  447.  
  448. isLogged()
  449.  
  450. icon = blockies.create({ // All options are optional
  451. seed: $("#accountName").text(), // seed used to generate icon data, default: random
  452. //color: '#dfe', // to manually specify the icon color, default: random
  453. //bgcolor: '#aaa', // choose a different background color, default: random
  454. size: 8, // width/height of the icon in blocks, default: 8
  455. scale: 4, // width/height of each block in pixels, default: 4
  456. // spotcolor: '#000' // each pixel has a 13% chance of being of a third color,
  457. // default: random. Set to -1 to disable it. These "spots" create structures
  458. // that look like eyes, mouths and noses.
  459. });
  460. $('#accountBlockies').attr('src', icon.toDataURL()); // icon is a canvas element
  461.  
  462. if(isLogged())
  463. {
  464. $.ajax({
  465. url: "https://apiv2.gofile.io/verifToken",
  466. data: {
  467. token: token,
  468. },
  469. success: function( result )
  470. {
  471. if(result["status"] != "ok")
  472. {
  473. swal({
  474. text: "You will be disconnected from your account. Please log in again.",
  475. type: 'error',
  476. }).then(function() {
  477. window.location = 'https://'+window.location.hostname+'/?t=logout'
  478. });
  479. }
  480. }
  481. });
  482.  
  483. $("#li-logout").removeClass("d-none")
  484. }
  485. else
  486. {
  487. $("#li-login").removeClass("d-none")
  488. }
  489.  
  490. if(document.referrer.includes("?tk="))
  491. {
  492. $.notify({
  493. // options
  494. message: 'Welcome '+account
  495. },{
  496. // settings
  497. type: 'success'
  498. });
  499. }
  500.  
  501. // if(window.location.search == "")
  502. // {
  503. // $("#mainContent").load("content/welcome.html");
  504. // }
  505. // else
  506. // {
  507. // var urlParams = new URLSearchParams(window.location.search);
  508.  
  509. // if(urlParams.get('c') !== null)
  510. // {
  511. // $("#mainContent").load("content/download.html");
  512. // $("#navbarBrand").html("download");
  513. // }
  514. // else if(urlParams.get('t') !== null)
  515. // {
  516. // $("#mainContent").load("content/"+urlParams.get('t')+".html");
  517. // $("#navbarBrand").html(urlParams.get('t'));
  518. // $('.navActiveCheck > li').each(function(i) {
  519. // $(this).removeClass("active")
  520. // });
  521. // $("#li-" + urlParams.get('t')).addClass("active");
  522. // if (urlParams.get('t') == "myProfile" || urlParams.get('t') == "myUploads") {
  523. // $('.collapse').collapse("show");
  524. // }
  525. // }
  526. // }
  527.  
  528.  
  529. //onHashChange();
  530. // window.onhashchange = function() {
  531. // onHashChange();
  532. // }
  533. // if (window.location.hash.substring(1).split("#")[0] == "") {
  534. // window.location.hash = "welcome";
  535. // }
  536.  
  537. });
  538. </script>
  539. </body>
  540.  
  541. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement