From: Steve Sutton Date: Thu, 17 Mar 2016 17:55:15 +0000 (-0400) Subject: old site from ws1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;ds=sidebyside;p=web%2Fkiosk.pellstonairport.com.git old site from ws1 --- 9df0d30b26656ed72f4b3e5988dbc4e55e47acee diff --git a/.#google-map.php b/.#google-map.php new file mode 100755 index 0000000..de7143a --- /dev/null +++ b/.#google-map.php @@ -0,0 +1,289 @@ +memb_names[$_GET['catid']]; +$page_city = $_GET['city']; +$member_list = $toolbox->get_member_list(); + +switch($_SERVER['GLM_SERVER_ID']) +{ + case "devsys.gaslightmedia.com": + $conn = pg_connect('host=devsys user=postgres dbname=pellstonairport'); + break; + default: + $conn = pg_connect('host=ds1 user=postgres dbname=pellstonairport'); + break; +} + +function text_clean($text) +{ + return str_replace("'","´",$text); +} + +if(!function_exists('file_get_contents')) // we have an ancient copy of php, so this function doesn't exist +{ + function file_get_contents($filename) + { + return implode("\n",file($filename)); + } +} + +// get our member info + +$qs = "SELECT * FROM member WHERE id = ".$_GET['id']; +$res = pg_exec($conn,$qs); +$rcount = pg_numrows($res); +$member = pg_fetch_array($res,0,PGSQL_ASSOC); + +// set up the map +$map = new GMap(); +//$map->addSmallMapControl(); +//$map->addMapTypeControl(); +//$map->addSmallZoomControl(); +//$map->addExtentMap(); +$map->zoom = 11; + +// making my custom control +$custcontrol = ' +// A TextualZoomControl is a GControl that displays textual "Zoom In" +// and "Zoom Out" buttons (as opposed to the iconic buttons used in +// Google Maps). +function TextualZoomControl() { +} +TextualZoomControl.prototype = new GControl(); + +// Creates a one DIV for each of the buttons and places them in a container +// DIV which is returned as our control element. We add the control to +// to the map container and return the element for the map class to +// position properly. +TextualZoomControl.prototype.initialize = function(map) { + + var container = document.createElement("div"); + var zoomInDiv = document.createElement("div"); + + this.setButtonStyle_(zoomInDiv,"glm_zoomin"); + container.appendChild(zoomInDiv); + + var ZoomInImage = document.createElement("img"); + ZoomInImage.src = "'.URL_BASE.'maps/zoom-in.png"; + // ZoomInImage.id = "glm_zoomin"; + + zoomInDiv.appendChild(ZoomInImage); + + //zoomInDiv.appendChild(document.createTextNode("Zoom In")); + GEvent.addDomListener(zoomInDiv, "click", function() { + map.zoomIn(); + }); + + var ZoomOutImage = document.createElement("img"); + ZoomOutImage.src = "'.URL_BASE.'maps/zoom-out.png"; + // ZoomOutImage.id = "glm_zoomout"; + + + var zoomOutDiv = document.createElement("div"); + this.setButtonStyle_(zoomOutDiv,"glm_zoomout"); + container.appendChild(zoomOutDiv); + zoomOutDiv.appendChild(ZoomOutImage); + //zoomOutDiv.appendChild(document.createTextNode("Zoom Out")); + GEvent.addDomListener(zoomOutDiv, "click", function() { + map.zoomOut(); + }); + + map.getContainer().appendChild(container); + return container; +} + +// By default, the control will appear in the top left corner of the +// map with 7 pixels of padding. +TextualZoomControl.prototype.getDefaultPosition = function() { + return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(7, 7)); +} + +// Sets the proper CSS for the given button element. +TextualZoomControl.prototype.setButtonStyle_ = function(button,bid) { +// button.style.textDecoration = "underline"; + // button.style.color = "#0000cc"; + // button.style.backgroundColor = "white"; + // button.style.font = "small Arial"; + // button.style.border = "1px solid black"; + button.style.padding = "2px"; + button.style.marginBottom = "3px"; + //button.style.textAlign = "center"; + // button.style.width = "6em"; + button.style.cursor = "pointer"; + button.id = bid; +} + +map.addControl(new TextualZoomControl()); +'; + +$map->extrajs($custcontrol); +// end the custom control + +// add the icon class +$iconclass = new GIconClass(URL_BASE.'maps/pins/010.png',URL_BASE.'maps/pins/shadow.png',1); +$map->addIconClass($iconclass->display()); + +// plot the member +$x = trim(str_replace("\n","",$member['lon'])); +$y = trim(str_replace("\n","",$member['lat'])); +//$map->center = new GLatLng(45.571571,-84.783961); +$map->center = new GLatLng($y,$x); +if($x != '' && $y !='') // make sure we have lat lon data +{ + $newpoint = new GPoint($x,$y); // create a new point + $bubbledata = '
'.text_clean($member['name']).'
'; + //$marker_note = str_replace("\n",'',str_replace("'","´",''.$address['name'].'').'
'.htmlspecialchars($address['address']).'
'.$address['city'].', '.$address['zip'].$moreinfo); + $marker_note = '';//$bubbledata; + $marker = new GMarker($newpoint,$marker_note,$member['id']); + $marker->icon = new GIconAuto(1,$member['id']); + $map->addOverlay($marker); + //$map->center = new GLatLng($x,$y); +} +$header = $map->getHeader(); +$out = '
'; +$out .= $map->displayExtentMap(); +$out .= '
'; +$out .= $map->getFooter(); +?> + + + +Pellston Airport: Area Lodging + +echo $header; +?> + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ +
+
+ print (2K) +
+
+
+ +
+ Y.', lon='.$addr->X.' WHERE id='.$row['id']; + pg_exec($conn,$qs2); + } + */ + + ?> + + +
+ +
+
+
+ + +
+
+ nav-inside (19K) + +
+ + diff --git a/.DS_Store b/.DS_Store new file mode 100755 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/._home.html b/._home.html new file mode 100755 index 0000000..2110608 Binary files /dev/null and b/._home.html differ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ac83b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +CVS diff --git a/GLM_site_check.phtml b/GLM_site_check.phtml new file mode 100644 index 0000000..dc0ee6e --- /dev/null +++ b/GLM_site_check.phtml @@ -0,0 +1,28 @@ + + diff --git a/NWA_Feed.txt b/NWA_Feed.txt new file mode 100644 index 0000000..f2fdb67 --- /dev/null +++ b/NWA_Feed.txt @@ -0,0 +1,684 @@ + +--------------START--------------- +HOSTNAME = devsys.gaslightmedia.com
+PVM_RSH = /usr/bin/rsh
+TERM = screen
+SHELL = /bin/bash
+HISTSIZE = 1000
+SSH_CLIENT = 66.129.32.149 8829 22
+CVSROOT = :pserver:raleigh@cvs.gaslightmedia.com:/usr/local/cvsroot
+QTDIR = /usr/lib/qt-3.1
+SSH_TTY = /dev/pts/1
+USER = raleigh
+LS_COLORS = no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
+PVM_ROOT = /usr/share/pvm3
+USERNAME =
+MAIL = /var/spool/mail/raleigh
+PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
+INPUTRC = /etc/inputrc
+PWD = /home/raleigh
+LANG = en_US
+LAMHELPFILE = /etc/lam/lam-helpfile
+SHLVL = 3
+HOME = /home/raleigh
+XPVM_ROOT = /usr/share/pvm3/xpvm
+BASH_ENV = /home/raleigh/.bashrc
+LOGNAME = raleigh
+SSH_CONNECTION = 66.129.32.149 8829 66.129.32.8 22
+LESSOPEN = |/usr/bin/lesspipe.sh %s
+DISPLAY = localhost:10.0
+G_BROKEN_FILENAMES = 1
+_ = /sbin/initlog
+XMLData = +1.02006-04-27T17:12:28Z114615794800000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:17:00E2006-04-27T15:36:00E2006-04-27T16:23:00E2006-04-27T16:28:00E C34129818012N812AYCR4 4:28pm 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW003600000000000000PDMC2006-04-20T01:42:00Z +
+subbtn = Submit +
+CONTENT_LENGTH = 2669
+CONTENT_TYPE = application/x-www-form-urlencoded
+DOCUMENT_ROOT = /home/httpd/www
+GLM_SERVER_ID = devsys.gaslightmedia.com
+HTTP_ACCEPT = */*
+HTTP_EXPECT = 100-continue
+HTTP_HOST = devsys.gaslightmedia.com
+PDFLIBSERIAL = L40300-102733-2200XX-5B12E1
+REMOTE_ADDR = 139.72.158.28
+REMOTE_HOST = cpi.nwa.com
+REMOTE_PORT = 36520
+SCRIPT_FILENAME = /home/httpd/www/kiosk.pellstonairport.com/nwa_data.phtml
+SERVER_ADDR = 66.129.32.8
+SERVER_ADMIN = hostmaster@gaslightmedia.com
+SERVER_NAME = devsys.gaslightmedia.com
+SERVER_PORT = 80
+SERVER_SIGNATURE =
+SERVER_SOFTWARE = Apache/1.3.31 (Unix) PHP/4.1.2
+GATEWAY_INTERFACE = CGI/1.1
+SERVER_PROTOCOL = HTTP/1.1
+REQUEST_METHOD = POST
+QUERY_STRING =
+REQUEST_URI = /kiosk.pellstonairport.com/nwa_data.phtml
+SCRIPT_NAME = /kiosk.pellstonairport.com/nwa_data.phtml
+PATH_TRANSLATED = /home/httpd/www/kiosk.pellstonairport.com/nwa_data.phtml
+PHP_SELF = /kiosk.pellstonairport.com/nwa_data.phtml
+argv = Array
+argc = 0
+HTTP_POST_VARS = Array
+_POST = Array
+HTTP_GET_VARS = Array
+_GET = Array
+HTTP_COOKIE_VARS = Array
+_COOKIE = Array
+HTTP_SERVER_VARS = Array
+_SERVER = Array
+HTTP_ENV_VARS = Array
+_ENV = Array
+HTTP_POST_FILES = Array
+_FILES = Array
+_REQUEST = Array
+GLOBALS = Array
+fp = Resource id #1
+value = Resource id #1
+key = value
+--------------END--------------- + + + + +--------------START--------------- + +1.02006-04-27T18:40:03Z114616320300000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00E2006-04-27T17:15:00E2006-04-27T17:54:00E2006-04-27T18:04:00E 1C3328638012N812AYCR4On Time 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000PDMC2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T19:06:12Z114616477200000001fdsd1_post29_p2006-04-28NW3203DTWPLN1DTWPLN2006-04-28T22:16:002006-04-28T22:26:002006-04-28T23:38:002006-04-28T23:43:002006-04-28T22:16:00S2006-04-28T22:26:00S2006-04-28T23:38:00S2006-04-28T23:43:00SC3410SFCOn Time XJCO7456KL4503 NNNYY002500000000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T19:50:15Z114616741500000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:16:00A2006-04-27T15:35:00E2006-04-27T16:22:00E2006-04-27T16:27:00E C34129818012N812AYCR4 4:27pm 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW0040001003900000021TU2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T20:03:17Z114616819700000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:17:00E2006-04-27T17:32:00E2006-04-27T18:11:00E2006-04-27T18:21:00E 1C3328638012N812AYCR4 5:17pm 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000TU2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T20:03:25Z114616820500000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:16:00A2006-04-27T16:00:00A2006-04-27T16:47:00E2006-04-27T16:52:00E C34129818012N812AYCR4 4:52pm 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW0040001003900000021TU2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T20:41:10Z114617047000000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:16:00A2006-04-27T16:00:00A2006-04-27T16:38:00A2006-04-27T16:43:00E C34129818012N812AYCR4Landed 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW0040001003900000021TU2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T21:13:12Z114617239200000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:16:00A2006-04-27T16:00:00A2006-04-27T16:39:00A2006-04-27T16:43:00A C34129818012N812AYCR4Arrived 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW0040001003900000021TU2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T21:14:16Z114617245600000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T17:49:00E2006-04-27T17:59:00E 1C3328638012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000ACAR9E2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T21:46:58Z114617441800000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T17:46:00E2006-04-27T17:56:00E 1C3328638012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000ACAR9E2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T21:51:07Z114617466700000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T18:05:00R2006-04-27T18:15:00R 1C3328638012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000ACAR9E2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T22:12:18Z114617593800000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T18:12:00A2006-04-27T18:22:00R 1C3328638012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000ACAR9E2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-27T22:21:28Z114617648800000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T18:12:00A2006-04-27T18:21:00A 1C3328638012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG002800000000000000ACAR9E2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:14:24Z114619046400000001fdsd1_post29_p2006-04-27NW3203DTWPLN1DTWPLN2006-04-27T22:16:002006-04-27T22:26:002006-04-27T23:38:002006-04-27T23:43:002006-04-27T22:14:00A2006-04-27T22:24:00E2006-04-27T23:36:00E2006-04-27T23:41:00E C34132037448N448XJSFC11:41pm XJCO7456KL4503 NNNYY0029002002600000021TU2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:17:45Z114619066500000001fdsd1_post29_p2006-04-29NW3202PLNDTW1PLNDTW2006-04-29T06:17:002006-04-29T06:22:002006-04-29T07:36:002006-04-29T07:41:002006-04-29T06:17:00S2006-04-29T06:22:00S2006-04-29T07:36:00S2006-04-29T07:41:00S1C140SFCOn Time XJCO7162 NNNYY002300000000000000GATE2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:32:39Z114619155900000001fdsd1_post29_p2006-04-27NW3203DTWPLN1DTWPLN2006-04-27T22:16:002006-04-27T22:26:002006-04-27T23:38:002006-04-27T23:43:002006-04-27T22:14:00A2006-04-27T22:26:00A2006-04-27T23:38:00E2006-04-27T23:43:00E C34132037448N448XJSFCOn Time XJCO7456KL4503 NNNYY0029002002600000021TU2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:22Z114619286200000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:16:00A2006-04-27T16:00:00A2006-04-27T16:39:00A2006-04-27T16:43:00AC3418012N812AYCR4Arrived 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW0041001003900000021REINITDB2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:23Z114619286300000001fdsd1_post29_p2006-04-27NW3203DTWPLN1DTWPLN2006-04-27T22:16:002006-04-27T22:26:002006-04-27T23:38:002006-04-27T23:43:002006-04-27T22:14:00A2006-04-27T22:26:00A2006-04-27T23:38:00E2006-04-27T23:43:00EC3417448N448XJSFCOn Time XJCO7456KL4503 NNNYY0031002002600000021REINITDB2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:27Z114619286700000001fdsd1_post29_p2006-04-28NW2981DTWPLN1DTWPLN2006-04-28T15:17:002006-04-28T15:36:002006-04-28T16:25:002006-04-28T16:30:002006-04-28T15:17:00S2006-04-28T15:36:00S2006-04-28T16:25:00S2006-04-28T16:30:00SC3618751N8751DCR4On Time 9ECO7254KL5981 NNNYY2006-04-28NW2981FWADTW002900100000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:28Z114619286800000001fdsd1_post29_p2006-04-28NW3203DTWPLN1DTWPLN2006-04-28T22:16:002006-04-28T22:26:002006-04-28T23:38:002006-04-28T23:43:002006-04-28T22:16:00S2006-04-28T22:26:00S2006-04-28T23:38:00S2006-04-28T23:43:00SC3410SFCOn Time XJCO7456KL4503 NNNYY002300000000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:29Z114619286900000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00S2006-04-28T09:15:00S2006-04-28T10:32:00S2006-04-28T10:37:00SC3010SFCOn Time XJCO7460 NNNYY001100400000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:53Z114619289300000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T18:12:00A2006-04-27T18:21:00A1C338012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG0028000002800000021REINITDB2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:54Z114619289400000001fdsd1_post29_p2006-04-27NW3232PLNDTW1PLNDTW2006-04-27T11:12:002006-04-27T11:17:002006-04-27T12:29:002006-04-27T12:34:002006-04-27T11:07:00A2006-04-27T11:15:00A2006-04-27T12:17:00A2006-04-27T12:37:00A1C87449N449XJSFCDeparted XJCO7499KL4532 NNNYY2006-04-27NW3232DTWTRI0029000003000000021REINITDB2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:55Z114619289500000001fdsd1_post29_p2006-04-28NW2863PLNDTW1PLNDTW2006-04-28T17:00:002006-04-28T17:15:002006-04-28T18:00:002006-04-28T18:10:002006-04-28T17:00:00S2006-04-28T17:15:00S2006-04-28T18:00:00S2006-04-28T18:10:00S1C338751N8751DCR4On Time 9ECO7249KL7063 NNNYY2006-04-28NW2863DTWCVG002000000000000000REINITDB2006-04-21T01:40:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:57Z114619289700000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:17:00S2006-04-28T06:22:00S2006-04-28T07:36:00S2006-04-28T07:41:00S1C140SFCOn Time XJCO7162 NNNYY002300100000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:58Z114619289800000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:12:00S2006-04-28T11:17:00S2006-04-28T12:29:00S2006-04-28T12:34:00S1C340SFCOn Time XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI002400000000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T02:54:59Z114619289900000001fdsd1_post29_p2006-04-29NW3202PLNDTW1PLNDTW2006-04-29T06:17:002006-04-29T06:22:002006-04-29T07:36:002006-04-29T07:41:002006-04-29T06:17:00S2006-04-29T06:22:00S2006-04-29T07:36:00S2006-04-29T07:41:00S1C140SFCOn Time XJCO7162 NNNYY002300000000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T03:27:12Z114619483200000001fdsd1_post29_p2006-04-27NW3203DTWPLN1DTWPLN2006-04-27T22:16:002006-04-27T22:26:002006-04-27T23:38:002006-04-27T23:43:002006-04-27T22:14:00A2006-04-27T22:26:00A2006-04-27T23:26:00A2006-04-27T23:31:00E C34132037448N448XJSFCLanded XJCO7456KL4503 NNNYY0031002002600000021TU2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T03:47:15Z114619603500000001fdsd1_post29_p2006-04-27NW3203DTWPLN1DTWPLN2006-04-27T22:16:002006-04-27T22:26:002006-04-27T23:38:002006-04-27T23:43:002006-04-27T22:14:00A2006-04-27T22:26:00A2006-04-27T23:30:00A2006-04-27T23:35:00A C34132037448N448XJSFCArrived XJCO7456KL4503 NNNYY0031002002600000021TU2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:15:02Z114620130200000001fdsd1_post29_p2006-04-28NW3203DTWPLN1DTWPLN2006-04-28T22:16:002006-04-28T22:26:002006-04-28T23:38:002006-04-28T23:43:002006-04-28T22:16:00E2006-04-28T22:26:00E2006-04-28T23:38:00E2006-04-28T23:43:00E C34132030SFCOn Time XJCO7456KL4503 NNNYY002300000000000000MC2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:15:58Z114620135800000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00E2006-04-28T09:15:00E2006-04-28T10:32:00E2006-04-28T10:37:00E C30132070SFCOn Time XJCO7460 NNNYY00700400000000000MC2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:16:00Z114620136000000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:12:00E2006-04-28T11:17:00E2006-04-28T12:29:00E2006-04-28T12:34:00E 1C3432320SFCOn Time XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI002800100000000000MC2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:16:20Z114620138000000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:17:00E2006-04-28T06:22:00E2006-04-28T07:36:00E2006-04-28T07:41:00E 1C1432020SFCOn Time XJCO7162 NNNYY002300100000000000MC2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:35:30Z114620253000000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:12:00E2006-04-28T11:17:00E2006-04-28T12:29:00E2006-04-28T12:34:00E 1C832327439N439XJSFCOn Time XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI002800100000000000GATE2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:37:41Z114620266100000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:17:00E2006-04-28T06:22:00E2006-04-28T07:36:00E2006-04-28T07:41:00E 1C132027448N448XJSFCOn Time XJCO7162 NNNYY002300100000000000GATE2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T05:54:07Z114620364700000001fdsd1_post29_p2006-04-29NW3207DTWPLN1DTWPLN2006-04-29T09:05:002006-04-29T09:15:002006-04-29T10:32:002006-04-29T10:37:002006-04-29T09:05:00S2006-04-29T09:15:00S2006-04-29T10:32:00S2006-04-29T10:37:00SC3010SFCOn Time XJCO7460 NNNYY001400000000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T06:28:31Z114620571100000001fdsd1_post29_p2006-04-29NW3202PLNDTW1PLNDTW2006-04-29T06:17:002006-04-29T06:22:002006-04-29T07:36:002006-04-29T07:41:002006-04-29T06:17:00S2006-04-29T06:22:00S2006-04-29T07:36:00S2006-04-29T07:41:00S1C260SFCOn Time XJCO7162 NNNYY002300000000000000GATE2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T07:54:11Z114621085100000001fdsd1_post29_p2006-04-29NW3232PLNDTW1PLNDTW2006-04-29T11:12:002006-04-29T11:17:002006-04-29T12:29:002006-04-29T12:34:002006-04-29T11:12:00S2006-04-29T11:17:00S2006-04-29T12:29:00S2006-04-29T12:34:00S1C120SFCOn Time XJCO7499KL4532 NNNYY2006-04-29NW3232DTWTRI002800300000000000GATE2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:11:30Z114621189000000001fdsd1_post29_p2006-04-27NW2981DTWPLN1DTWPLN2006-04-27T15:17:002006-04-27T15:36:002006-04-27T16:25:002006-04-27T16:30:002006-04-27T15:16:00A2006-04-27T16:00:00A2006-04-27T16:39:00A2006-04-27T16:43:00AC3418012N812AYCR4Arrived 9ECO7254KL5981 NNNYY2006-04-27NW2981FWADTW0041001003900000021REINITDB2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:11:32Z114621189200000001fdsd1_post29_p2006-04-27NW3203DTWPLN1DTWPLN2006-04-27T22:16:002006-04-27T22:26:002006-04-27T23:38:002006-04-27T23:43:002006-04-27T22:14:00A2006-04-27T22:26:00A2006-04-27T23:30:00A2006-04-27T23:35:00AC3417448N448XJSFCArrived XJCO7456KL4503 NNNYY0031002002600000021REINITDB2006-04-20T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:11:34Z114621189400000001fdsd1_post29_p2006-04-28NW2981DTWPLN1DTWPLN2006-04-28T15:17:002006-04-28T15:36:002006-04-28T16:25:002006-04-28T16:30:002006-04-28T15:17:00S2006-04-28T15:36:00S2006-04-28T16:25:00S2006-04-28T16:30:00SC3618751N8751DCR4On Time 9ECO7254KL5981 NNNYY2006-04-28NW2981FWADTW003200300000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:11:36Z114621189600000001fdsd1_post29_p2006-04-28NW3203DTWPLN1DTWPLN2006-04-28T22:16:002006-04-28T22:26:002006-04-28T23:38:002006-04-28T23:43:002006-04-28T22:16:00E2006-04-28T22:26:00E2006-04-28T23:38:00E2006-04-28T23:43:00EC3417420N420XJSFCOn Time XJCO7456KL4503 NNNYY002300000000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:11:37Z114621189700000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00E2006-04-28T09:15:00E2006-04-28T10:32:00E2006-04-28T10:37:00EC3017439N439XJSFCOn Time XJCO7460 NNNYY001100400000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:11:38Z114621189800000001fdsd1_post29_p2006-04-29NW3207DTWPLN1DTWPLN2006-04-29T09:05:002006-04-29T09:15:002006-04-29T10:32:002006-04-29T10:37:002006-04-29T09:05:00S2006-04-29T09:15:00S2006-04-29T10:32:00S2006-04-29T10:37:00SC3010SFCOn Time XJCO7460 NNNYY001400000000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:12:03Z114621192300000001fdsd1_post29_p2006-04-27NW2863PLNDTW1PLNDTW2006-04-27T17:00:002006-04-27T17:15:002006-04-27T18:00:002006-04-27T18:10:002006-04-27T17:00:00A2006-04-27T17:10:00A2006-04-27T18:12:00A2006-04-27T18:21:00A1C338012N812AYCR4Departed 9ECO7249KL7063 NNNYY2006-04-27NW2863DTWCVG0028000002800000021REINITDB2006-04-20T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:12:05Z114621192500000001fdsd1_post29_p2006-04-28NW2863PLNDTW1PLNDTW2006-04-28T17:00:002006-04-28T17:15:002006-04-28T18:00:002006-04-28T18:10:002006-04-28T17:00:00S2006-04-28T17:15:00S2006-04-28T18:00:00S2006-04-28T18:10:00S1C338751N8751DCR4On Time 9ECO7249KL7063 NNNYY2006-04-28NW2863DTWCVG002000000000000000REINITDB2006-04-21T01:40:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:12:06Z114621192600000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:17:00E2006-04-28T06:22:00E2006-04-28T07:36:00E2006-04-28T07:41:00E1C17448N448XJSFCOn Time XJCO7162 NNNYY002400100000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:12:07Z114621192700000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:12:00E2006-04-28T11:17:00E2006-04-28T12:29:00E2006-04-28T12:34:00E1C87439N439XJSFCOn Time XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI002900100000000000REINITDB2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:12:08Z114621192800000001fdsd1_post29_p2006-04-29NW3202PLNDTW1PLNDTW2006-04-29T06:17:002006-04-29T06:22:002006-04-29T07:36:002006-04-29T07:41:002006-04-29T06:17:00S2006-04-29T06:22:00S2006-04-29T07:36:00S2006-04-29T07:41:00S1C260SFCOn Time XJCO7162 NNNYY002300000000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T08:12:09Z114621192900000001fdsd1_post29_p2006-04-29NW3232PLNDTW1PLNDTW2006-04-29T11:12:002006-04-29T11:17:002006-04-29T12:29:002006-04-29T12:34:002006-04-29T11:12:00S2006-04-29T11:17:00S2006-04-29T12:29:00S2006-04-29T12:34:00S1C120SFCOn Time XJCO7499KL4532 NNNYY2006-04-29NW3232DTWTRI002800300000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T09:01:19Z114621487900000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00E2006-04-28T09:15:00E2006-04-28T10:32:00E2006-04-28T10:37:00EC43132077439N439XJSFCOn Time XJCO7460 NNNYY001100400000000000GATE2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T09:20:32Z114621603200000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:17:00E2006-04-28T06:22:00E2006-04-28T07:36:00E2006-04-28T07:41:00E1C2232027448N448XJSFCOn Time XJCO7162 NNNYY002300200000000000GATE2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T10:25:55Z114621995500000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:17:00E2006-04-28T06:22:00E2006-04-28T07:36:00E2006-04-28T07:41:00E1C2032027448N448XJSFCOn Time XJCO7162 NNNYY0023002002200000021GATE2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T10:41:15Z114622087500000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:13:00A2006-04-28T06:35:00A2006-04-28T07:49:00E2006-04-28T07:54:00E 1C2032027448N448XJSFCDeparted XJCO7162 NNNYY0023002002200000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T11:11:19Z114622267900000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:13:00A2006-04-28T06:35:00A2006-04-28T07:32:00R2006-04-28T07:37:00R 1C2032027448N448XJSFCDeparted XJCO7162 NNNYY0023002002200000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T11:40:39Z114622443900000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:13:00A2006-04-28T06:35:00A2006-04-28T07:38:00A2006-04-28T07:43:00R 1C2032027448N448XJSFCDeparted XJCO7162 NNNYY0023002002200000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T11:51:39Z114622509900000001fdsd1_post29_p2006-04-28NW3202PLNDTW1PLNDTW2006-04-28T06:17:002006-04-28T06:22:002006-04-28T07:36:002006-04-28T07:41:002006-04-28T06:13:00A2006-04-28T06:35:00A2006-04-28T07:38:00A2006-04-28T07:52:00A 1C2032027448N448XJSFCDeparted XJCO7162 NNNYY0023002002200000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T12:07:45Z114622606500000001fdsd1_post29_p2006-04-29NW2981DTWPLN1DTWPLN2006-04-29T15:17:002006-04-29T15:36:002006-04-29T16:25:002006-04-29T16:30:002006-04-29T15:17:00S2006-04-29T15:36:00S2006-04-29T16:25:00S2006-04-29T16:30:00SC3510CR4On Time 9ECO7254KL5981 NNNYY2006-04-29NW2981FWADTW003900200000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T13:10:05Z114622980500000001fdsd1_post29_p2006-04-29NW2863PLNDTW1PLNDTW2006-04-29T17:00:002006-04-29T17:15:002006-04-29T18:00:002006-04-29T18:10:002006-04-29T17:00:00S2006-04-29T17:15:00S2006-04-29T18:00:00S2006-04-29T18:10:00S1B30CR4On Time 9ECO7249KL7063 NNNYY2006-04-29NW2863DTWCVG001600200000000000REINITDB2006-04-22T01:42:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T13:15:09Z114623010900000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00A2006-04-28T09:15:00E2006-04-28T10:32:00E2006-04-28T10:37:00E C43132077439N439XJSFCOn Time XJCO7460 NNNYY00700400900000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T13:38:31Z114623151100000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00A2006-04-28T09:25:00A2006-04-28T10:42:00E2006-04-28T10:47:00E C43132077439N439XJSFC10:47am XJCO7460 NNNYY00700400900000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T14:28:47Z114623452700000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00A2006-04-28T09:25:00A2006-04-28T10:30:00A2006-04-28T10:35:00E C43132077439N439XJSFCLanded XJCO7460 NNNYY00700400900000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T14:37:57Z114623507700000001fdsd1_post29_p2006-04-28NW3207DTWPLN1DTWPLN2006-04-28T09:05:002006-04-28T09:15:002006-04-28T10:32:002006-04-28T10:37:002006-04-28T09:05:00A2006-04-28T09:25:00A2006-04-28T10:30:00A2006-04-28T10:35:00A C43132077439N439XJSFCArrived XJCO7460 NNNYY00700400900000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T15:02:30Z114623655000000001fdsd1_post29_p2006-04-28NW2981DTWPLN1DTWPLN2006-04-28T15:17:002006-04-28T15:36:002006-04-28T16:25:002006-04-28T16:30:002006-04-28T15:17:00S2006-04-28T15:36:00S2006-04-28T16:25:00S2006-04-28T16:30:00S C3618751N8751DCR4On Time 9ECO7254KL5981 NNNYY2006-04-28NW2981FWADTW003000300000000000PDMC2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- +HOSTNAME = devsys.gaslightmedia.com
+PVM_RSH = /usr/bin/rsh
+TERM = screen
+SHELL = /bin/bash
+HISTSIZE = 1000
+SSH_CLIENT = 66.129.32.149 8829 22
+CVSROOT = :pserver:raleigh@cvs.gaslightmedia.com:/usr/local/cvsroot
+QTDIR = /usr/lib/qt-3.1
+SSH_TTY = /dev/pts/1
+USER = raleigh
+LS_COLORS = no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
+PVM_ROOT = /usr/share/pvm3
+USERNAME =
+MAIL = /var/spool/mail/raleigh
+PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
+INPUTRC = /etc/inputrc
+PWD = /home/raleigh
+LANG = en_US
+LAMHELPFILE = /etc/lam/lam-helpfile
+SHLVL = 3
+HOME = /home/raleigh
+XPVM_ROOT = /usr/share/pvm3/xpvm
+BASH_ENV = /home/raleigh/.bashrc
+LOGNAME = raleigh
+SSH_CONNECTION = 66.129.32.149 8829 66.129.32.8 22
+LESSOPEN = |/usr/bin/lesspipe.sh %s
+DISPLAY = localhost:10.0
+G_BROKEN_FILENAMES = 1
+_ = /sbin/initlog
+HELP = ME
+DOCUMENT_ROOT = /home/httpd/www
+GLM_SERVER_ID = devsys.gaslightmedia.com
+HTTP_ACCEPT = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.7
+HTTP_ACCEPT_ENCODING = gzip,deflate
+HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5
+HTTP_CONNECTION = keep-alive
+HTTP_HOST = devsys.gaslightmedia.com
+HTTP_KEEP_ALIVE = 300
+HTTP_USER_AGENT = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060418 Firefox/1.0.8 (Ubuntu package 1.0.8)
+PDFLIBSERIAL = L40300-102733-2200XX-5B12E1
+REMOTE_ADDR = 66.129.32.149
+REMOTE_HOST = nat1.gaslightmedia.com
+REMOTE_PORT = 10641
+SCRIPT_FILENAME = /home/httpd/www/kiosk.pellstonairport.com/nwa_test.phtml
+SERVER_ADDR = 66.129.32.8
+SERVER_ADMIN = hostmaster@gaslightmedia.com
+SERVER_NAME = devsys.gaslightmedia.com
+SERVER_PORT = 80
+SERVER_SIGNATURE =
+SERVER_SOFTWARE = Apache/1.3.31 (Unix) PHP/4.1.2
+GATEWAY_INTERFACE = CGI/1.1
+SERVER_PROTOCOL = HTTP/1.1
+REQUEST_METHOD = GET
+QUERY_STRING = HELP=ME
+REQUEST_URI = /kiosk.pellstonairport.com/nwa_test.phtml?HELP=ME
+SCRIPT_NAME = /kiosk.pellstonairport.com/nwa_test.phtml
+PATH_TRANSLATED = /home/httpd/www/kiosk.pellstonairport.com/nwa_test.phtml
+PHP_SELF = /kiosk.pellstonairport.com/nwa_test.phtml
+argv = Array
+argc = 1
+HTTP_POST_VARS = Array
+_POST = Array
+HTTP_GET_VARS = Array
+_GET = Array
+HTTP_COOKIE_VARS = Array
+_COOKIE = Array
+HTTP_SERVER_VARS = Array
+_SERVER = Array
+HTTP_ENV_VARS = Array
+_ENV = Array
+HTTP_POST_FILES = Array
+_FILES = Array
+_REQUEST = Array
+GLOBALS = Array
+fp = Resource id #1
+value = Resource id #1
+key = value
+--------------END--------------- + + + + +--------------START--------------- +HOSTNAME = devsys.gaslightmedia.com
+PVM_RSH = /usr/bin/rsh
+TERM = screen
+SHELL = /bin/bash
+HISTSIZE = 1000
+SSH_CLIENT = 66.129.32.149 8829 22
+CVSROOT = :pserver:raleigh@cvs.gaslightmedia.com:/usr/local/cvsroot
+QTDIR = /usr/lib/qt-3.1
+SSH_TTY = /dev/pts/1
+USER = raleigh
+LS_COLORS = no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
+PVM_ROOT = /usr/share/pvm3
+USERNAME =
+MAIL = /var/spool/mail/raleigh
+PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
+INPUTRC = /etc/inputrc
+PWD = /home/raleigh
+LANG = en_US
+LAMHELPFILE = /etc/lam/lam-helpfile
+SHLVL = 3
+HOME = /home/raleigh
+XPVM_ROOT = /usr/share/pvm3/xpvm
+BASH_ENV = /home/raleigh/.bashrc
+LOGNAME = raleigh
+SSH_CONNECTION = 66.129.32.149 8829 66.129.32.8 22
+LESSOPEN = |/usr/bin/lesspipe.sh %s
+DISPLAY = localhost:10.0
+G_BROKEN_FILENAMES = 1
+_ = /sbin/initlog
+DOCUMENT_ROOT = /home/httpd/www
+GLM_SERVER_ID = devsys.gaslightmedia.com
+HTTP_ACCEPT = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
+HTTP_ACCEPT_CHARSET = ISO-8859-1,utf-8;q=0.7,*;q=0.7
+HTTP_ACCEPT_ENCODING = gzip,deflate
+HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5
+HTTP_CONNECTION = keep-alive
+HTTP_HOST = devsys.gaslightmedia.com
+HTTP_KEEP_ALIVE = 300
+HTTP_USER_AGENT = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060418 Firefox/1.0.8 (Ubuntu package 1.0.8)
+PDFLIBSERIAL = L40300-102733-2200XX-5B12E1
+REMOTE_ADDR = 66.129.32.149
+REMOTE_HOST = nat1.gaslightmedia.com
+REMOTE_PORT = 10984
+SCRIPT_FILENAME = /home/httpd/www/kiosk.pellstonairport.com/nwa_test.phtml
+SERVER_ADDR = 66.129.32.8
+SERVER_ADMIN = hostmaster@gaslightmedia.com
+SERVER_NAME = devsys.gaslightmedia.com
+SERVER_PORT = 80
+SERVER_SIGNATURE =
+SERVER_SOFTWARE = Apache/1.3.31 (Unix) PHP/4.1.2
+GATEWAY_INTERFACE = CGI/1.1
+SERVER_PROTOCOL = HTTP/1.1
+REQUEST_METHOD = GET
+QUERY_STRING =
+REQUEST_URI = /kiosk.pellstonairport.com/nwa_test.phtml
+SCRIPT_NAME = /kiosk.pellstonairport.com/nwa_test.phtml
+PATH_TRANSLATED = /home/httpd/www/kiosk.pellstonairport.com/nwa_test.phtml
+PHP_SELF = /kiosk.pellstonairport.com/nwa_test.phtml
+argv = Array
+argc = 0
+HTTP_POST_VARS = Array
+_POST = Array
+HTTP_GET_VARS = Array
+_GET = Array
+HTTP_COOKIE_VARS = Array
+_COOKIE = Array
+HTTP_SERVER_VARS = Array
+_SERVER = Array
+HTTP_ENV_VARS = Array
+_ENV = Array
+HTTP_POST_FILES = Array
+_FILES = Array
+_REQUEST = Array
+GLOBALS = Array
+fp = Resource id #1
+value = Resource id #1
+key = value
+--------------END--------------- + + + + +--------------START--------------- + +1.02006-04-28T15:25:00Z114623790000000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:10:00A2006-04-28T11:23:00A2006-04-28T12:35:00E2006-04-28T12:40:00E 1C832327439N439XJSFCDeparted XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI0029002003100000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T15:59:05Z114623994500000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:10:00A2006-04-28T11:23:00A2006-04-28T12:18:00R2006-04-28T12:23:00R 1C832327439N439XJSFCDeparted XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI0029002003100000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T16:25:17Z114624151700000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:10:00A2006-04-28T11:23:00A2006-04-28T12:21:00A2006-04-28T12:26:00R 1C832327439N439XJSFCDeparted XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI0029002003100000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T16:37:57Z114624227700000001fdsd1_post29_p2006-04-28NW3232PLNDTW1PLNDTW2006-04-28T11:12:002006-04-28T11:17:002006-04-28T12:29:002006-04-28T12:34:002006-04-28T11:10:00A2006-04-28T11:23:00A2006-04-28T12:21:00A2006-04-28T12:36:00A 1C832327439N439XJSFCDeparted XJCO7499KL4532 NNNYY2006-04-28NW3232DTWTRI0029002003100000021TU2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T17:25:03Z114624510300000001fdsd1_post29_p2006-04-28NW2981DTWPLN1DTWPLN2006-04-28T15:17:002006-04-28T15:36:002006-04-28T16:25:002006-04-28T16:30:002006-04-28T15:17:00E2006-04-28T15:36:00E2006-04-28T16:20:00E2006-04-28T16:25:00E C36129818751N8751DCR4 4:25pm 9ECO7254KL5981 NNNYY2006-04-28NW2981FWADTW003000300000000000PDMC2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T18:10:01Z114624780100000001fdsd1_post29_p2006-04-28NW2863PLNDTW1PLNDTW2006-04-28T17:00:002006-04-28T17:15:002006-04-28T18:00:002006-04-28T18:10:002006-04-28T17:00:00E2006-04-28T17:15:00E2006-04-28T17:56:00E2006-04-28T18:06:00E 1C3328638751N8751DCR4On Time 9ECO7249KL7063 NNNYY2006-04-28NW2863DTWCVG002000000000000000PDMC2006-04-21T01:40:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T18:43:56Z114624983600000001fdsd1_post29_p2006-04-29NW3203DTWPLN1DTWPLN2006-04-29T22:16:002006-04-29T22:26:002006-04-29T23:38:002006-04-29T23:43:002006-04-29T22:16:00S2006-04-29T22:26:00S2006-04-29T23:38:00S2006-04-29T23:43:00SC3610SFCOn Time XJCO7456KL4503 NNNYY003200000000000000REINITDB2006-04-22T01:43:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T19:14:22Z114625166200000001fdsd1_post29_p2006-04-28NW2981DTWPLN1DTWPLN2006-04-28T15:17:002006-04-28T15:36:002006-04-28T16:25:002006-04-28T16:30:002006-04-28T15:13:00A2006-04-28T15:32:00E2006-04-28T16:16:00E2006-04-28T16:21:00E C36129818751N8751DCR4 4:21pm 9ECO7254KL5981 NNNYY2006-04-28NW2981FWADTW0030003002800000021ACAR9E2006-04-21T01:41:00Z + +--------------END--------------- + +--------------START--------------- + +1.02006-04-28T19:28:52Z114625253200000001fdsd1_post29_p2006-04-28NW2981DTWPLN1DTWPLN2006-04-28T15:17:002006-04-28T15:36:002006-04-28T16:25:002006-04-28T16:30:002006-04-28T15:13:00A2006-04-28T15:28:00A2006-04-28T16:12:00E2006-04-28T16:17:00E C36129818751N8751DCR4 4:17pm 9ECO7254KL5981 NNNYY2006-04-28NW2981FWADTW0030003002800000021ACAR9E2006-04-21T01:41:00Z + +--------------END--------------- diff --git a/ScriptX.cab b/ScriptX.cab new file mode 100644 index 0000000..a50ac17 Binary files /dev/null and b/ScriptX.cab differ diff --git a/admin/Flight_Data/create_tables.txt b/admin/Flight_Data/create_tables.txt new file mode 100644 index 0000000..5d2eaaa --- /dev/null +++ b/admin/Flight_Data/create_tables.txt @@ -0,0 +1,47 @@ +CREATE TABLE flight + ( + id SERIAL, + msg_dtm timestamp, + msg_seq_id text, + flt_orig_date date, + flt_airline text, + flt_numb text, + flt_leg_orig text, + flt_leg_dest text, + flt_leg_vers int, + sch_leg_orig text, + sch_leg_dest text, + sch_dep_time time, + sch_off_time time, + sch_on_time time, + sch_in_time time, + cur_dep_time time, + cur_dep_time_code text, + cur_off_time time, + cur_off_time_code text, + cur_on_time time, + cur_on_time_code text, + cur_in_time time, + cur_in_time_code text, + delay_code text, + depart_gate text, + arriv_gate text, + radio_code text, + aircraft text, + reg_numb text, + remarks text, + food_code text, + flight_type text, + downline_leg bool, + overfly bool, + canceled bool, + dep_ontime bool, + arriv_ontime bool + ); +REVOKE ALL ON flight FROM PUBLIC; +GRANT ALL ON flight TO nobody; +REVOKE ALL ON flight_id_seq FROM PUBLIC; +GRANT ALL ON flight_id_seq TO nobody; +CREATE INDEX flight_orig_date_index ON flight(flt_orig_date); +CREATE INDEX flight_numb_index ON flight(flt_numb); + diff --git a/admin/Kiosk_Notes/DialEnginePro/DialPro.ini b/admin/Kiosk_Notes/DialEnginePro/DialPro.ini new file mode 100644 index 0000000..1260e2f --- /dev/null +++ b/admin/Kiosk_Notes/DialEnginePro/DialPro.ini @@ -0,0 +1,81 @@ +[Preferences] +Line No=0 +Modem=MultiTech System's MT5634ZPX-PCI +Address No=0 +Address Name=0 +Enable Hotkey=0 +MinDigits=7 +MaxDigits=11 +CopyUntil=0 +CopyAll=0 +ShowOptions=1 +PlaySounds=1 +PlayConnect=1 +PlayConnectCust= +PlayIncom=1 +PlayIncomCust= +PlayReach=1 +PlayReachCust= +DropLineDelay=601 +Redial Enabled=0 +Redials Number=3 +RedialInterval=7 +UseModem=1 +Trim OutLog Enabled=1 +OutLog Days=30 +Trim InLog Enabled=1 +InLog Days=5 +Calling Card for local calls=1 +Ignore Dialing Properties=0 +Tone Dial=0 +Special Characters=1 +Voice/Data=1 +CommLine=1 +Show Oval=1 +Show Phone No=0 +On Top=0 +Drop Line=1 +Drop1Ring=0 +Close Dialer=1 +Block ID=0 +International=100 +Speakerphone=0 +Mic Gain=34734 +Phone Vol=42598 +Speaker=1 +Mic=0 +DialTones=0 +Monitor=0 +Answer after=0 +Fax=0 +Rings=3 +Display call=1 +PutOnClip=0 +CheckID=0 +ExecDTMF=0 +oDTMF=0 +ExecScript=0 +ScriptFile=C:\Program Files\Dial Engine Pro\ScriptSample.txt +Execute program=0 +ExecuteAfter=30 +CallBack=0 +DTMF Interval=0 +DTMF Length=50 +SysTray Enabled=0 +Call Display=0 +Enable Copy=1 +Busy Detect=1 +Busy Delay Timer=17 +cpwLeft=6165 +cpwTop=4515 +LastBusyNo=4879773 +OutLogWidth=8220 +OutLogHeight=4725 +OutLogFontSize=8.25 +OutLogFontBold=0 +OutLogFontName=MS Sans Serif +InLogWidth=8250 +InLogHeight=4725 +InlogFontSize=8.25 +InlogFontBold=0 +InlogFontName=MS Sans Serif diff --git a/admin/Kiosk_Notes/DialEnginePro/RegKey.zip b/admin/Kiosk_Notes/DialEnginePro/RegKey.zip new file mode 100644 index 0000000..454a7d8 Binary files /dev/null and b/admin/Kiosk_Notes/DialEnginePro/RegKey.zip differ diff --git a/admin/Kiosk_Notes/DialEnginePro/dialpro.zip b/admin/Kiosk_Notes/DialEnginePro/dialpro.zip new file mode 100644 index 0000000..feb7263 Binary files /dev/null and b/admin/Kiosk_Notes/DialEnginePro/dialpro.zip differ diff --git a/admin/Kiosk_Notes/FIDS.doc b/admin/Kiosk_Notes/FIDS.doc new file mode 100644 index 0000000..79c7c64 Binary files /dev/null and b/admin/Kiosk_Notes/FIDS.doc differ diff --git a/admin/Kiosk_Notes/IEAdminKit/ieak6.exe b/admin/Kiosk_Notes/IEAdminKit/ieak6.exe new file mode 100644 index 0000000..0a4d041 Binary files /dev/null and b/admin/Kiosk_Notes/IEAdminKit/ieak6.exe differ diff --git a/admin/Kiosk_Notes/Kiosk Setup Proceedures.txt b/admin/Kiosk_Notes/Kiosk Setup Proceedures.txt new file mode 100644 index 0000000..f9e94e8 --- /dev/null +++ b/admin/Kiosk_Notes/Kiosk Setup Proceedures.txt @@ -0,0 +1,180 @@ +Kiosk System Setup +------------------ + + +Users + + Create user "Touch Here to Start" + + Create user Administrator if not already created + + Log off and log in as Administrator + + Delete or deactivate all other user accounts + + Change account type for user "Touch Here to Start" to "Limited" + Use "Control Panel", "User Accounts" to do this + + Add password to Administrator account - use GLM standard password + (do not put password on "Touch Here to Start" user account) + + +Install custom Internet Explorer: type "Kiosk" + + +Install "Microsoft Shared Computer Toolkit" + + +Configure user "Touch Here to Start" + + Log into user "Touch Here to Start" + + Delete "My Computer" and other desktop icons + + Log into user "Touch Here to Start" + + Click once on "My Computer" icon, press "Delete" key and accept + + Right click on desktop and select "Properties" + + Select "Desktop" tab then click on "Customize Desktop..." + + Deselect all Desktop icons options + + Deselect "Run Desktop cleanup Wizard every 60 days" + + Click "OK", then "OK" to exit + + Dissable "Screen Saver" and Power save options + + Right click on desktop and select "Properties" + + Select "Screen Saver" tab + + Select "(None)" for Screen saver + + Click on "Power..." + + Select "Presentation" as Power Scheme + + Click "OK" then click "OK" to exit dialog boxes + + Set Internet Explorer security options + + Start Internet Explorer + + Select menu "Tools", "Internet Options..." + + Select "Security" tab + + Select "Trusted Sites" + + Click on "Sites..." button + + Deselect "Require Server Verification..." + + Add trusted sites + http://devsys.gaslightmedia.com + http://kiosk.pellstonairport.com + (any others required) + + Click "OK" + + With "Trusted Sites" still highlighted, click on "Custom Level..." + + Set "Initialize script and ActiveX controls not marked as safe" to "Enable" + + Click "OK", then "OK" to exit dialog boxs + + +Run Microsoft Shared Computer Toolkit - "Getting Started" + + "Select Computer Security Settings" + + Enable all security options + + "Restrict and Lock the Public User Profile" + + Click "Open User Restrictions" + + Click "Select a Profile" + + Click "Touch Here to Start" + + Click "Lock this profile:" + + Click "Reccommended Restrictions for Shared Accounts" + This should enable all options. + + Expand "Additional Start Menu Restrictions" and enable all + + Expand "Additional General Windows XP Restrictions" and enable all + + Expand "Additional Internet Explorer Restrictions" + Make sure these are not enabled. + + Expand "Additional Software Restrictions" and enable all + + click "OK" + + Exit "Getting Started" + + +Clear out "Touch Here to Start" files + + Explore drive C: + + Expand "Documents and Settings", "Touch Here to Start", "Start Menu", and + "Programs" + + Click on "Desktop" directory under "Touch Here to Start" and remove all files. + + Click on "Favorites" directory under "Touch Here to Start" and remove all files. + + Click on "Start Menu" directory under "Touch Here to Start" and make sure + only "Programs" exists + + Click on "Programs" directory under "Touch Here to Start" and delete + everything except "Startup" + + Click on "Startup" and delete everything + + Right click in file area and select "New" then "Shortcut" + + Enter the following in "Location" and click "Next" + + "C:\Program Files\Internet Explorer\iexplore.exe" + -k http://kiosk.pellstonairport.com/index.php + + Enter "Pellston Airport Kiosk" and click "finish" + + Right click on "Pellston Airport Kiosk" and select "Properties" + + Click "General" Tab and enable "Read-only" then click "OK" + + +Install "Dial Engine Pro" - http://www.phonedialerpro.com/ + + Run Install Program + + Purchase license + + Install "Dial Engine Pro" license when available (run supplied RegKey.exe) + + +Restart system and confirm the following + + The only visible user is "Touch Here to Start" + + Touch "Touch Here to Start" - user should start and I.E. should start in + kiosk mode with correct Web site + + Verify operation + + +NOTES: + + If "My Computer" icon still shows up in "Touch Here to Start" user, unlock the user + in "User Restrictions", log back in as that user, click once on "My Computer" icon, + log back in as administrator, and loc user again. + diff --git a/admin/Kiosk_Notes/Kiosk_Setup_Proceedures.txt b/admin/Kiosk_Notes/Kiosk_Setup_Proceedures.txt new file mode 100644 index 0000000..989ae31 --- /dev/null +++ b/admin/Kiosk_Notes/Kiosk_Setup_Proceedures.txt @@ -0,0 +1,225 @@ +Kiosk System Setup +------------------ + + +Users + + At Windows Log On screen, hit CTRL-ALT-DELETE twice + + Log in as Administrator (default does not have password) + + Add password to Administrator account - use GLM standard password + (do not put password on "Touch Here to Start" user account) + + Create user "Touch Here to Start" + + Change account type for user "Touch Here to Start" to "Computer administrator" + (unfortunately it has to be to be able to delete the other visible accounts) + + Leave "Administrator" and "Guest" account but delete all others + + Make sure "Guest" account is off + +Copy required files to system using "ftp" from command prompt + + Create "Download" directory under "My Documents" + + Start "Command Prompt" + + Change to "My Documents\Download" directory + + FTP to site with files, change to the directory with the files, + then use "mget" to get the files. Be sure to type "binary" first. + +Install custom Internet Explorer: type "Kiosk" + + Extract all files in the "IE_Kiosk.zip" archive + + Run "IE_Kiosk/Kiosk/FLAT/WIN32/EN/ie6setup.exe" + + System will reboot, if not do so + + +When system reboots, use bios setup to dissable all power and display management/timeouts + + When done, save changes and restart + + System should now come up as "Touch Here to Start" user + + Log off and log back in as "Administrator" + + +Configure user "Touch Here to Start" + + Log into user "Touch Here to Start" + +Log in as "Touch Here to Start" + + Run Install Program + + Purchase license + + Install "Dial Engine Pro" + + Run "SETUP" in "dialpro.zip" archive + + Add "Dial Engine Pro" to "Start", "All Programs", "Startup" for "Touch Here to Start" user + + Purchase license for "Dial Engine Pro" at "http://www.phonedialerpro.com" + + Fill out and send "OrderFrn.txt" + + Install "Dial Engine Pro" license when available (run supplied RegKey.exe) + + Delete "My Computer" and other desktop icons + + Log into user "Touch Here to Start" + + Click once on "My Computer" icon, press "Delete" key and accept + + Right click on desktop and select "Properties" + + Select "Desktop" tab then click on "Customize Desktop..." + + Deselect all Desktop icons options + + Deselect "Run Desktop cleanup Wizard every 60 days" + + Click "OK", then "OK" to exit + + Dissable "Screen Saver" and Power save options + + Right click on desktop and select "Properties" + + Select "Screen Saver" tab + + Select "(None)" for Screen saver + + Click on "Power..." + + Select "Presentation" as Power Scheme + + Click "OK" then click "OK" to exit dialog boxes + + Set Internet Explorer security options + + Start Internet Explorer + + Select menu "Tools", "Internet Options..." + + Select "Security" tab + + Select "Trusted Sites" + + Click on "Sites..." button + + Deselect "Require Server Verification..." + + Add trusted sites + http://devsys.gaslightmedia.com + http://kiosk.pellstonairport.com + (any others required) + + Click "OK" + + With "Trusted Sites" still highlighted, click on "Custom Level..." + + Set "Initialize script and ActiveX controls not marked as safe" to "Enable" + + Click "OK", then "OK" to exit dialog boxes + + Log off and log back on as "Administrator" + + +As Administrator, run Microsoft Shared Computer Toolkit - "Getting Started" + + Install "Microsoft Shared Computer Toolkit" + + Double Click on "Download/Shared_Computer_Toolkit_ENU.msi" + (Download and install the "Hive Cleanup" software) + + When system reboots, log out and log back in as "Administrator" and run installation again + to complete the Toolkik installation + + "Select Computer Security Settings" + + Enable all security options + + "Restrict and Lock the Public User Profile" + + Click "Open User Restrictions" + + Click "Select a Profile" + + Click "Touch Here to Start" + + Click "Lock this profile:" + + Click "Reccommended Restrictions for Shared Accounts" + This should enable all options. + + Expand "Additional Start Menu Restrictions" and enable all + + Expand "Additional General Windows XP Restrictions" and enable all + + Expand "Additional Internet Explorer Restrictions" + Make sure these are NOT enabled. + + Expand "Additional Software Restrictions" and enable all + + click "OK" + + Exit "Getting Started" + + Copy supplied DialPro.ini to c:\Documents and Settings\Touch Here to Start\Application Data\Dial Engine Pro\DialPro.ini + + +Clear out "Touch Here to Start" files + + Explore drive C: + + Expand "Documents and Settings", "Touch Here to Start", "Start Menu", and + "Programs" + + Click on "Desktop" directory under "Touch Here to Start" and remove all files. + + Click on "Favorites" directory under "Touch Here to Start" and remove all files. + + Click on "Start Menu" directory under "Touch Here to Start" and make sure + only "Programs" exists + + Click on "Programs" directory under "Touch Here to Start" and delete + everything except "Startup" + + Click on "Startup" and delete everything + + Right click in file area and select "New" then "Shortcut" + + Enter the following in "Location" and click "Next" + Be sure to include quotes! (can use development link, but have to change before production use) + + "C:\Program Files\Internet Explorer\iexplore.exe" -k http://kiosk.pellstonairport.com/index.php + + Enter "Pellston Airport Kiosk" and click "finish" + + Right click on "Pellston Airport Kiosk" and select "Properties" + + Click "General" Tab and enable "Read-only" then click "OK" + + +Restart system and confirm the following + + The only visible user is "Touch Here to Start" + + Touch "Touch Here to Start" - user should start and I.E. should start in + kiosk mode with correct Web site + + Verify operation + + +NOTES: + + If "My Computer" icon still shows up in "Touch Here to Start" user, unlock the user + in "User Restrictions", log back in as that user, click once on "My Computer" icon, + log back in as administrator, and loc user again. + diff --git a/admin/Kiosk_Notes/NWA_HTTP_Posting.doc b/admin/Kiosk_Notes/NWA_HTTP_Posting.doc new file mode 100644 index 0000000..9cdb2b5 Binary files /dev/null and b/admin/Kiosk_Notes/NWA_HTTP_Posting.doc differ diff --git a/admin/Kiosk_Notes/ScriptX/ReadMe.txt b/admin/Kiosk_Notes/ScriptX/ReadMe.txt new file mode 100644 index 0000000..ccf462c --- /dev/null +++ b/admin/Kiosk_Notes/ScriptX/ReadMe.txt @@ -0,0 +1,75 @@ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +About client-side deployment of ScriptX version 6,2,433,14 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +'Free' ScriptX +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +* To use the 'free' script enhancing and printing (Header, Footer, Margins & Orientation) functionality of ScriptX on your IE4.01SP1 - IE6.0SP1 pages, you will need: + + ScriptX.cab + +* If you wish to you may reference ScriptX.cab directly from the MeadCo site: + + + +* Or you may want to pre-install 'basic' ScriptX over an intranet, in which case use the (admin-only): + + ScriptX.exe + +An administrator should run ScriptX.exe on each client machine in your Intranet as an alternative to having the control auto-download the first time a user hits a 'basic' ScriptX-enabled page. + + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +Licensed ScriptX +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +* The enclosed smsx.cab is for use in cases where ScriptX' extended printing functionality is being used in conjunction with a publishing license. It contains the MeadCo Security Manager, MeadCo ScriptX and MeadCo MaxiPT resource dlls. + +To evaluate the advanced printing functionality of ScriptX on your own computer, use smsx.cab together with the enclosed trial license SXLIC.MLF: + + + + + + + + + + +Note that [your_path] is shown as a placeholder only, and should be replaced by your own path to the smsx.cab and sxlic.mlf files. + +The code shown above should appear on ALL your ScriptX-enabled pages, including ASP. You can NOT use CreateObject or new ActiveXObject to call ScriptX client-side. You should call ScriptX in all cases by the ID of the on-page ScriptX object. + +Note: the {7A12A72B-BE40-4BAB-AA50-4680DCC938A3} value of the GUID parameter used above identifies the MeadCo evaluation license that authors may use to experiment with Advanced printing capabilities. The license validates local filesystem (file://, My Computer Security Zone only) and local website (http://localhost/) content ONLY for evaluation purposes on a single development computer. + +The evaluation license DOES NOT VALIDATE and WILL NOT WORK FROM any other address. Registered customers are issued with an unique license identifier and a digitally signed sxlic.mlf file. + +* If you want to pre-install the licensed ScriptX binaries over an intranet, use the(admin-only): + + smsx.exe + +An administrator should run smsx.exe on each client machine in your Intranet as an alternative to having the control auto-download the first time a user hits a licensed ScriptX-enabled page. + + +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + +Full documentation and licensing details can be found at http://www.meadroid.com/scriptx/ + +Scripting Factory and ScriptX are Copyright (c) Mead & Co Limited 1998, 1999, 2000, 2001, 2002, 2003, 2004. + +Contact us at: feedback@meadroid.com diff --git a/admin/Kiosk_Notes/ScriptX/SXdocs.zip b/admin/Kiosk_Notes/ScriptX/SXdocs.zip new file mode 100644 index 0000000..f0984b9 Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/SXdocs.zip differ diff --git a/admin/Kiosk_Notes/ScriptX/ScriptX.cab b/admin/Kiosk_Notes/ScriptX/ScriptX.cab new file mode 100644 index 0000000..a50ac17 Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/ScriptX.cab differ diff --git a/admin/Kiosk_Notes/ScriptX/ScriptX.exe b/admin/Kiosk_Notes/ScriptX/ScriptX.exe new file mode 100644 index 0000000..7b60621 Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/ScriptX.exe differ diff --git a/admin/Kiosk_Notes/ScriptX/maxipt.zip b/admin/Kiosk_Notes/ScriptX/maxipt.zip new file mode 100644 index 0000000..cdf4d17 Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/maxipt.zip differ diff --git a/admin/Kiosk_Notes/ScriptX/print_demo2.html b/admin/Kiosk_Notes/ScriptX/print_demo2.html new file mode 100644 index 0000000..df0d499 --- /dev/null +++ b/admin/Kiosk_Notes/ScriptX/print_demo2.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + +

Hello, world!

+ +
+
The button itself will not be printed: + +
+ + diff --git a/admin/Kiosk_Notes/ScriptX/smsx.cab b/admin/Kiosk_Notes/ScriptX/smsx.cab new file mode 100644 index 0000000..22b6f14 Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/smsx.cab differ diff --git a/admin/Kiosk_Notes/ScriptX/smsx.exe b/admin/Kiosk_Notes/ScriptX/smsx.exe new file mode 100644 index 0000000..7747e4c Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/smsx.exe differ diff --git a/admin/Kiosk_Notes/ScriptX/sxlic.mlf b/admin/Kiosk_Notes/ScriptX/sxlic.mlf new file mode 100644 index 0000000..c03aee5 Binary files /dev/null and b/admin/Kiosk_Notes/ScriptX/sxlic.mlf differ diff --git a/admin/Kiosk_Notes/SharedComputerToolkit/SCT_Upgrade_from_V1.exe b/admin/Kiosk_Notes/SharedComputerToolkit/SCT_Upgrade_from_V1.exe new file mode 100644 index 0000000..aef35a3 Binary files /dev/null and b/admin/Kiosk_Notes/SharedComputerToolkit/SCT_Upgrade_from_V1.exe differ diff --git a/admin/Kiosk_Notes/SharedComputerToolkit/Shared_Computer_Toolkit_ENU.msi b/admin/Kiosk_Notes/SharedComputerToolkit/Shared_Computer_Toolkit_ENU.msi new file mode 100644 index 0000000..2f4e918 Binary files /dev/null and b/admin/Kiosk_Notes/SharedComputerToolkit/Shared_Computer_Toolkit_ENU.msi differ diff --git a/admin/Kiosk_Notes/SharedComputerToolkit/readme.txt b/admin/Kiosk_Notes/SharedComputerToolkit/readme.txt new file mode 100644 index 0000000..ef40320 --- /dev/null +++ b/admin/Kiosk_Notes/SharedComputerToolkit/readme.txt @@ -0,0 +1,14 @@ +The Microsoft Shared Computer Toolkit for Windows® XP. Version 1.1 readme.txt +Updated April 6th, 2006 + +Send all feedback/comments/problems to sctsupp@microsoft.com + +Methods of Installation +======================= + +If you already have the Shared Computer Toolkit Version 1.0 installed, download the installation file named SCT_Upgrade_from_V1.exe and open it to start the installation. + +If this is the first time you are installing the Shared Computer Toolkit, download the installation file named Shared_Computer_Toolkit_ENU.msi and open it to start the installation. + + + diff --git a/admin/Kiosk_Notes/create_tables.txt b/admin/Kiosk_Notes/create_tables.txt new file mode 100644 index 0000000..e4d5c0f --- /dev/null +++ b/admin/Kiosk_Notes/create_tables.txt @@ -0,0 +1,19 @@ +CREATE TABLE flight + ( + id SERIAL, + name text, + addr1 text, + city text, + state text, + zip text, + category ????, + fun bool, + musical bool, + cost float + ); +REVOKE ALL ON test_table FROM PUBLIC; +GRANT ALL ON test_table TO nobody; +REVOKE ALL ON test_table_id_seq FROM PUBLIC; +GRANT ALL ON test_table_id_seq TO nobody; + + diff --git a/admin/Kiosk_Notes/dial_demo.html b/admin/Kiosk_Notes/dial_demo.html new file mode 100755 index 0000000..4735fe4 --- /dev/null +++ b/admin/Kiosk_Notes/dial_demo.html @@ -0,0 +1,71 @@ + + + + + + + + + +
+ + +
+
+ + diff --git a/assets/Thumbs.db b/assets/Thumbs.db new file mode 100755 index 0000000..e20171c Binary files /dev/null and b/assets/Thumbs.db differ diff --git a/assets/back.gif b/assets/back.gif new file mode 100755 index 0000000..5e6d0bc Binary files /dev/null and b/assets/back.gif differ diff --git a/assets/bg-home.jpg b/assets/bg-home.jpg new file mode 100755 index 0000000..5f39a93 Binary files /dev/null and b/assets/bg-home.jpg differ diff --git a/assets/bg-inside.gif b/assets/bg-inside.gif new file mode 100755 index 0000000..6bbda0c Binary files /dev/null and b/assets/bg-inside.gif differ diff --git a/assets/call.gif b/assets/call.gif new file mode 100755 index 0000000..3566238 Binary files /dev/null and b/assets/call.gif differ diff --git a/assets/cat-list-bg.gif b/assets/cat-list-bg.gif new file mode 100755 index 0000000..ee8eae0 Binary files /dev/null and b/assets/cat-list-bg.gif differ diff --git a/assets/cat/Thumbs.db b/assets/cat/Thumbs.db new file mode 100755 index 0000000..467c0a7 Binary files /dev/null and b/assets/cat/Thumbs.db differ diff --git a/assets/cat/about.gif b/assets/cat/about.gif new file mode 100755 index 0000000..dd7da43 Binary files /dev/null and b/assets/cat/about.gif differ diff --git a/assets/cat/attractions.gif b/assets/cat/attractions.gif new file mode 100755 index 0000000..db84129 Binary files /dev/null and b/assets/cat/attractions.gif differ diff --git a/assets/cat/dining.gif b/assets/cat/dining.gif new file mode 100755 index 0000000..2f57648 Binary files /dev/null and b/assets/cat/dining.gif differ diff --git a/assets/cat/flight.gif b/assets/cat/flight.gif new file mode 100755 index 0000000..84a5863 Binary files /dev/null and b/assets/cat/flight.gif differ diff --git a/assets/cat/info.gif b/assets/cat/info.gif new file mode 100755 index 0000000..8bb3eea Binary files /dev/null and b/assets/cat/info.gif differ diff --git a/assets/cat/lodging.gif b/assets/cat/lodging.gif new file mode 100755 index 0000000..b7ae352 Binary files /dev/null and b/assets/cat/lodging.gif differ diff --git a/assets/cat/services.gif b/assets/cat/services.gif new file mode 100755 index 0000000..1181b63 Binary files /dev/null and b/assets/cat/services.gif differ diff --git a/assets/cat/transportation.gif b/assets/cat/transportation.gif new file mode 100755 index 0000000..3d25150 Binary files /dev/null and b/assets/cat/transportation.gif differ diff --git a/assets/hang-up.gif b/assets/hang-up.gif new file mode 100755 index 0000000..1ee52e9 Binary files /dev/null and b/assets/hang-up.gif differ diff --git a/assets/inside-content-bg.jpg b/assets/inside-content-bg.jpg new file mode 100755 index 0000000..dcd12cd Binary files /dev/null and b/assets/inside-content-bg.jpg differ diff --git a/assets/left.gif b/assets/left.gif new file mode 100755 index 0000000..8d3a3c0 Binary files /dev/null and b/assets/left.gif differ diff --git a/assets/letters/Thumbs.db b/assets/letters/Thumbs.db new file mode 100755 index 0000000..ef5b77c Binary files /dev/null and b/assets/letters/Thumbs.db differ diff --git a/assets/letters/a.gif b/assets/letters/a.gif new file mode 100755 index 0000000..eba3ef0 Binary files /dev/null and b/assets/letters/a.gif differ diff --git a/assets/letters/b.gif b/assets/letters/b.gif new file mode 100755 index 0000000..591ebce Binary files /dev/null and b/assets/letters/b.gif differ diff --git a/assets/letters/c.gif b/assets/letters/c.gif new file mode 100755 index 0000000..fb40f43 Binary files /dev/null and b/assets/letters/c.gif differ diff --git a/assets/letters/d.gif b/assets/letters/d.gif new file mode 100755 index 0000000..9bfc40d Binary files /dev/null and b/assets/letters/d.gif differ diff --git a/assets/letters/e.gif b/assets/letters/e.gif new file mode 100755 index 0000000..af7e77f Binary files /dev/null and b/assets/letters/e.gif differ diff --git a/assets/letters/f.gif b/assets/letters/f.gif new file mode 100755 index 0000000..6e1ddfa Binary files /dev/null and b/assets/letters/f.gif differ diff --git a/assets/letters/g.gif b/assets/letters/g.gif new file mode 100755 index 0000000..0248623 Binary files /dev/null and b/assets/letters/g.gif differ diff --git a/assets/letters/h.gif b/assets/letters/h.gif new file mode 100755 index 0000000..52a7341 Binary files /dev/null and b/assets/letters/h.gif differ diff --git a/assets/letters/i.gif b/assets/letters/i.gif new file mode 100755 index 0000000..b038b3b Binary files /dev/null and b/assets/letters/i.gif differ diff --git a/assets/letters/j.gif b/assets/letters/j.gif new file mode 100755 index 0000000..4041971 Binary files /dev/null and b/assets/letters/j.gif differ diff --git a/assets/letters/k.gif b/assets/letters/k.gif new file mode 100755 index 0000000..528f93b Binary files /dev/null and b/assets/letters/k.gif differ diff --git a/assets/letters/l.gif b/assets/letters/l.gif new file mode 100755 index 0000000..47eba7f Binary files /dev/null and b/assets/letters/l.gif differ diff --git a/assets/letters/m.gif b/assets/letters/m.gif new file mode 100755 index 0000000..81fb9f1 Binary files /dev/null and b/assets/letters/m.gif differ diff --git a/assets/letters/n.gif b/assets/letters/n.gif new file mode 100755 index 0000000..2b639a1 Binary files /dev/null and b/assets/letters/n.gif differ diff --git a/assets/letters/o.gif b/assets/letters/o.gif new file mode 100755 index 0000000..b37bb27 Binary files /dev/null and b/assets/letters/o.gif differ diff --git a/assets/letters/p.gif b/assets/letters/p.gif new file mode 100755 index 0000000..3926859 Binary files /dev/null and b/assets/letters/p.gif differ diff --git a/assets/letters/q.gif b/assets/letters/q.gif new file mode 100755 index 0000000..e5357bc Binary files /dev/null and b/assets/letters/q.gif differ diff --git a/assets/letters/r.gif b/assets/letters/r.gif new file mode 100755 index 0000000..d8d74fc Binary files /dev/null and b/assets/letters/r.gif differ diff --git a/assets/letters/s.gif b/assets/letters/s.gif new file mode 100755 index 0000000..2527808 Binary files /dev/null and b/assets/letters/s.gif differ diff --git a/assets/letters/t.gif b/assets/letters/t.gif new file mode 100755 index 0000000..2c8c9c9 Binary files /dev/null and b/assets/letters/t.gif differ diff --git a/assets/letters/u.gif b/assets/letters/u.gif new file mode 100755 index 0000000..ea6fc2b Binary files /dev/null and b/assets/letters/u.gif differ diff --git a/assets/letters/v.gif b/assets/letters/v.gif new file mode 100755 index 0000000..59fb749 Binary files /dev/null and b/assets/letters/v.gif differ diff --git a/assets/letters/w.gif b/assets/letters/w.gif new file mode 100755 index 0000000..d149936 Binary files /dev/null and b/assets/letters/w.gif differ diff --git a/assets/letters/x.gif b/assets/letters/x.gif new file mode 100755 index 0000000..bde567f Binary files /dev/null and b/assets/letters/x.gif differ diff --git a/assets/letters/y.gif b/assets/letters/y.gif new file mode 100755 index 0000000..dd21e43 Binary files /dev/null and b/assets/letters/y.gif differ diff --git a/assets/letters/z.gif b/assets/letters/z.gif new file mode 100755 index 0000000..9f21986 Binary files /dev/null and b/assets/letters/z.gif differ diff --git a/assets/list-head-bg.gif b/assets/list-head-bg.gif new file mode 100755 index 0000000..63578fd Binary files /dev/null and b/assets/list-head-bg.gif differ diff --git a/assets/map-directions.gif b/assets/map-directions.gif new file mode 100755 index 0000000..546fcc9 Binary files /dev/null and b/assets/map-directions.gif differ diff --git a/assets/more-info.gif b/assets/more-info.gif new file mode 100755 index 0000000..ca34c5e Binary files /dev/null and b/assets/more-info.gif differ diff --git a/assets/nav-home.jpg b/assets/nav-home.jpg new file mode 100755 index 0000000..5431458 Binary files /dev/null and b/assets/nav-home.jpg differ diff --git a/assets/nav-inside.gif b/assets/nav-inside.gif new file mode 100755 index 0000000..5fa529e Binary files /dev/null and b/assets/nav-inside.gif differ diff --git a/assets/print.gif b/assets/print.gif new file mode 100755 index 0000000..1bd0947 Binary files /dev/null and b/assets/print.gif differ diff --git a/assets/print.php b/assets/print.php new file mode 100644 index 0000000..c40f71c --- /dev/null +++ b/assets/print.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/right.gif b/assets/right.gif new file mode 100755 index 0000000..5582332 Binary files /dev/null and b/assets/right.gif differ diff --git a/assets/temp-banner.gif b/assets/temp-banner.gif new file mode 100755 index 0000000..16576fd Binary files /dev/null and b/assets/temp-banner.gif differ diff --git a/assets/temp-detail-photo.jpg b/assets/temp-detail-photo.jpg new file mode 100755 index 0000000..e78b457 Binary files /dev/null and b/assets/temp-detail-photo.jpg differ diff --git a/assets/temp-photo.jpg b/assets/temp-photo.jpg new file mode 100755 index 0000000..7b1f758 Binary files /dev/null and b/assets/temp-photo.jpg differ diff --git a/banner.php b/banner.php new file mode 100644 index 0000000..16f3520 --- /dev/null +++ b/banner.php @@ -0,0 +1,87 @@ += current_date;"; +if( $bData = $toolbox->DB->db_auto_get_data( $query ) ) +{ + foreach( $bData as $row ) + { + $banners[] = $row['id']; + } + srand((float) microtime() * 10000000); + $rand_key = array_rand( $banners ); + $id = $banners[$rand_key]; + $query = "update banner set imp_kiosk = imp_kiosk + 1 where id = ".$id.";select * from banner where id = $id;"; + if( $data = $toolbox->DB->db_auto_get_data( $query ) ) + { + $image = $data[0]['image']; + $member_id = $data[0]['member_id']; + if( is_numeric( $member_id ) ) + { + $query = "select id,memb_type,city from member where id = $member_id;"; + if( $mData = $toolbox->DB->db_auto_get_data( $query ) ) + { + // echo ''; + $mId = $mData[0]['id']; + $mType = $mData[0]['memb_type']; + if( is_array( $toolbox->memb_toolbox ) ) + { + foreach( $toolbox->memb_toolbox as $mCat => $mRow ) + { + if( in_array( $mType, $mRow ) ) + { + $mCatid = $mCat; + } + } + } + //echo ''; + $urlparam = 'city='.urlencode($mData[0]['city']); + if( $mCatid == 8 ) + { + $urlparam = "city=Transportation"; + } + if( $mCatid == 4 ) + { + $urlparam = "memb_type=".$mData[0]['memb_type']; + } + $banner_link1 = ''; + $banner_link2 = ''; + } + else + { + $banner_link1 = ''; + $banner_link2 = ''; + } + switch( $GLOBALS['GLM_SERVER_ID'] ) + { + case "devsys.gaslightmedia.com": + $base_banner_url = 'http://devsys.gaslightmedia.com/www.pellstonairport.com/images/original/'; + $base_banner_path = '/home/httpd/www/www.pellstonairport.com/images/original/'; + break; + case "ws1.gaslightmedia.com": + $base_banner_url = 'http://www.pellstonairport.com/images/original/'; + $base_banner_path = '/home/httpd/server/www.pellstonairport.com/images/original/'; + break; + } + $size = @getimagesize( $base_banner_path.$image ); + if( strstr( $PHP_SELF,'index.php' ) ) + { + $banner_ad = $banner_link1.''.$banner_link2; + } + else + { + $banner_ad = $banner_link1.''.$banner_link2; + } + } + } +} +if( strstr( $PHP_SELF,'index.php' ) ) +{ + echo $banner_ad;//''; +} +else +{ + echo $banner_ad;//''; +} +?> diff --git a/banner.php.save b/banner.php.save new file mode 100755 index 0000000..6ee49ba --- /dev/null +++ b/banner.php.save @@ -0,0 +1,87 @@ += current_date;"; +if( $bData = $toolbox->DB->db_auto_get_data( $query ) ) +{ + foreach( $bData as $row ) + { + $banners[] = $row['id']; + } + srand((float) microtime() * 10000000); + $rand_key = array_rand( $banners ); + $id = $banners[$rand_key]; + $query = "select * from banner where id = $id;"; + if( $data = $toolbox->DB->db_auto_get_data( $query ) ) + { + $image = $data[0]['image']; + $member_id = $data[0]['member_id']; + if( is_numeric( $member_id ) ) + { + $query = "select id,memb_type,city from member where id = $member_id;"; + if( $mData = $toolbox->DB->db_auto_get_data( $query ) ) + { + // echo ''; + $mId = $mData[0]['id']; + $mType = $mData[0]['memb_type']; + if( is_array( $toolbox->memb_toolbox ) ) + { + foreach( $toolbox->memb_toolbox as $mCat => $mRow ) + { + if( in_array( $mType, $mRow ) ) + { + $mCatid = $mCat; + } + } + } + //echo ''; + $urlparam = 'city='.urlencode($mData[0]['city']); + if( $mCatid == 8 ) + { + $urlparam = "city=Transportation"; + } + if( $mCatid == 4 ) + { + $urlparam = "memb_type=".$mData[0]['memb_type']; + } + $banner_link1 = ''; + $banner_link2 = ''; + } + else + { + $banner_link1 = ''; + $banner_link2 = ''; + } + switch( $GLOBALS['GLM_SERVER_ID'] ) + { + case "devsys.gaslightmedia.com": + $base_banner_url = 'http://devsys.gaslightmedia.com/www.pellstonairport.com/images/original/'; + $base_banner_path = '/home/httpd/www/www.pellstonairport.com/images/original/'; + break; + case "ws1.gaslightmedia.com": + $base_banner_url = 'http://www.pellstonairport.com/images/original/'; + $base_banner_path = '/home/httpd/server/www.pellstonairport.com/images/original/'; + break; + } + $size = @getimagesize( $base_banner_path.$image ); + if( strstr( $PHP_SELF,'index.php' ) ) + { + $banner_ad = $banner_link1.''.$banner_link2; + } + else + { + $banner_ad = $banner_link1.''.$banner_link2; + } + } + } +} +if( strstr( $PHP_SELF,'index.php' ) ) +{ + echo $banner_ad;//''; +} +else +{ + echo $banner_ad;//''; +} +?> diff --git a/caller.js b/caller.js new file mode 100755 index 0000000..c65449e --- /dev/null +++ b/caller.js @@ -0,0 +1,49 @@ +var connect_time = 120; +var max_time = 600; +var t = connect_time; +var m = max_time; +function ConnectTimer(kill) +{ + document.getElementById( 'HangupButton' ).value = 'Hang up in ' + t + ' seconds - \nTouch this box for more time'; + t = t-1; + m = m-1; + if( t < 0 ) + { + HangUp(); + } + else + { + setTimeout('ConnectTimer()', 1000); + } +} +function ResetTimer() +{ + if( m < connect_time ) + t = m; + else + t = connect_time; +} +function SingleDial( number ) +{ + var wsh = new ActiveXObject('WScript.Shell'); + wsh.Run('"c:\\Program Files\\Dial Engine Pro\\dial.exe"/' + number ); + show_button(); + t = connect_time; + m = max_time; + setTimeout('ConnectTimer()', 1000); +} +function HangUp(dial) +{ + var wsh = new ActiveXObject('WScript.Shell'); + wsh.Run('"c:\\Program Files\\Dial Engine Pro\\dial.exe"/hangup'); + hide_button(); + t = 0; +} +function show_button() +{ + document.getElementById('Hangup').style.visibility = 'visible'; +} +function hide_button() +{ + document.getElementById('Hangup').style.visibility = 'hidden'; +} diff --git a/classes/ChangeLog b/classes/ChangeLog new file mode 100755 index 0000000..9ec69c2 --- /dev/null +++ b/classes/ChangeLog @@ -0,0 +1,985 @@ +2005-12-23 14:24 Steve Sutton + + * class_tellfriend.inc: changing to required_once + +2005-12-23 14:23 Steve Sutton + + * class_tellfriend.inc: update + +2005-12-23 14:22 Steve Sutton + + * class_tellfriend.inc: updating tellfriend script (uses extends + contact_form) + +2005-12-09 12:17 Steve Sutton + + * class_template.inc: update get_ancestors function to reset array + +2005-12-08 13:32 Steve Sutton + + * class_contact_form.inc: update for not using db + +2005-11-29 08:24 Steve Sutton + + * class_contact_form.inc: update to set maxlegth on text type + +2005-11-28 15:14 Steve Sutton + + * class_contact_form.inc, class_template.inc: validate more + +2005-11-18 16:49 Steve Sutton + + * class_db.inc: update commits + +2005-11-16 09:27 Steve Sutton + + * class_contact_form.inc: update + +2005-11-10 12:31 Steve Sutton + + * class_photos.inc: updates + +2005-11-10 10:24 Steve Sutton + + * class_template.inc: update use \>= current_date in home event + function + +2005-11-10 10:09 Steve Sutton + + * glm-Events-calendar-2-0.phtml: update one too many tr + +2005-11-09 16:49 Steve Sutton + + * class_template.inc: update + +2005-11-08 14:00 Steve Sutton + + * class_template.inc: update + +2005-11-03 12:58 Steve Sutton + + * class_template.inc: update + +2005-11-03 12:56 Steve Sutton + + * class_contact_form.inc: update the contact form + +2005-10-24 11:48 Steve Sutton + + * class_template.inc: update some comment structure + +2005-10-21 09:57 Steve Sutton + + * class_auth.inc: update docs + +2005-10-13 10:03 Steve Sutton + + * class_contact_form.inc: updates to add interest(dynamic) + +2005-10-06 10:30 Steve Sutton + + * ChangeLog: update + +2005-10-06 10:14 Steve Sutton + + * class_auth.inc: add removal of ()'" for sql injection posibilty + when logging in + +2005-10-05 16:37 Steve Sutton + + * class_events.inc, class_photos.inc, class_toolbox.inc, + glm-Events-2-0.phtml, glm-Events-calendar-2-0.phtml, + glm-Newsletter-2-0.phtml: updates to docs + +2005-10-05 08:24 Steve Sutton + + * class_contact_form.inc: update spell zip in a upper case + +2005-09-30 16:02 Steve Sutton + + * class_template.inc: update + +2005-09-30 15:23 Steve Sutton + + * class_template.inc: update for image title + +2005-09-29 11:07 Steve Sutton + + * class_photos.inc: update adding cols as class variable and add + div clearer + +2005-09-29 10:00 Steve Sutton + + * class_events.inc: more update with topics for the event output in + calendars + +2005-09-29 09:53 Steve Sutton + + * class_events.inc: update for topicname stuff + +2005-09-22 16:35 Steve Sutton + + * class_photos.inc: adding images under large one + +2005-09-20 15:20 Steve Sutton + + * class_contact_form.inc: update email part for no double : + +2005-09-20 15:20 Steve Sutton + + * class_template.inc: update active part + +2005-09-20 14:32 Steve Sutton + + * class_contact_form.inc: update with ban_words thingy + +2005-09-20 08:56 Steve Sutton + + * class_template.inc: update docs + +2005-09-19 16:39 Steve Sutton + + * class_contact_form.inc, class_events.inc, class_photos.inc, + class_search.inc, class_template.inc: update to comments for docs + +2005-09-16 11:07 Steve Sutton + + * class_toolbox.inc: no double $ in docs comments + +2005-09-16 11:05 Steve Sutton + + * class_template.inc: update todo list + +2005-09-14 16:06 Steve Sutton + + * class_contact_form.inc: update the contact form + +2005-09-12 09:42 Steve Sutton + + * class_contact_form.inc: update + +2005-09-08 15:37 Steve Sutton + + * ChangeLog: update + +2005-09-08 15:11 Steve Sutton + + * ChangeLog: update changelog + +2005-09-08 15:07 Steve Sutton + + * ChangeLog: update Changelog + +2005-09-08 13:25 Steve Sutton + + * class_contact_form.inc: update- + +2005-09-07 14:28 Steve Sutton + + * class_contact_form.inc: update don't send if not valid email + +2005-09-06 09:49 Steve Sutton + + * class_contact_form.inc: update + +2005-09-06 09:32 Steve Sutton + + * class_contact_form.inc: add check for valid email + +2005-09-01 10:02 Steve Sutton + + * class_events.inc: update remove popup image thing and madified + the way it searches for a single day. + +2005-08-25 16:38 Steve Sutton + + * class_auth.inc, class_calendar.inc, class_contact_form.inc, + class_db.inc, class_events.inc, class_importer.inc, + class_photos.inc, class_search.inc, class_tellfriend.inc, + class_toolbox.inc, glm-Events-calendar-2-0.phtml: updatitng + comment php docs + +2005-08-25 16:34 Steve Sutton + + * class_template.inc: iupdate comment + +2005-08-25 16:33 Steve Sutton + + * class_template.inc: update for active is true bottom nav + +2005-08-23 14:11 Steve Sutton + + * class_events.inc, glm-Events-calendar-2-0.phtml: update for no + topic + +2005-08-23 08:04 Steve Sutton + + * class_contact_form.inc: update for array of interest in email + +2005-08-18 15:49 Steve Sutton + + * class_template.inc: added current date check for home page event + function + +2005-08-18 13:58 Steve Sutton + + * class_events.inc: update + +2005-08-18 12:55 Steve Sutton + + * class_contact_form.inc, class_events.inc, class_photos.inc, + class_search.inc, class_template.inc: updates + +2005-08-17 16:22 Steve Sutton + + * ChangeLog: update changelog + +2005-08-17 11:50 Steve Sutton + + * class_template.inc, glm-Events-calendar-2-0.phtml: update + +2005-08-16 08:44 Steve Sutton + + * class_photos.inc: update for photo gallery + +2005-08-11 13:51 Steve Sutton + + * class_contact_form.inc: oops forgot to commit + +2005-08-10 14:51 Steve Sutton + + * class_template.inc: adding img for file types + +2005-08-10 08:54 Steve Sutton + + * class_template.inc: if nothing but category name then don't + output div id category + +2005-08-09 15:03 Steve Sutton + + * class_events.inc: updates to events calendar + +2005-08-01 10:09 Steve Sutton + + * class_db.inc: document updating + +2005-08-01 09:29 Steve Sutton + + * class_template.inc: update + +2005-08-01 08:25 Steve Sutton + + * class_template.inc: take out base_url from keyword replace + function not needed as get_seo_url already does this. + +2005-07-28 16:12 Steve Sutton + + * class_template.inc: updates for phpdocumentor + +2005-07-28 15:59 Steve Sutton + + * ChangeLog, class_photos.inc: updates for phpdocumentor + +2005-07-28 15:50 Steve Sutton + + * class_photos.inc, class_template.inc: updates for phpdocumentor + +2005-07-28 15:39 Steve Sutton + + * class_toolbox.inc: updates for phpdocumentor + +2005-07-28 15:29 Steve Sutton + + * class_template.inc, class_toolbox.inc: updates for phpdocumentor + +2005-07-26 16:12 Steve Sutton + + * class_toolbox.inc: update error + +2005-07-25 14:40 Steve Sutton + + * class_template.inc: adding HOME_ID define + +2005-06-30 15:17 Steve Sutton + + * class_template.inc, class_toolbox.inc: update on toolbox + +2005-06-28 11:11 Steve Sutton + + * class_template.inc: update set_img + +2005-06-24 15:15 Steve Sutton + + * class_photos.inc: update for image names + +2005-06-20 14:27 Steve Sutton + + * class_template.inc: some additional comments on title and meta + tags please read + +2005-06-17 15:23 Steve Sutton + + * class_template.inc: corrections on image caption + +2005-06-13 15:39 Steve Sutton + + * class_template.inc: chaneg to 250 chars for meta description text + +2005-06-13 15:36 Steve Sutton + + * class_template.inc: chaneg to 150 chars for meta description text + +2005-06-13 15:10 Steve Sutton + + * class_template.inc: update fixes + +2005-06-10 16:27 Steve Sutton + + * class_events.inc, glm-Events-2-0.phtml: update on event + +2005-06-10 14:13 Steve Sutton + + * class_events.inc: events update + +2005-06-10 13:00 Steve Sutton + + * class_events.inc: no show topics for calendar + +2005-06-10 12:46 Steve Sutton + + * class_events.inc: no show topics for calendar + +2005-06-09 14:33 Steve Sutton + + * ChangeLog, class_template.inc: update to no have nl2br + +2005-06-07 10:34 Ove + + * class_contact_form.inc: Finally fixing who email is from + +2005-06-03 10:38 Steve Sutton + + * ChangeLog: adding Change log + +2005-06-03 08:01 Steve Sutton + + * class_auth.inc: updates + +2005-05-31 10:54 Ove + + * class_contact_form.inc: [no log message] + +2005-05-27 16:12 Steve Sutton + + * class_db.inc, class_toolbox.inc: more updates on docs + +2005-05-27 16:00 Steve Sutton + + * class_contact_form.inc: updates + +2005-05-27 15:53 Steve Sutton + + * class_calendar.inc, class_contact_form.inc, class_importer.inc, + class_toolbox.inc: updates + +2005-05-27 15:45 Steve Sutton + + * class_db.inc, class_template.inc, class_toolbox.inc: updates + +2005-05-27 15:27 Ove + + * class_contact_form.inc: lowercase tags and added to thankyou msg + +2005-05-27 15:17 Steve Sutton + + * class_calendar.inc, class_events.inc, class_importer.inc, + class_template.inc, class_toolbox.inc: updating for docs + +2005-05-27 13:58 Steve Sutton + + * class_contact_form.inc: update the contact form to use one field + per row + +2005-05-27 13:58 Steve Sutton + + * class_template.inc: update for get_catid and the working part of + adding title tags to the ul menu's + +2005-05-27 09:57 Steve Sutton + + * class_toolbox.inc: updates on comments + +2005-05-26 16:31 Steve Sutton + + * class_template.inc: working on url titles not tested yet + +2005-05-24 09:57 Steve Sutton + + * class_template.inc: spelling changes + +2005-05-23 08:38 Steve Sutton + + * class_calendar.inc, class_importer.inc: new classes need more + docmunting though + +2005-05-21 22:03 Steve Sutton + + * class_db.inc: updates on mostly the comments for phpDocumentor + +2005-05-21 21:14 Steve Sutton + + * class_auth.inc, class_contact_form.inc, class_db.inc, + class_tellfriend.inc, class_template.inc: updates on mostly the + comments for phpDocumentor + +2005-05-20 16:35 Steve Sutton + + * class_auth.inc, class_db.inc, class_template.inc: marking file + +2005-05-20 16:14 Steve Sutton + + * class_template.inc: marking file + +2005-04-27 14:03 Steve Sutton + + * class_template.inc: might be nice to set active query on + constuctor of class + +2005-04-20 14:25 Steve Sutton + + * glm-Events-calendar-2-0.phtml: updates to events + +2005-04-07 15:52 Steve Sutton + + * class_template.inc: define for home page events + +2005-04-07 08:05 Steve Sutton + + * class_template.inc: updated comment and change meta_tag to get + 100 characters for the meta description + +2005-04-01 15:57 Steve Sutton + + * class_contact_form.inc: address + +2005-03-31 11:50 Steve Sutton + + * class_contact_form.inc: corrections on headers + +2005-03-30 14:04 Steve Sutton + + * class_template.inc: remove \n from make_ul_menu code + +2005-03-30 08:11 Steve Sutton + + * class_template.inc: update for page home + +2005-03-22 15:40 Steve Sutton + + * class_template.inc: correct for imagenames + +2005-03-18 16:36 Steve Sutton + + * class_template.inc: correcting ul menu function + +2005-03-18 16:09 Steve Sutton + + * class_template.inc: updates + +2005-03-18 15:47 Steve Sutton + + * class_events.inc, class_toolbox.inc: update + +2005-03-17 15:44 Steve Sutton + + * class_template.inc: change name of get_parentid to reflect what + it really does + +2005-03-17 15:41 Steve Sutton + + * class_template.inc: get parent + +2005-03-15 15:58 Steve Sutton + + * class_template.inc: update + +2005-03-15 13:37 Steve Sutton + + * class_events.inc, class_template.inc, + glm-Events-calendar-2-0.phtml: update for default + +2005-03-15 12:32 Steve Sutton + + * class_template.inc: adding case for ws1 to goto root not + index.phtml + +2005-03-14 10:37 Steve Sutton + + * class_events.inc, glm-Events-calendar-2-0.phtml: events + +2005-03-09 14:02 Steve Sutton + + * class_template.inc: cannot use size again + +2005-03-09 13:54 Steve Sutton + + * class_template.inc: image updates to set_img added new function + to get image path from ->img_size + +2005-02-28 10:05 Steve Sutton + + * class_template.inc: update for error + +2005-02-27 15:09 Steve Sutton + + * class_template.inc: modified for SEO_URL define and simplify the + generation of url's + +2005-02-18 11:47 Steve Sutton + + * class_contact_form.inc: modify to valid code + +2005-02-18 11:39 Steve Sutton + + * class_contact_form.inc: updates to conact form + +2005-02-18 10:29 raleigh + + * class_template.inc: fixes to the print_ancestors method + +2005-02-18 10:02 Steve Sutton + + * class_template.inc: update breadcrumbs + +2005-02-10 10:31 Steve Sutton + + * class_contact_form.inc: update + +2005-02-09 14:44 Steve Sutton + + * class_template.inc: get_parentid comment update + +2005-02-09 10:48 Steve Sutton + + * class_contact_form.inc: update for hide type + +2005-02-09 10:22 Steve Sutton + + * class_contact_form.inc: replace with + +2005-02-09 10:12 Steve Sutton + + * class_contact_form.inc: modify the action to use ['REQUEST_URL'] + +2005-02-08 16:23 Steve Sutton + + * class_contact_form.inc: documenth the code + +2005-02-08 15:05 Steve Sutton + + * class_contact_form.inc: updates to contact form output error + messages + +2005-02-08 14:55 Steve Sutton + + * class_contact_form.inc: updates to contact form + +2005-02-03 15:45 Steve Sutton + + * class_template.inc: updates for the template deluxe thing + +2005-02-02 16:28 Steve Sutton + + * class_template.inc: template for the category stuff too + +2005-02-02 14:54 Steve Sutton + + * class_template.inc: correction to imag alignment stuff + +2005-01-21 12:41 Steve Sutton + + * class_contact_form.inc, class_template.inc: contact form updates + +2005-01-20 14:36 Steve Sutton + + * class_auth.inc: updates to the auth class for some workouts + +2005-01-20 14:31 Steve Sutton + + * class_photos.inc, class_template.inc: changes to photo class and + removing photo stuff from template class + +2005-01-20 14:21 Steve Sutton + + * class_tellfriend.inc: update changes to the tellfriend script + +2005-01-18 13:44 Steve Sutton + + * class_template.inc: update to correct some irrationals + +2005-01-18 13:15 Steve Sutton + + * class_auth.inc, class_template.inc: adding define for deluxe + toolbox + +2005-01-14 13:37 Steve Sutton + + * class_photos.inc: seperate the photo stuff into new class + +2005-01-06 09:05 Steve Sutton + + * class_auth.inc: updating code STANDARDS and removing unused stuff + anything else can be added to a new extended class + +2005-01-05 16:33 Steve Sutton + + * class_template.inc: updates on get_catid + +2005-01-05 16:30 Steve Sutton + + * class_tellfriend.inc: adding new class of tell a friend script + +2004-12-30 13:10 Steve Sutton + + * class_template.inc: toolbox to this + +2004-12-29 15:47 raleigh + + * class_template.inc: methods added, bugs fixed + +2004-12-21 13:13 Steve Sutton + + * class_template.inc: adding a define for the active flag seems + that not all toolboxes use this so if set to true then it will + check for active = 't' + +2004-12-16 13:08 Steve Sutton + + * class_template.inc: using id on the end of seo_url's + +2004-12-07 15:42 Steve Sutton + + * class_template.inc: update + +2004-12-07 10:16 Steve Sutton + + * class_template.inc: including more methods fgor getting catid + +2004-12-02 13:50 Steve Sutton + + * class_template.inc: adding get_seo_url + +2004-11-30 15:27 Steve Sutton + + * class_template.inc: update image processing + +2004-11-30 12:27 Steve Sutton + + * class_template.inc: update no br clear all + +2004-11-19 13:46 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-19 09:48 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-19 09:40 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-19 09:25 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-19 09:21 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-19 09:09 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-19 09:04 Steve Sutton + + * class_template.inc: updates that are much needed + +2004-11-16 10:02 Steve Sutton + + * class_template.inc: update adding # to not good in url + +2004-11-10 13:56 Steve Sutton + + * class_template.inc: some corrections on spelling errors + +2004-11-10 13:42 Steve Sutton + + * class_db.inc: some updates on the coding standard and putting the + category and listing seprate also in category id and listing + class + +2004-11-10 13:38 Steve Sutton + + * class_db.inc, class_template.inc: some updates on the coding + standard and putting the category and listing seprate also in + category id and listing class + +2004-10-05 14:03 Steve Sutton + + * class_template.inc: changes to the url's for search engines + +2004-09-30 09:55 Steve Sutton + + * class_template.inc: updates to get_category + +2004-09-30 09:37 Steve Sutton + + * class_template.inc: update + +2004-09-30 08:14 Steve Sutton + + * class_template.inc: document functions and rename to one style of + naming + +2004-09-17 12:08 Steve Sutton + + * class_template.inc: add active check + +2004-08-02 13:11 Steve Sutton + + * class_template.inc: Some edit on formating code and image upload + +2004-07-12 10:53 Steve Sutton + + * class_template.inc: add title tags to images using name of item + or category of page + +2004-07-07 11:47 Steve Sutton + + * class_template.inc: hello there people :) + +2004-07-07 11:26 Steve Sutton + + * class_template.inc: hello there people :) + +2004-07-06 14:42 Steve Sutton + + * class_template.inc: work updates + +2004-07-06 14:17 Steve Sutton + + * class_template.inc: update for doc and parser functions + +2004-07-02 16:18 Steve Sutton + + * class_template.inc: set_img function additions + +2004-07-02 16:01 Steve Sutton + + * class_template.inc: use file as string + +2004-07-01 12:17 Steve Sutton + + * class_template.inc: update + +2004-06-30 09:53 Steve Sutton + + * class_template.inc: rebmove p and replace href + +2004-06-29 16:38 Steve Sutton + + * class_template.inc: update + +2004-06-25 15:28 Steve Sutton + + * class_template.inc: update top and top2 + +2004-06-14 12:50 Steve Sutton + + * class_template.inc: update remove michaywe stuff + +2004-04-29 10:16 Steve Sutton + + * class_template.inc: update + +2004-04-27 16:04 Steve Sutton + + * glm-Events-2-0.phtml, glm-Events-calendar-2-0.phtml, + glm-Newsletter-2-0.phtml: adding glm outputp files + +2004-03-03 10:52 Steve Sutton + + * class_db.inc: update db_exec part + +2003-11-26 16:04 Steve Sutton + + * class_template.inc: cool mods to image layout with no tables + +2003-10-09 08:02 Steve Sutton + + * class_contact_form.inc: update to GLOBALS + +2003-08-27 12:48 Steve Sutton + + * class_auth.inc, class_contact_form.inc, class_db.inc, + class_template.inc, class_toolbox.inc: update on indenting + +2003-08-08 15:13 Steve Sutton + + * class_contact_form.inc, class_db.inc, class_search.inc, + class_template.inc: update to use phpdocs + +2003-08-08 15:08 Steve Sutton + + * class_auth.inc: change to phpdoc + +2003-08-08 15:05 Steve Sutton + + * class_auth.inc: adding Id string + +2003-08-08 15:03 Steve Sutton + + * class_auth.inc: auth class added + +2003-07-30 10:22 Steve Sutton + + * class_contact_form.inc, class_db.inc: GLM update + +2003-07-30 07:59 Steve Sutton + + * class_template.inc: adding new set_address function + +2003-07-28 16:24 Steve Sutton + + * class_template.inc: add fax + +2003-07-28 16:23 Steve Sutton + + * class_template.inc: address update + +2003-07-09 13:43 Steve Sutton + + * class_toolbox.inc: use GLM_SERVER_ID + +2003-07-03 14:05 Steve Sutton + + * class_contact_form.inc: update the from + +2003-07-03 08:27 Steve Sutton + + * class_template.inc: upgrades + +2003-07-02 10:20 Steve Sutton + + * class_template.inc: using URL_BASE for nav links because of + secure elements + +2003-07-01 08:12 Steve Sutton + + * class_template.inc: better way to break with images and text + +2003-06-26 10:20 Steve Sutton + + * class_contact_form.inc: making req fields work and setting + default mail_ok to Yes and req email + +2003-06-25 12:37 Steve Sutton + + * class_template.inc: corrections on class template file + +2003-06-16 08:14 Steve Sutton + + * class_template.inc: changing the set date function on the fields + that were strstr I changed all but file and image to be exact + matches of the string so there wouldn't be any messups with + contact and contactname or name and urlname. + +2003-06-11 14:15 Steve Sutton + + * class_template.inc: updates + +2003-04-29 08:37 Steve Sutton + + * class_search.inc: search update on queries + +2003-04-24 10:30 Steve Sutton + + * class_template.inc: add space between File and Download + +2003-03-18 12:06 Steve Sutton + + * class_search.inc, class_db.inc: Adding Id + +2003-03-18 12:06 Steve Sutton + + * class_toolbox.inc: Adding ID + +2003-03-18 12:04 Steve Sutton + + * class_contact_form.inc: adding Id + +2003-03-18 12:03 Steve Sutton + + * class_template.inc: test + +2003-03-18 12:00 Steve Sutton + + * class_template.inc: Adding Id and testing gvim cvs + +2003-03-18 08:48 Steve Sutton + + * class_contact_form.inc, class_search.inc, class_template.inc: + udpates (reindented and removed dos ending) + +2003-03-13 14:25 Steve Sutton + + * class_template.inc: removed unneeded br's + +2003-03-10 08:08 Steve Sutton + + * class_template.inc: correction on the use of DB class + +2003-02-28 16:08 Steve Sutton + + * class_template.inc: remove the imagename + +2003-02-20 15:46 Steve Sutton + + * class_template.inc: modes to template class removed d_close and + connect calls as these are taken care of already and bold the + title + +2003-02-20 11:04 Steve Sutton + + * class_contact_form.inc, class_toolbox.inc: adding contact_form + class + +2003-02-19 11:07 Steve Sutton + + * class_template.inc: updates + +2003-02-03 16:28 Steve Sutton + + * class_search.inc, class_template.inc: changes + +2003-01-14 13:16 Steve Sutton + + * class_template.inc: update the script to put in the html help + page + +2003-01-14 13:03 Steve Sutton + + * class_db.inc: updating the class_db with the ability to keep open + the database connection for all db_auto functions + +2003-01-10 09:20 Steve Sutton + + * class_template.inc: update of breakage on the description parts + for the items + +2003-01-02 10:09 Steve Sutton + + * class_db.inc, class_search.inc, class_template.inc: adding + classes to setup + diff --git a/classes/class_auth.inc b/classes/class_auth.inc new file mode 100755 index 0000000..2ad530d --- /dev/null +++ b/classes/class_auth.inc @@ -0,0 +1,404 @@ + + * $Id: class_auth.inc,v 1.1.1.1 2006/04/25 18:14:59 cscott Exp $ + * Authentication class. Enables different levels + * of authentication for users with one master(admin) user + * able to set up accounts for others and permissions based on different + * levels. Can be modified to use more levels. This is set up with four levels. + *

+ * @package Toolbox Library + * @subpackage Authentication Library + * @filesource + * +*/ +/** +* Require DocBlock +*/ +require_once( BASE.'classes/class_db.inc' ); +/** + * authuser + *

+ * $Id: class_auth.inc,v 1.1.1.1 2006/04/25 18:14:59 cscott Exp $ +* Authentication class. Enables different levels + * of authentication for users with one master(admin) user + * able to set up accounts for others and permissions based on different + * levels. Can be modified to use more levels. This is set up with four levels. + *

+ * Permissions are checked using bitwise operators so you can have custom permission + * levels per user. Thus an admin user with perms set to 15 would have all levels.

+ * CREATE TABLE authuser ( + * id SERIAL, + * username text, + * password text, + * perms int + * ); + * GRANT ALL ON authuser TO nobody; + * GRANT ALL ON authuser_id_seq TO nobody; + * + * + * @package Toolbox Library + * @subpackage Authentication Library + * @author $Author: cscott $ + * @copyright 2005 + * @version $Revision: 1.1.1.1 $ + * @since $Date: 2006/04/25 18:14:59 $ + * + */ + +class authuser { + /** @var auth session variable which holds user and permission data */ + var $auth; + /** @var page - The present page your on */ + var $page; + /** @var conn - db connection result identifier */ + var $conn; + /** @var usertable - db table which holds the user data */ + var $usertable; + /** @var constraint - User constrain for queries */ + var $constraint; + /** @var cookie_name The name of the cookie var */ + var $cookie_name; + /** @var cookie_exp The expire time (Seconds) for the cookie */ + var $cookie_exp; + /** @var cookie_domain The domain of the cookie */ + var $cookie_domain; + /** @var object DB database object */ + var $DB; + /** @var rember bool if to create coockies for storing sessions */ + var $remember; + /** @var $auth_data array to keep user info */ + var $auth_data; + + /** authuser + Class construtor. Set up the default variables for + the class. + */ + function authuser() + { + $this->DB =& new GLM_DB(); + $this->auth['perms'] = 1; + $this->page = $GLOBALS['PHP_SELF']; + $this->usertable = "authuser"; + $this->cookie_name = "GLM_AUTH"; + $this->cookie_exp = "2592000"; + $this->cookie_domain = URL_BASE; + $this->fill_data(); + } + + + /** + * fill_data: + * + * @return mixed + * @access public + **/ + function fill_data() + { + if( $_SESSION['auth'] ) + { + $this->auth_data =& $_SESSION['auth']; + return( $this->auth_data ); + } + else + { + return( false ); + } + } + + /** verify + Checks the user login. Checks the users IP address to be sure + it is not hijacked. + @param level - If a level is giving and the user doesn't match the + level then the page is not shown. + @return void + */ + + + /** + * verify: verify the user + * + *

check the table in $this->usertable for user matching + * password and username and tells if passed or not + *

+ * @param $NULL: + * + * @return boolean + * @access public + **/ + function verify($level=NULL) + { + global $username,$password,$perms,$auth,$LOGOUT,$REMOTE_ADDR; + //$dbd = $this->connect(); + /* Check to see if user is logging out */ + if($LOGOUT) + { + $this->logout(); + } + + /* Check to see if GLM-AUTH cookie is set then check if + $auth is registered in session. + */ + if($_COOKIE[$this->cookie_name]) + { + $auth = unserialize(stripslashes($_COOKIE[$this->cookie_name])); + // double check the username and password only if the time is greater than checktime + $query = "SELECT password + FROM ".$this->usertable." + WHERE id = ".$auth['userid']; + + if(!$res = $this->DB->db_exec($query)) + { + echo "failed ->".$query; + } + $row = pg_fetch_array($res,0); + $pCheck = md5($row['password']); + if($pCheck != $auth['password']) + { + session_start(); + session_destroy(); + $p = session_get_cookie_params(); + setcookie(session_name(), "", 0, $p["path"], $p["domain"]); + setcookie($this->cookie_name,"",0,"/"); + if(!$this->login()) + { + $this->failed(); + } + } + + $this->auth = $auth; + session_register("auth"); + setcookie($this->cookie_name,"",time() - 3600,$this->cookie_domain); + $sessenc = serialize($auth); + setcookie($this->cookie_name,$sessenc,time()+(integer)$this->cookie_exp,$this->cookie_domain); + } + elseif(!session_is_registered("auth")) + { + return( false ); + } + else + { + if($auth['siteid'] != $this->cookie_name) + { + return( false ); + } + } + + + + /* Refresh the perms */ + $oldperms = $this->auth['perms']; + $qs = "SELECT perms + FROM ".$this->usertable." + WHERE id = ".$auth['userid']; + + if(!$res = pg_exec($this->dbd,$qs)) + { + echo "failed ->".$qs; + } + $this->auth['perms'] = pg_result($res,0,'perms'); + if($level) + { + if($this->auth['perms'] & $level) + { + //echo "GOOD"; + } + else + { + $this->failed("You cannot see this page(Not enough Permissions)"); + } + } + return( true ); + } + + function sqlBypass( $text ) + { + $text = eregi_replace('[();\'\"]','',$text); + return( $text ); + } + + /** + * login + * + *

User login funtcion. Now this will check for a cookie + * which can be set if the user selects remember my login.

+ * @return boolean - True if login in successful False not. + */ + function login() + { + global $auth,$remember_login,$bus_name; + + if( isset( $_POST['username'] ) && $_POST['username'] != "" ) + { + $qs = "SELECT * + FROM ".$this->usertable." + WHERE username = '".$this->sqlBypass($_POST['username'])."' + AND password = '".$this->sqlBypass($_POST['password'])."';"; + + if(!$res = $this->DB->db_exec($qs)) + { + echo $qs; + } + if(pg_numrows($res)>0) + { + $row = pg_fetch_array($res,0,PGSQL_ASSOC); + $this->auth['uname'] = $row['fname'].' '.$row['lname']; + $this->auth['perms'] = $row['perms']; + $this->auth['ip'] = $_SERVER['REMOTE_ADDR']; + $this->auth['userid'] = $row['id']; + $this->auth['siteid'] = $this->cookie_name; + $_SESSION['auth'] =& $this->auth; + if( isset( $_POST['remember_login'] ) && $_POST['remember_login'] == "t" ) + { + $sessenc = serialize($auth); + setcookie($this->cookie_name,$sessenc,time()+(integer)$this->cookie_exp,$this->cookie_domain); + } + return(true); + } + else + { + session_register("auth"); + $auth['failed'] = true; + return(false); + } + } + else + { + session_register("auth"); + $auth['failed'] = true; + return(false); + } + } + + + /** + * is_admin: + * + *

Tells if user is an admin user or not

+ * + * @return boolean + * @access public + **/ + function is_admin() + { + if( $_SESSION['auth']['admin'] == 't' ) + { + return( true ); + } + else + { + return( false ); + } + } + + /** login_screen + * + *

Outputs the login screen

+ * + * @return void + * @access public + */ + function login_screen() + { + $out = '
+ + + + '; + if( $this->remember == true ) + { + $out .= ' + + '; + } + $out .= ' + + + + + + + + + + + + + + +
Forgot your password Click here.
Remember My Login!
 
Username:auth["uname"]; + } + $out .= '" size=32 maxlength=32>
Password:
 
+

'; + if ( isset( $_GET['username']) ) + { + $out .= ' +

+ + + + +
Either your username or your password + are invalid.
+ Please try again!
'; + } + $out .= ' +

+ '; + return( $out ); + } + + /** logout + Ends the current session and distroys any cookies that were + created + @return void + * @access public + */ + function logout() + { + session_start(); + session_destroy(); + $p = session_get_cookie_params(); + setcookie(session_name(), "", 0, $p["path"], $p["domain"]); + setcookie($this->cookie_name,"",0,"/"); + header("Location: index.phtml"); + exit(); + } + + /** failed + Stop the script from going any further. + @param reply - string to show user if any. + @return void + * @access public + */ + function failed($reply=NULL) + { + if(isset($reply)) + { + die(''.$reply.''); + } + else + { + exit; + } + } +} + +?> diff --git a/classes/class_calendar.inc b/classes/class_calendar.inc new file mode 100755 index 0000000..4d5bc9a --- /dev/null +++ b/classes/class_calendar.inc @@ -0,0 +1,228 @@ +month = date("m"); + $this->year = date("Y"); + $this->size = 2; + $this->href = $GLOBALS["PHP_SELF"].'?month='; + $this->href2 = $GLOBALS["PHP_SELF"]; + $this->FT1 = ''; + $this->FT2 = '

'; + $this->THCLR = "#FFFAF0"; // Weekday Title color + $this->TDBS = "#e0e0e0"; // blank space color + $this->NOTES = "#FFFA00"; // not used + $this->CALT = ""; // Table title bar color + $this->TBLCR = ""; // Table title bar color + $this->starting = date("m-d-Y",mktime(23,59,59,$month,1,$year)); + $this->output_string = ""; + } + + /** + * build_calendar + * + * Build the calendar :) + * + * @return string Calendar output + * @access public + **/ + function build_calendar() + { + + // Change to month/year to display + if( !isset( $this->month ) ) + $this->month = date('m'); + if( !isset( $this->year ) ) + $this->year = date('Y'); + + $next = $this->month +1; + $next_year = $this->year; + $prev = $this->month -1; + $prev_year = $this->year; + + if( $next == 13 ) + { + $next = 1; + $next_year++; + } + + if( $next == 0 ) + { + $next = 12; + $next_year--; + } + + if( $prev == 13 ) + { + $prev = 1; + $prev_year++; + } + + if( $prev == 0 ) + { + $prev = 12; + $prev_year--; + } + + $prev_month = "href.$prev."&year=".$prev_year."\"><-\n"; + $next_month = "href.$next."&year=".$next_year."\">->\n"; + + + // How to display the titles on the header of the calendar + if( $this->size == 2 ) + { + $height = 50; + $width = 60; + $table_width = 500 ; + $week_titles = array + ( + 0 => "Sunday", + 1 => "Monday", + 2 => "Tuesday", + 3 => "Wednesday", + 4 => "Thursday", + 5 => "Friday", + 6 => "Saturday" + ); + } + if( $this->size == 1 ) + { + $height = 1; + $width = 1; + $table_width = 100; + $week_titles = array + ( + 0 => "S", + 1 => "M", + 2 => "T", + 3 => "W", + 4 => "T", + 5 => "F", + 6 => "S" + ); + } + + // determine total number of days in a month + $totaldays = 0; + while ( checkdate( $this->month, $totaldays + 1, $this->year ) ) + $totaldays++; + + // build table + $this->output_string .= "\n"; + $calendar = date( "F", mktime( 0, 0, 0, $this->month + 1, 0, $this->year ) ); + $this->output_string .= "$prev_month$next_month\n"; + $this->output_string .= "\n"; + //$this->output_string ''; + + for ( $x = 0; $x < 7; $x++ ) + { + $this->output_string .= "\n"; + } + $this->output_string .= "\n"; + // ensure that a number of blanks are put in so that the first day of the month + // lines up with the proper day of the week + $offset = date( "w", mktime( 0, 0, 0, $this->month, 0, $this->year ) ) + 1; + $this->output_string .= "\n"; + + if ( $offset > 0 && $offset != 7 ) + $this->output_string .= str_repeat( "\n",$offset); + if( $offset == 7 ) + $offset = 0; + // start entering in the information + for ( $day = 1; $day <= $totaldays; $day++ ) { + $this->output_string .= "\n"; + $offset++; + + // if we're on the last day of the week, wrap to the other side + if ( $offset > 6 ) + { + $offset = 0; + $this->output_string .= "\n"; + if ( $day < $totaldays ) + $this->output_string .= ''; + } + } + + // fill in the remaining spaces for the end of the month, just to make it look + // pretty + if ( $offset > 0 ) + $offset = 7 - $offset; + if ( $offset > 0 ) + $this->output_string .= str_repeat( "\n", $offset ); + + // end the table + $this->output_string .= "
".$calendar." ".$this->year."
'.$THFT.'Things to Do".$week_titles[$x]."
$FT1 $FT1"; + /* + if(data( $this->month, $day, $this->year )){ + $this->output_string .= ""; + } + */ + $this->output_string .= $day; + /* + if(data( $this->month, $day, $this->year )){ + $this->output_string .= ""; + } + */ + $this->output_string .= ""; + $this->output_string .= "
\n"; + if( $size == 2 ) + { + //get_data( $this->month, $day, $this->year ); + } + $this->output_string .= "
$FT1 
\n"; + } + + /** + * show_calendar: display the calendar + * @param integer $m: month + * @param integer $y: year + * + * @return void + * @access public + **/ + function show_calendar($m,$y) + { + $this->month = $m; + $this->year = $y; + $this->build_calendar(); + echo $this->output_string; + } +} +?> diff --git a/classes/class_contact_form.inc b/classes/class_contact_form.inc new file mode 100755 index 0000000..aeaab92 --- /dev/null +++ b/classes/class_contact_form.inc @@ -0,0 +1,956 @@ + + * creates a contact form with an updatable fields array. + * Don't set values in the var part only declare them. If you set them their they will be like + * defines and cannot be changed. Setup in constructor function then there's no problem. + *

+ * + * @package Toolbox + * @subpackage Forms + * @tutorial Toolbox/Forms/contact_form.cls + * @filesource +*/ +/** +* Include DocBlock +*/ +include_once("class_db.inc"); +/** +* Include DocBlock +*/ +include_once("class_toolbox.inc"); +/** + * contact_form + *

+ * creates a contact form with an updatable fields array. + * Don't set values in the var part only declare them. If you set them their they will be like + * defines and cannot be changed. Setup in constructor function then there's no problem. + *

+ * + * @package Toolbox + * @subpackage Forms + * @version $id$ + * @copyright 2005 Gaslight Media + * @author Steve Sutton + * @license + */ +class contact_form { + /** + * DB_fields + * + * array for the needed fields + * @var mixed + * @access public + */ + var $DB_fields; + /** + * CDB + * + * database object + * @var mixed + * @access public + */ + var $CDB; + /** + * email + * the email address. if blank will not send out + * + * @var mixed + * @access public + */ + var $email; + /** + * table_name + * database table name. + * + * @var mixed + * @access public + */ + var $table_name; + /** + * styleLabel + * css style for the label cell + * + * @var mixed + * @access public + */ + var $styleLabel; + /** + * fieldcell + * css style class for fieldcell + * + * @var mixed + * @access public + */ + var $fieldcell; + /** + * contact_db + * weather or not they have database + * + * @var mixed + * @access public + */ + var $contact_db; + /** + * instructioncell + * style for the instruction cell + * + * @var mixed + * @access public + */ + var $instructioncell; + /** + * subject + * Subject line of the E-mail + * + * @var mixed + * @access public + */ + var $subject; + /** + * submit_value + * value for the submit button on form + * + * @var mixed + * @access public + */ + var $submit_value; + /** + * subject + * the subject line for the email + * + * @var mixed + * @access public + */ + var $subject; + /** + * not_interested + * + * @var mixed + * @access public + */ + var $not_interested; + /** + * contact_form + * + * @access public + * @return void + */ + function contact_form() + { + $this->CDB =& new GLM_DB(); // creates DB object + $this->set_DB_fields(); // set up the DB_fields array (configuration) + $this->set_int_array(); // interest array + $this->email = OWNER_EMAIL; // email address for mail function + $this->table_name = 'contact'; // the contact table + $this->styleLabel = "labelcell"; // css style for the labelcell + $this->fieldcell = "fieldcell"; // css style for the field input + $this->instructioncell = "instructioncell"; // css style for the field input + $this->submit_value = 'Submit Form'; + $this->subject = 'Contact Request from website '.SITENAME; + $this->contact_db = 1; // if they have contact database or not + $this->get_form(); // the whole thing runs upon class creation + } + + /** + * get_form: one function to rule them all + * + * @return void + * @access public + **/ + function get_form() + { + if( $_POST ) + { + if( $error = $this->form_process() ) + { + echo '
Warning: The form was not sent, please review the errors below.
'; + echo $this->display_form( $error ); + } + } + else + { + echo $this->display_form(); + } + } + + /** + * set_DB_fields: + * + * @return void + * @access public + **/ + function set_DB_fields() + { + $Zinst = 'Not a valid ZIP Code'; + $Einst = 'You need to enter a valid email address'; + $DB_fields[]=array('name'=>'fname', 'title'=>'First Name:', 'type' => 'text'); + $DB_fields[]=array('name'=>'lname', 'title'=>'Last Name:', 'type' => 'text'); + $DB_fields[]=array('name'=>'address', 'title'=>'Address 1:', 'type' => 'text'); + $DB_fields[]=array('name'=>'address2', 'title'=>'Address 2:', 'type' => 'text'); + $DB_fields[]=array('name'=>'city', 'title'=>'City:', 'type' => 'text'); + $DB_fields[]=array('name'=>'state', 'title'=> 'State:', 'type' => 'state'); + $DB_fields[]=array('name'=>'zip', 'title' => 'ZIP:', 'type' => 'text', 'vtype'=>'zip', 'inst'=>$Zinst); + $DB_fields[]=array('name'=>'email', 'title' => 'Email:', 'type' => 'text', 'vtype'=>'email', 'req'=>1, 'inst'=>$Einst); + $DB_fields[]=array('name'=>'verify_email','title' => 'Verify Email:','type' => 'text', 'vtype'=>'email', 'req'=>1, 'inst'=>$Einst); + $DB_fields[]=array('name'=>'phone', 'title' => 'Phone:', 'type' => 'text', 'vtype'=>'phone'); + $DB_fields[]=array('name'=>'fax', 'title' => 'Fax:', 'type' => 'text', 'vtype'=>'phone'); + $DB_fields[]=array('name'=>'comments', 'title' =>'Comments:', 'type' => 'desc'); + $DB_fields[]=array('name'=>'mail_ok', 'title' => 'You can send me email:','type' => 'radio'); + $DB_fields[]=array('name'=>'interest', 'title' => 'Interest:','type' => 'interest'); + $this->DB_fields = &$DB_fields; + } + + /** + * set_int_array: + * + * @return void + * @access public + **/ + function set_int_array() + { + $query = "select * from contact_inq order by pos;"; + if( $data = $this->CDB->db_auto_get_data( $query ) ) + { + foreach( $data as $key => $value ) + { + $int_array[$value['id']] = $value['header']; + } + $not_interested = 1; + } + else + { + $not_interested = 0; + $int_array = array(); + } + $this->int_array = $int_array; + $this->interested = $not_interested; + } + + /** + * interest: + * @param $field: + * + * @return void + * @access public + **/ + function interest($field) + { + foreach( $this->int_array as $key => $value ) + { + $out .= '

'; +$page_content = $toolbox->get_page( 0 ); +$cat_list = $toolbox->get_cat_list( $_GET['catid'] ); +$cat_head_image = $toolbox->kiosk_sections[ $_GET['catid'] ]; +if( !$cat_head_image ) +{ + $cat_head_image = $toolbox->kiosk_sections[ $toolbox->get_parent( $_GET['catid'] ) ]; +} +if( $_GET['catid'] == 2 ) +{ + $flights =& new glm_flight( &$toolbox ); +} +?> + + + +Pellston Airport: Area Lodging + + + + + + +
+
+ +
+
+ lodging (2K) + +
+ +
+ get_flight_data(); + echo '
+

Arrivals

'; + echo $flights->build_arrivals(); + echo ' +

Departures

'; + echo $flights->build_departures(); + echo $flights->last_updated; + echo '
'; + } + ?> + '; + echo $page_content; + echo '
'; + } + echo $cat_list; + ?> + +
+ nav-inside (19K) + + + + diff --git a/list.php b/list.php new file mode 100755 index 0000000..450e0ef --- /dev/null +++ b/list.php @@ -0,0 +1,86 @@ +memb_names[$_GET['catid']]; +$page_city = ( $_GET['city'] && $_GET['city'] != 'Transportation' ) ? $_GET['city']: ( $_GET['city'] != 'Transportation' ) ? $toolbox->get_memb_type($_GET['memb_type']): ''; +$page_letters = $toolbox->member_first_letters(); +$member_list = $toolbox->get_member_list(); +?> + + + +Pellston Airport: Area Lodging + + + + + + + + + + + + + + + + +
+
+
+
+
+
+ +
+
+ print (2K) + paginate; + ?> + +
+ + +
+ + +
+
+ nav-inside (19K) + +
+
+ + +
+ diff --git a/map.php b/map.php new file mode 100755 index 0000000..948f337 --- /dev/null +++ b/map.php @@ -0,0 +1,10 @@ + + Flight Status + About Us + Services + Area Lodging + Transportation + Dining + Area Info + Attractions + diff --git a/maps/gmaps_class.php b/maps/gmaps_class.php new file mode 100755 index 0000000..4bd01fa --- /dev/null +++ b/maps/gmaps_class.php @@ -0,0 +1,835 @@ +'ABQIAAAAuiRQzMTsN0Dr8ZW3DyeoOxQUAAYHl_Rab4aEI5hGyHxlqR-rKxRJNm_GQ5pNCXpN2sZZBVArhqx_zA', + "localhost"=>"ABQIAAAAuiRQzMTsN0Dr8ZW3DyeoOxSXUhf0nsUDEcA_q93t7h_hdmW3lhSMOOJ0D1dTEVHAWL3FeGfsvlwvSw", + 'www.mackinawcity.com'=>'ABQIAAAAuiRQzMTsN0Dr8ZW3DyeoOxRyqVydNW_plr3E5jOgvBujAhJijhTN6hJ2aBb-BV18m45ofrSymYRTqg', + 'kiosk.pellstonairport.com'=>'ABQIAAAAuiRQzMTsN0Dr8ZW3DyeoOxR5OhykupH9v1Cn6AE_hrLtjtCrbhQxozIdKt_0ZKntYjoD7_zncKgpwQ'); + + $retval = $GKey[$pPath]; + + if($retval == '') + { + die('You\'ll need to set a Google Maps Key for each of your website directories, you can set it in the "gmaps_class.php" file in your website\'s include directory. - You can always get more keys at: http://www.google.com/apis/maps/signup.html You requested a key for: '.$pPath.'
These are the keys you currently have registered:
'.print_r($GKey).'
'); + } + return $retval; +} + +class GLatLng{ + var $lat = 0; + var $lon = 0; + var $unbounded = 0; + // unbounded param is unused currently + + function GLatLng($lat='',$lon='',$unbounded='') + { + $this->lat=$lat; + $this->lon=$lon; + } + + function display() + { + $retval = 'new GLatLng('.$this->lat.','.$this->lon.')'; + return $retval; + } +} + +class GPoint{ + var $X = 0; + var $Y = 0; + + function GPoint($pX, $pY) + { + $this->setXY($pX, $pY); + } + + + function setX($pX) + { + $this->X = $pX; + } + + function setY($pY) + { + $this->Y = $pY; + } + + //convenience method that calls the other two "set" methods. + function setXY($pX, $pY) + { + $this->setX($pX); + $this->setY($pY); + } + + function display() + { + $retval = 'new GPoint('.$this->X.','.$this->Y.')'; + return $retval; + } +} + +class GPointAddr extends GPoint +{ + var $addr = ''; + var $stdAddr = ''; + var $score = 0; + var $precision = ''; + function GPointAddr($pAddr) + { + //$this->addr = trim($pAddr); + + $url = 'http://api.local.yahoo.com/MapsService/V1/geocode?appid='.get_ykey().'&street='.urlencode($pAddr['address']); + $url .= '&city='.urlencode($pAddr['city']); + $url .= '&state='.urlencode($pAddr['state']); + $url .= '&zip='.urlencode($pAddr['zip']); + + $str = file_get_contents($url); + + preg_match('/precision=\"([^"]*)\"/i',$str,$precision); + + //print_r($precision); + $this->precision = $precision[1]; + $result = explode('', $str); + $result = explode('',$result[1]); + $this->Y = $result[0]; + $result = explode('', $str); + $result = explode('',$result[1]); + $this->X = $result[0]; + } + +} + +class GPolyline +{ + var $points = array(); + var $color = '#6666cc'; + var $weight = 1; + var $opacity = 1.0; + var $name = 'polyline'; + //var $showArrow = true; + + function GPolyline() + { + $this->name = 'polyline'.mt_rand(0,1000000000); + } + function pushPoint($pPoint) + { + array_push($this->points, $pPoint); + } + + function popPoint() + { + $retval = ''; + $retval = array_pop($this->points); + } + + function reversePoints() + { + array_reverse($this->points); + } + + function display() + { + $retval = ''; + $retval .= 'var points = [];'."\n"; + + /* Eventually will show arrowheads, but this isn't ready yet. + if($this->showArrow == true and count($this->points)>=2) + { + $last = $this->points[count($this->points)-2]; + $point = $this->points[count($this->points)-1]; + $lastX = $last->X+360; + $lastY = $last->Y+360; + $currX = $point->X+360; + $currY = $point->Y+360; + $diffY = $currY - $lastY; + $diffX = $currX - $lastX; + $slope = $diffY/$diffX; + $offset = $currY - ($slope*$currX); + + $X = sqrt($diffX*$diffX+$diffY*$diffY)/10; + + $X1 = (.025 + $X-360); + $Y1 = $X1 * (1/$slope)+$offset; + + $X2 = (.025 + $X-360); + $Y2 = $X2 * (1/$slope)+$offset; + + $point1 = new GPoint($X1, $Y1); + $point2 = new GPoint($X2, $Y2); + + $this->pushPoint($point1); + $this->pushPoint($point2); + $this->pushPoint($point); + } + */ + while(count($this->points)) + { + @$last = $point; + @$point = array_pop($this->points); + @$retval .= 'points.push('.$point->display().');'."\n"; + } + $retval .= 'var '.$this->name.' = new GPolyline(points,\''.$this->color.'\','.$this->weight.','.$this->opacity.');'."\n"; + return $retval; + } + +} + +class GSize{ + var $height = 0; + var $width = 0; + var $name = 'size'; + function GSize($pHeight, $pWidth) + { + $this->height = $pHeight; + $this->width = $pWidth; + $this->name = 'size'.mt_rand(0,1000000000); + } + function display() + { + $retval = 'new GSize('.$this->height.','.$this->width.')'; + return $retval; + } +} + +class GIcon{ + var $name = 'icon'; + var $image = ''; + var $shadow = ''; + var $iconSize; + var $iconAnchor; + var $shadowSize; + var $shadowAnchor; + var $infoWindowAnchor; + var $infoShadowAnchor; + function GIcon() + { + $this->name = 'icon'.mt_rand(0,1000000000); + $this->image = 'http://www.andrewtheken.com/images/marker.png'; + $this->shadow = 'http://www.andrewtheken.com/images/shadow.png'; + $this->iconSize = new GSize(16,23); + $this->iconAnchor = new GPoint(7,23); + $this->shadowSize = new GSize(27,27); + $this->shadowAnchor = new GPoint(8,14); + $this->infoWindowAnchor = new GPoint(8,0); + $this->infoShadowAnchor = new GPoint(8,0); + } + function display() + { + $retval = ''; + + $retval .= 'var '.$this->name.' = new GIcon();'; + $retval .= $this->name.'.image = "'.$this->image.'";'; + $retval .= $this->name.'.shadow = "'.$this->shadow.'";'; + $retval .= $this->name.'.iconSize = '.$this->iconSize->display().';'; + $retval .= $this->name.'.iconAnchor = '.$this->iconAnchor->display().';'; + $retval .= $this->name.'.shadowSize = '.$this->shadowSize->display().';'; + $retval .= $this->name.'.shadowAnchor = '.$this->shadowAnchor->display().';'; + $retval .= $this->name.'.infoWindowAnchor ='.$this->infoWindowAnchor->display().';'; + $retval .= $this->name.'.infoShadowAnchor = '.$this->infoShadowAnchor->display().';'; + + return $retval; + } +} + +class GIconAuto{ + var $name = 'icon'; + var $iconClass = ''; + var $shadow = ''; + var $iconSize; + var $iconAnchor; + var $shadowSize; + var $shadowAnchor; + var $infoWindowAnchor; + var $infoShadowAnchor; + + /** + * @param graphic - image to use + * @param shadow - optional shadow image to use + * @param id - optional unique id to use + **/ + + function GIconAuto($iconClass,$id='') + { + if($id=='') // if we don't have an ID passed in, then we will use a random number for uniqueness + { + $this->name = 'icon'.mt_rand(0,1000000000); + }else + { + $this->name = 'icon'.$id; + } + $this->iconClass= $iconClass; + } + + function display() + { + $retval = "\n/* icon ".$this->name." settings */\n"; + + $retval .= "\t".'var '.$this->name.' = new GIcon(iconClass'.$this->iconClass.');'."\n"; + //$retval .= "\t".$this->name.'.image = "'.$this->image.'";'."\n"; + //$retval .= "\t".$this->name.'.shadow = "'.$this->shadow.'";'."\n"; + //$retval .= "\t".$this->name.'.iconSize = '.$this->iconSize->display().';'."\n"; + //$retval .= "\t".$this->name.'.iconAnchor = '.$this->iconAnchor->display().';'."\n"; + //$retval .= "\t".$this->name.'.shadowSize = '.$this->shadowSize->display().';'."\n"; + //$retval .= "\t".$this->name.'.shadowAnchor = '.$this->shadowAnchor->display().';'."\n"; + //$retval .= "\t".$this->name.'.infoWindowAnchor ='.$this->infoWindowAnchor->display().';'."\n"; + //$retval .= "\t".$this->name.'.infoShadowAnchor = '.$this->infoShadowAnchor->display().';'."\n"; + $retval .= "/* end of icon ".$this->name." */\n"; + return $retval; + } + +} + +class GIconClass{ + var $name = 'icon'; + var $image = ''; + var $shadow = ''; + var $iconSize; + var $iconAnchor; + var $shadowSize; + var $shadowAnchor; + var $infoWindowAnchor; + var $infoShadowAnchor; + + /** + * @param graphic - image to use + * @param shadow - optional shadow image to use + * @param id - optional unique id to use + **/ + + function GIconClass($graphic,$shadow='',$id='') + { + if($id=='') // if we don't have an ID passed in, then we will use a random number for uniqueness + { + $this->name = 'icon'.mt_rand(0,1000000000); + }else + { + $this->name = 'iconClass'.$id; + } + + $this->image = $graphic; + $this->shadow = $shadow; + + $dimensions['g'] = getimagesize($graphic); + + if($shadow!='') + { + $dimensions['s'] = getimagesize($shadow); + $this->shadowSize = new GSize($dimensions['s'][0],$dimensions['s'][1]); + $this->shadowAnchor = new GPoint($this->shadowSize->width/2,$this->shadowSize->height/2); + //$this->shadowAnchor = new GPoint(999,$this->shadowSize->height/2); + }else + { + $this->shadowSize = new GSize(0,10); + $this->shadowAnchor = new GPoint(0,10); + } + $this->iconSize = new GSize($dimensions['g'][0],$dimensions['g'][1]); + $this->iconAnchor = new GPoint($this->iconSize->width/2,$this->iconSize->height/2); + + $this->infoWindowAnchor = new GPoint($this->iconSize->width/2,0); + $this->infoShadowAnchor = $this->infoWindowAnchor; + + } + + function display() + { + $retval = "\n/* icon ".$this->name." settings */\n"; + + $retval .= "\t".'var '.$this->name.' = new GIcon();'."\n"; + $retval .= "\t".$this->name.'.image = "'.$this->image.'";'."\n"; + $retval .= "\t".$this->name.'.shadow = "'.$this->shadow.'";'."\n"; + $retval .= "\t".$this->name.'.iconSize = '.$this->iconSize->display().';'."\n"; + $retval .= "\t".$this->name.'.iconAnchor = '.$this->iconAnchor->display().';'."\n"; + $retval .= "\t".$this->name.'.shadowSize = '.$this->shadowSize->display().';'."\n"; + $retval .= "\t".$this->name.'.shadowAnchor = '.$this->shadowAnchor->display().';'."\n"; + $retval .= "\t".$this->name.'.infoWindowAnchor ='.$this->infoWindowAnchor->display().';'."\n"; + $retval .= "\t".$this->name.'.infoShadowAnchor = '.$this->infoShadowAnchor->display().';'."\n"; + $retval .= "/* end of icon ".$this->name." */\n"; + return $retval; + } + +} + +class GMarker{ + var $point; + var $html = ''; + var $name = 'marker'; + var $span_name = 'm'; + var $id; + var $window_open = false; + var $icon = null; + + function GMarker($pPoint, $pHtml = '',$id='') + { + $this->point = $pPoint; + $this->html = $pHtml; + // we want to ensure some uniqueness if the end user doesn't + // change the default variable name or we get some very strange results. + if($id == '') // use a random name if we don't have an id num passed in + { + $this->name = 'marker'.mt_rand(0,1000000000); + }else + { + $this->name = 'marker'.$id; + } + $this->span_name=$this->span_name.$id; + $this->id=$id; + } + + function display() + { + $retval = "\n// Begnin marker ".$this->id; + if($this->icon != null) + { + $retval .= $this->icon->display(); + $retval .= 'var '.$this->name.' = new GMarker('.$this->point->display().','.$this->icon->name.');'; + } + else + { + $retval .= 'var '.$this->name.' = new GMarker('.$this->point->display().');'; + } + + //$retval .= "\n\t".'GEvent.addListener('.$this->name.', "click", function() {'."\n"; + //$retval .= "\t\t".$this->name.'.openInfoWindowHtml(\''.$this->html.'\');'."\n\t\t}\n\t);\n"; + //$retval .= "\n\t".'GEvent.addDomListener(document.getElementById("'.$this->span_name.'"), "click", function() {'."\n"; + + //$retval .= "\t\t".'setTimeout("timeoutval()",500);'."\n"; + //$retval .= "\t\t".'if(map.getZoom()!=15){ map.setZoom(15);'."\n";// }'."\n"; + //$retval .= "\t\t".$this->name.'.openInfoWindowHtml(\''.$this->html.'\');'; + /* + $retval .= "var objObject = map; + var aMethods = new Array(); + for(sMember in objObject){ + if(typeof(objObject[sMember]) == 'function') + { + aMethods.push(sMember); + } + } + aMethods.sort(); + document.getElementById(\"tempdebug\").innerHTML=aMethods.join('
');"; + */ + //$retval .= "\n\t\t".'map.recenterOrPanToLatLng(new GLatLng('.$this->point->X.','.$this->point->Y.'));'."\n"; + //$retval .= "\t\t".'map.panTo(new GLatLng('.$this->point->X.','.$this->point->Y.'));'."\n"; + //$retval .= "\n\t\t}\n\t);\n"; + + // toggle display / hide + //$retval .= "\n\t".'GEvent.addDomListener(document.getElementById("r'.$this->id.'"), "click", function() {'."\n"; + //$retval .= "\t\t".'map.removeOverlay('.$this->name.');'."\n\t\t}\n\t);\n"; + // + //$retval .= "\n\t".'GEvent.addDomListener(document.getElementById("d'.$this->id.'"), "click", function() {'."\n"; + //$retval .= "\t\t".'map.addOverlay('.$this->name.');'."\n\t\t}\n\t);\n"; + $retval .= "\n\t\t".'map.setCenter(new GLatLng('.$this->point->X.','.$this->point->Y.'),map.getZoom());'."\n\n"; + $retval .= "// End marker ".$this->id."\n"; + + return $retval; + } +} + +class GBounds{ + + function display() + { + + } +} + +class GMap{ + var $key; + var $apiver = 2; // default api key ver + var $element; + var $types= array('G_MAP_TYPE','G_SATELLITE_TYPE','G_HYBRID_TYPE'); + var $width = '576px'; + var $height = '300px'; + var $drag = true; + var $infoShow = true; + var $mapType = 'G_MAP_TYPE'; + var $controls = array(); + var $overlays = array(); + var $zoom = 16; + var $center; + var $extentMap; + var $stickeyEdges = true; + var $extrajs; + var $iconclasses = array(); + + function GMap($element='map') + { + $server_path = str_replace('\\','/',dirname($_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'])); + //echo $server_path; + if(!strstr($server_path,'?')) + { + // chop off the query string so this thing isn't retarded + //$tvar = explode('?',$server_path); + switch($_SERVER['GLM_SERVER_ID']) + { + case "raleigh": + $server_path = 'localhost'; + break; + case "devsys.gaslightmedia.com": + $server_path = 'devsys.gaslightmedia.com'; + break; + case "ws1.gaslightmedia.com": + $server_path = 'kiosk.pellstonairport.com'; + break; + } + } + switch($_SERVER['GLM_SERVER_ID']) + { + case "raleigh": + $server_path = 'localhost'; + break; + case "devsys.gaslightmedia.com": + $server_path = 'devsys.gaslightmedia.com'; + break; + case "ws1.gaslightmedia.com": + $server_path = 'kiosk.pellstonairport.com'; + break; + } + $this->key = get_gkey($server_path); + + $this->element = $element; + + $this->center = new GPoint(0,0); + $this->extentMap = false; + } + + function addIconClass($pClass) + { + array_push($this->iconclasses,$pClass); + } + + function setStickey($pStickey) + { + $this->stickeyEdges = $pStickey; + } + + function extrajs($js) + { + $this->extrajs=$js; + } + + function setDragable($pDrag = true) + { + $this->drag = $pDrag; + } + + function getDraggable() + { + return $this->drag; + } + + function showInfoWindows($pInfoShow = true) + { + $this->infoShow = $pInfoShow; + } + function getInfoShow() + { + return $this->infoShow; + } + function addControl($pControl) + { + array_push($this->controls, $pControl); + } + function removeControl($pControl) + { + if(in_array(array_keys($this->controls, $pControl->name))){ + $this->controls = array_slice($this->controls, array_search($this->controls, $pControl->name-1, 1, true)); + } + } + function addOverlay($pOverlay) + { + array_push($this->overlays, $pOverlay); + } + function removeOverlay($pOverlay) + { + if(in_array(array_keys($this->overlays, $pOverlay->name))){ + $this->overlays = array_slice($this->overlays, array_search($this->overlays, $pOverlays->name-1, 1, true)); + } + } + function clearOverlays() + { + $this->overlays = array(); + } + + function setMapType($pMapType = 'G_MAP_TYPE') + { + $this->mapType = $pMapType; + } + function getMapType() + { + return $this->mapType; + } + function setZoom($pZoom = 10) + { + $this->zoom = $pZoom; + } + function getZoom() + { + return $this->zoom; + } + function setLatLong($pLatLong) + { + $this->center = $pLatLong; + $this->initialized = true; + } + + function panToLatLng($pLatLong) + { + $this->setLatLng($pLatLong); + } + + function setCenterLatLong($pCenter) + { + $this->center = $pCenter; + } + + function getCenterLatLong() + { + return $this->center; + } + + function centerAndZoom($pLatLong, $pZoomLevel) + { + $this->setCenterLatLong($pLatLong); + $this->setZoom($pZoomLevel); + } + + function getMapTypes() + { + return array('G_MAP_TYPE', 'G_SATELLITE_TYPE', 'G_HYBRID_TYPE'); + } + + function addLargeMapControl() + { + $this->controls['mapControl'] = 'new GLargeMapControl()'; + } + + function addSmallZoomControl() + { + $this->controls['mapControl'] = 'new GSmallZoomControl()'; + } + + function addSmallMapControl() + { + + $this->controls['mapControl'] = 'new GSmallMapControl()'; + } + + function removeMapControl() + { + $this->controls['mapControl'] = 'null'; + } + + function addMapTypeControl() + { + $this->controls['mapTypeControl'] = 'new GMapTypeControl()'; + } + + function removeMapTypeControl() + { + $this->controls['mapTypeControl'] = 'null'; + } + + function addExtentMap() + { + $this->extentMap = new GMap($this->key); + $this->extentMap->element = $this->element.'Extent'; + $this->extentMap->width='200px'; + $this->extentMap->height='100px'; + } + function removeExtentMap() + { + $this->extentMap = false; + } + function displayExtentMap() + { + $retval = ''; + if($this->extentMap) + { + $retval = '
'; + } + return $retval; + } + // You should echo the result of the "display()" method whereever you want the map. + // Make sure to run the method "getHeader()" as the first output in your PHP script, + // or else the results you get may be unpredictable (Basically, compatibility isn't guaranteed). + + function display() + { + $retval = ''; + $retval .= '
'; + return $retval; + + } + + // if you've got additional information you'd like in the header, like stylesheets, titles, etc. - You'll need to pass it as the parameter here + // Here's where the magic happens, I'm going to generate all the JavaScript required to get this whole map to work. + // This site was helpful in getting the sticky edges to work... http://www.leapbeyond.com/ric/scuba/appletdemo/FullScreenMap.htm + function getHeader($pHeaderInfo = '') + { + $retval = ''; + $retval .= $pHeaderInfo.' + + '; + $retval .= ''; + //$retval .= ''; + return $retval; + } + + + // include anything you want right before the GMapScript, and "" tags as a parameter + function getFooter($pFooterInfo = '') + { + $retval = ''; + $retval .= $pFooterInfo; + //$retval .= ''; + return $retval; + } + +} + +function linkbackimg() +{ + return '';//''; +} +function linkbacktxt() +{ + return '';//'Powered by GMapsClass'; +} + +?> diff --git a/maps/map.php b/maps/map.php new file mode 100755 index 0000000..9c15671 --- /dev/null +++ b/maps/map.php @@ -0,0 +1,290 @@ +addSmallMapControl(); +//$map->addMapTypeControl(); + +//$map->addExtentMap(); +$map->zoom = 14; +$map->center = new GLatLng(45.78,-84.73); + +$default_center['x']='45.78'; +$default_center['y']='-84.73'; + +$notes = ''; +// set up icon classes +foreach($mtypes as $mt) +{ + if($mt['name']!='') + { + $iconclass = new GIconClass(URL_BASE.'maps/pins/'.$customicons[$mt['id']].'.png',URL_BASE.'maps/pins/shadow.png',$mt['id']); + + $map->addIconClass($iconclass->display()); + } +} + +function text_clean($text) +{ + return str_replace("'","´",$text); +} + +foreach($member as $address) +{ + + if(in_array($address['memb_type'],$valid_mtype)) + { + $x = trim(str_replace("\n","",$address['lon'])); + $y = trim(str_replace("\n","",$address['lat'])); + + //$x = $x + 0.0013; + //$y = $y - 0.00045; + + if(($x != '' && $y !='') && ($x!=$badx && $y!=$bady)) // make sure we have lat lon data + { + $newpoint = new GPoint($x,$y); // create a new point + $narr[$address['memb_type']][]= '
  • '.$address['name']."
  • "; + + $moreinfo = 'More Info'; + if($address['reservations']=='t') + { + $reservations = ' - Reserve Now'; + }else + { + $reservations = ''; + } + // 120+E+Lake+St,+Petoskey,+MI+49770+%4045.374834,-84.958428 + + $d_str = urlencode($address['address'].', '.$address['city'].', '.$address['state'].' '.$address['zip'].'@'.$address['lat'].','.$address['lon']); + + $driving = 'http://maps.google.com/maps?f=d&hl=en&sll=37.0625,-95.677068&sspn=53.035373,73.125&saddr=%20&daddr='.$d_str.'&om=1'; + if($address['image1']!='') + { + if($_SERVER['GLM_SERVER_ID'] == 'ws1.gaslightmedia.com') + { + $d=BASE."/images/thumb/".$address['image1']; + }else + { + $d="http://www.mackinawcity.com/images/thumb/".$address['image1']; + } + $myimgsize = getimagesize($d); + $image = ''.text_clean($address['image1text']).''; + }else + { + $image = ''; // + } + $bubbledata = '
    '.text_clean($address['name']).'
    '.$image.text_clean($address['address']).'
    '.text_clean($address['city']).', '.$address['zip'].'
    '.$moreinfo.$reservations.'

    Starting Location:
    Get Directions'; + //$marker_note = str_replace("\n",'',str_replace("'","´",''.$address['name'].'').'
    '.htmlspecialchars($address['address']).'
    '.$address['city'].', '.$address['zip'].$moreinfo); + $marker_note = $bubbledata; + $marker = new GMarker($newpoint,$marker_note,$address['id']); + $marker->icon = new GIconAuto($address['memb_type'],$address['id']); + $map->addOverlay($marker); + }else + { + $noplot[]=$address['id']; + } + } +} + +/* +* Build the divs of members data and the js to hide them +*/ + $hidemembersjs ='\n"; +// done + + +// build the js event drivers +$js = "";//"// extrajs area \n"; // create our js output var +foreach($m as $mid => $val) +{ + // build our marker strings + $markers = array(); + $c = count($val); + for($i=0;$i<$c;$i++) + { + if(!in_array($val[$i],$noplot)) + { + $markers[0].= "\t\tmap.addOverlay(marker".$val[$i].");\n"; + $markers[1].= "\t\tmap.removeOverlay(marker".$val[$i].");\n"; + } + } + $toggle[] = 'toggle'.$mid; + + $js .= " + GEvent.addDomListener(document.getElementById(\"cat".$mid."\"),\"click\",function (){\n"; + //$js .= $hidemembersjs; + $js .= 'hide_members();'." + map.clearOverlays(); + document.getElementById(\"membs$mid\").style.display = 'block'; + map.setCenter(new GLatLng(".$default_center['x'].",".$default_center['y']."),14)\n"; + $js .= $markers[0]; + $js.="\n})\n"; +} + $js .=' + map.clearOverlays(); // clear them by default so the map is not cluttered + + + '; + + // make the driving directions js + // http://maps.google.com/maps?f=d&hl=en&saddr=120+e+lake+st,+petoskey+mi&daddr=412++N.Nicolet+St.,+Mackinaw+City,+MI+49701%4045.785011,-84.732072&om=1 + //$driving = 'http://maps.google.com/maps?f=d&hl=en&saddr='..'&daddr='.$d_str.'&om=1'; +$map->extrajs($js); + + + + +// build output +$header = $map->getHeader(); +$out = '
    '; +$out .= $map->displayExtentMap(); +$out .= '
    '; +$out .= $map->getFooter(); +/* + + +Mackinaw City Map +*/ +echo $header; +echo $hidemembersjs; + ?> + + +
    +

    Mackinaw City Business Finder

    + +
    +

    Choose Business Type:

    + +
    +
    +

    Members:

    + +
    +
    diff --git a/maps/pins/001.png b/maps/pins/001.png new file mode 100644 index 0000000..cb611c8 Binary files /dev/null and b/maps/pins/001.png differ diff --git a/maps/pins/002.png b/maps/pins/002.png new file mode 100644 index 0000000..2178f41 Binary files /dev/null and b/maps/pins/002.png differ diff --git a/maps/pins/003.png b/maps/pins/003.png new file mode 100644 index 0000000..bce4cee Binary files /dev/null and b/maps/pins/003.png differ diff --git a/maps/pins/004.png b/maps/pins/004.png new file mode 100644 index 0000000..fc844ef Binary files /dev/null and b/maps/pins/004.png differ diff --git a/maps/pins/005.png b/maps/pins/005.png new file mode 100644 index 0000000..d5ec039 Binary files /dev/null and b/maps/pins/005.png differ diff --git a/maps/pins/006.png b/maps/pins/006.png new file mode 100644 index 0000000..b26ed2f Binary files /dev/null and b/maps/pins/006.png differ diff --git a/maps/pins/007.png b/maps/pins/007.png new file mode 100644 index 0000000..30bcc88 Binary files /dev/null and b/maps/pins/007.png differ diff --git a/maps/pins/008.png b/maps/pins/008.png new file mode 100644 index 0000000..6e03ef4 Binary files /dev/null and b/maps/pins/008.png differ diff --git a/maps/pins/009.png b/maps/pins/009.png new file mode 100644 index 0000000..99f0a07 Binary files /dev/null and b/maps/pins/009.png differ diff --git a/maps/pins/010.png b/maps/pins/010.png new file mode 100644 index 0000000..f4ffec5 Binary files /dev/null and b/maps/pins/010.png differ diff --git a/maps/pins/011.png b/maps/pins/011.png new file mode 100644 index 0000000..3d46d18 Binary files /dev/null and b/maps/pins/011.png differ diff --git a/maps/pins/012.png b/maps/pins/012.png new file mode 100644 index 0000000..ff53a48 Binary files /dev/null and b/maps/pins/012.png differ diff --git a/maps/pins/013.png b/maps/pins/013.png new file mode 100644 index 0000000..d6fd04c Binary files /dev/null and b/maps/pins/013.png differ diff --git a/maps/pins/014.png b/maps/pins/014.png new file mode 100644 index 0000000..620bce5 Binary files /dev/null and b/maps/pins/014.png differ diff --git a/maps/pins/015.png b/maps/pins/015.png new file mode 100644 index 0000000..f55f418 Binary files /dev/null and b/maps/pins/015.png differ diff --git a/maps/pins/016.png b/maps/pins/016.png new file mode 100644 index 0000000..3300128 Binary files /dev/null and b/maps/pins/016.png differ diff --git a/maps/pins/017.png b/maps/pins/017.png new file mode 100644 index 0000000..814bb76 Binary files /dev/null and b/maps/pins/017.png differ diff --git a/maps/pins/018.png b/maps/pins/018.png new file mode 100644 index 0000000..3aa1d47 Binary files /dev/null and b/maps/pins/018.png differ diff --git a/maps/pins/019.png b/maps/pins/019.png new file mode 100644 index 0000000..c573950 Binary files /dev/null and b/maps/pins/019.png differ diff --git a/maps/pins/020.png b/maps/pins/020.png new file mode 100644 index 0000000..f4a08fe Binary files /dev/null and b/maps/pins/020.png differ diff --git a/maps/pins/021.png b/maps/pins/021.png new file mode 100644 index 0000000..c23cb5c Binary files /dev/null and b/maps/pins/021.png differ diff --git a/maps/pins/022.png b/maps/pins/022.png new file mode 100644 index 0000000..44f80fd Binary files /dev/null and b/maps/pins/022.png differ diff --git a/maps/pins/023.png b/maps/pins/023.png new file mode 100644 index 0000000..0b72d2b Binary files /dev/null and b/maps/pins/023.png differ diff --git a/maps/pins/024.png b/maps/pins/024.png new file mode 100644 index 0000000..74236ed Binary files /dev/null and b/maps/pins/024.png differ diff --git a/maps/pins/025.png b/maps/pins/025.png new file mode 100644 index 0000000..142674c Binary files /dev/null and b/maps/pins/025.png differ diff --git a/maps/pins/026.png b/maps/pins/026.png new file mode 100644 index 0000000..6097d1f Binary files /dev/null and b/maps/pins/026.png differ diff --git a/maps/pins/027.png b/maps/pins/027.png new file mode 100644 index 0000000..10744e1 Binary files /dev/null and b/maps/pins/027.png differ diff --git a/maps/pins/028.png b/maps/pins/028.png new file mode 100644 index 0000000..d563dcf Binary files /dev/null and b/maps/pins/028.png differ diff --git a/maps/pins/029.png b/maps/pins/029.png new file mode 100644 index 0000000..eb9968b Binary files /dev/null and b/maps/pins/029.png differ diff --git a/maps/pins/030.png b/maps/pins/030.png new file mode 100644 index 0000000..8aeed39 Binary files /dev/null and b/maps/pins/030.png differ diff --git a/maps/pins/031.png b/maps/pins/031.png new file mode 100644 index 0000000..97d852e Binary files /dev/null and b/maps/pins/031.png differ diff --git a/maps/pins/032.png b/maps/pins/032.png new file mode 100644 index 0000000..ea5dc9d Binary files /dev/null and b/maps/pins/032.png differ diff --git a/maps/pins/033.png b/maps/pins/033.png new file mode 100644 index 0000000..1bfbcb6 Binary files /dev/null and b/maps/pins/033.png differ diff --git a/maps/pins/034.png b/maps/pins/034.png new file mode 100644 index 0000000..eface27 Binary files /dev/null and b/maps/pins/034.png differ diff --git a/maps/pins/035.png b/maps/pins/035.png new file mode 100644 index 0000000..2bba352 Binary files /dev/null and b/maps/pins/035.png differ diff --git a/maps/pins/036.png b/maps/pins/036.png new file mode 100644 index 0000000..6e4179c Binary files /dev/null and b/maps/pins/036.png differ diff --git a/maps/pins/037.png b/maps/pins/037.png new file mode 100644 index 0000000..48b0715 Binary files /dev/null and b/maps/pins/037.png differ diff --git a/maps/pins/038.png b/maps/pins/038.png new file mode 100644 index 0000000..a549ca4 Binary files /dev/null and b/maps/pins/038.png differ diff --git a/maps/pins/039.png b/maps/pins/039.png new file mode 100644 index 0000000..c90a1d0 Binary files /dev/null and b/maps/pins/039.png differ diff --git a/maps/pins/040.png b/maps/pins/040.png new file mode 100644 index 0000000..ad11bb8 Binary files /dev/null and b/maps/pins/040.png differ diff --git a/maps/pins/041.png b/maps/pins/041.png new file mode 100644 index 0000000..136fcd7 Binary files /dev/null and b/maps/pins/041.png differ diff --git a/maps/pins/042.png b/maps/pins/042.png new file mode 100644 index 0000000..4223a81 Binary files /dev/null and b/maps/pins/042.png differ diff --git a/maps/pins/043.png b/maps/pins/043.png new file mode 100644 index 0000000..2544006 Binary files /dev/null and b/maps/pins/043.png differ diff --git a/maps/pins/044.png b/maps/pins/044.png new file mode 100644 index 0000000..4d898f1 Binary files /dev/null and b/maps/pins/044.png differ diff --git a/maps/pins/045.png b/maps/pins/045.png new file mode 100644 index 0000000..213902e Binary files /dev/null and b/maps/pins/045.png differ diff --git a/maps/pins/046.png b/maps/pins/046.png new file mode 100644 index 0000000..c607151 Binary files /dev/null and b/maps/pins/046.png differ diff --git a/maps/pins/047.png b/maps/pins/047.png new file mode 100644 index 0000000..98477cb Binary files /dev/null and b/maps/pins/047.png differ diff --git a/maps/pins/048.png b/maps/pins/048.png new file mode 100644 index 0000000..1a1adc8 Binary files /dev/null and b/maps/pins/048.png differ diff --git a/maps/pins/049.png b/maps/pins/049.png new file mode 100644 index 0000000..3e35c50 Binary files /dev/null and b/maps/pins/049.png differ diff --git a/maps/pins/050.png b/maps/pins/050.png new file mode 100644 index 0000000..27d2420 Binary files /dev/null and b/maps/pins/050.png differ diff --git a/maps/pins/051.png b/maps/pins/051.png new file mode 100644 index 0000000..5724cfe Binary files /dev/null and b/maps/pins/051.png differ diff --git a/maps/pins/052.png b/maps/pins/052.png new file mode 100644 index 0000000..063d56c Binary files /dev/null and b/maps/pins/052.png differ diff --git a/maps/pins/053.png b/maps/pins/053.png new file mode 100644 index 0000000..fbb7cca Binary files /dev/null and b/maps/pins/053.png differ diff --git a/maps/pins/054.png b/maps/pins/054.png new file mode 100644 index 0000000..b714d42 Binary files /dev/null and b/maps/pins/054.png differ diff --git a/maps/pins/055.png b/maps/pins/055.png new file mode 100644 index 0000000..ed7b05b Binary files /dev/null and b/maps/pins/055.png differ diff --git a/maps/pins/056.png b/maps/pins/056.png new file mode 100644 index 0000000..543c66f Binary files /dev/null and b/maps/pins/056.png differ diff --git a/maps/pins/057.png b/maps/pins/057.png new file mode 100644 index 0000000..dc06e5b Binary files /dev/null and b/maps/pins/057.png differ diff --git a/maps/pins/058.png b/maps/pins/058.png new file mode 100644 index 0000000..b8781ca Binary files /dev/null and b/maps/pins/058.png differ diff --git a/maps/pins/059.png b/maps/pins/059.png new file mode 100644 index 0000000..dce5ecb Binary files /dev/null and b/maps/pins/059.png differ diff --git a/maps/pins/060.png b/maps/pins/060.png new file mode 100644 index 0000000..68577a6 Binary files /dev/null and b/maps/pins/060.png differ diff --git a/maps/pins/061.png b/maps/pins/061.png new file mode 100644 index 0000000..192c83e Binary files /dev/null and b/maps/pins/061.png differ diff --git a/maps/pins/062.png b/maps/pins/062.png new file mode 100644 index 0000000..e0cf3ef Binary files /dev/null and b/maps/pins/062.png differ diff --git a/maps/pins/063.png b/maps/pins/063.png new file mode 100644 index 0000000..412e6ef Binary files /dev/null and b/maps/pins/063.png differ diff --git a/maps/pins/064.png b/maps/pins/064.png new file mode 100644 index 0000000..b6735bb Binary files /dev/null and b/maps/pins/064.png differ diff --git a/maps/pins/065.png b/maps/pins/065.png new file mode 100644 index 0000000..bb9d3b2 Binary files /dev/null and b/maps/pins/065.png differ diff --git a/maps/pins/066.png b/maps/pins/066.png new file mode 100644 index 0000000..93ce346 Binary files /dev/null and b/maps/pins/066.png differ diff --git a/maps/pins/067.png b/maps/pins/067.png new file mode 100644 index 0000000..988b15b Binary files /dev/null and b/maps/pins/067.png differ diff --git a/maps/pins/068.png b/maps/pins/068.png new file mode 100644 index 0000000..4baf9d4 Binary files /dev/null and b/maps/pins/068.png differ diff --git a/maps/pins/069.png b/maps/pins/069.png new file mode 100644 index 0000000..283ddd9 Binary files /dev/null and b/maps/pins/069.png differ diff --git a/maps/pins/070.png b/maps/pins/070.png new file mode 100644 index 0000000..30d8706 Binary files /dev/null and b/maps/pins/070.png differ diff --git a/maps/pins/071.png b/maps/pins/071.png new file mode 100644 index 0000000..10fa3fe Binary files /dev/null and b/maps/pins/071.png differ diff --git a/maps/pins/072.png b/maps/pins/072.png new file mode 100644 index 0000000..5967e62 Binary files /dev/null and b/maps/pins/072.png differ diff --git a/maps/pins/073.png b/maps/pins/073.png new file mode 100644 index 0000000..3ca7f17 Binary files /dev/null and b/maps/pins/073.png differ diff --git a/maps/pins/074.png b/maps/pins/074.png new file mode 100644 index 0000000..b74e99c Binary files /dev/null and b/maps/pins/074.png differ diff --git a/maps/pins/075.png b/maps/pins/075.png new file mode 100644 index 0000000..ec84fac Binary files /dev/null and b/maps/pins/075.png differ diff --git a/maps/pins/076.png b/maps/pins/076.png new file mode 100644 index 0000000..8ef4fb0 Binary files /dev/null and b/maps/pins/076.png differ diff --git a/maps/pins/077.png b/maps/pins/077.png new file mode 100644 index 0000000..3e7330e Binary files /dev/null and b/maps/pins/077.png differ diff --git a/maps/pins/078.png b/maps/pins/078.png new file mode 100644 index 0000000..63c29ce Binary files /dev/null and b/maps/pins/078.png differ diff --git a/maps/pins/079.png b/maps/pins/079.png new file mode 100644 index 0000000..0cfe38b Binary files /dev/null and b/maps/pins/079.png differ diff --git a/maps/pins/080.png b/maps/pins/080.png new file mode 100644 index 0000000..761d104 Binary files /dev/null and b/maps/pins/080.png differ diff --git a/maps/pins/081.png b/maps/pins/081.png new file mode 100644 index 0000000..4ca4e00 Binary files /dev/null and b/maps/pins/081.png differ diff --git a/maps/pins/082.png b/maps/pins/082.png new file mode 100644 index 0000000..426b966 Binary files /dev/null and b/maps/pins/082.png differ diff --git a/maps/pins/083.png b/maps/pins/083.png new file mode 100644 index 0000000..9c9801d Binary files /dev/null and b/maps/pins/083.png differ diff --git a/maps/pins/084.png b/maps/pins/084.png new file mode 100644 index 0000000..b318bb0 Binary files /dev/null and b/maps/pins/084.png differ diff --git a/maps/pins/085.png b/maps/pins/085.png new file mode 100644 index 0000000..ea9f699 Binary files /dev/null and b/maps/pins/085.png differ diff --git a/maps/pins/086.png b/maps/pins/086.png new file mode 100644 index 0000000..4244255 Binary files /dev/null and b/maps/pins/086.png differ diff --git a/maps/pins/087.png b/maps/pins/087.png new file mode 100644 index 0000000..9c48594 Binary files /dev/null and b/maps/pins/087.png differ diff --git a/maps/pins/088.png b/maps/pins/088.png new file mode 100644 index 0000000..fd2984d Binary files /dev/null and b/maps/pins/088.png differ diff --git a/maps/pins/089.png b/maps/pins/089.png new file mode 100644 index 0000000..276b746 Binary files /dev/null and b/maps/pins/089.png differ diff --git a/maps/pins/090.png b/maps/pins/090.png new file mode 100644 index 0000000..6c3c931 Binary files /dev/null and b/maps/pins/090.png differ diff --git a/maps/pins/091.png b/maps/pins/091.png new file mode 100644 index 0000000..ec383f9 Binary files /dev/null and b/maps/pins/091.png differ diff --git a/maps/pins/092.png b/maps/pins/092.png new file mode 100644 index 0000000..5a920d3 Binary files /dev/null and b/maps/pins/092.png differ diff --git a/maps/pins/093.png b/maps/pins/093.png new file mode 100644 index 0000000..643fe17 Binary files /dev/null and b/maps/pins/093.png differ diff --git a/maps/pins/094.png b/maps/pins/094.png new file mode 100644 index 0000000..731f6eb Binary files /dev/null and b/maps/pins/094.png differ diff --git a/maps/pins/095.png b/maps/pins/095.png new file mode 100644 index 0000000..f33443d Binary files /dev/null and b/maps/pins/095.png differ diff --git a/maps/pins/096.png b/maps/pins/096.png new file mode 100644 index 0000000..8dfc6c3 Binary files /dev/null and b/maps/pins/096.png differ diff --git a/maps/pins/097.png b/maps/pins/097.png new file mode 100644 index 0000000..5311a93 Binary files /dev/null and b/maps/pins/097.png differ diff --git a/maps/pins/098.png b/maps/pins/098.png new file mode 100644 index 0000000..143f6ef Binary files /dev/null and b/maps/pins/098.png differ diff --git a/maps/pins/099.png b/maps/pins/099.png new file mode 100644 index 0000000..40514cb Binary files /dev/null and b/maps/pins/099.png differ diff --git a/maps/pins/100.png b/maps/pins/100.png new file mode 100644 index 0000000..9c054fe Binary files /dev/null and b/maps/pins/100.png differ diff --git a/maps/pins/101.png b/maps/pins/101.png new file mode 100644 index 0000000..7d8af29 Binary files /dev/null and b/maps/pins/101.png differ diff --git a/maps/pins/102.png b/maps/pins/102.png new file mode 100644 index 0000000..daa96d0 Binary files /dev/null and b/maps/pins/102.png differ diff --git a/maps/pins/103.png b/maps/pins/103.png new file mode 100644 index 0000000..28a8fd0 Binary files /dev/null and b/maps/pins/103.png differ diff --git a/maps/pins/104.png b/maps/pins/104.png new file mode 100644 index 0000000..cf7bf91 Binary files /dev/null and b/maps/pins/104.png differ diff --git a/maps/pins/105.png b/maps/pins/105.png new file mode 100644 index 0000000..6bac731 Binary files /dev/null and b/maps/pins/105.png differ diff --git a/maps/pins/106.png b/maps/pins/106.png new file mode 100644 index 0000000..bf316ab Binary files /dev/null and b/maps/pins/106.png differ diff --git a/maps/pins/107.png b/maps/pins/107.png new file mode 100644 index 0000000..56b1b02 Binary files /dev/null and b/maps/pins/107.png differ diff --git a/maps/pins/108.png b/maps/pins/108.png new file mode 100644 index 0000000..7a21a82 Binary files /dev/null and b/maps/pins/108.png differ diff --git a/maps/pins/109.png b/maps/pins/109.png new file mode 100644 index 0000000..c91bde3 Binary files /dev/null and b/maps/pins/109.png differ diff --git a/maps/pins/110.png b/maps/pins/110.png new file mode 100644 index 0000000..8f97162 Binary files /dev/null and b/maps/pins/110.png differ diff --git a/maps/pins/111.png b/maps/pins/111.png new file mode 100644 index 0000000..fa26701 Binary files /dev/null and b/maps/pins/111.png differ diff --git a/maps/pins/112.png b/maps/pins/112.png new file mode 100644 index 0000000..31482a4 Binary files /dev/null and b/maps/pins/112.png differ diff --git a/maps/pins/113.png b/maps/pins/113.png new file mode 100644 index 0000000..3da551b Binary files /dev/null and b/maps/pins/113.png differ diff --git a/maps/pins/114.png b/maps/pins/114.png new file mode 100644 index 0000000..1d64eef Binary files /dev/null and b/maps/pins/114.png differ diff --git a/maps/pins/115.png b/maps/pins/115.png new file mode 100644 index 0000000..30fb693 Binary files /dev/null and b/maps/pins/115.png differ diff --git a/maps/pins/116.png b/maps/pins/116.png new file mode 100644 index 0000000..ffb37c8 Binary files /dev/null and b/maps/pins/116.png differ diff --git a/maps/pins/117.png b/maps/pins/117.png new file mode 100644 index 0000000..d1d0c3c Binary files /dev/null and b/maps/pins/117.png differ diff --git a/maps/pins/118.png b/maps/pins/118.png new file mode 100644 index 0000000..0f90a29 Binary files /dev/null and b/maps/pins/118.png differ diff --git a/maps/pins/119.png b/maps/pins/119.png new file mode 100644 index 0000000..ff29446 Binary files /dev/null and b/maps/pins/119.png differ diff --git a/maps/pins/120.png b/maps/pins/120.png new file mode 100644 index 0000000..f30f77b Binary files /dev/null and b/maps/pins/120.png differ diff --git a/maps/pins/121.png b/maps/pins/121.png new file mode 100644 index 0000000..383d88e Binary files /dev/null and b/maps/pins/121.png differ diff --git a/maps/pins/122.png b/maps/pins/122.png new file mode 100644 index 0000000..736c586 Binary files /dev/null and b/maps/pins/122.png differ diff --git a/maps/pins/123.png b/maps/pins/123.png new file mode 100644 index 0000000..0c5b081 Binary files /dev/null and b/maps/pins/123.png differ diff --git a/maps/pins/124.png b/maps/pins/124.png new file mode 100644 index 0000000..a6094f9 Binary files /dev/null and b/maps/pins/124.png differ diff --git a/maps/pins/125.png b/maps/pins/125.png new file mode 100644 index 0000000..4113525 Binary files /dev/null and b/maps/pins/125.png differ diff --git a/maps/pins/126.png b/maps/pins/126.png new file mode 100644 index 0000000..7312306 Binary files /dev/null and b/maps/pins/126.png differ diff --git a/maps/pins/127.png b/maps/pins/127.png new file mode 100644 index 0000000..e907c7d Binary files /dev/null and b/maps/pins/127.png differ diff --git a/maps/pins/128.png b/maps/pins/128.png new file mode 100644 index 0000000..6fe6ee5 Binary files /dev/null and b/maps/pins/128.png differ diff --git a/maps/pins/129.png b/maps/pins/129.png new file mode 100644 index 0000000..394326c Binary files /dev/null and b/maps/pins/129.png differ diff --git a/maps/pins/130.png b/maps/pins/130.png new file mode 100644 index 0000000..63092e1 Binary files /dev/null and b/maps/pins/130.png differ diff --git a/maps/pins/131.png b/maps/pins/131.png new file mode 100644 index 0000000..c32d74c Binary files /dev/null and b/maps/pins/131.png differ diff --git a/maps/pins/132.png b/maps/pins/132.png new file mode 100644 index 0000000..882252d Binary files /dev/null and b/maps/pins/132.png differ diff --git a/maps/pins/133.png b/maps/pins/133.png new file mode 100644 index 0000000..be3c1f0 Binary files /dev/null and b/maps/pins/133.png differ diff --git a/maps/pins/134.png b/maps/pins/134.png new file mode 100644 index 0000000..6c27542 Binary files /dev/null and b/maps/pins/134.png differ diff --git a/maps/pins/135.png b/maps/pins/135.png new file mode 100644 index 0000000..54290ba Binary files /dev/null and b/maps/pins/135.png differ diff --git a/maps/pins/136.png b/maps/pins/136.png new file mode 100644 index 0000000..4573070 Binary files /dev/null and b/maps/pins/136.png differ diff --git a/maps/pins/137.png b/maps/pins/137.png new file mode 100644 index 0000000..ed1041e Binary files /dev/null and b/maps/pins/137.png differ diff --git a/maps/pins/138.png b/maps/pins/138.png new file mode 100644 index 0000000..b8d3024 Binary files /dev/null and b/maps/pins/138.png differ diff --git a/maps/pins/139.png b/maps/pins/139.png new file mode 100644 index 0000000..5d6ec5f Binary files /dev/null and b/maps/pins/139.png differ diff --git a/maps/pins/140.png b/maps/pins/140.png new file mode 100644 index 0000000..130c2f6 Binary files /dev/null and b/maps/pins/140.png differ diff --git a/maps/pins/141.png b/maps/pins/141.png new file mode 100644 index 0000000..aff5882 Binary files /dev/null and b/maps/pins/141.png differ diff --git a/maps/pins/142.png b/maps/pins/142.png new file mode 100644 index 0000000..f35f2ff Binary files /dev/null and b/maps/pins/142.png differ diff --git a/maps/pins/143.png b/maps/pins/143.png new file mode 100644 index 0000000..e8de2be Binary files /dev/null and b/maps/pins/143.png differ diff --git a/maps/pins/144.png b/maps/pins/144.png new file mode 100644 index 0000000..80c4dec Binary files /dev/null and b/maps/pins/144.png differ diff --git a/maps/pins/145.png b/maps/pins/145.png new file mode 100644 index 0000000..dc13cd8 Binary files /dev/null and b/maps/pins/145.png differ diff --git a/maps/pins/146.png b/maps/pins/146.png new file mode 100644 index 0000000..87ea78e Binary files /dev/null and b/maps/pins/146.png differ diff --git a/maps/pins/147.png b/maps/pins/147.png new file mode 100644 index 0000000..7d8c28f Binary files /dev/null and b/maps/pins/147.png differ diff --git a/maps/pins/148.png b/maps/pins/148.png new file mode 100644 index 0000000..b82d16d Binary files /dev/null and b/maps/pins/148.png differ diff --git a/maps/pins/149.png b/maps/pins/149.png new file mode 100644 index 0000000..bc44244 Binary files /dev/null and b/maps/pins/149.png differ diff --git a/maps/pins/150.png b/maps/pins/150.png new file mode 100644 index 0000000..ff0fee3 Binary files /dev/null and b/maps/pins/150.png differ diff --git a/maps/pins/151.png b/maps/pins/151.png new file mode 100644 index 0000000..9f481e4 Binary files /dev/null and b/maps/pins/151.png differ diff --git a/maps/pins/152.png b/maps/pins/152.png new file mode 100644 index 0000000..fb067cd Binary files /dev/null and b/maps/pins/152.png differ diff --git a/maps/pins/153.png b/maps/pins/153.png new file mode 100644 index 0000000..5cbd377 Binary files /dev/null and b/maps/pins/153.png differ diff --git a/maps/pins/154.png b/maps/pins/154.png new file mode 100644 index 0000000..2bb2d5a Binary files /dev/null and b/maps/pins/154.png differ diff --git a/maps/pins/155.png b/maps/pins/155.png new file mode 100644 index 0000000..f680c1d Binary files /dev/null and b/maps/pins/155.png differ diff --git a/maps/pins/156.png b/maps/pins/156.png new file mode 100644 index 0000000..2c4abef Binary files /dev/null and b/maps/pins/156.png differ diff --git a/maps/pins/157.png b/maps/pins/157.png new file mode 100644 index 0000000..28a5746 Binary files /dev/null and b/maps/pins/157.png differ diff --git a/maps/pins/158.png b/maps/pins/158.png new file mode 100644 index 0000000..ba1240b Binary files /dev/null and b/maps/pins/158.png differ diff --git a/maps/pins/159.png b/maps/pins/159.png new file mode 100644 index 0000000..a704572 Binary files /dev/null and b/maps/pins/159.png differ diff --git a/maps/pins/160.png b/maps/pins/160.png new file mode 100644 index 0000000..1c10955 Binary files /dev/null and b/maps/pins/160.png differ diff --git a/maps/pins/161.png b/maps/pins/161.png new file mode 100644 index 0000000..2b4b398 Binary files /dev/null and b/maps/pins/161.png differ diff --git a/maps/pins/162.png b/maps/pins/162.png new file mode 100644 index 0000000..3d0ea5e Binary files /dev/null and b/maps/pins/162.png differ diff --git a/maps/pins/163.png b/maps/pins/163.png new file mode 100644 index 0000000..368f0b1 Binary files /dev/null and b/maps/pins/163.png differ diff --git a/maps/pins/164.png b/maps/pins/164.png new file mode 100644 index 0000000..3fbb2c4 Binary files /dev/null and b/maps/pins/164.png differ diff --git a/maps/pins/165.png b/maps/pins/165.png new file mode 100644 index 0000000..45e8431 Binary files /dev/null and b/maps/pins/165.png differ diff --git a/maps/pins/166.png b/maps/pins/166.png new file mode 100644 index 0000000..ef5e5ea Binary files /dev/null and b/maps/pins/166.png differ diff --git a/maps/pins/167.png b/maps/pins/167.png new file mode 100644 index 0000000..3f40667 Binary files /dev/null and b/maps/pins/167.png differ diff --git a/maps/pins/168.png b/maps/pins/168.png new file mode 100644 index 0000000..dac154c Binary files /dev/null and b/maps/pins/168.png differ diff --git a/maps/pins/169.png b/maps/pins/169.png new file mode 100644 index 0000000..90243ec Binary files /dev/null and b/maps/pins/169.png differ diff --git a/maps/pins/170.png b/maps/pins/170.png new file mode 100644 index 0000000..d42f2a5 Binary files /dev/null and b/maps/pins/170.png differ diff --git a/maps/pins/171.png b/maps/pins/171.png new file mode 100644 index 0000000..53a65cb Binary files /dev/null and b/maps/pins/171.png differ diff --git a/maps/pins/172.png b/maps/pins/172.png new file mode 100644 index 0000000..bfb8d45 Binary files /dev/null and b/maps/pins/172.png differ diff --git a/maps/pins/173.png b/maps/pins/173.png new file mode 100644 index 0000000..5845f9e Binary files /dev/null and b/maps/pins/173.png differ diff --git a/maps/pins/174.png b/maps/pins/174.png new file mode 100644 index 0000000..92d6980 Binary files /dev/null and b/maps/pins/174.png differ diff --git a/maps/pins/175.png b/maps/pins/175.png new file mode 100644 index 0000000..ef6fc80 Binary files /dev/null and b/maps/pins/175.png differ diff --git a/maps/pins/176.png b/maps/pins/176.png new file mode 100644 index 0000000..3b86c64 Binary files /dev/null and b/maps/pins/176.png differ diff --git a/maps/pins/177.png b/maps/pins/177.png new file mode 100644 index 0000000..4451a24 Binary files /dev/null and b/maps/pins/177.png differ diff --git a/maps/pins/178.png b/maps/pins/178.png new file mode 100644 index 0000000..76c2b46 Binary files /dev/null and b/maps/pins/178.png differ diff --git a/maps/pins/179.png b/maps/pins/179.png new file mode 100644 index 0000000..c32f85b Binary files /dev/null and b/maps/pins/179.png differ diff --git a/maps/pins/180.png b/maps/pins/180.png new file mode 100644 index 0000000..1556f88 Binary files /dev/null and b/maps/pins/180.png differ diff --git a/maps/pins/181.png b/maps/pins/181.png new file mode 100644 index 0000000..b0ccb33 Binary files /dev/null and b/maps/pins/181.png differ diff --git a/maps/pins/182.png b/maps/pins/182.png new file mode 100644 index 0000000..ed1225f Binary files /dev/null and b/maps/pins/182.png differ diff --git a/maps/pins/183.png b/maps/pins/183.png new file mode 100644 index 0000000..eeeaa7c Binary files /dev/null and b/maps/pins/183.png differ diff --git a/maps/pins/184.png b/maps/pins/184.png new file mode 100644 index 0000000..a3ef0c4 Binary files /dev/null and b/maps/pins/184.png differ diff --git a/maps/pins/185.png b/maps/pins/185.png new file mode 100644 index 0000000..35569e8 Binary files /dev/null and b/maps/pins/185.png differ diff --git a/maps/pins/186.png b/maps/pins/186.png new file mode 100644 index 0000000..93a850b Binary files /dev/null and b/maps/pins/186.png differ diff --git a/maps/pins/187.png b/maps/pins/187.png new file mode 100644 index 0000000..1a034e5 Binary files /dev/null and b/maps/pins/187.png differ diff --git a/maps/pins/188.png b/maps/pins/188.png new file mode 100644 index 0000000..36742a5 Binary files /dev/null and b/maps/pins/188.png differ diff --git a/maps/pins/189.png b/maps/pins/189.png new file mode 100644 index 0000000..c350464 Binary files /dev/null and b/maps/pins/189.png differ diff --git a/maps/pins/190.png b/maps/pins/190.png new file mode 100644 index 0000000..7e23c57 Binary files /dev/null and b/maps/pins/190.png differ diff --git a/maps/pins/191.png b/maps/pins/191.png new file mode 100644 index 0000000..5cabef8 Binary files /dev/null and b/maps/pins/191.png differ diff --git a/maps/pins/192.png b/maps/pins/192.png new file mode 100644 index 0000000..4c233e9 Binary files /dev/null and b/maps/pins/192.png differ diff --git a/maps/pins/193.png b/maps/pins/193.png new file mode 100644 index 0000000..2ad185b Binary files /dev/null and b/maps/pins/193.png differ diff --git a/maps/pins/194.png b/maps/pins/194.png new file mode 100644 index 0000000..cfeee16 Binary files /dev/null and b/maps/pins/194.png differ diff --git a/maps/pins/195.png b/maps/pins/195.png new file mode 100644 index 0000000..baeb518 Binary files /dev/null and b/maps/pins/195.png differ diff --git a/maps/pins/196.png b/maps/pins/196.png new file mode 100644 index 0000000..5b8eb64 Binary files /dev/null and b/maps/pins/196.png differ diff --git a/maps/pins/197.png b/maps/pins/197.png new file mode 100644 index 0000000..8ea914c Binary files /dev/null and b/maps/pins/197.png differ diff --git a/maps/pins/198.png b/maps/pins/198.png new file mode 100644 index 0000000..a9cfff4 Binary files /dev/null and b/maps/pins/198.png differ diff --git a/maps/pins/199.png b/maps/pins/199.png new file mode 100644 index 0000000..136164c Binary files /dev/null and b/maps/pins/199.png differ diff --git a/maps/pins/200.png b/maps/pins/200.png new file mode 100644 index 0000000..d6b0587 Binary files /dev/null and b/maps/pins/200.png differ diff --git a/maps/pins/201.png b/maps/pins/201.png new file mode 100644 index 0000000..297f057 Binary files /dev/null and b/maps/pins/201.png differ diff --git a/maps/pins/202.png b/maps/pins/202.png new file mode 100644 index 0000000..7525ed0 Binary files /dev/null and b/maps/pins/202.png differ diff --git a/maps/pins/203.png b/maps/pins/203.png new file mode 100644 index 0000000..1d634de Binary files /dev/null and b/maps/pins/203.png differ diff --git a/maps/pins/204.png b/maps/pins/204.png new file mode 100644 index 0000000..d77a063 Binary files /dev/null and b/maps/pins/204.png differ diff --git a/maps/pins/205.png b/maps/pins/205.png new file mode 100644 index 0000000..22341dd Binary files /dev/null and b/maps/pins/205.png differ diff --git a/maps/pins/206.png b/maps/pins/206.png new file mode 100644 index 0000000..f5f3437 Binary files /dev/null and b/maps/pins/206.png differ diff --git a/maps/pins/207.png b/maps/pins/207.png new file mode 100644 index 0000000..fa9dc76 Binary files /dev/null and b/maps/pins/207.png differ diff --git a/maps/pins/208.png b/maps/pins/208.png new file mode 100644 index 0000000..937b218 Binary files /dev/null and b/maps/pins/208.png differ diff --git a/maps/pins/209.png b/maps/pins/209.png new file mode 100644 index 0000000..b1fdf03 Binary files /dev/null and b/maps/pins/209.png differ diff --git a/maps/pins/210.png b/maps/pins/210.png new file mode 100644 index 0000000..270cdec Binary files /dev/null and b/maps/pins/210.png differ diff --git a/maps/pins/211.png b/maps/pins/211.png new file mode 100644 index 0000000..71e6946 Binary files /dev/null and b/maps/pins/211.png differ diff --git a/maps/pins/212.png b/maps/pins/212.png new file mode 100644 index 0000000..67d0480 Binary files /dev/null and b/maps/pins/212.png differ diff --git a/maps/pins/213.png b/maps/pins/213.png new file mode 100644 index 0000000..d123278 Binary files /dev/null and b/maps/pins/213.png differ diff --git a/maps/pins/214.png b/maps/pins/214.png new file mode 100644 index 0000000..de290b5 Binary files /dev/null and b/maps/pins/214.png differ diff --git a/maps/pins/215.png b/maps/pins/215.png new file mode 100644 index 0000000..1dcdccc Binary files /dev/null and b/maps/pins/215.png differ diff --git a/maps/pins/216.png b/maps/pins/216.png new file mode 100644 index 0000000..e972dd1 Binary files /dev/null and b/maps/pins/216.png differ diff --git a/maps/pins/shadow.png b/maps/pins/shadow.png new file mode 100644 index 0000000..cc0e630 Binary files /dev/null and b/maps/pins/shadow.png differ diff --git a/maps/zoom-in.png b/maps/zoom-in.png new file mode 100755 index 0000000..5fa833a Binary files /dev/null and b/maps/zoom-in.png differ diff --git a/maps/zoom-out.png b/maps/zoom-out.png new file mode 100755 index 0000000..8a3057e Binary files /dev/null and b/maps/zoom-out.png differ diff --git a/nwa_data.phtml b/nwa_data.phtml new file mode 100644 index 0000000..a8045f4 --- /dev/null +++ b/nwa_data.phtml @@ -0,0 +1,214 @@ +Gaslight Media - Northwest Airlines Flight Data Capture

    '; + + + // Delete flight data older than yesterday + +db_auto_exec( "DELETE FROM flight WHERE msg_dtm < 'yesterday';", SI_CONN_STR, FALSE ); + + + // Get item data + +function get_nwa_item( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + return( $x ); + } + + // Get item data as time and fix up time + +function get_nwa_item_time( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + $x = strtr( $x, "TZ", " "); + return( $x ); + } + + // Return a bool item ready for database + +function get_nwa_item_bool( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + if( trim($x) == 'Y' ) + return( 't' ); + return( 'f' ); + } + +function get_nwa_data( $XMLData ) + { + // If there's data + + if( isset($XMLData) && trim($XMLData) == '' ) + return( false ); + + // Extract XML into an array + + $d = glm_xml_extract( stripslashes($XMLData) ); + + if( !is_array($d) ) + return( false ); + + // Should have some data now. Check version number + if( ($msg_vers_id = get_nwa_item( $d, '/fds_fidspln/msg_hdr/msg_vers_id' )) == '' || $msg_vers_id < EXPECTED_NWS_MSG_MAJ_VERSION || $msg_vers_id >= EXPECTED_NWS_MSG_MAJ_VERSION + 1 ) + return( false ); // Wrong major version + + // Get rest of mesage header + + $msg_dtm = get_nwa_item_time( $d, '/fds_fidspln/msg_hdr/msg_dtm' ); // Get message time - UTC + $msg_seq_id = get_nwa_item( $d, '/fds_fidspln/msg_hdr/msg_seq_id' ); // Message sequence # + $msg_seq_id = trim($msg_seq_id); + + // Get flight key + + $flt_orig_date = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/flt_orig_dte' ); // Flight origination date + $flt_airline = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/al_cde' ); // Airline ID + $flt_airline = trim($flt_airline); + $flt_numb = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/flt_num' ); // Flight Number + $flt_numb = trim($flt_numb); + $flt_leg_orig = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_orig_ap_cde' ); // Leg origin Airport code + $flt_leg_orig = trim($flt_leg_orig); + $flt_leg_dest = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_dest_ap_cde' ); // Leg destination Airport code + $flt_leg_dest = trim($flt_leg_dest); + $flt_leg_vers = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_orig_vers_num' ); // Leg version number + + // Get flight schedule - Local Times + + $sch_leg_orig = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_sked/leg_orig_ap_cde' ); // Origination Airport + $sch_leg_orig = trim($sch_leg_orig); + $sch_leg_dest = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_sked/leg_dest_ap_cde' ); // Destination Airport + $sch_leg_dest = trim($sch_leg_dest); + $sch_dep_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/out_dtm' ); // Departure Time + $sch_off_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/off_dtm' ); // Off runway time + $sch_on_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/on_dtm' ); // On runway Time + $sch_in_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/in_dtm' ); // Arrival Time + + // Get flight OOOI - Local Times ( Out, Off, On, In times) - These are updated times + // Time codes are ?S? (scheduled), ?E? (estimated), ?D? (decision), ?R? (in-range), ?A? (actual) + + $cur_dep_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/out_dtm' ); // Departure Time + $cur_dep_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/out_tme_type_cde' ); // Time code + $cur_dep_time_code = trim($cur_dep_time_code); + $cur_off_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/off_dtm' ); // Off runway time + $cur_off_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/off_tme_type_cde' ); // Time code + $cur_off_time_code = trim($cur_off_time_code); + $cur_on_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/on_dtm' ); // On runway Time + $cur_on_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/on_tme_type_cde' ); // Time Code + $cur_on_time_code = trim($cur_on_time_code); + $cur_in_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/in_dtm' ); // Arrival Time + $cur_in_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/in_tme_type_cde' ); // Time Code + $cur_in_time_code = trim($cur_in_time_code); + + // Get Misc information + + $delay_code = get_nwa_item( $d, '/fds_fidspln/flt_data/delay_cde' ); // Delay reason code (if any) + $delay_code = trim($delay_code); + $depart_gate = get_nwa_item( $d, '/fds_fidspln/flt_data/dptr_gate' ); // Departure gate + $depart_gate = trim($depart_gate); + $arriv_gate = get_nwa_item( $d, '/fds_fidspln/flt_data/arvl_gate' ); // Arrival Gate + $arriv_gate = trim($arriv_gate); + $radio_code = get_nwa_item( $d, '/fds_fidspln/flt_data/dlt_radio_cde' ); // FAA Flight Radio Code + $radio_code = trim($radio_code); + $aircraft = get_nwa_item( $d, '/fds_fidspln/flt_data/ac_num' ); // Aircraft number + $aircraft = trim($aircraft); + $reg_numb = get_nwa_item( $d, '/fds_fidspln/flt_data/ac_reg_num' ); // Aircraft FAA registration number + $reg_numb = trim($reg_numb); + $remarks = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_rmks' ); // Remarks about flight + $remarks = trim($remarks); + $food_code = get_nwa_item( $d, '/fds_fidspln/flt_data/inflt_scv_rmks' ); // Meal service code + $food_code = trim($food_code); + $flight_type = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_typ_cde' ); // Flight Type Code (PS=passenger) + $flight_type = trim($flight_type); + + // Flight Flags + + $downline_leg = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/downline_leg_ind' ); // Downline leg indicator ??? + $overfly = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/overfly_ind' ); // Overfly? + $canceled = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/cncl_ind' ); // Canceled? + $dep_ontime = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/sked_dptr_ind' ); // Depart on schedule? + $arriv_ontime = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/sked_arvl_ind' ); // Arrive on schedule? + + // Don't show flight type 'Z' - these are training data or other unwanted stuff + + if( $flight_type != 'Z' ) + { + + if( ($f = db_auto_get_row( "SELECT msg_seq_id FROM flight WHERE flt_orig_date = '$flt_orig_date' AND flt_numb = '$flt_numb';", 0, SI_CONN_STR, FALSE )) == false ) + { + db_auto_exec( "INSERT INTO flight + ( + msg_dtm, msg_seq_id, flt_orig_date, flt_airline, flt_numb, flt_leg_orig, flt_leg_dest, flt_leg_vers, + sch_leg_orig, sch_leg_dest, sch_dep_time, sch_off_time, sch_on_time, sch_in_time, cur_dep_time, cur_dep_time_code, + cur_off_time , cur_off_time_code, cur_on_time, cur_on_time_code, cur_in_time, cur_in_time_code, delay_code, + depart_gate, arriv_gate, radio_code, aircraft, reg_numb, remarks, food_code, flight_type, downline_leg, + overfly, canceled, dep_ontime, arriv_ontime + ) + VALUES + ( + '$msg_dtm', '$msg_seq_id', '$flt_orig_date', '$flt_airline', '$flt_numb', '$flt_leg_orig', '$flt_leg_dest', $flt_leg_vers, + '$sch_leg_orig', '$sch_leg_dest', '$sch_dep_time', '$sch_off_time', '$sch_on_time', '$sch_in_time', '$cur_dep_time', '$cur_dep_time_code', + '$cur_off_time', '$cur_off_time_code', '$cur_on_time', '$cur_on_time_code', '$cur_in_time', '$cur_in_time_code', '$delay_code', + '$depart_gate', '$arriv_gate', '$radio_code', '$aircraft', '$reg_numb', '$remarks', '$food_code', '$flight_type', '$downline_leg', + '$overfly', '$canceled', '$dep_ontime', '$arriv_ontime' + );", SI_CONN_STR, FALSE ); + + echo "Flight $flt_numb on $flt_orig_date added
    "; + } + else + { + if( $msg_seq_id <= $f['msg_seq_id'] ) + echo 'Duplicate message or message out of sequence.
    '; + else + { + db_auto_exec( "UPDATE flight SET + msg_dtm = '$msg_dtm', msg_seq_id = '$msg_seq_id', + flt_leg_orig = '$flt_leg_orig', flt_leg_dest = '$flt_leg_dest', flt_leg_vers = $flt_leg_vers, sch_leg_orig = '$sch_leg_orig', + sch_leg_dest = '$sch_leg_dest', sch_dep_time = '$sch_dep_time', sch_off_time = '$sch_off_time', sch_on_time = '$sch_on_time', + sch_in_time = '$sch_in_time', cur_dep_time = '$cur_dep_time', cur_dep_time_code = '$cur_dep_time_code', cur_off_time = '$cur_off_time', + cur_off_time_code = '$cur_off_time_code', cur_on_time = '$cur_on_time', cur_on_time_code = '$cur_on_time_code', cur_in_time = '$cur_in_time', + cur_in_time_code = '$cur_in_time_code', delay_code = '$delay_code', depart_gate = '$depart_gate', arriv_gate = '$arriv_gate', + radio_code = '$radio_code', aircraft = '$aircraft', reg_numb = '$reg_numb', remarks = '$remarks', food_code = '$food_code', flight_type = '$flight_type', + downline_leg = '$downline_leg', overfly = '$overfly', canceled = '$canceled', dep_ontime = '$dep_ontime', arriv_ontime = '$arriv_ontime' + WHERE flt_orig_date = '$flt_orig_date' AND flt_numb = '$flt_numb';", SI_CONN_STR, FALSE ); + echo "Flight $flt_numb on $flt_orig_date updated
    "; + } + } + + } // end of if flight_type != 'Z' + } + + // Store for analysis +/* +if( ($handle = fopen( '/tmp/nwa_feed', 'a')) ) + { + fwrite( $handle, $XMLData."\n\n" ); + fclose($handle); + } +*/ + +if( trim($XMLData) != '' ) + get_nwa_data( $XMLData ); + else + echo "No data received.

    "; + +echo ''; + +?> diff --git a/nwa_data.phtml.SAVE b/nwa_data.phtml.SAVE new file mode 100644 index 0000000..de88b9a --- /dev/null +++ b/nwa_data.phtml.SAVE @@ -0,0 +1,173 @@ +Gaslight Media - Northwest Airlines Flight Data Capture

    '; + + // Get item data + +function get_nwa_item( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + return( $x ); + } + + // Get item data as time and fix up time + +function get_nwa_item_time( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + $x = strtr( $x, "TZ", " "); + return( $x ); + } + + // Return a bool item ready for database + +function get_nwa_item_bool( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + if( trim($x) == 'Y' ) + return( 't' ); + return( 'f' ); + } + +function get_nwa_data( $XMLData ) + { + // If there's data + + if( isset($XMLData) && trim($XMLData) == '' ) + return( false ); + + // Extract XML into an array + + $d = glm_xml_extract( stripslashes($XMLData) ); + + if( !is_array($d) ) + return( false ); + + // Should have some data now. Check version number + if( ($msg_vers_id = get_nwa_item( $d, '/fds_fidspln/msg_hdr/msg_vers_id' )) == '' || $msg_vers_id < EXPECTED_NWS_MSG_MAJ_VERSION || $msg_vers_id >= EXPECTED_NWS_MSG_MAJ_VERSION + 1 ) + return( false ); // Wrong major version + + // Get rest of mesage header + + $msg_dtm = get_nwa_item_time( $d, '/fds_fidspln/msg_hdr/msg_dtm' ); // Get message time - UTC + $msg_seq_id = get_nwa_item( $d, '/fds_fidspln/msg_hdr/msg_seq_id' ); // Message sequence # + + // Get flight key + + $flt_orig_date = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/flt_orig_dte' ); // Flight origination date + $flt_airline = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/al_cde' ); // Airline ID + $flt_numb = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/flt_num' ); // Flight Number + $flt_leg_orig = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_orig_ap_cde' ); // Leg origin Airport code + $flt_leg_dest = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_dest_ap_cde' ); // Leg destination Airport code + $flt_leg_vers = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_orig_vers_num' ); // Leg version number + + // Get flight schedule - Local Times + + $sch_leg_orig = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_sked/leg_orig_ap_cde' ); // Origination Airport + $sch_leg_dest = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_sked/leg_dest_ap_cde' ); // Destination Airport + $sch_dep_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/out_dtm' ); // Departure Time + $sch_off_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/off_dtm' ); // Off runway time + $sch_on_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/on_dtm' ); // On runway Time + $sch_in_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/in_dtm' ); // Arrival Time + + // Get flight OOOI - Local Times ( Out, Off, On, In times) - These are updated times + // Time codes are ?S? (scheduled), ?E? (estimated), ?D? (decision), ?R? (in-range), ?A? (actual) + + $cur_dep_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/out_dtm' ); // Departure Time + $cur_dep_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/out_tme_type_cde' ); // Time code + $cur_off_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/off_dtm' ); // Off runway time + $cur_off_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/off_tme_type_cde' ); // Time code + $cur_on_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/on_dtm' ); // On runway Time + $cur_on_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/on_tme_type_cde' ); // Time Code + $cur_in_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/in_dtm' ); // Arrival Time + $cur_in_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/in_tme_type_cde' ); // Time Code + + // Get Misc information + + $delay_code = get_nwa_item( $d, '/fds_fidspln/flt_data/delay_cde' ); // Delay reason code (if any) + $depart_gate = get_nwa_item( $d, '/fds_fidspln/flt_data/dptr_gate' ); // Departure gate + $arriv_gate = get_nwa_item( $d, '/fds_fidspln/flt_data/arvl_gate' ); // Arrival Gate + $radio_code = get_nwa_item( $d, '/fds_fidspln/flt_data/dlt_radio_cde' ); // FAA Flight Radio Code + $aircraft = get_nwa_item( $d, '/fds_fidspln/flt_data/ac_num' ); // Aircraft number + $reg_numb = get_nwa_item( $d, '/fds_fidspln/flt_data/ac_reg_num' ); // Aircraft FAA registration number + $remarks = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_rmks' ); // Remarks about flight + $food_code = get_nwa_item( $d, '/fds_fidspln/flt_data/inflt_scv_rmks' ); // Meal service code + $flight_type = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_typ_cde' ); // Flight Type Code (PS=passenger) + + // Flight Flags + + $downline_leg = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/downline_leg_ind' ); // Downline leg indicator ??? + $overfly = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/overfly_ind' ); // Overfly? + $canceled = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/cncl_ind' ); // Canceled? + $dep_ontime = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/sked_dptr_ind' ); // Depart on schedule? + $arriv_ontime = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/sked_arvl_ind' ); // Arrive on schedule? + + if( ($f = db_auto_get_row( "SELECT msg_seq_id FROM flight WHERE flt_orig_date = '$flt_orig_date' AND flt_numb = '$flt_numb';", 0, SI_CONN_STR, FALSE )) == false ) + { + db_auto_exec( "INSERT INTO flight + ( + msg_dtm, msg_seq_id, flt_orig_date, flt_airline, flt_numb, flt_leg_orig, flt_leg_dest, flt_leg_vers, + sch_leg_orig, sch_leg_dest, sch_dep_time, sch_off_time, sch_on_time, sch_in_time, cur_dep_time, cur_dep_time_code, + cur_off_time , cur_off_time_code, cur_on_time, cur_on_time_code, cur_in_time, cur_in_time_code, delay_code, + depart_gate, arriv_gate, radio_code, aircraft, reg_numb, remarks, food_code, flight_type, downline_leg, + overfly, canceled, dep_ontime, arriv_ontime + ) + VALUES + ( + '$msg_dtm', '$msg_seq_id', '$flt_orig_date', '$flt_airline', '$flt_numb', '$flt_leg_orig', '$flt_leg_dest', $flt_leg_vers, + '$sch_leg_orig', '$sch_leg_dest', '$sch_dep_time', '$sch_off_time', '$sch_on_time', '$sch_in_time', '$cur_dep_time', '$cur_dep_time_code', + '$cur_off_time', '$cur_off_time_code', '$cur_on_time', '$cur_on_time_code', '$cur_in_time', '$cur_in_time_code', '$delay_code', + '$depart_gate', '$arriv_gate', '$radio_code', '$aircraft', '$reg_numb', '$remarks', '$food_code', '$flight_type', '$downline_leg', + '$overfly', '$canceled', '$dep_ontime', '$arriv_ontime' + );", SI_CONN_STR, FALSE ); + + echo "Flight $flt_numb on $flt_orig_date added
    "; + } + else + { + if( $msg_seq_id <= $f['msg_seq_id'] ) + echo 'Duplicate message or message out of sequence.
    '; + else + { + db_auto_exec( "UPDATE flight SET + msg_dtm = '$msg_dtm', msg_seq_id = '$msg_seq_id', + flt_leg_orig = '$flt_leg_orig', flt_leg_dest = '$flt_leg_dest', flt_leg_vers = $flt_leg_vers, sch_leg_orig = '$sch_leg_orig', + sch_leg_dest = '$sch_leg_dest', sch_dep_time = '$sch_dep_time', sch_off_time = '$sch_off_time', sch_on_time = '$sch_on_time', + sch_in_time = '$sch_in_time', cur_dep_time = '$cur_dep_time', cur_dep_time_code = '$cur_dep_time_code', cur_off_time = '$cur_off_time', + cur_off_time_code = '$cur_off_time_code', cur_on_time = '$cur_on_time', cur_on_time_code = '$cur_on_time_code', cur_in_time = '$cur_in_time', + cur_in_time_code = '$cur_in_time_code', delay_code = '$delay_code', depart_gate = '$depart_gate', arriv_gate = '$arriv_gate', + radio_code = '$radio_code', aircraft = '$aircraft', reg_numb = '$reg_numb', remarks = '$remarks', food_code = '$food_code', flight_type = '$flight_type', + downline_leg = '$downline_leg', overfly = '$overfly', canceled = '$canceled', dep_ontime = '$dep_ontime', arriv_ontime = '$arriv_ontime' + WHERE flt_orig_date = '$flt_orig_date' AND flt_numb = '$flt_numb';", SI_CONN_STR, FALSE ); + echo "Flight $flt_numb on $flt_orig_date updated
    "; + } + } + + } + +if( trim($XMLData) != '' ) + get_nwa_data( $XMLData ); + else + echo "No data received.

    "; + +echo ''; + +?> diff --git a/nwa_data_manual.phtml b/nwa_data_manual.phtml new file mode 100644 index 0000000..338a713 --- /dev/null +++ b/nwa_data_manual.phtml @@ -0,0 +1,179 @@ +'; + + // *** TEMP FORM TO GET TEST DATA + +echo 'Test Data
    +

    + + +
    + '; + + // Get item data + +function get_nwa_item( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + return( $x ); + } + + // Get item data as time and fix up time + +function get_nwa_item_time( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + $x = strtr( $x, "TZ", " "); + return( $x ); + } + + // Return a bool item ready for database + +function get_nwa_item_bool( $data, $path ) + { + if( ($x = glm_xml_xpath( $data, 'get_node_text', $path )) == '' ) + return( false ); // No data returned + if( trim($x) == 'Y' ) + return( 't' ); + return( 'f' ); + } + +function get_nwa_data( $XMLData ) + { + // If there's data + + if( isset($XMLData) && trim($XMLData) == '' ) + return( false ); + + // Extract XML into an array + + $d = glm_xml_extract( stripslashes($XMLData) ); + + if( !is_array($d) ) + return( false ); + + // Should have some data now. Check version number + if( ($msg_vers_id = get_nwa_item( $d, '/fds_fidspln/msg_hdr/msg_vers_id' )) == '' || $msg_vers_id < EXPECTED_NWS_MSG_MAJ_VERSION || $msg_vers_id >= EXPECTED_NWS_MSG_MAJ_VERSION + 1 ) + return( false ); // Wrong major version + + // Get rest of mesage header + + $msg_dtm = get_nwa_item_time( $d, '/fds_fidspln/msg_hdr/msg_dtm' ); // Get message time - UTC + $msg_seq_id = get_nwa_item( $d, '/fds_fidspln/msg_hdr/msg_seq_id' ); // Message sequence # + + // Get flight key + + $flt_orig_date = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/flt_orig_dte' ); // Flight origination date + $flt_airline = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/al_cde' ); // Airline ID + $flt_numb = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/flt_num' ); // Flight Number + $flt_leg_orig = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_orig_ap_cde' ); // Leg origin Airport code + $flt_leg_dest = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_dest_ap_cde' ); // Leg destination Airport code + $flt_leg_vers = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_key/leg_orig_vers_num' ); // Leg version number + + // Get flight schedule - Local Times + + $sch_leg_orig = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_sked/leg_orig_ap_cde' ); // Origination Airport + $sch_leg_dest = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_sked/leg_dest_ap_cde' ); // Destination Airport + $sch_dep_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/out_dtm' ); // Departure Time + $sch_off_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/off_dtm' ); // Off runway time + $sch_on_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/on_dtm' ); // On runway Time + $sch_in_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_sked/in_dtm' ); // Arrival Time + + // Get flight OOOI - Local Times ( Out, Off, On, In times) - These are updated times + // Time codes are ?S? (scheduled), ?E? (estimated), ?D? (decision), ?R? (in-range), ?A? (actual) + + $cur_dep_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/out_dtm' ); // Departure Time + $cur_dep_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/out_tme_type_cde' ); // Time code + $cur_off_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/off_dtm' ); // Off runway time + $cur_off_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/off_tme_type_cde' ); // Time code + $cur_on_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/on_dtm' ); // On runway Time + $cur_on_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/on_tme_type_cde' ); // Time Code + $cur_in_time = get_nwa_item_time( $d, '/fds_fidspln/flt_data/flt_oooi/in_dtm' ); // Arrival Time + $cur_in_time_code = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_oooi/in_tme_type_cde' ); // Time Code + + // Get Misc information + + $delay_code = get_nwa_item( $d, '/fds_fidspln/flt_data/delay_cde' ); // Delay reason code (if any) + $depart_gate = get_nwa_item( $d, '/fds_fidspln/flt_data/dptr_gate' ); // Departure gate + $arriv_gate = get_nwa_item( $d, '/fds_fidspln/flt_data/arvl_gate' ); // Arrival Gate + $radio_code = get_nwa_item( $d, '/fds_fidspln/flt_data/dlt_radio_cde' ); // FAA Flight Radio Code + $aircraft = get_nwa_item( $d, '/fds_fidspln/flt_data/ac_num' ); // Aircraft number + $reg_numb = get_nwa_item( $d, '/fds_fidspln/flt_data/ac_reg_num' ); // Aircraft FAA registration number + $remarks = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_rmks' ); // Remarks about flight + $food_code = get_nwa_item( $d, '/fds_fidspln/flt_data/inflt_scv_rmks' ); // Meal service code + $flight_type = get_nwa_item( $d, '/fds_fidspln/flt_data/flt_typ_cde' ); // Flight Type Code (PS=passenger) + + // Flight Flags + + $downline_leg = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/downline_leg_ind' ); // Downline leg indicator ??? + $overfly = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/overfly_ind' ); // Overfly? + $canceled = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/cncl_ind' ); // Canceled? + $dep_ontime = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/sked_dptr_ind' ); // Depart on schedule? + $arriv_ontime = get_nwa_item_bool( $d, '/fds_fidspln/flt_data/sked_arvl_ind' ); // Arrive on schedule? + + if( ($f = db_auto_get_row( "SELECT msg_seq_id FROM flight WHERE flt_orig_date = '$flt_orig_date' AND flt_numb = '$flt_numb';", 0, SI_CONN_STR, FALSE )) == false ) + { + db_auto_exec( "INSERT INTO flight + ( + msg_dtm, msg_seq_id, flt_orig_date, flt_airline, flt_numb, flt_leg_orig, flt_leg_dest, flt_leg_vers, + sch_leg_orig, sch_leg_dest, sch_dep_time, sch_off_time, sch_on_time, sch_in_time, cur_dep_time, cur_dep_time_code, + cur_off_time , cur_off_time_code, cur_on_time, cur_on_time_code, cur_in_time, cur_in_time_code, delay_code, + depart_gate, arriv_gate, radio_code, aircraft, reg_numb, remarks, food_code, flight_type, downline_leg, + overfly, canceled, dep_ontime, arriv_ontime + ) + VALUES + ( + '$msg_dtm', '$msg_seq_id', '$flt_orig_date', '$flt_airline', '$flt_numb', '$flt_leg_orig', '$flt_leg_dest', $flt_leg_vers, + '$sch_leg_orig', '$sch_leg_dest', '$sch_dep_time', '$sch_off_time', '$sch_on_time', '$sch_in_time', '$cur_dep_time', '$cur_dep_time_code', + '$cur_off_time', '$cur_off_time_code', '$cur_on_time', '$cur_on_time_code', '$cur_in_time', '$cur_in_time_code', '$delay_code', + '$depart_gate', '$arriv_gate', '$radio_code', '$aircraft', '$reg_numb', '$remarks', '$food_code', '$flight_type', '$downline_leg', + '$overfly', '$canceled', '$dep_ontime', '$arriv_ontime' + );", SI_CONN_STR, FALSE ); + + echo "Flight $flt_numb on $flt_orig_date added
    "; + } + else + { + if( $msg_seq_id <= $f['msg_seq_id'] ) + echo 'Duplicate message or message out of sequence.
    '; + else + { + db_auto_exec( "UPDATE flight SET + msg_dtm = '$msg_dtm', msg_seq_id = '$msg_seq_id', + flt_leg_orig = '$flt_leg_orig', flt_leg_dest = '$flt_leg_dest', flt_leg_vers = $flt_leg_vers, sch_leg_orig = '$sch_leg_orig', + sch_leg_dest = '$sch_leg_dest', sch_dep_time = '$sch_dep_time', sch_off_time = '$sch_off_time', sch_on_time = '$sch_on_time', + sch_in_time = '$sch_in_time', cur_dep_time = '$cur_dep_time', cur_dep_time_code = '$cur_dep_time_code', cur_off_time = '$cur_off_time', + cur_off_time_code = '$cur_off_time_code', cur_on_time = '$cur_on_time', cur_on_time_code = '$cur_on_time_code', cur_in_time = '$cur_in_time', + cur_in_time_code = '$cur_in_time_code', delay_code = '$delay_code', depart_gate = '$depart_gate', arriv_gate = '$arriv_gate', + radio_code = '$radio_code', aircraft = '$aircraft', reg_numb = '$reg_numb', remarks = '$remarks', food_code = '$food_code', flight_type = '$flight_type', + downline_leg = '$downline_leg', overfly = '$overfly', canceled = '$canceled', dep_ontime = '$dep_ontime', arriv_ontime = '$arriv_ontime' + WHERE flt_orig_date = '$flt_orig_date' AND flt_numb = '$flt_numb';", SI_CONN_STR, FALSE ); + echo "Flight $flt_numb on $flt_orig_date updated
    "; + } + } + + } + +get_nwa_data( $XMLData ); + +echo ''; + +?> diff --git a/nwa_test.phtml b/nwa_test.phtml new file mode 100644 index 0000000..b664336 --- /dev/null +++ b/nwa_test.phtml @@ -0,0 +1,21 @@ +\n" ); + +fputs( $fp, '--------------END--------------- + + + +' ); + +fclose( $fp ); + + +?> diff --git a/print.html b/print.html new file mode 100755 index 0000000..328d663 --- /dev/null +++ b/print.html @@ -0,0 +1,89 @@ + + + +Customer Development Server + + + + + +

    Development Area

    +
    +

    You have reached the development area for a Gaslight Media customer Web site.

    +

    www.pellstonairport.com

    +

    Prototype New List Buttons, 3 different looks

    +
    +

    Revised, 03.10.06: Home  |  Lodging, Main  |  Lodging, Loading Page  |  Lodging, Detail Page

    +
    +

    Prototype  |  Lodging, main page  |  Lodging, next

    +
    +

    gallery

    +
    + + +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/print.js b/print.js new file mode 100755 index 0000000..1db5e6b --- /dev/null +++ b/print.js @@ -0,0 +1,11 @@ +function ieExecWB( intOLEcmd, intOLEparam ) +{ + var WebBrowser = ''; + document.body.insertAdjacentHTML('beforeEnd', WebBrowser); + WebBrowser1.ExecWB( intOLEcmd, intOLEparam ); + WebBrowser1.outerHTML = ""; +} +function printAll() +{ + ieExecWB(6,-1); +} diff --git a/prototype/._lodging_list.html b/prototype/._lodging_list.html new file mode 100755 index 0000000..79500bd Binary files /dev/null and b/prototype/._lodging_list.html differ diff --git a/prototype/._lodging_list.jpg b/prototype/._lodging_list.jpg new file mode 100755 index 0000000..ace5e0c Binary files /dev/null and b/prototype/._lodging_list.jpg differ diff --git a/prototype/._lodging_list.psd b/prototype/._lodging_list.psd new file mode 100755 index 0000000..124793c Binary files /dev/null and b/prototype/._lodging_list.psd differ diff --git a/prototype/._lodging_list2.html b/prototype/._lodging_list2.html new file mode 100755 index 0000000..79500bd Binary files /dev/null and b/prototype/._lodging_list2.html differ diff --git a/prototype/._lodging_list2.jpg b/prototype/._lodging_list2.jpg new file mode 100755 index 0000000..ace5e0c Binary files /dev/null and b/prototype/._lodging_list2.jpg differ diff --git a/prototype/Thumbs.db b/prototype/Thumbs.db new file mode 100644 index 0000000..a25873c Binary files /dev/null and b/prototype/Thumbs.db differ diff --git a/prototype/detail.php b/prototype/detail.php new file mode 100755 index 0000000..dc19a7d --- /dev/null +++ b/prototype/detail.php @@ -0,0 +1,57 @@ + + + +Pellston Airport: Area Lodging + + + + + + Flight Status + About Us + Services + Area Lodging + Transportation + Dining + Area Info + Attractions + +
    +
    +
    +
    +
    Area Loding
    +
    Mackinaw City
    +
    + print (2K) +
    +
    +
    + Chippewa Hotel +
    + P.O. Box 250
    + Mackinac Island, MI 49757 +
    + + +
    + back (2K) + call (1K) + map-directions (2K) +
    + Located on Main Street, on the water's edge, you're within walking distance to the ferry docks, marina, carriage tours, shops and historic attractions. The Chippewa Hotel offers Mackinac-Vicotiran style and atmosphere while providing modern amenities and comfort. + Located on Main Street, on the water's edge, you're within walking distance to the ferry docks, marina, carriage tours, shops and historic attractions. The Chippewa Hotel offers Mackinac-Vicotiran style and atmosphere while providing modern amenities and comfort. + Located on Main Street, on the water's edge, you're within walking distance to the ferry docks, marina, carriage tours, shops and historic attractions. The Chippewa Hotel offers Mackinac-Vicotiran style and atmosphere while providing modern amenities and comfort. +
    + temp-detail-photo (3K) + temp-detail-photo (3K) + temp-detail-photo (3K) +
    +
    +
    + nav-inside (19K) + +
    + + diff --git a/prototype/dialing-layer.psd b/prototype/dialing-layer.psd new file mode 100755 index 0000000..4880fcb Binary files /dev/null and b/prototype/dialing-layer.psd differ diff --git a/prototype/home_breakout.psd b/prototype/home_breakout.psd new file mode 100755 index 0000000..bb3064c Binary files /dev/null and b/prototype/home_breakout.psd differ diff --git a/prototype/index.html b/prototype/index.html new file mode 100755 index 0000000..c6c5e8b --- /dev/null +++ b/prototype/index.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/index.php b/prototype/index.php new file mode 100755 index 0000000..b78e5e3 --- /dev/null +++ b/prototype/index.php @@ -0,0 +1,30 @@ + + + +Pellston Airport + + + + + + Flight Status + Services + Area Lodging + Transportation + About Us + Dining + Area Info + Attractions + +
    +
    +

    Welcome

    + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +
    + +
    + + diff --git a/prototype/inside.php b/prototype/inside.php new file mode 100755 index 0000000..2639844 --- /dev/null +++ b/prototype/inside.php @@ -0,0 +1,45 @@ + + + + +Pellston Airport: Area Lodging + + + + + + Flight Status + About Us + Services + Area Lodging + Transportation + Dining + Area Info + Attractions + +
    +
    +
    +
    + lodging (2K) +

    Area Lodging

    +
    + Directional text about what to find on links, ie printable maps, phone dial to motel, etc. + Directional text about what to find on links, ie printable maps, phone dial to motel, etc. +
    + +
    + nav-inside (19K) + +
    + + diff --git a/prototype/list.php b/prototype/list.php new file mode 100755 index 0000000..978ed8c --- /dev/null +++ b/prototype/list.php @@ -0,0 +1,88 @@ + + + +Pellston Airport: Area Lodging + + + + + + Flight Status + About Us + Services + Area Lodging + Transportation + Dining + Area Info + Attractions + +
    +
    +
    +
    +
    Area Loding
    +
    Mackinaw City
    +
    + print (2K) + +
    +
    + a (1K) + a (1K) + a (1K) + a (1K) + a (1K) + a (1K) + a (1K) + a (1K) +
    +
    +
    + temp-photo (35K) + call (1K) + map-directions (2K) + more-info (1K) +
    Chippewa Hotel
    +
    P.O. Box 250
    +
    Mackinac Island, MI49757
    + www.chippewahotel.com + info@chippewahotel.com +
    +
    +
    + temp-photo (35K) + call (1K) + map-directions (2K) + more-info (1K) +
    Chippewa Hotel
    +
    P.O. Box 250
    +
    Mackinac Island, MI49757
    + www.chippewahotel.com + info@chippewahotel.com +
    +
    +
    + temp-photo (35K) + call (1K) + map-directions (2K) + more-info (1K) +
    Chippewa Hotel
    +
    P.O. Box 250
    +
    Mackinac Island, MI49757
    + www.chippewahotel.com + info@chippewahotel.com +
    +
    +
    +
    + nav-inside (19K) + +
    + + diff --git a/prototype/lodging.html b/prototype/lodging.html new file mode 100755 index 0000000..422244f --- /dev/null +++ b/prototype/lodging.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/lodging2.html b/prototype/lodging2.html new file mode 100755 index 0000000..294b6dd --- /dev/null +++ b/prototype/lodging2.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/lodging2b.html b/prototype/lodging2b.html new file mode 100755 index 0000000..c4bd17a --- /dev/null +++ b/prototype/lodging2b.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/lodging_breakout.psd b/prototype/lodging_breakout.psd new file mode 100755 index 0000000..8afec4c Binary files /dev/null and b/prototype/lodging_breakout.psd differ diff --git a/prototype/lodging_list.html b/prototype/lodging_list.html new file mode 100755 index 0000000..590248c --- /dev/null +++ b/prototype/lodging_list.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + + +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/lodging_list.jpg b/prototype/lodging_list.jpg new file mode 100755 index 0000000..a56b777 Binary files /dev/null and b/prototype/lodging_list.jpg differ diff --git a/prototype/lodging_list.psd b/prototype/lodging_list.psd new file mode 100755 index 0000000..58cb5c2 Binary files /dev/null and b/prototype/lodging_list.psd differ diff --git a/prototype/lodging_list2.html b/prototype/lodging_list2.html new file mode 100755 index 0000000..8a70797 --- /dev/null +++ b/prototype/lodging_list2.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + + +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/lodging_list2.jpg b/prototype/lodging_list2.jpg new file mode 100755 index 0000000..b18c9cf Binary files /dev/null and b/prototype/lodging_list2.jpg differ diff --git a/prototype/prototype.jpg b/prototype/prototype.jpg new file mode 100755 index 0000000..d1d3d61 Binary files /dev/null and b/prototype/prototype.jpg differ diff --git a/prototype/prototype_inside.jpg b/prototype/prototype_inside.jpg new file mode 100755 index 0000000..3b8c10e Binary files /dev/null and b/prototype/prototype_inside.jpg differ diff --git a/prototype/prototype_inside_next.jpg b/prototype/prototype_inside_next.jpg new file mode 100755 index 0000000..b691774 Binary files /dev/null and b/prototype/prototype_inside_next.jpg differ diff --git a/prototype/prototype_inside_next2.jpg b/prototype/prototype_inside_next2.jpg new file mode 100755 index 0000000..0bf2594 Binary files /dev/null and b/prototype/prototype_inside_next2.jpg differ diff --git a/prototype/revised/Thumbs.db b/prototype/revised/Thumbs.db new file mode 100644 index 0000000..858e476 Binary files /dev/null and b/prototype/revised/Thumbs.db differ diff --git a/prototype/revised/home.html b/prototype/revised/home.html new file mode 100755 index 0000000..1ba456b --- /dev/null +++ b/prototype/revised/home.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/home.jpg b/prototype/revised/home.jpg new file mode 100755 index 0000000..4aa3e4a Binary files /dev/null and b/prototype/revised/home.jpg differ diff --git a/prototype/revised/lodgin_detail.html b/prototype/revised/lodgin_detail.html new file mode 100755 index 0000000..b074fe4 --- /dev/null +++ b/prototype/revised/lodgin_detail.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/lodging_detail.jpg b/prototype/revised/lodging_detail.jpg new file mode 100755 index 0000000..65ed0d6 Binary files /dev/null and b/prototype/revised/lodging_detail.jpg differ diff --git a/prototype/revised/lodging_loading.html b/prototype/revised/lodging_loading.html new file mode 100755 index 0000000..88fb354 --- /dev/null +++ b/prototype/revised/lodging_loading.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/lodging_loading.jpg b/prototype/revised/lodging_loading.jpg new file mode 100755 index 0000000..fc0cbb3 Binary files /dev/null and b/prototype/revised/lodging_loading.jpg differ diff --git a/prototype/revised/lodging_mainA.html b/prototype/revised/lodging_mainA.html new file mode 100755 index 0000000..47568a8 --- /dev/null +++ b/prototype/revised/lodging_mainA.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/lodging_mainA.jpg b/prototype/revised/lodging_mainA.jpg new file mode 100755 index 0000000..2ce1b8e Binary files /dev/null and b/prototype/revised/lodging_mainA.jpg differ diff --git a/prototype/revised/lodging_mainB.html b/prototype/revised/lodging_mainB.html new file mode 100755 index 0000000..802ad95 --- /dev/null +++ b/prototype/revised/lodging_mainB.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/lodging_mainB.jpg b/prototype/revised/lodging_mainB.jpg new file mode 100755 index 0000000..10b8e68 Binary files /dev/null and b/prototype/revised/lodging_mainB.jpg differ diff --git a/prototype/revised/lodging_mainC.html b/prototype/revised/lodging_mainC.html new file mode 100755 index 0000000..00be89b --- /dev/null +++ b/prototype/revised/lodging_mainC.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/lodging_mainC.jpg b/prototype/revised/lodging_mainC.jpg new file mode 100755 index 0000000..cade51b Binary files /dev/null and b/prototype/revised/lodging_mainC.jpg differ diff --git a/prototype/revised/lodging_mainD.html b/prototype/revised/lodging_mainD.html new file mode 100755 index 0000000..e8a067d --- /dev/null +++ b/prototype/revised/lodging_mainD.html @@ -0,0 +1,50 @@ + + + +Customer Development Server + + + +Pellston Regional Airport +
    +

    +Copyright©2006 Gaslight +Media · All rights reserved

    + + diff --git a/prototype/revised/lodging_mainD.jpg b/prototype/revised/lodging_mainD.jpg new file mode 100755 index 0000000..1ef8629 Binary files /dev/null and b/prototype/revised/lodging_mainD.jpg differ diff --git a/setup.phtml b/setup.phtml new file mode 100755 index 0000000..3317cba --- /dev/null +++ b/setup.phtml @@ -0,0 +1,1758 @@ + 0 ) + $base_url = $HTTP_HOST.substr( dirname($SCRIPT_NAME), 0, -strlen($CALLED_FROM_DIR) ); + else + { + $script_name_dir = dirname($SCRIPT_NAME); + if( $script_name_dir == "/" ) + $script_name_dir = ""; + $base_url = $HTTP_HOST.$script_name_dir; + } + $BASE_URL = "http://".$base_url; + // Indicate that this file has been referenced + $SITEINFO = TRUE; + /* + * + * Dynamic Configuration - Parameters that DO change based on location + * + */ + switch( $GLM_SERVER_ID ) + { + + case "devsys.gaslightmedia.com": + ini_set("display_errors","1"); + // Use the $BASE_URL for secure URL on Devsys + $BASE_SECURE_URL = $BASE_URL; + define("CONN_STR","host=devsys dbname=pellstonairport"); + define("OWNER_EMAIL", "steve@gaslightmedia.com"); // site owner's email address + define("FROM_NEWS_EMAIL", "info@gaslightmedia.com"); // site owner's email address + define("REPLY_TO", "info@gaslightmedia.com"); // the reply-to field for email's + break; + + case "ws1.gaslightmedia.com": + error_reporting(0); + ini_set("display_errors","0"); + $BASE_SECURE_URL = "https://".$base_url; + // for some sites it is necesary to change base_url when in secure mode + if( $_SERVER['HTTPS'] == "on" ) + { + define("BASE_SECURE_URL", $BASE_SECURE_URL."/"); // url used for the secur site + $BASE_URL = "http://".$base_url; // This needs to be set to the real url ie. http://www.upnorth.net + } + define("CONN_STR","host=ds4 dbname=pellstonairport"); + define("OWNER_EMAIL", "PellstonKiosk@emmetcounty.org"); // site owner's email address + define("FROM_NEWS_EMAIL", "info@gaslightmedia.com"); // site owner's email address + define("REPLY_TO", "PellstonKiosk@emmetcounty.org"); // the reply-to field for email's + break; + + default: // There should be no need for any settings here + break; + + } + define("BASE_URL", $BASE_URL."/"); // url used for the root of site + define("URL_BASE", $BASE_URL."/"); // same as BASE_URL + define("BASE_PATH", $BASE_PATH."/"); // root directory path of site + define("BASE", $BASE_PATH."/"); // same as BASE_PATH + define("HELP_BASE", "help/"); // help guide base (depreciated) + define("UP_BASE", BASE."uploads/"); // uploads directory path + define("IMG_BASE", URL_BASE."images/"); // the images url path + define("POSTCARD_URL",URL."postcard.phtml"); // postcard url (used for postcard app) + define("LOGO_IMG",URL_BASE."images/logoicon.gif"); // used in admin area as the path to image logo + define("HELP_IMG",URL_BASE."images/help.gif"); // help image url (depriated) + define("ORIGINAL_PATH", BASE."images/original/"); // path of original images + define("RESIZED_PATH", BASE."images/resized/"); // path of first resized image + define("MIDSIZED_PATH", BASE."images/midsized/"); // path of half sized of resized + define("THUMB_PATH", BASE."images/thumb/"); // path of thumbnail directory + if( $_SERVER['HTTPS'] == "on" ) + { + define("ORIGINAL", $BASE_SECURE_URL."/images/original/"); // url of original images + define("RESIZED", $BASE_SECURE_URL."/images/resized/"); // url of resized + define("MIDSIZED", $BASE_SECURE_URL."/images/midsized/"); // url of midsized + define("THUMB", $BASE_SECURE_URL."/images/thumb/"); // url of thumbnail + } + else + { + define("ORIGINAL", URL_BASE."images/original/"); // url of original images + define("RESIZED", URL_BASE."images/resized/"); // url of resized + define("MIDSIZED", URL_BASE."images/midsized/"); // url of midsized + define("THUMB", URL_BASE."images/thumb/"); // url of thumbnail + } + + /** these are the image sizing defines USE THESE ONLY + only allowed string of 'WxH[<>]' [-quality Percentage] + */ + define("ITEM_RESIZED", "'287>'"); // used in convert call to resize images + define("ITEM_MIDSIZED", "'210>'"); + define("ITEM_THUMB","'120>'"); + + define("FOOTER_IMG", URL_BASE."images/logosmall.gif"); + define("FOOTER_URL", URL_BASE); + define("STYLE","main.css"); + + /** + These are defines for the photo gallery images + */ + define('PHOTO_LARGE_SIZE',"'430x300>'"); + define('PHOTO_LARGE_DIR',BASE.'images/photo-large/'); + define('PHOTO_LARGE_URL',BASE_URL.'images/photo-large/'); + + define('PHOTO_SMALL_SIZE',"'133x100>'"); + define('PHOTO_SMALL_DIR',BASE.'images/photo-small/'); + define('PHOTO_SMALL_URL',BASE_URL.'images/photo-small/'); + // [status_US] array of states and their abbr. + $states_US[""] = "- Choose State -"; + $states_US["AL"]= "Alabama"; + $states_US["AK"]= "Alaska"; + $states_US["AZ"]= "Arizona"; + $states_US["AR"]= "Arkansas"; + $states_US["CA"]= "California"; + $states_US["CO"]= "Colorado"; + $states_US["CT"]= "Connecticut"; + $states_US["DE"]= "Delaware"; + $states_US["DC"]= "District of Columbia"; + $states_US["FL"]= "Florida"; + $states_US["GA"]= "Georgia"; + $states_US["HI"]= "Hawaii"; + $states_US["ID"]= "Idaho"; + $states_US["IL"]= "Illinois"; + $states_US["IN"]= "Indiana"; + $states_US["IA"]= "Iowa"; + $states_US["KS"]= "Kansas"; + $states_US["KY"]= "Kentucky"; + $states_US["LA"]= "Louisiana"; + $states_US["ME"]= "Maine"; + $states_US["MD"]= "Maryland"; + $states_US["MA"]= "Massachusetts"; + $states_US["MI"]= "Michigan"; + $states_US["MN"]= "Minnesota"; + $states_US["MS"]= "Mississppi"; + $states_US["MO"]= "Missouri"; + $states_US["MT"]= "Montana"; + $states_US["NE"]= "Nebraska"; + $states_US["NV"]= "Nevada"; + $states_US["NH"]= "New Hampshire"; + $states_US["NJ"]= "New Jersey"; + $states_US["NM"]= "New Mexico"; + $states_US["NY"]= "New York"; + $states_US["NC"]= "North Carolina"; + $states_US["ND"]= "North Dakota"; + $states_US["OH"]= "Ohio"; + $states_US["OK"]= "Oklahoma"; + $states_US["OR"]= "Oregon"; + $states_US["PA"]= "Pennsylvania"; + $states_US["RI"]= "Rhode Island"; + $states_US["SC"]= "South Carolina"; + $states_US["SD"]= "South Dakota"; + $states_US["TN"]= "Tennessee"; + $states_US["TX"]= "Texas"; + $states_US["UT"]= "Utah"; + $states_US["VT"]= "Vermont"; + $states_US["VA"]= "Virginia"; + $states_US["WA"]= "Washington"; + $states_US["WV"]= "West Virginia"; + $states_US["WI"]= "Wisconsin"; + $states_US["WY"]= "Wyoming"; + + // [states] extended states array + $states["AL"] = "Alabama"; + $states["AK"] = "Alaska"; + $states["AB"] = "Alberta"; + $states["AS"] = "American Samoa"; + $states["AZ"] = "Arizona"; + $states["AR"] = "Arkansas"; + $states["BC"] = "British Columbia"; + $states["CA"] = "California"; + $states["CO"] = "Colorado"; + $states["CT"] = "Connecticut"; + $states["DE"] = "Delaware"; + $states["DC"] = "District of Columbia"; + $states["FM"] = "Federated States of Micronesia"; + $states["FL"] = "Florida"; + $states["GA"] = "Georgia"; + $states["GU"] = "Guam"; + $states["HI"] = "Hawaii"; + $states["ID"] = "Idaho"; + $states["IL"] = "Illinois"; + $states["IN"] = "Indiana"; + $states["IA"] = "Iowa"; + $states["KS"] = "Kansas"; + $states["KY"] = "Kentucky"; + $states["LA"] = "Louisiana"; + $states["ME"] = "Maine"; + $states["MB"] = "Manitoba"; + $states["MH"] = "Marshall Islands"; + $states["MD"] = "Maryland"; + $states["MA"] = "Massachusetts"; + $states["MI"] = "Michigan"; + $states["MN"] = "Minnesota"; + $states["MS"] = "Mississppi"; + $states["MO"] = "Missouri"; + $states["MT"] = "Montana"; + $states["NE"] = "Nebraska"; + $states["NV"] = "Nevada"; + $states["NB"] = "New Brunswick"; + $states["NF"] = "Newfoundland"; + $states["NH"] = "New Hampshire"; + $states["NJ"] = "New Jersey"; + $states["NM"] = "New Mexico"; + $states["NY"] = "New York"; + $states["NC"] = "North Carolina"; + $states["ND"] = "North Dakota"; + $states["MP"] = "Northern Mariana Islands"; + $states["NT"] = "Northwest Territories"; + $states["NS"] = "Nova Scotia"; + $states["OH"] = "Ohio"; + $states["OK"] = "Oklahoma"; + $states["ON"] = "Ontario"; + $states["OR"] = "Oregon"; + $states["PW"] = "Palau"; + $states["PA"] = "Pennsylvania"; + $states["PE"] = "Prince Edward Island"; + $states["PR"] = "Puerto Rico"; + $states["QC"] = "Quebec"; + $states["RI"] = "Rhode Island"; + $states["SK"] = "Saskatchewan"; + $states["SC"] = "South Carolina"; + $states["SD"] = "South Dakota"; + $states["TN"] = "Tennessee"; + $states["TX"] = "Texas"; + $states["UT"] = "Utah"; + $states["VT"] = "Vermont"; + $states["VI"] = "Virgin Islands"; + $states["VA"] = "Virginia"; + $states["WA"] = "Washington"; + $states["WV"] = "West Virginia"; + $states["WI"] = "Wisconsin"; + $states["WY"] = "Wyoming"; + $states["YT"] = "Yukon"; + $states["Asia"] = "Asia"; + $states["Australia"] = "Australia"; + $states["Bahamas"] = "Bahamas"; + $states["Caribbean"] = "Caribbean"; + $states["Costa Rica"] = "Costa Rica"; + $states["South America"] = "South America"; + $states["South Africa"] = "South Africa"; + $states["Europe"] = "Europe"; + $states["Mexico"] = "Mexico"; + /* Libraries */ + /* Replaced with the actual functions instead of includes (2001-12-14) */ + + + + /** + * CreditVal : CreditVal Checks for a valid credit card number doing Luhn check, if no + card type is given, attempts to guess. Then, if a list of + accepted types is given, determines whether or not we'll + accept it + * @param $Num: Credit Card Number + * @param $Name = '': Type of Card + * @param $Accepted='' : Accepted array + * + * @return bool + * @access + **/ + function CreditVal($Num, $Name = '', $Accepted='') + { + $Name = strtolower( $Name ); + $Accepted = strtolower( $Accepted ); + $GoodCard = 1; + $Num = ereg_replace("[^[:digit:]]", "", $Num); + switch ($Name) + { + + case "mastercard" : + $GoodCard = ereg("^5[1-5].{14}$", $Num); + break; + + case "visa" : + $GoodCard = ereg("^4.{15}$|^4.{12}$", $Num); + break; + + case "americanexpress" : + $GoodCard = ereg("^3[47].{13}$", $Num); + break; + + case "discover" : + $GoodCard = ereg("^6011.{12}$", $Num); + break; + + case "dinerscard" : + $GoodCard = ereg("^30[0-5].{11}$|^3[68].{12}$", $Num); + break; + + default: + if( ereg("^5[1-5].{14}$", $Num) ) $Name = "mastercard"; + if( ereg("^4.{15}$|^4.{12}$", $Num) ) $Name = "visa"; + if( ereg("^3[47].{13}$", $Num) ) $Name = "americanexpress"; + if( ereg("^6011.{12}$", $Num) ) $Name = "discover"; + if( ereg("^30[0-5].{11}$|^3[68].{12}$", $Num) ) $Name="dinerscard"; + break; + } + + // If there's a limit on card types we accept, check for it here. + if( $Accepted ) + { + $type_verified = FALSE; + $brands = explode_trim( ",", $Accepted ); + foreach( $brands as $brand ) + if( $Name == $brand ) + $type_verified = TRUE; + + if( !$type_verified ) return(FALSE); + } + + $Num = strrev($Num); + + $Total = 0; + + for ($x=0; $x +
    + + + + + +
    + + + + FOOTER_IMG +
    + + + + + + + +
    +
    $msg"?>
    +
    + + '; + foreach( $nav as $link => $url ) + { + $out .= '
  • '.$link.'
  • '; + } + $out .= ''; + } + echo $out; + } + + /** + * html_header :Opens up the html tags, and includes the style sheet link + generates a header table on the top of the page it's called on. + * @param $title: Page Title + * @param $msg: message to display + * @param $$img : image to display + * + * @return void + * @access + **/ + function html_header($title, $msg, $img) + { + $header_table_width = "400"; + $header_table_align = "center"; + + ?> + + + + <?echo $title?> + + + + + + + + + + +
    + + <?echo HEAD?> + +
    +
    +
    + $value) + * + * @return void + * @access + **/ + function form_header($action, $method, $hidden = "") + { + echo "
    "; + if($hidden != "" && is_array($hidden)) + { + foreach($hidden as $key=>$value) + { + echo ""; + } + } + } + + /** + * text_area :Creates textarea with good default values for rows cols and wrap. + * @param $name: string form action string + * @param $value: string Method of form + * @param $$rows = 15: int4 number of rows in textarea box + * @param $$cols = 50: int4 number of cols in textarea box + * @param $$wrap = "virtual" : string the wrap value for the textarea box + * + * @return void + * @access + **/ + function text_area($name, $value, $rows = 15, $cols = 50, $wrap = "virtual" ) + { + echo ""; + } + + /** + * text_box :Creates a input box for text with 35 as default size + * @param $name: string name of text box + * @param $value: string value of text box + * @param $$size = 35 : string size of text box + * + * @return void + * @access + **/ + function text_box($name, $value, $size = 35) + { + echo ""; + } + + /** + * form_footer :Closes up the form tag, and includes the submit button + * @param $name: string form action string + * @param $$suppress = 0: string Method of form + * @param $$cs : int colspan for td + * + * @return void + * @access + **/ + function form_footer($name, $suppress = 0, $cs) + { + echo " + "; + if($suppress == 1) + { + echo ""; + } + /* echo "";*/ + echo ""; + } + + /* Graphics Libraries */ + + /** + * process_image :Main function for image processing + * NOTES: + * This function does the following: + * + * 1) places image into original folder + * + * 2) makes three images from original size and places them + * into the RESIZED, MIDSIZED, and THUMB folders + * @param $image: The variable of the image being post from the form + * @param $$image_name : The variable_name of the image being post + * + * @return string - Returns $image_name + * @access + **/ + function process_image ($image,$image_name) + { + if(!defined("ORIGINAL_PATH")) + { + html_error("this not defined original_path",1); + } + if(!defined("RESIZED_PATH")) + { + html_error("this not defined resized_path",1); + } + if(!defined("MIDSIZED_PATH")) + { + html_error("this not defined midsized_path",1); + } + if(!defined("THUMB_PATH")) + { + html_error("this not defined thumb_path",1); + } + $image_upload_array = img_upload($image,$image_name,ORIGINAL_PATH); + //img_resize($image_upload_array[1],ORIGINAL_PATH.$image_upload_array[0],ITEM_ORIGINAL); + img_resize(ORIGINAL_PATH.$image_upload_array[0],RESIZED_PATH.$image_upload_array[0],ITEM_RESIZED); + img_resize(RESIZED_PATH.$image_upload_array[0],MIDSIZED_PATH.$image_upload_array[0],ITEM_MIDSIZED); + img_resize(MIDSIZED_PATH.$image_upload_array[0],THUMB_PATH.$image_upload_array[0],ITEM_THUMB); + $image_name = $image_upload_array[0]; + return($image_name); + } + + /** + * img_resize :Resizes an image based on a full scale jpeg or gif + * @param $image: path to image which needs to be resized + * @param $thumb: path where resized image will live + * @param $$size : using axis size of new image + * + * @return array $img_resize_array + * @access + **/ + function img_resize($path2image,$path2thumb,$size) + { + exec( "which convert", $output, $return ); + if( $return == 0 ) + { + $command = $output[0]; + $pos = strpos($command,"convert"); + $Path2GraphicsTools = substr( $command, 0, $pos - 1 ); + } + else + { + $Path2GraphicsTools = "/usr/X11R6/bin"; + } + $imageName = basename($path2image); + $thumbName = basename($path2thumb); + + exec("$Path2GraphicsTools/convert -quality 100 -scale $size $path2image $path2thumb"); + + $img_resize_array = array("$imageName","$path2image","$thumbName","$path2thumb"); + return($img_resize_array); + } + + /** + * img_upload :Function moves the image to the destination directory + Checking to make sure that it does not have same named file in dicectory. + Image must be either jpg ,png or gif format file to be uploaded. + * @param $form_field: $form_field of image + * @param $img_name: $form_field of image with _name + * @param $$destination_path : path to store uploaded image + * + * @return array $img_upload_array + * @access + **/ + function img_upload($form_field,$img_name,$destination_path) + { + if (ereg("[!@#$%^&()+={};:\'\" ]",$img_name)) + { + $img_name = ereg_replace("[!@#$%^&()+={};:\'\" ]","-",$img_name); + } + + $size = getImageSize($form_field); + + if( $size[2] == 1 || $size[2] == 2 || $size[2] == 3 ) + { + $img_name_in_use = "FALSE"; + if( file_exists(RESIZED_PATH.$img_name) ) + { + $img_name_in_use = "TRUE"; + } + + if ($img_name_in_use == "TRUE") + { + $new_img_name = mktime().$img_name; + $new_img_location = $destination_path.'/'.$new_img_name; + + copy($form_field,$new_img_location); + + chmod($new_img_location, 0666); + + $img_upload_array = array("$new_img_name","$new_img_location"); + } + else + { + $new_img_name = $img_name; + $new_img_location = $destination_path.'/'.$new_img_name; + + copy($form_field,$new_img_location); + + chmod($new_img_location, 0666); + + $img_upload_array = array("$new_img_name","$new_img_location"); + } + } + else + { + echo '

    ' + .'The file you uploaded was of an incorect type, please only upload .gif,.png or .jpg files' + .'
    ' + .'

    ' + ."Hit your browser's back button to continue" + .'

    '; + $error[0] = "ERROR"; + return($error); + } + + return($img_upload_array); + } + + /** + * file_upload :Uploads a file same way as image_uploads does + * @param $form_field: $form_field of image + * @param $file_name: $form_field of image with _name + * @param $$destination_path : path to store uploaded image + * + * @return string $file_upload + * @access + **/ + function file_upload($form_field,$file_name,$destination_path) + { + if (ereg("[!@#$%^&()+={};:\'\" ]",$file_name)) + { + $file_name = ereg_replace("[!@#$%^&()+={};:\'\" ]","_",$file_name); + } + + if( file_exists(UP_BASE.$file_name) ) + { + $img_name_in_use = "TRUE"; + } + + if ($file_name_in_use == "TRUE") + { + $new_file_name = mktime().$file_name; + $new_file_location = $destination_path.'/'.$new_file_name; + + copy($form_field,$new_file_location); + + chmod($new_file_location, 0666); + + $file_upload = $new_file_name; + } + else + { + $new_file_name = $file_name; + $new_file_location = $destination_path.'/'.$new_file_name; + + copy($form_field,$new_file_location); + + chmod($new_file_location, 0666); + + $file_upload = $new_file_name; + } + return($file_upload); + } + + /* Misc. Functions */ + + /** + * http_strip :Strips the http:// part from start of string + * @param $&$string : $string + * + * @return string $stirng minus http:// in front + * @access + **/ + function http_strip(&$string) + { + $test_string = strtolower($string); + if(substr($test_string,0,7) == "http://") + { + $string = substr($string,7); + } + } + + /** + * footer : used for admin page footer to close out the top function + * + * @return void + * @access + **/ + function footer() + { + $out = ' + + + '; + echo $out; + } + + /** + * top :Output the starting html and admin table tags + * @param $message: The title + * @param $hp: The help file to use + * @param $$hp2 = NULL : The help file to use (links to gaslightmedia.com) + * + * @return void + * @access + **/ + function top($message, $hp,$hp2 = NULL) + { + $out = ' + + + + Untitled + + + + + +

    '.$message.'

    + '; + echo $out; + } + + /** + * top2 : alias to top() + * @param $message: message title + * @param $hp: help file + * @param $$hp2 = NULL : gaslight help file + * + * @return + * @access + **/ + function top2($message, $hp,$hp2 = NULL) + { + // make this an alias to top() + // by calling top instead of adding extra code + top($message,$hp,$hp2); + + } + + /******************************************************************************** + * + * DO NOT EDIT THIS SECTION + * + ********************************************************************************/ + + if( $DEBUG ) + { + echo '
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    Portable Site Data - setup.phtml

    CVS Version Id:$Id: setup.phtml,v 1.2 2012/01/03 20:00:46 cscott Exp $
    SITENAME'.SITENAME.'
    BASE'.BASE.'
    UP_BASE'.UP_BASE.'
    HELP_BASE'.HELP_BASE.'
    IMG_BASE'.IMG_BASE.'
    URL_BASE'.URL_BASE.'
    CONN_STR'.CONN_STR.'
    STYLE'.STYLE.'
    ORIGINAL_PATH'.ORIGINAL_PATH.'
    RESIZED_PATH'.RESIZED_PATH.'
    MIDSIZED_PATH'.MIDSIZED_PATH.'
    THUMB_PATH'.THUMB_PATH.'
    ORIGINAL'.ORIGINAL.'
    RESIZED'.RESIZED.'
    MIDSIZED'.MIDSIZED.'
    THUMB'.THUMB.'
    $CALLED_FROM_DIR'.$CALLED_FROM_DIR.' 
    $BASE_PATH'.$BASE_PATH.'
    $BASE_URL'.$BASE_URL.'
    $BASE_SECURE_URL'.$BASE_SECURE_URL.'
    +   +

    +


    +

    +

    + '; + + } + /** + * htmlcode: Output code to enable htmlarea for the page + * MUST BE CALLED AFTER TEXTAREAS ON PAGE + * @param $$w = 570: width of htmlarea in px + * @param $$h = 400: height of htmlarea in px + * + * @return void + * @access + **/ + function htmlcode($w = 570,$h = 400) + { + echo ' + + + +'; + echo ' + + '; + } + + /** + * date_entry : Generate the select boxes for date entry + * month-day-year as drop down select + * @param $month: + * @param $day: + * @param $year: + * @param $month_name: name of select month + * @param $day_name: name of select day + * @param $$year_name : name of select year + * + * @return + * @access + **/ + function date_entry($month,$day,$year,$month_name,$day_name,$year_name) + { + $cur_date = getdate(); + + if($month == "") + { + $month = $cur_date['mon']; + } + if($day == "") + { + $day = $cur_date['mday']; + } + if($year == "") + { + $year = $cur_date['year']; + } + $date = '"; + for($i=1;$i<=12;$i++) + { + $time .= "