Hi friends~~
My english is no good.
Back up your data on the ShowDumpPage page.
However, I don't know which file is the latest.
So, I added the file list and size are displayed.
thank you.
1. Open file
adm/ShowDumpPage.php
2. Find code
Add before
Display All
Attach pictures
My english is no good.
Back up your data on the ShowDumpPage page.
However, I don't know which file is the latest.
So, I added the file list and size are displayed.
thank you.
1. Open file
adm/ShowDumpPage.php
2. Find code
PHP Source Code
- ////////////Add code
- $dir = (ROOT_PATH.'includes/backups'); //your backup location
- $handle = opendir($dir);
- $files = array();
- while (false !== ($filename = readdir($handle)))
- {
- if($filename == "." || $filename == ".."){
- continue;
- }
- if(is_file($dir . "/" . $filename)){
- $iSize = filesize($dir . "/" . $filename) / 1024;
- $iSize = floor($iSize);
- $files[] = "".$filename." - ".$iSize."KB";
- }
- }
- closedir($handle);
- sort($files);
- echo "<table style=float:left;font-size:1.2em;width:300px><tr><td><font color=lime>Backups Data file</font></td></tr>";
- foreach ($files as $f) {
- echo "<tr><td>".$f."</td></tr>";
- echo "<br />";
- }
- echo "</table><br />";
- //////////////END
Attach pictures
--------------------------------------------------------------------------------------