X7ROOT File Manager
Current Path:
/var/softaculous/presta178
var
/
softaculous
/
presta178
/
ðŸ“
..
📄
.htaccess
(3.31 KB)
📄
_bootstrap.php
(6.1 KB)
📄
bootstrap.php
(6.03 KB)
📄
changelog.txt
(6.53 KB)
📄
clone.php
(20.87 KB)
📄
clone_bootstrap.php
(6.15 KB)
📄
edit.php
(4.42 KB)
📄
edit.xml
(447 B)
📄
fileindex.php
(327 B)
ðŸ“
images
📄
import.php
(5.81 KB)
📄
info.xml
(4.17 KB)
📄
install.js
(1.12 KB)
📄
install.php
(18.79 KB)
📄
install.xml
(1.46 KB)
📄
md5
(6.5 KB)
📄
new_order.html
(49.71 KB)
📄
notes.txt
(1.65 KB)
📄
order_conf.html
(50.15 KB)
📄
parameters.php
(746 B)
📄
parameters.yml
(11 B)
ðŸ“
php53
ðŸ“
php56
ðŸ“
php71
ðŸ“
php81
ðŸ“
php82
📄
presta178.sql
(605.54 KB)
📄
presta178.zip
(104.3 MB)
📄
return_slip.html
(38.22 KB)
📄
robots.txt
(3.36 KB)
📄
settings.inc.php
(23 B)
📄
shop1.json
(2.71 KB)
📄
soft_delete.php
(3.08 KB)
Editing: soft_delete.php
<?php //Remove var/cache directory recursively rmdir_recursive_fn('[[softpath]]/app/cache/prod/'); rmdir_recursive_fn('[[softpath]]/var/cache/prod/'); function rmdir_recursive_fn($path){ $path = (substr($path, -1) == '/' || substr($path, -1) == '\\' ? $path : $path.'/'); resetfilelist(); $files = filelist($path, 1, 0, 'all'); $files = (!is_array($files) ? array() : $files); //First delete the files only foreach($files as $k => $v){ @chmod($k, 0777); if(file_exists($k) && is_file($k) && @filetype($k) == "file"){ @unlink($k); } } @clearstatcache(); $folders = filelist($path, 1, 1, 'all'); $folders = (!is_array($folders) ? array() : $folders); @krsort($folders); //Now Delete the FOLDERS foreach($folders as $k => $v){ @chmod($k, 0777); if(is_dir($k)){ @rmdir($k); } } @rmdir($path); @clearstatcache(); } function resetfilelist(){ global $directorylist; $directorylist = array(); } function filelist($startdir="./", $searchSubdirs=1, $directoriesonly=0, $maxlevel="all", $level=1, $reset = 1) { //list the directory/file names that you want to ignore $ignoredDirectory[] = "."; $ignoredDirectory[] = ".."; $ignoredDirectory[] = "_vti_cnf"; global $directorylist; //initialize global array if(substr($startdir, -1) != '/'){ $startdir = $startdir.'/'; } if (is_dir($startdir)) { if ($dh = opendir($startdir)) { while (($file = readdir($dh)) !== false) { if (!(array_search($file,$ignoredDirectory) > -1)) { if (@filetype($startdir . $file) == "dir") { //build your directory array however you choose; //add other file details that you want. $directorylist[$startdir . $file]['level'] = $level; $directorylist[$startdir . $file]['dir'] = 1; $directorylist[$startdir . $file]['name'] = $file; $directorylist[$startdir . $file]['path'] = $startdir; if ($searchSubdirs) { if ((($maxlevel) == "all") or ($maxlevel > $level)) { filelist($startdir . $file . "/", $searchSubdirs, $directoriesonly, $maxlevel, ($level + 1), 0); } } } else { if (!$directoriesonly) { // echo substr(strrchr($file, "."), 1); //if you want to include files; build your file array //however you choose; add other file details that you want. $directorylist[$startdir . $file]['level'] = $level; $directorylist[$startdir . $file]['dir'] = 0; $directorylist[$startdir . $file]['name'] = $file; $directorylist[$startdir . $file]['path'] = $startdir; }}}} closedir($dh); }} if(!empty($reset)){ $r = $directorylist; $directorylist = array(); return($r); } } @unlink('soft_delete.php');
Upload File
Create Folder