/* LibreSSL - CAcert web application Copyright (C) 2004-2008 CAcert Inc. 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; version 2 of the License. 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> $ccid = intval($_REQUEST['ccid']); $regid = intval($_REQUEST['regid']); $locid = intval($_REQUEST['locid']); $name = mysql_escape_string($_REQUEST['name']); if($ccid > 0 && $_REQUEST['action'] == "add") { ?>
} if($regid > 0 && $_REQUEST['action'] == "edit") { $query = "select * from `regions` where `id`='$regid' order by `name`"; $row = mysql_fetch_assoc(mysql_query($query)); $name = $row['name']; ?> } if($regid > 0 && $_REQUEST['action'] == "add") { ?> } if($locid > 0 && $_REQUEST['action'] == "edit") { $query = "select * from `locations` where `id`='$locid'"; $row = mysql_fetch_assoc(mysql_query($query)); if($name == "") $name = $row['name']; if($_REQUEST['longitude'] == "") $_REQUEST['longitude'] = $row['long']; if($_REQUEST['latitude'] == "") $_REQUEST['latitude'] = $row['lat']; ?> } if($locid > 0 && $_REQUEST['action'] == "aliases") { $query = "select * from `localias` where `locid`='$locid'"; $res = mysql_query($query); $rc = mysql_num_rows($res); ?>=_("Location Aliases")?> - =_("Add")?> | |
=$row['name']?> | =_("Delete")?> |