Example #1
0
 function checkFiles($items, $moduleId)
 {
     $files = array();
     if (is_array($items)) {
         foreach ($items as $item) {
             $files[$item->file] = true;
         }
     }
     $dir = JPATH_ROOT . '/images/os_imagegallery_' . $moduleId;
     delete_old($files, $dir . '/manager');
     delete_old($files, $dir . '/original');
     delete_old($files, $dir . '/thumbnail');
 }
Example #2
0
    echo "<h3>Tag cloud</h3>\n\t\t\t\t\t\t<p>Select sounds to browse according to their tags.";
    require "include/tagcloud.php";
}
echo " <div class=\"row\">\n\t\t\t        <div class=\"col-lg-4 text-center\">\n\t\t\t          <h2><span class=\"glyphicon glyphicon-cloud-upload\" aria-hidden=\"true\"></span> Add sounds<br>to this archive</h2>\n\t\t\t          <p><a class=\"btn btn-primary\" href=\"add.php\" role=\"button\">View details »</a></p>\n\t\t\t        </div>\n\t\t\t        <div class=\"col-lg-4 text-center\">\n\t\t\t          <h2><span class=\"glyphicon glyphicon-search\" aria-hidden=\"true\"></span> Explore the<br>sound archive</h2>\n\t\t\t          <p><a class=\"btn btn-primary\" href=\"search.php\" role=\"button\">View details »</a></p>\n\t\t\t       </div>\n\t\t\t        <div class=\"col-lg-4 text-center\">\n\t\t\t          <h2><span class=\"glyphicon glyphicon-tasks\" aria-hidden=\"true\"></span> Data extraction<br>and analysis</h2>\n\t\t\t          <p><a class=\"btn btn-primary\" href=\"data.php\" role=\"button\">View details »</a></p>\n\t\t\t        </div>\n\t\t\t       </div>";
?>


<hr noshade>
<?php 
##################################
$thanks_text = "Donec fringilla tortor metus, eu faucibus nunc hendrerit quis. Pellentesque in ex at arcu interdum laoreet. Curabitur in aliquam lacus. Pellentesque sed nibh enim. Nam condimentum tellus quam, ut efficitur turpis fermentum a. Morbi ut orci vitae tortor dapibus congue non nec neque. Nullam egestas tortor eu leo mollis condimentum. Aliquam sodales vel purus quis tincidunt. ";
##################################
echo "<dl class=\"dl-horizontal\">\n\t\t  <dt>Acknowledgements</dt>\n\t\t  <dd>{$thanks_text}</dd>\n\t\t</dl>";
require "include/bottom.php";
?>


</body>
</html>

<?php 
if ($use_leaflet == TRUE) {
    require "include/leaflet2.php";
}
#Close session to release script from php session
session_write_close();
flush();
@ob_flush();
#Delete old temp files
delete_old('tmp/', 30);
Example #3
0
echo "<p><form method=\"GET\" action=\"include/systemlog.php\" target=\"systemlog\" onsubmit=\"window.open('', 'systemlog', 'width=850,height=620,status=yes,resizable=yes,scrollbars=auto')\">
<input type=submit value=\" System log \"></form><br><hr noshade>";
*/
#Check database values
echo "<p><form method=\"GET\" action=\"include/checkdb.php\" target=\"checkdb\" onsubmit=\"window.open('', 'checkdb', 'width=450,height=300,status=yes,resizable=yes,scrollbars=auto')\">\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"> Check database for missing data and optimize tables </button>\n\t\t\t\t\t</form>  <br>";
#Window to get disk used
echo "<p><form method=\"GET\" action=\"include/diskused.php\" target=\"disk\" onsubmit=\"window.open('', 'disk', 'width=450,height=300,status=yes,resizable=yes,scrollbars=auto')\">\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"> Check disk usage </button>\n\t\t\t\t\t</form> <br>";
#Delete mp3 or images
echo "<p><form method=\"GET\" action=\"include/delauxfiles.php\" target=\"delauxfiles\" onsubmit=\"window.open('', 'delauxfiles', 'width=450,height=700,status=yes,resizable=yes,scrollbars=auto')\">\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"> Delete mp3 and/or images from system </button>\n\t\t\t\t\t</form> <br>";
#Delete collection
echo "<p><form method=\"GET\" action=\"include/delcol.php\" target=\"delcol\" onsubmit=\"window.open('', 'delcol', 'width=550,height=400,status=yes,resizable=yes,scrollbars=auto')\">\n\t\t\t\t\t<button type=\"submit\" class=\"btn btn-primary\"> Delete a collection and all the files </button>\n\n\t\t\t\t\t</form>  <br>";
?>
			</div></div>

	</div>
	<div class="col-lg-1">&nbsp;</div></div>

<?php 
require "include/bottom.php";
?>

</body>
</html>
<?php 
#Close session to release script from php session
session_write_close();
flush();
@ob_flush();
#Delete old temp files
delete_old('tmp/', 3);
Example #4
0
require "get_css3_include.php";
require "get_jqueryui_include.php";
?>

</head>
<body>

<div style="padding: 10px;">

<?php 
echo "<p>";
if ($op == 1) {
    delete_old('../tmp/', 3);
    echo "<div class=\"alert alert-success\" role=\"alert\">Deleted temporary files older than 3 days. <a href=\"alerts.php?op=2\">Delete all temporary files</a>.</div>";
} elseif ($op == 2) {
    delete_old('tmp/', 0);
    $dir = glob("tmp/*", GLOB_ONLYDIR);
    foreach ($dir as $this_dir) {
        delTree($this_dir);
    }
    echo "<div class=\"alert alert-success\" role=\"alert\">Deleted all the temporary files.</div>";
}
#Disk free space check
$dir_to_check = $absolute_dir . "/tmp";
$df = disk_free_space($dir_to_check);
$dfh = formatsize($df);
if ($df < 1000000000) {
    echo "<div class=\"alert alert-warning\" role=\"alert\"><strong>Warning</strong>: Disk free space: {$dfh}. \n\t\t\tIt is recommended to <a href=\"alerts.php?op=1\">delete temporary files</a> \n\t\t\tor upgrade the hard drive.</div>";
}
//Test if apache owns the files
#Does apache own the folders?