[add] message for confirm delete file
This commit is contained in:
parent
f5ff23e33c
commit
53fd072fa7
|
@ -128,16 +128,25 @@ if (!empty($breadcrumb)) {
|
|||
echo '</div>';
|
||||
|
||||
if (empty($listCurrentDir) && empty($listCurrentFile)) {
|
||||
if ($ci['ac'] === 'confDel' && isLog()) {
|
||||
if ($ci['ac'] === 'confDelDir' && isLog()) {
|
||||
echo '<div class="confirm">
|
||||
<a href="?bc=', $ci['bc'], '&token=', $token, '&ac=del" class="valid">Yes</a>
|
||||
<h3>Delete this directory</h3>
|
||||
<a href="?bc=', $ci['bc'], '&token=', $token, '&ac=delDir" class="valid">Yes</a>
|
||||
<a href="?bc=', $ci['bc'], '&token=', $token, '" class="cancel">No</a>
|
||||
</div>';
|
||||
} else {
|
||||
echo '<a href="?bc=', $ci['bc'], '&token=', $token, '&ac=confDel" class="delete">Delete this directory</a>';
|
||||
echo '<a href="?bc=', $ci['bc'], '&token=', $token, '&ac=confDelDir" class="delete">Delete this directory</a>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($ci['op'] === 'confDelVideo' && isLog()) {
|
||||
echo '<div class="confirm">
|
||||
<h3>Delete this file</h3>
|
||||
<a href="?ac=view&op=4&bc=', $ci['bc'], '&file=', $ci['file'], '&token=', $token, '" class="valid">Yes</a>
|
||||
<a href="?ac=view&bc=', $ci['bc'], '&file=', $ci['file'], '&token=', $token, '" class="cancel">No</a>
|
||||
</div>';
|
||||
}
|
||||
|
||||
echo '<div id="listFile">';
|
||||
if (!empty($listCurrentDir) && $ci['ac'] !== 'view') {
|
||||
$listCurrentDir = sortDir($listCurrentDir, $fullListDir);
|
||||
|
@ -190,7 +199,7 @@ if (!empty($ci['ac']) && $ci['ac'] === 'view' && !empty($listCurrentFile)) {
|
|||
if ($_SESSION['log'] === true) {
|
||||
echo '<div id="toolbar">
|
||||
<a href="?ac=view&op=3&bc=', $ci['bc'], '&file=', $ci['file'], '&token=', $token, '"><img src="images/useThumbnail.svg" alt="Use this thumbnail for folder thumbnail" title="Use this thumbnail for folder thumbnail"/></a>
|
||||
<a href="?ac=view&op=4&bc=', $ci['bc'], '&file=', $ci['file'], '&token=', $token, '"><img src="images/delete.svg" alt="Delete this video" title="Delete this video"/></a>
|
||||
<a href="?ac=view&bc=', $ci['bc'], '&file=', $ci['file'], '&token=', $token, '&op=confDelVideo"><img src="images/delete.svg" alt="Delete this video" title="Delete this video"/></a>
|
||||
</div>';
|
||||
}
|
||||
if ($GLOBALS['config']['DOWNLOAD_METHOD'] === 'xsendfile' || $GLOBALS['config']['DOWNLOAD_METHOD'] === 'php') {
|
||||
|
|
|
@ -586,6 +586,8 @@ if (isset($ci['ac']) && !empty($ci['ac'])) {
|
|||
}
|
||||
$deleteVideo = deleteVideo($ci['bc'], $ci['file']);
|
||||
deleteCache($ci['bc'], $ci['file'], $ci['sort']);
|
||||
unset($ci['file']);
|
||||
unset($ci['ac']);
|
||||
}
|
||||
if ($ci['ac'] === 'view' && !empty($ci['op']) && (int)$ci['op'] === 3) {
|
||||
verifToken($ci['token']);
|
||||
|
@ -602,7 +604,7 @@ if (isset($ci['ac']) && !empty($ci['ac'])) {
|
|||
}
|
||||
$page = 'admin';
|
||||
}
|
||||
if ($ci['ac'] === 'del') {
|
||||
if ($ci['ac'] === 'delDir') {
|
||||
verifToken($ci['token']);
|
||||
if (!isLog()) {
|
||||
die('Tinker say : wonder what.. This does? ');
|
||||
|
|
10
style.css
10
style.css
|
@ -227,21 +227,23 @@ video {
|
|||
border-radius: 0.2em;
|
||||
padding: 1.2em;
|
||||
}
|
||||
.confirm > * {
|
||||
color: #262626;
|
||||
}
|
||||
|
||||
.confirm a {
|
||||
padding: 0.5em 1em;
|
||||
display: inline-block;
|
||||
border-radius: 0.2em;
|
||||
margin: 0 0.4em;
|
||||
color:#262626;
|
||||
font-weight: bold;
|
||||
text-decoration : none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.confirm .valid {
|
||||
background-color : #9bd840;
|
||||
background-color: #9bd840;
|
||||
}
|
||||
|
||||
.confirm .cancel {
|
||||
background-color : #e74638;
|
||||
background-color: #e74638;
|
||||
}
|
Loading…
Reference in a new issue