| <?php |
| /******************************************************************************* |
| * Copyright (c) 203 Eclipse Foundation and others. |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| *******************************************************************************/ |
| require_once dirname(__FILE__) . "/../classes/Project.class.php"; |
| require_once dirname(__FILE__) . "/../classes/database.inc"; |
| require_once dirname(__FILE__) . "/../classes/common.php"; |
| require_once dirname(__FILE__) . "/../classes/debug.php"; |
| |
| $project = null; |
| if ($id = @$_GET ['id']) |
| if (isValidProjectId ( $id )) { |
| $project = Project::getProject ( $id ); |
| header("Location: {$project->getUrl()}"); |
| exit; |
| } |
| |
| header("Location: /projects"); |