blob: 8b4313bbac44e78fec3da73ff5477881844d6bf5 [file] [log] [blame]
<?php
/*******************************************************************************
* Copyright (c) 2010 Eclipse Foundation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Eclipse Foundation - Initial API and implementation
* Kit Lo (IBM) - Bug 299402, Extract properties files from Eclipse project update sites for translation
*******************************************************************************/
require_once("cb_global.php");
$return = array();
$project_id = getHTTPParameter("project_id", "POST");
$version = getHTTPParameter("version", "POST");
$query = "SELECT is_map_file FROM map_files WHERE project_id = " . returnQuotedString(sqlSanitize($project_id, $dbh)) .
" AND version = " . returnQuotedString(sqlSanitize($version, $dbh)) . " LIMIT 1";
$res = mysqli_query($dbh, $query);
if (mysqli_affected_rows($dbh) > 0) {
while ($line = mysqli_fetch_array($res, MYSQLI_ASSOC)) {
echo $line['is_map_file'];
}
} else {
echo "No plugin exclude patterns found for $project_id $version.";
}
?>