function getLicenseText() { $json = getJSONobj(); $file = ''; if (isset($_REQUEST['file'])) { $file = hashToFile($_REQUEST['file']); } $GLOBALS['log']->debug("FILE : " . $file); echo 'result = ' . $json->encode(array('license_display' => PackageManagerDisplay::buildLicenseOutput($file))); }
function getLicenseText() { require_once 'include/json_config.php'; $json_config = new json_config(); $json = getJSONobj(); $file = ''; if (isset($_REQUEST['file'])) { $file = nl2br($_REQUEST['file']); } $GLOBALS['log']->debug("FILE : " . $file); echo 'result = ' . $json->encode(array('license_display' => PackageManagerDisplay::buildLicenseOutput($file))); }