<!DOCTYPE html>
 <html>
 <head>    
<title> MAKE/REMOVE FOLDER</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="/db71/goto/favicon/sd22.png" rel="icon">
<link href="/db71/goto/favicon/sd22.png" rel="apple-touch-icon">

<style>
body{font-family:arial;width:350px;margin:5px auto;}    
</style>
</head>
<body>
    
<!-- Make A New Folder Code --> 
<?php
$folder_name=$_POST['createfolder'];
if (!file_exists($output_dir . $folder_name))
{@mkdir($output_dir . $folder_name, 0777);
echo " <span style='color:limegreen;'> <b> $folder_name </b></span> Folder Created Successfully <br>";
}
?>

<form action="" method="post">
<h2 style='color:green; line-height:5px;'><span style='color:limegreen;'> Create </span> New Folder </h2>
<input name="createfolder" type="text" style="font-family:arial; font-size:20px; width:150px;">
<input type="submit" value="Create Folder" style="font-family:arial; font-size:20px; width:150px;">
</form>
<br><br>
<!-- End Make A New Folder Code -->    
    
    
    
    
    
<!-- Remove The Folder Code -->    
<?php
$dremove = $_POST['dname'];
$dirname = "$dremove";
if(rmdir($dirname))
{echo ("<span style='color:red;'><b> $dirname </b> </span>successfully removed");}
else { echo ("<span style='color:red;'><b> $dirname </b></span> couldn't be removed");} ?>
     
<form action="" method="post">
<h2 style='color:green; line-height:5px;'><span style='color:red;'>Remove</span> Folder</h2>
<input name="dname" type="text" style="font-family:arial; font-size:20px; width:150px;">
<input type="submit" value="Remove Folder" style="font-family:arial; font-size:20px; width:150px;">
</form>
<!-- End Remove The Folder Code -->  



</body>
</html>