Edit File by line
/home/barbar84/www/extracte.../filemang...
File: folder_delete.php
<?php
[0] Fix | Delete
[1] Fix | Delete
define('ACCESS', true);
[2] Fix | Delete
[3] Fix | Delete
include_once 'function.php';
[4] Fix | Delete
[5] Fix | Delete
[6] Fix | Delete
$title = 'Delete Folder';
[7] Fix | Delete
[8] Fix | Delete
include_once 'header.php';
[9] Fix | Delete
[10] Fix | Delete
echo '<div class="title">' . $title . '</div>';
[11] Fix | Delete
[12] Fix | Delete
if ($dir == null || $name == null || !is_dir(processDirectory($dir . '/' . $name))) {
[13] Fix | Delete
echo '<div class="list"><span>The path does not exist</span></div>
[14] Fix | Delete
<div class="title">Function</div>
[15] Fix | Delete
<ul class="list">
[16] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php' . $pages['paramater_0'] . '">List</a></li>
[17] Fix | Delete
</ul>';
[18] Fix | Delete
} else {
[19] Fix | Delete
$dir = processDirectory($dir);
[20] Fix | Delete
[21] Fix | Delete
if (isset($_POST['accept'])) {
[22] Fix | Delete
if (!rrmdir($dir . '/' . $name))
[23] Fix | Delete
echo '<div class="notice_failure">Delete Folder failure</div>';
[24] Fix | Delete
else
[25] Fix | Delete
goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
[26] Fix | Delete
} else if (isset($_POST['not_accept'])) {
[27] Fix | Delete
goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
echo '<div class="list">
[31] Fix | Delete
<span>Bạn có thực sự muốn Delete Folder <strong class="folder_name_delete">' . $name . '</strong> Are not?</span><hr/><br/>
[32] Fix | Delete
<center>
[33] Fix | Delete
<form action="folder_delete.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '" method="post">
[34] Fix | Delete
<input type="submit" name="accept" value="Agree "/>
[35] Fix | Delete
<input type="submit" name="not_accept" value="Cancel"/>
[36] Fix | Delete
</form>
[37] Fix | Delete
</center>
[38] Fix | Delete
</div>
[39] Fix | Delete
<div class="title">Function</div>
[40] Fix | Delete
<ul class="list">
[41] Fix | Delete
[42] Fix | Delete
<li><img src="icon/rename.png"/> <a href="folder_edit.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Rename</a></li>
[43] Fix | Delete
<li><img src="icon/copy.png"/> <a href="folder_copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Copy</a></li>
[44] Fix | Delete
<li><img src="icon/Copy.png"/> <a href="folder_Copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Move</a></li>
[45] Fix | Delete
<li><img src="icon/access.png"/> <a href="folder_chmod.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Chmod</a></li>
[46] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[47] Fix | Delete
</ul>';
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
include_once 'footer.php';
[51] Fix | Delete
[52] Fix | Delete
[53] Fix | Delete
?>
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function