Edit File by line
/home/barbar84/public_h.../extracte.../filemang...
File: folder_chmod.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 = 'Chmod 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['submit'])) {
[22] Fix | Delete
echo '<div class="notice_failure">';
[23] Fix | Delete
[24] Fix | Delete
if (empty($_POST['mode']))
[25] Fix | Delete
echo 'Not fully entered information';
[26] Fix | Delete
else if (!@chmod($dir . '/' . $name, intval($_POST['mode'], 8)))
[27] Fix | Delete
echo 'Chmod Folder failure';
[28] Fix | Delete
else
[29] Fix | Delete
goURL('index.php?dir=' . $dirEncode . $pages['paramater_1']);
[30] Fix | Delete
[31] Fix | Delete
echo '</div>';
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
echo '<div class="list">
[35] Fix | Delete
<span class="bull">&bull; </span><span>' . printPath($dir . '/' . $name, true) . '</span><hr/>
[36] Fix | Delete
<form action="folder_chmod.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '" method="post">
[37] Fix | Delete
<span class="bull">&bull; </span>Chmod:<br/>
[38] Fix | Delete
<input type="text" name="mode" value="' . getChmod($dir . '/' . $name) . '" size="18"/><br/>
[39] Fix | Delete
<input type="submit" name="submit" value="Chmod"/>
[40] Fix | Delete
</form>
[41] Fix | Delete
</div>
[42] Fix | Delete
<div class="title">Function</div>
[43] Fix | Delete
<ul class="list">
[44] Fix | Delete
[45] Fix | Delete
<li><img src="icon/rename.png"/> <a href="folder_edit.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Rename</a></li>
[46] Fix | Delete
<li><img src="icon/copy.png"/> <a href="folder_copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Copy</a></li>
[47] Fix | Delete
<li><img src="icon/Copy.png"/> <a href="folder_Copy.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Move</a></li>
[48] Fix | Delete
<li><img src="icon/delete.png"/> <a href="folder_delete.php?dir=' . $dirEncode . '&name=' . $name . $pages['paramater_1'] . '">Delete</a></li>
[49] Fix | Delete
<li><img src="icon/list.png"/> <a href="index.php?dir=' . $dirEncode . $pages['paramater_1'] . '">List</a></li>
[50] Fix | Delete
</ul>';
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
include_once 'footer.php';
[54] Fix | Delete
[55] Fix | Delete
[56] Fix | Delete
?>
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function