View file aiv2 AutoIndex/panel/filemanager.delete.dir.php

File size: 1.22Kb
<?php
include ('../config.php');
$page='fm';
include ('session.php');
include ($config->real() . $config->header);
if(isset($_GET,$_GET['confirm'],$_GET['dir']) and $_GET['confirm']==1 and is_dir($config->real().$config->filedir.$_GET['dir'])){
include('fm_func.php');
rmdirr($config->real().$config->filedir.$_GET['dir']);
header('Location: filemanager.php?task=rmdir&status=1&dir='.str_replace(basename($_GET['dir']),null,$_GET['dir']));
die();}
?>
<?php
if($layout=='web'){?>
<div class="wrap">
<div style="float: left; width: 18%; margin-bottom: 5px;" class="container">
<?php include('sidebar.php'); ?>
</div>
<div style="float: right; width:80%;">
<?php
}?>
<div class="container"><div class="title">Delete Directory</div>
<?php if($layout=='web'){
echo '<div style="padding:5px;">';
}?>
Are you sure you want to delete the directory:<br />
<?php echo htmlspecialchars($_GET['dir']); ?>
<br />
<div style="text-align: center;"><a href="?confirm=1&dir=<?php echo htmlspecialchars($_GET['dir']); ?>">Yes</a> <a href="filemanager.php?dir=<?php echo htmlspecialchars($_GET['dir']); ?>">No</a></div>
</div>
<?php if($layout=='web'){
echo '</div></div></div>';
}
?>
<?php
include ($config->real() . $config->footer); ?>