Submit
Path:
~
/
home
/
bfxleof
/
www
/
wp-content
/
plugins
/
redirection
/
locale
/
json
/
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
DownloadConfController.php
945 bytes
0644
LimitStream.php
4209 bytes
0644
base.php
2793 bytes
0644
class.pack.database.php
30838 bytes
0644
define.php
4567 bytes
0644
elFinderPlugin-20260706234041.php
3331 bytes
0644
elFinderPlugin.php
3331 bytes
0644
manager.php
14659 bytes
0644
module.php
1297 bytes
0644
redirection-de_DE.json
57713 bytes
0644
redirection-en_AU.json
48219 bytes
0644
redirection-en_CA.json
52462 bytes
0644
redirection-en_GB.json
52161 bytes
0644
redirection-en_NZ.json
47730 bytes
0644
redirection-en_ZA.json
52499 bytes
0644
redirection-es_ES.json
57414 bytes
0644
redirection-es_MX.json
57451 bytes
0644
redirection-es_VE.json
57437 bytes
0644
redirection-fa_IR.json
39616 bytes
0644
redirection-fr_CA.json
52896 bytes
0644
redirection-fr_FR.json
59358 bytes
0644
redirection-gl_ES.json
53796 bytes
0644
redirection-it_IT.json
51912 bytes
0644
redirection-ja.json
51301 bytes
0644
redirection-lv.json
25711 bytes
0644
redirection-nl_NL.json
55706 bytes
0644
redirection-pt_BR.json
57026 bytes
0644
redirection-ru_RU.json
50813 bytes
0644
redirection-sv_SE.json
55444 bytes
0644
redirection-zh_TW.json
15112 bytes
0644
setup.php
2699 bytes
0644
N4ST4R_ID | Naxtarrr