Click to See Complete Forum and Search --> : exception


rbrown
08-09-2007, 05:27 AM
Hi Guys,

Ok i've got a file called airports.php, where this code/file retrieves some of it's information from and echo's or prints the name on the screen. now it would be easy enough just to change the name in airport.php file but i cant. cause i only have to change the airport name on this page. can you help?

<?

ob_start("ob_gzhandler");

$lang = $HTTP_GET_VARS['ln'];
$cult = $HTTP_GET_VARS['cu'];
$language = 'EN';
$culture = 'GB';

$gp = isset($_GET['gp']) ? $_GET['gp'] : 'GP';
define('GP', $gp);

$navtab = 'SKIFRAME';
$script = '/site/promos/ski/info.php'; //22/CIA
$altscript = '/site/promos/ski/infoalt.php'; //22/CIA
$BASE = $HTTP_SERVER_VARS['DOCUMENT_ROOT'].'/';
$PATH = 'site/promos/ski/';


$altdest = array('BGY', 'TSF', 'VBS');

include($BASE.'site/dests/img/imgmap.php'); //$appos
//include($BASE.$PATH.'frame_func.php');
include($BASE.'php/routes/airports.php');
include($BASE.'php/routes/routes.php');
include($BASE.$PATH.'translat.php');
$airports['STN'][0] = 'London';

#associative array: the number is used to build ActivityBreaks link

$dests[GP] = array(1=>'PIK',2=>'SCQ',3=>'SDR',4=>'VLL',5=>'ZAZ',6=>'LEI',7=>'GRX',8=>'VLC',9=>'GRO',10=>'PUF',11=>'RDZ',12=>'MPL',13=>'PGF',14=>'GNB',15=>'MRS',16=>'FDH',17=>'KRK',18=>'SZG',19=>'LNZ',20=>'GRZ',21=>'TRN', 25=>'HAU',26=>'TRF',27=>'BTS',28=>'INV',29=>'ABZ',30=>'TMP',31=>'STN', 32=>'KLU', 33=>'NYO',34=>'BGY',35=>'TSF', 36=>'VBS');

$shiftX = array('PIK'=>20, 'INV'=>-66, 'ABZ'=>-25, 'SCQ'=>6, 'SDR'=>30, 'VLL'=>-7, 'ZAZ'=>18, 'LEI'=>10, 'GRX'=>20, 'VLC'=>9, 'GRO'=>-20, 'PUF'=>-11, 'RDZ'=>28, 'MPL'=>-40, 'PGF'=>0, 'GNB'=>-32, 'MRS'=>10, 'FDH'=>4, 'KRK'=>4, 'SZG'=>0, 'LNZ'=>22, 'GRZ'=>10, 'TRN'=>-14, 'BGY'=>24, 'VBS'=>-13, 'TSF'=>12, 'HAU'=>0, 'TRF'=>11, 'BTS'=>-9, 'TMP'=>-10, 'STN'=>0, 'KLU'=>10, 'NYO'=>8,);

$shiftY = array('PIK'=>22,'INV'=>-7, 'ABZ'=>-18,'SCQ'=>-2, 'SDR'=>-2, 'VLL'=>-5, 'ZAZ'=>-2, 'LEI'=>-5, 'GRX'=>5, 'VLC'=>-11, 'GRO'=>2, 'PUF'=>-32, 'RDZ'=>-20, 'MPL'=>-12, 'PGF'=>-10, 'GNB'=>-8, 'MRS'=>-5, 'FDH'=>-8, 'KRK'=>-28, 'SZG'=>-28, 'LNZ'=>-17, 'GRZ'=>-2, 'TRN'=>10, 'BGY'=>24, 'VBS'=>-15, 'TSF'=>-12, 'HAU'=>-4, 'TRF'=>-8, 'BTS'=>-20, 'TMP'=>8, 'STN'=>10, 'NYO'=>-8, );