kitlo | d66aa99 | 2010-01-22 17:18:19 +0000 | [diff] [blame] | 1 | <?php |
| 2 | /******************************************************************************* |
| 3 | * Copyright (c) 2010 Eclipse Foundation and others. |
| 4 | * All rights reserved. This program and the accompanying materials |
| 5 | * are made available under the terms of the Eclipse Public License v1.0 |
| 6 | * which accompanies this distribution, and is available at |
| 7 | * http://www.eclipse.org/legal/epl-v10.html |
| 8 | * |
| 9 | * Contributors: |
| 10 | * Eclipse Foundation - Initial API and implementation |
| 11 | * Kit Lo (IBM) - Bug 299402, Extract properties files from Eclipse project update sites for translation |
| 12 | *******************************************************************************/ |
| 13 | require_once("cb_global.php"); |
| 14 | |
| 15 | $return = array(); |
| 16 | |
| 17 | $project_id = getHTTPParameter("project_id", "POST"); |
| 18 | $version = getHTTPParameter("version", "POST"); |
| 19 | |
| 20 | $query = "SELECT is_map_file FROM map_files WHERE project_id = " . returnQuotedString(sqlSanitize($project_id, $dbh)) . |
| 21 | " AND version = " . returnQuotedString(sqlSanitize($version, $dbh)) . " LIMIT 1"; |
| 22 | |
kitlo | 2c8d8a9 | 2018-04-19 13:25:09 -0400 | [diff] [blame] | 23 | $res = mysqli_query($dbh, $query); |
kitlo | 1d02709 | 2018-04-19 17:44:07 -0400 | [diff] [blame] | 24 | if (mysqli_affected_rows($dbh) > 0) { |
droy | a3815a5 | 2019-09-25 12:49:18 -0400 | [diff] [blame] | 25 | while ($line = mysqli_fetch_array($res, MYSQLI_ASSOC)) { |
kitlo | d66aa99 | 2010-01-22 17:18:19 +0000 | [diff] [blame] | 26 | echo $line['is_map_file']; |
| 27 | } |
| 28 | } else { |
| 29 | echo "No plugin exclude patterns found for $project_id $version."; |
| 30 | } |
| 31 | ?> |