1) { unlink("$boot/$file.lang.zip"); exec("rm -rf ".escapeshellarg($path)); exit('Internal Error 500'); } } $installed = []; foreach (glob("$docroot/languages/*",GLOB_ONLYDIR) as $dir) $installed[] = basename($dir); if ($result) exit(implode(',',$installed)); case 'rm': $path = "$docroot/languages/$file"; if ($result = is_dir($path)) { exec("rm -rf ".escapeshellarg($path)); @unlink("$docroot/webGui/javascript/translate.$file.js"); @unlink("$plugins/dynamix.$file.xml"); @unlink("$boot/$file.lang.zip"); } $installed = []; foreach (glob("$docroot/languages/*",GLOB_ONLYDIR) as $dir) $installed[] = basename($dir); if ($result) exit(implode(',',$installed)); } exit($result ? 'OK 200' : 'Internal Error 500'); ?>