Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <link rel="apple-touch-icon" sizes="76x76" href="assets/img/apple-icon.png">
- <link rel="icon" type="image/png" href="assets/img/favicon.png">
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <title>
- Gofile - File sharing platform, anonymous and free
- </title>
- <meta name="keywords" content="gofile,download,upload,free,host,storage,share,big,file,video,image,audio" />
- <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." />
- <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
- <meta property="og:title" content="Gofile - File sharing platform, anonymous and free">
- <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.">
- <meta property="og:image" content="https://gofile.io/assets/img/logo-small-og.png">
- <meta property="og:type" content="website" />
- <!-- Fonts and icons -->
- <link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">
- <link href="https://cdn.materialdesignicons.com/3.8.95/css/materialdesignicons.min.css" rel="stylesheet">
- <!-- CSS Files -->
- <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
- <link href="assets/css/paper-dashboard.css?v=2.0.1" rel="stylesheet" />
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.1/css/tempusdominus-bootstrap-4.min.css" />
- <link href="assets/css/bootstrap-tagsinput.css" rel="stylesheet" />
- <!-- Matomo -->
- <script type="text/javascript">
- var _paq = _paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u="//matomo.gofile.io/";
- _paq.push(['setTrackerUrl', u+'piwik.php']);
- _paq.push(['setSiteId', '1']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <!-- End Matomo Code -->
- <style>
- .playMediaDiv > td
- {
- padding-left: 7px !important;
- }
- .playMediaDiv > td:first-child::before
- {
- display: none !important;
- }
- </style>
- </head>
- <body class="">
- <div class="wrapper ">
- <div class="sidebar" data-color="" data-active-color="danger">
- <!--
- Tip 1: You can change the color of the sidebar using: data-color="blue | green | orange | red | yellow"
- -->
- <div class="logo">
- <a href="https://gofile.io" class="simple-text logo-mini">
- <div class="logo-image-small">
- <img src="assets/img/logo-small.png">
- </div>
- </a>
- <a href="https://gofile.io" class="simple-text logo-normal">
- Gofile
- <!-- <div class="logo-image-big">
- <img src="assets/img/logo-big.png">
- </div> -->
- </a>
- </div>
- <div class="sidebar-wrapper">
- <div class="user">
- <div class="photo">
- <img id="accountBlockies" src="" />
- </div>
- <div class="info">
- <a data-toggle="collapse" href="#navCollapse" class="collapsed">
- <span>
- <span id="accountName" class="text-truncate" style="max-width: 150px; display: inline-block;">guest</span>
- <b class="caret"></b>
- </span>
- </a>
- <div class="clearfix"></div>
- <div id="navCollapse" class="collapse">
- <ul class="nav navActiveCheck">
- <li id="li-myProfile">
- <a class="ajaxLink" href="?t=myProfile">
- <span class="sidebar-mini-icon"><i class="mdi mdi-account"></i></span>
- <span class="sidebar-normal">My Profile</span>
- </a>
- </li>
- <li id="li-myUploads">
- <a class="ajaxLink" href="?t=myUploads">
- <span class="sidebar-mini-icon"><i class="mdi mdi-format-list-bulleted"></i></span>
- <span class="sidebar-normal">My Uploads</span>
- </a>
- </li>
- <li id="li-login" class="d-none">
- <a class="ajaxLink" href="?t=login">
- <span class="sidebar-mini-icon"><i class="mdi mdi-login"></i></span>
- <span class="sidebar-normal">login</span>
- </a>
- </li>
- <li id="li-logout" class="d-none">
- <a class="ajaxLink" href="?t=logout">
- <span class="sidebar-mini-icon"><i class="mdi mdi-logout"></i></span>
- <span class="sidebar-normal">logout</span>
- </a>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <ul class="nav navActiveCheck">
- <li id="li-welcome">
- <a class="ajaxLink" href="?t=welcome">
- <i class="mdi mdi-home"></i>
- <p>Welcome</p>
- </a>
- </li>
- <li id="li-uploadFiles">
- <a class="ajaxLink" href="?t=uploadFiles">
- <i class="mdi mdi-file-upload"></i>
- <p>Upload files</p>
- </a>
- </li>
- <!-- <li id="li-premium">
- <a class="ajaxLink" href="?t=premium">
- <i class="mdi mdi-medal"></i>
- <p>Premium</p>
- </a>
- </li>-->
- <li id="li-api">
- <a class="ajaxLink" href="?t=api">
- <i class="mdi mdi-code-braces"></i>
- <p>API</p>
- </a>
- </li>
- <li id="li-donate">
- <a class="ajaxLink" href="?t=donate">
- <i class="mdi mdi-gift"></i>
- <p>Donate</p>
- </a>
- </li>
- <li id="li-faq">
- <a class="ajaxLink" href="?t=faq">
- <i class="mdi mdi-help-circle"></i>
- <p>FAQ</p>
- </a>
- </li>
- <li id="li-contact">
- <a class="ajaxLink" href="?t=contact">
- <i class="mdi mdi-email"></i>
- <p>Contact</p>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <div class="main-panel">
- <!-- Navbar -->
- <nav class="navbar navbar-expand-lg navbar-absolute fixed-top navbar-transparent">
- <div class="container-fluid">
- <div class="navbar-wrapper">
- <div class="navbar-minimize">
- <button id="minimizeSidebar" class="btn btn-icon btn-round">
- <i class="nc-icon nc-minimal-right text-center visible-on-sidebar-mini"></i>
- <i class="nc-icon nc-minimal-left text-center visible-on-sidebar-regular"></i>
- </button>
- </div>
- <div class="navbar-toggle">
- <button type="button" class="navbar-toggler">
- <span class="navbar-toggler-bar bar1"></span>
- <span class="navbar-toggler-bar bar2"></span>
- <span class="navbar-toggler-bar bar3"></span>
- </button>
- </div>
- <span id="navbarBrand" class="navbar-brand">Gofile</span>
- </div>
- </div>
- </nav>
- <!-- End Navbar -->
- <!-- <div class="panel-header">
- <canvas id="bigDashboardChart"></canvas>
- </div> -->
- <div id="mainContent" class="content" style="min-height:calc(100vh - 163px);">
- <div class="row h-100">
- <div class="col-lg-12 col-md-12 col-sm-12 text-center">
- <i class="mdi mdi-spin mdi-24px mdi-loading"></i>
- </div>
- </div>
- </div>
- <footer class="footer footer-black footer-white ">
- <div class="container-fluid">
- <div class="row">
- <nav class="footer-nav">
- <ul>
- <li>
- <a href="https://gofile.io">Gofile</a>
- </li>
- <li>
- <a class="ajaxLink" href="?t=terms">Terms</a>
- </li>
- <li>
- <a class="ajaxLink" href="?t=copyright">Copyright</a>
- </li>
- <li>
- <a class="ajaxLink" href="?t=faq">FAQ</a>
- </li>
- <li>
- <a class="ajaxLink" href="?t=contact">Contact</a>
- </li>
- </ul>
- </nav>
- <div class="credits ml-auto">
- <span class="copyright">
- ©
- <script>
- document.write(new Date().getFullYear())
- </script>, made with <i class="fa fa-heart heart"></i> by Gofile Team
- </span>
- </div>
- </div>
- </div>
- </footer>
- </div>
- </div>
- <!-- Core JS Files -->
- <!--<script src="assets/js/core/jquery.min.js"></script>-->
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js"></script>
- <script src="assets/js/core/popper.min.js"></script>
- <!-- <script src="assets/js/core/bootstrap.min.js"></script>-->
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
- <script src="assets/js/plugins/perfect-scrollbar.jquery.min.js"></script>
- <script src="assets/js/plugins/moment.min.js"></script>
- <!-- Plugin for Switches, full documentation here: http://www.jque.re/plugins/version3/bootstrap.switch/ -->
- <script src="assets/js/plugins/bootstrap-switch.js"></script>
- <!-- Plugin for Sweet Alert -->
- <script src="assets/js/plugins/sweetalert2.min.js"></script>
- <!-- Forms Validations Plugin -->
- <script src="assets/js/plugins/jquery.validate.min.js"></script>
- <!-- Plugin for the Wizard, full documentation here: https://github.com/VinceG/twitter-bootstrap-wizard -->
- <script src="assets/js/plugins/jquery.bootstrap-wizard.js"></script>
- <!-- Plugin for Select, full documentation here: http://silviomoreto.github.io/bootstrap-select -->
- <script src="assets/js/plugins/bootstrap-selectpicker.js"></script>
- <!-- Plugin for the DateTimePicker, full documentation here: https://eonasdan.github.io/bootstrap-datetimepicker/ -->
- <!--<script src="assets/js/plugins/bootstrap-datetimepicker.js"></script>-->
- <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/tempusdominus-bootstrap-4/5.0.1/js/tempusdominus-bootstrap-4.min.js"></script>
- <!-- DataTables.net Plugin, full documentation here: https://datatables.net/ -->
- <script src="assets/js/plugins/jquery.dataTables.min.js"></script>
- <script src="//cdn.datatables.net/plug-ins/1.10.19/sorting/datetime-moment.js"></script>
- <script src="//cdn.datatables.net/plug-ins/1.10.19/dataRender/ellipsis.js"></script>
- <!-- Plugin for Tags, full documentation here: https://github.com/bootstrap-tagsinput/bootstrap-tagsinputs -->
- <!--<script src="assets/js/plugins/bootstrap-tagsinput.js"></script>-->
- <script src="assets/js/plugins/tagsinput.js"></script>
- <!-- Plugin for Fileupload, full documentation here: http://www.jasny.net/bootstrap/javascript/#fileinput -->
- <script src="assets/js/plugins/jasny-bootstrap.min.js"></script>
- <!-- Full Calendar Plugin, full documentation here: https://github.com/fullcalendar/fullcalendar -->
- <script src="assets/js/plugins/fullcalendar.min.js"></script>
- <!-- Vector Map plugin, full documentation here: http://jvectormap.com/documentation/ -->
- <script src="assets/js/plugins/jquery-jvectormap.js"></script>
- <!-- Plugin for the Bootstrap Table -->
- <script src="assets/js/plugins/nouislider.min.js"></script>
- <!-- Chart JS -->
- <script src="assets/js/plugins/chartjs.min.js"></script>
- <!-- Notifications Plugin -->
- <script src="assets/js/plugins/bootstrap-notify.js"></script>
- <!-- Control Center for Now Ui Dashboard: parallax effects, scripts for the example pages etc -->
- <script src="assets/js/paper-dashboard.min.js?v=2.0.1" type="text/javascript"></script>
- <!-- Blockies to generate icon from account name -->
- <script src="https://cdn.rawgit.com/alexvandesande/blockies/master/blockies.js" type="text/javascript"></script>
- <!-- qrcode generator -->
- <script src="assets/js/plugins/qrcode.min.js"></script>
- <!-- sha256 -->
- <script src="assets/js/plugins/sha256.min.js"></script>
- <script>
- //Global var
- var account = "";
- var token = "";
- var icon = "";
- // function onHashChange() {
- // if(window.location.hash.substring(1).split("#")[0] == "download")
- // {
- // //history.pushState(null, '', 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1]);
- // window.location = 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1];
- // }
- // else
- // {
- // $("#navbarBrand").html(window.location.hash.substring(1).split("#")[0]);
- // $("#mainContent").load("content/" + window.location.hash.substring(1).split("#")[0] + ".html");
- // $('.navActiveCheck > li').each(function(i) {
- // $(this).removeClass("active")
- // });
- // $("#li-" + window.location.hash.substring(1).split("#")[0]).addClass("active");
- // if (window.location.hash.substring(1).split("#")[0] == "myProfile" || window.location.hash.substring(1).split("#")[0] == "myUploads") {
- // $('.collapse').collapse("show");
- // }
- // }
- // }
- function escapeHtml(text) {
- var map = {
- '&': '&',
- '<': '<',
- '>': '>',
- '"': '"',
- "'": '''
- };
- return text.replace(/[&<>"']/g, function(m) { return map[m]; });
- }
- function onAjaxLink() {
- $("#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>');
- if(window.location.hash.substring(1).split("#")[0] == "download")
- {
- //history.pushState(null, '', 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1]);
- window.location = 'https://'+window.location.hostname+'/?c='+window.location.hash.substring(1).split("#")[1];
- }
- else if(window.location.search == "")
- {
- /*window.location = 'https://'+window.location.hostname+'/?t=welcome';*/
- history.pushState(null, '', 'https://'+window.location.hostname+'/?t=welcome');
- }
- var urlParams = new URLSearchParams(window.location.search);
- if(urlParams.get('tk') !== null)
- {
- //We remove all accounts in localStorage before processing the token
- for (var i in localStorage)
- {
- if (i.match(/account/))
- {
- localStorage.removeItem(i)
- }
- }
- $.ajax({
- url: "https://apiv2.gofile.io/verifToken",
- data: {
- token: urlParams.get('tk'),
- },
- success: function( result )
- {
- if(result["status"] == "ok")
- {
- localStorage['account_' + result.data.email] = result.data.token
- window.location = "https://"+window.location.hostname
- }
- else
- {
- alert("invalid token")
- window.location = "https://"+window.location.hostname
- }
- }
- });
- }
- if(urlParams.get('c') !== null)
- {
- $("#mainContent").load("content/download.html");
- $("#navbarBrand").html("download");
- }
- else if(urlParams.get('t') !== null)
- {
- $("#mainContent").load("content/"+escapeHtml(urlParams.get('t'))+".html", function(responseText, textStatus) {
- if(textStatus == "error")
- {
- history.pushState(null, '', 'https://'+window.location.hostname+'/?t=welcome');
- onAjaxLink()
- }
- });
- $("#navbarBrand").html(escapeHtml(urlParams.get('t')));
- $('.navActiveCheck > li').each(function(i) {
- $(this).removeClass("active")
- });
- $("#li-" + urlParams.get('t')).addClass("active");
- if (urlParams.get('t') == "myProfile" || urlParams.get('t') == "myUploads") {
- $('.collapse').collapse("show");
- }
- }
- else
- {
- history.pushState(null, '', 'https://'+window.location.hostname+'/?t=welcome');
- onAjaxLink()
- }
- }
- function isLogged()
- {
- var isLogged = false
- for (var i in localStorage)
- {
- if (i.match(/account/))
- {
- isLogged = true
- account = i.toString().split("_")[1]
- token = localStorage.getItem(i)
- }
- }
- if(account == "")
- {
- account = "guest"
- }
- $("#accountName").html(account)
- return isLogged;
- }
- function humanFileSize(bytes, si) {
- var thresh = si ? 1000 : 1024;
- if(Math.abs(bytes) < thresh) {
- return bytes + ' B';
- }
- var units = si
- ? ['KB','MB','GB','TB','PB','EB','ZB','YB']
- : ['KiB','MiB','GiB','TiB','PiB','EiB','ZiB','YiB'];
- var u = -1;
- do {
- bytes /= thresh;
- ++u;
- } while(Math.abs(bytes) >= thresh && u < units.length - 1);
- return bytes.toFixed(1)+' '+units[u];
- }
- $(document).ready(function() {
- $("body").on('click', '.ajaxLink', function(e) {
- history.pushState(null, '', 'https://'+window.location.hostname+'/'+$(this).attr("href"));
- onAjaxLink();
- e.preventDefault();
- });
- onAjaxLink();
- isLogged()
- icon = blockies.create({ // All options are optional
- seed: $("#accountName").text(), // seed used to generate icon data, default: random
- //color: '#dfe', // to manually specify the icon color, default: random
- //bgcolor: '#aaa', // choose a different background color, default: random
- size: 8, // width/height of the icon in blocks, default: 8
- scale: 4, // width/height of each block in pixels, default: 4
- // spotcolor: '#000' // each pixel has a 13% chance of being of a third color,
- // default: random. Set to -1 to disable it. These "spots" create structures
- // that look like eyes, mouths and noses.
- });
- $('#accountBlockies').attr('src', icon.toDataURL()); // icon is a canvas element
- if(isLogged())
- {
- $.ajax({
- url: "https://apiv2.gofile.io/verifToken",
- data: {
- token: token,
- },
- success: function( result )
- {
- if(result["status"] != "ok")
- {
- swal({
- text: "You will be disconnected from your account. Please log in again.",
- type: 'error',
- }).then(function() {
- window.location = 'https://'+window.location.hostname+'/?t=logout'
- });
- }
- }
- });
- $("#li-logout").removeClass("d-none")
- }
- else
- {
- $("#li-login").removeClass("d-none")
- }
- if(document.referrer.includes("?tk="))
- {
- $.notify({
- // options
- message: 'Welcome '+account
- },{
- // settings
- type: 'success'
- });
- }
- // if(window.location.search == "")
- // {
- // $("#mainContent").load("content/welcome.html");
- // }
- // else
- // {
- // var urlParams = new URLSearchParams(window.location.search);
- // if(urlParams.get('c') !== null)
- // {
- // $("#mainContent").load("content/download.html");
- // $("#navbarBrand").html("download");
- // }
- // else if(urlParams.get('t') !== null)
- // {
- // $("#mainContent").load("content/"+urlParams.get('t')+".html");
- // $("#navbarBrand").html(urlParams.get('t'));
- // $('.navActiveCheck > li').each(function(i) {
- // $(this).removeClass("active")
- // });
- // $("#li-" + urlParams.get('t')).addClass("active");
- // if (urlParams.get('t') == "myProfile" || urlParams.get('t') == "myUploads") {
- // $('.collapse').collapse("show");
- // }
- // }
- // }
- //onHashChange();
- // window.onhashchange = function() {
- // onHashChange();
- // }
- // if (window.location.hash.substring(1).split("#")[0] == "") {
- // window.location.hash = "welcome";
- // }
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement