/** * Check if the patch has been installed */ function is_patch_installed($patch_id) { $patchesDAO = new PatchesDAO(); $rows = $patchesDAO->getInstalledPatchByIDAndVersion($patch_id, VERSION); if (is_array($rows)) { return true; } else { return false; } }
/************************************************************************/ /* Copyright (c) 2010 */ /* Inclusive Design Institute */ /* */ /* This program is free software. You can redistribute it and/or */ /* modify it under the terms of the GNU General Public License */ /* as published by the Free Software Foundation. */ /************************************************************************/ define('TR_INCLUDE_PATH', '../include/'); require TR_INCLUDE_PATH . 'vitals.inc.php'; require_once 'classes/PatchListParser.class.php'; require_once TR_INCLUDE_PATH . 'classes/FileUtility.class.php'; require_once TR_INCLUDE_PATH . 'classes/DAO/PatchesDAO.class.php'; require_once 'include/common.inc.php'; set_time_limit(0); $patchesDAO = new PatchesDAO(); /** * Generate html of each patch row at main patch page */ function print_patch_row($patch_row, $row_id, $enable_radiotton) { global $id, $patch_id; // current selected patch global $dependent_patches; if ($dependent_patches == "") { $description = $patch_row["description"]; } else { $description = $patch_row["description"] . _AT('update_dependent_update_not_installed') . "<span style='color: red'>" . $dependent_patches . "</span>"; } ?> <tr <?php