Exemple #1
0
    die;
}
mb_language('uni');
mb_internal_encoding('UTF-8');
$force_admin = TRUE;
require "check_admin.php";
echo "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\n<title>Administration Area</title>";
#Get CSS
require "get_css3_include.php";
require "get_jqueryui_include.php";
if (isset($_GET["run"])) {
    $run = $_GET['run'];
} else {
    $run = FALSE;
}
if ($run) {
    set_time_limit(0);
    echo "</head>\n\t<body>\n\n\t<div style=\"padding: 10px;\">\n\n\t<br><br><br>\n";
    #Del temp files
    delSubTree("../tmp/");
    echo "<div class=\"alert alert-success\"><span class=\"glyphicon glyphicon-ok\" aria-hidden=\"true\"></span>\n\t\tTemp directory cleared</div>\n\t<br><br><br>\n\t<p><a href=\"#\" onClick=\"window.close();\">Close window</a>\n";
} else {
    echo "<meta http-equiv=\"refresh\" content=\"1;url=emptytmp.php?run=TRUE\">\n\n\t</head>\n\t<body>\n\n\t<div style=\"padding: 10px;\">\n\n\t\t<br><br><br>\n\t\t<h3>Working... \n\t\t<br>Please wait... <i class=\"fa fa-cog fa-spin\"></i>\n\t\t</h3>\n\n\t\t<br><br><br>\n\t<br><p><a href=\"#\" onClick=\"window.close();\">Cancel and close window</a>";
}
?>

</div>

</body>
</html>
Exemple #2
0
} elseif ($op == "2") {
    delTree('../sounds/images/' . $ColID . '/');
    header("Location: delauxfiles.php?op=9");
    die;
} elseif ($op == "3") {
    delTree('../sounds/previewsounds/' . $ColID . '/');
    header("Location: delauxfiles.php?op=9");
    die;
} elseif ($op == "7") {
    #Delete file div
    echo "<p><strong>Delete all the image files (spectrograms and waveforms) from the archive?</strong><br>";
    echo "<div id=\"dialog7\" title=\"Delete the images?\">\n\t\t<p><span class=\"ui-icon ui-icon-alert\" style=\"float:left; margin:0 7px 20px 0;\"></span>The image files\n\t\t\t(spectrograms and waveforms) in the archive will be permanently deleted and cannot be \n\t\t\trecovered. Are you sure?</p>\n\t\t</div>";
    echo "<form method=\"GET\" action=\"delauxfiles.php\" id=\"del7\" name=\"del7\">\n\t\t<input type=\"hidden\" name=\"op\" value=\"8\">\n\t\t<button type=\"submit\" class=\"btn btn-sm btn-primary\"> Delete all images from system </button>\n\t\t</form>";
    die;
} elseif ($op == "8") {
    delSubTree('../sounds/images/');
    echo "<p><div class=\"success\">The files were deleted successfully.<br>\n\t\t\t<a href=\"#\" onClick=\"window.close();\">Close window</a></div>";
    die;
} elseif ($op == "9") {
    echo "<p><div class=\"success\">The files were deleted successfully.<br>\n\t\t\t<a href=\"#\" onClick=\"window.close();\">Close window</a></div>";
}
?>

	<p>This menu lets you delete the mp3 sound files or the spectrogram and waveform images. <strong>The original sound files are not
				deleted from this menu.</strong></p>
			
	<?php 
echo "<p><strong>Delete all the auxiliary files (mp3 and images) for a particular collection</strong>:";
#Delete file div
echo "<div id=\"dialog\" title=\"Delete the auxiliary files?\">\n\t\t<p><span class=\"ui-icon ui-icon-alert\" style=\"float:left; margin:0 7px 20px 0;\"></span>The mp3 and image files for this collection will be permanently deleted and cannot be recovered. Are you sure?</p>\n\t\t</div>";
echo "<form id=\"del1\" name=\"del1\" action=\"delauxfiles.php\" method=\"GET\">";