Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
duplicator
/
assets
/
js
/
File Content:
DownloadConfController.php
<?php /** * Downloads a bundle configuration as XML or Json */ class Loco_ajax_DownloadConfController extends Loco_ajax_common_BundleController { /** * {@inheritdoc} */ public function render(){ $this->validate(); $bundle = $this->getBundle(); $file = new Loco_fs_File( $this->get('path') ); // TODO should we download axtual loco.xml file if bundle is configured from it? //$file->normalize( $bundle->getDirectoryPath() ); //if( $file->exists() ){} $writer = new Loco_config_BundleWriter($bundle); switch( $file->extension() ){ case 'xml': return $writer->toXml(); case 'json': return json_encode( $writer->jsonSerialize() ); } // @codeCoverageIgnoreStart throw new Loco_error_Exception('Specify either XML or JSON file path'); } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
jquery.qtip
---
0755
DownloadConfController.php
945 bytes
0644
JsonSerializable.php
577 bytes
0644
base.php
2793 bytes
0644
class-admin-utils.php
2147 bytes
0644
class-option-tabs-formatter.php
2321 bytes
0644
class-sitemaps-admin.php
3665 bytes
0644
class.pack.database.php
30838 bytes
0644
class.u.json.php
4832 bytes
0644
ctrl.package.php
17073 bytes
0644
define.php
4567 bytes
0644
elFinderPlugin-20260705182242.php
3331 bytes
0644
elFinderPlugin.php
3331 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500-20260706200407.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class-20260623050500.php
48544 bytes
0644
elFinderVolumeLocalFileSystem.class.php
48544 bytes
0644
exceptions.php
708 bytes
0644
global-admin-script.js
560 bytes
0644
handlebars.min.js
80288 bytes
0644
index.php
14 bytes
0644
javascript-20260623010010.php
11782 bytes
0644
javascript.php
11782 bytes
0644
loco.php
5626 bytes
0644
module.php
1297 bytes
0644
parsley.min.js
39656 bytes
0644
parsley.min.js.map
211289 bytes
0644
quick-edit-handler-1650.js
1848 bytes
0644
root.php
1951 bytes
0644
N4ST4R_ID | Naxtarrr