* * LICENSE: 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; either version 2 * of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see ;. * * @package OpenEMR * @author (Mac) Kevin McAloon * @author Rohit Kumar * @author Brady Miller * @link http://www.open-emr.org */ //SANITIZE ALL ESCAPES $sanitize_all_escapes=true; // //STOP FAKE REGISTER GLOBALS $fake_register_globals=false; // require_once("../../interface/globals.php"); require_once("$srcdir/acl.inc"); // Control access if (!acl_check('admin', 'super')) { echo xlt('Not Authorized'); exit; } $db = isset($_GET['db']) ? $_GET['db'] : '0'; // Ordering by the imported_date with tiebreaker being the revision_date $rez = sqlStatement("SELECT DATE_FORMAT(`revision_date`,'%Y-%m-%d') as `revision_date`, `revision_version`, `name` FROM `standardized_tables_track` WHERE upper(`name`) = ? ORDER BY `imported_date` DESC, `revision_date` DESC", array($db) ); for($iter=0; $row=sqlFetchArray($rez); $iter++) { $sqlReturn[$iter]=$row; } if (empty($sqlReturn)) { ?>