<?php error_reporting(0); include 'functions.inc.php'; outputHeader("About this tool", "", "GENERIC", true, true); ?> <p> This tool was created by <?php echo mklink('http://id.ecs.soton.ac.uk/person/23977', 'Colin R. Williams'); ?> in order to assist in the creation of open geographic data. </p> <p> The problem with existing map creation tools (such as <?php echo mklink('http://maps.google.com', 'Google Maps'); ?> and <?php echo mklink('http://openspace.ordnancesurvey.co.uk/openspace/', 'OS OpenSpace'); ?> ) is that their licenses place tight restrictions on what can be done with data created using those tools. (For more information, see <?php echo mklink('http://blogs.ecs.soton.ac.uk/data/2011/06/23/generating-open-geographic-data/', 'my blog post', 'blog post on generating open geographic data'); ?> on the matter.) In contrast, this tool makes use of the <?php echo mklink('http://www.ordnancesurvey.co.uk/oswebsite/products/os-streetview/index.html', 'OS Street View'); ?> maps which are provided as part of the <?php echo mklink('http://www.ordnancesurvey.co.uk/oswebsite/products/os-opendata.html', 'OS OpenData'); ?> service, under the <?php echo mklink('http://www.ordnancesurvey.co.uk/opendata/licence', 'OS OpenData Licence'); ?>
* 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 <http://opensource.org/licenses/gpl-license.php>;. * * @category upgrade * @package CometVisu * @author Julian Makowski (julian at makowskis dot de) * @copyright 2013 Julian Makowski * @license GPLv3 or later, http://opensource.org/licenses/gpl-license.php * @version SVN: $Id$ * @link http://cometvisu.de * @since 2013-01-22 */ error_reporting(E_ALL); outputHeader(); require_once 'ConfigurationUpgrader.class.php'; if (LIBRARY_VERSION > UPGRADER_LIBRARY_VERSION) { // the library moved faster than the upgrader exitWithResponse(false, 'The upgrader itself is not up-to-date. ' . 'Library is at version ' . LIBRARY_VERSION . ', ' . 'upgrader at version ' . UPGRADER_LIBRARY_VERSION . '. ' . 'Please report this problem at http://www.knx-user-forum.de/cometvisu/'); } define('OLD_CONFIG_FILENAME', '../visu_config%s.xml'); define('DEMO_CONFIG_FILENAME', '../config/demo/visu_config%s.xml'); define('CONFIG_FILENAME', '../config/visu_config%s.xml'); define('BACKUP_FILENAME', '../config/backup/visu_config%s-%s.xml'); // get everything the user has provided ... $strConfigSuffix = true === isset($_GET['config']) ? $_GET['config'] : null; // clean-up filename, we want no security-holes. work with a whitelist. $strConfigCleaned = preg_replace("/[^\\-\\_0-9a-z]/i", "", $strConfigSuffix); if (false === empty($strConfigCleaned)) { // prefix the postfix with an underscore
http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ------------------------------------------------------------------------ */ require_once 'fn/global.php'; require_once 'fn/app.php'; require_once 'fn/house.php'; require_once 'inc/global.php'; require_once 'inc/auth.php'; outputHeader('App House Ads'); require_once 'inc/tabs.php'; $appInfo = getActiveApp(); $aid = $appInfo['aid']; if (empty($aid)) { header("Location: addApp"); die; } require_once 'inc/appSwitcher.php'; require_once 'inc/appNav.php'; $appHouseAds = getAppHouseAds($aid); ?> <form action="appHouseAdsx" method="post"> <input type="hidden" name="aid" value="<?php echo $aid;
header('Location: /admin'); } } else { $error = 'Incorrect credentials, please try again'; } } if (isset($_SESSION['username'])) { if (isset($_SESSION['referer'])) { header('Location: ' . $_SESSION['referer']); } else { header('Location: /admin'); } die; } include 'functions.inc.php'; outputHeader("Log in", "", "GENERIC", true, false); if ($error != "") { echo '<div style="background-color:#FF9999; margin:10px; padding:10px; text-align:center">' . $error . '</div>'; } ?> <form action='login' method='post'> <table> <tr class='comp'><td><label for='username'>Username or E-mail Address:</label></td><td><input id='username' name='username' style='width:20em' /></td></tr> <tr class='comp'><td><label for='password'>Password:</label></td><td><input type='password' id='password' name='password' style='width:10em' /></td></tr> <tr><td /><td><input type='submit' /></td></tr> </table> </form> <a href='register'>Register for an account</a> <?php outputFooter(); ?>
require_once '/home/opendatamap/mysql.inc.php'; $username = ""; $editmode = false; $header = false; if (isset($_GET['username'])) { $username = $_GET['username']; outputHeader("Map list for " . $username, "", "GENERIC", true, false); $header = true; if (isset($_SESSION['username']) && $username == $_SESSION['username']) { $editmode = true; } } else { $editmode = true; } if ($editmode && !$header) { outputHeader("Map list for USERNAME", "", "GENERIC", true, true); } if ($editmode) { echo '<h3>Your maps</h3>'; $username = $_SESSION['username']; } else { echo '<h3>' . $username . ''s maps</h3>'; } $params[] = mysql_real_escape_string($username); $q = 'SELECT mapid, name FROM maps WHERE username = \'' . $params[0] . '\' order by `name`'; $res = mysql_query($q); echo '<ul>'; while ($row = mysql_fetch_assoc($res)) { echo '<li>' . $row['name']; echo ' | <a href=\'' . $username . '/' . $row['mapid'] . '.rdf\'>(View RDF)</a>'; echo ' | <a href=\'' . $username . '/' . $row['mapid'] . '.kml\'>(View KML)</a>';
<?php error_reporting(0); include 'functions.inc.php'; outputHeader("Create a new map", "", "GENERIC", true, true); $post = false; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $post = true; $errors = array(); if (trim($_POST['mapname']) == "") { $errors[] = 'Map short name not set'; $bad['mapname'] = true; } if (trim($_POST['title']) == "") { $errors[] = 'Map title not set'; $bad['title'] = true; } foreach ($errors as $error) { echo $error . '<br />'; } } if (!$post || count($errors) > 0) { ?> <form action='new' method='post'> <table> <tr class='comp <?php echo $post && $bad['mapname'] ? "bad" : ""; ?> '><td class='label'><label for='mapname'>Map URL:</label></td><td class='field'>http://<?php echo $_SERVER['SERVER_NAME']; ?>
<?php error_reporting(0); include 'functions.inc.php'; outputHeader("Register an account", "", "GENERIC"); $post = false; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $post = true; $errors = array(); if (trim($_POST['username']) == "") { $errors[] = 'Username not set'; $bad['username'] = true; } if (trim($_POST['email']) == "") { $errors[] = 'Email address not set'; $bad['email'] = true; } if (trim($_POST['password1']) == "") { $errors[] = 'Password not set'; $bad['password1'] = true; } elseif ($_POST['password1'] != $_POST['password2']) { $errors[] = 'Passwords do not match'; $bad['password2'] = true; } if (count($errors) > 0) { echo '<div style="background-color:#FF9999; margin:10px; padding:10px; text-align:center">'; foreach ($errors as $error) { echo $error . '<br />'; } echo '</div>'; }