/* * This is for the first revision of the URI schema. * /update2/0/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/update.xml */ /* * This is for the first revision of the URI schema. * /update2/0/%PRODUCT%/%VERSION%/%BUILD_ID%/%BUILD_TARGET%/%LOCALE%/update.xml */ case 0: default: // Instantiate Update object and set updateVersion. $update = new Update(); // Instantiate Patch object and set Path based on passed args. $patch = new Patch($productBranchVersions, $nightlyChannels, 'complete'); $patch->findPatch($clean['product'], $clean['platform'], $clean['locale'], $clean['version'], $clean['build'], null); if ($patch->isPatch()) { $xml->setPatchLine($patch); } // If we have a new build, draw the update block and patch line. // If there is no valid patch file, client will receive no updates by default. if ($xml->hasPatchLine()) { $xml->startUpdate($update); $xml->drawPatchLines(); $xml->endUpdate(); } break; } } // If we are debugging output plaintext and exit. if (defined('DEBUG') && DEBUG == true) { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";