18 lines
434 B
PHP
Executable File
18 lines
434 B
PHP
Executable File
<?php
|
|
if (!defined('_PS_ADMIN_DIR_'))
|
|
define('_PS_ADMIN_DIR_', getcwd());
|
|
require_once('../../config/config.inc.php');
|
|
require_once('../init.php');
|
|
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . "inc" . DIRECTORY_SEPARATOR . "config.php");
|
|
echo '{';
|
|
$count = 1;
|
|
foreach(getFolderListing(CONFIG_SYS_ROOT_PATH) as $k=>$v)
|
|
{
|
|
|
|
|
|
echo (($count > 1)?', ':''). "'" . $v . "':'" . $k . "'";
|
|
$count++;
|
|
}
|
|
echo "}";
|
|
?>
|