Esempio n. 1
0
<?php

include '../functions.php';
$building_name = $_GET["building"];
$map_type = $_GET["maptype"];
$coords = set_coordinates($building_name);
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width,user-scalable=yes" />
<link href="../css/core.css" rel="stylesheet" media="screen" type="text/css" />
<link href="../css/map-ip.css" rel="stylesheet" media="screen" type="text/css" />

<!-- Set the .png file that you want to use as a iPhone springboard icon -->
<link rel="apple-touch-icon" href="robert.png"/>

<script type="text/javascript">
var photoURL = 'http://www.meredith.edu/students/reslife/images/dorm2.jpg';
</script>

<script src="../javascript/functions.js" type="text/javascript"></script>
<script src="../javascript/uiscripts.js" type="text/javascript"></script>
<script src="../javascript/map-ip.js" type="text/javascript"></script>


<title>Meredith College Mobile Web</title>
Esempio n. 2
0
    }
    $RELATIVE_PATH = substr($FILE_BASE, ($a > $b ? $a : $b) + 1);
    $FILE_BASE = substr($FILE_BASE, 0, $a > $b ? $a : $b);
} else {
    $RELATIVE_PATH = '';
}
@chdir($FILE_BASE);
global $NON_PAGE_SCRIPT;
$NON_PAGE_SCRIPT = 1;
global $FORCE_INVISIBLE_GUEST;
$FORCE_INVISIBLE_GUEST = 0;
if (!is_file($FILE_BASE . '/sources/global.php')) {
    exit('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . chr(10) . '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="EN" lang="EN"><head><title>Critical startup error</title></head><body><h1>ocPortal startup error</h1><p>The second most basic ocPortal startup file, sources/global.php, could not be located. This is almost always due to an incomplete upload of the ocPortal system, so please check all files are uploaded correctly.</p><p>Once all ocPortal files are in place, ocPortal must actually be installed by running the installer. You must be seeing this message either because your system has become corrupt since installation, or because you have uploaded some but not all files from our manual installer package: the quick installer is easier, so you might consider using that instead.</p><p>ocProducts maintains full documentation for all procedures and tools, especially those for installation. These may be found on the <a href="http://ocportal.com">ocPortal website</a>. If you are unable to easily solve this problem, we may be contacted from our website and can help resolve it for you.</p><hr /><p style="font-size: 0.8em">ocPortal is a website engine created by ocProducts.</p></body></html>');
}
require $FILE_BASE . '/sources/global.php';
set_coordinates();
function set_coordinates()
{
    header('Content-Type: text/plain');
    $_coords = get_param('coord', '');
    $member_id = get_param_integer('mid', get_member());
    //prevent hack attepts
    if ($member_id != get_member()) {
        return;
    }
    $coords = explode('_', $_coords);
    $latitude_cpf_id = $GLOBALS['FORUM_DB']->query_value_null_ok('f_custom_fields f LEFT JOIN ' . $GLOBALS['FORUM_DB']->get_table_prefix() . 'translate t ON f.cf_name=t.id', 'f.id', array('text_original' => 'ocp_latitude'));
    $longitude_cpf_id = $GLOBALS['FORUM_DB']->query_value_null_ok('f_custom_fields f LEFT JOIN ' . $GLOBALS['FORUM_DB']->get_table_prefix() . 'translate t ON f.cf_name=t.id', 'f.id', array('text_original' => 'ocp_longitude'));
    //are there latitude and longtitude custom profile fields ?
    if (is_null($longitude_cpf_id) || is_null($latitude_cpf_id)) {
        return;