Jump to content

FSX30HD

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by FSX30HD

  1. to solve the problem you need to edit the core_htmlhead.tpl (in your skin folder) and put this <script type="text/javascript" src="<?php echo fileurl('lib/js/simbrief.apiv1.js');?>"></script> Not in the layout.tpl
  2. Same issues No errors when I play with UNIX-timestamp http://stackoverflow.com/questions/12038558/php-timestamp-into-datetime But nothing are parsed (XML)
  3. Thanks For all VA and Pilots Vangelis
  4. mouseovertxt is not declared like variable initialize() is not defined MY_MAPTYPE_ID is not defined // Create info window. In content you can pass simple text or html code. var infowindow = new google.maps.InfoWindow({ content: "<div>Hello! World</div>", maxWidth: 10 }); // Add listner for marker. You can add listner for any object. It is just an example in which I am specifying that infowindow will be open on marker mouseover google.maps.event.addListener(marker, "mouseover", function() { infowindow.open(map, marker); }); }); Regards Fred
  5. Ok Solved thanks to Eddie to share with me app.config.php & local.config.php In my local.config.php I have this before # Cookie information Config::Set('SESSION_LOGIN_TIME', (60*60*24*30)); # Expire after 30 days, in seconds Config::Set('SESSION_GUEST_EXPIRE', '30'); # Clear guest sessions 30 minutes //Config::Set('SESSION_COOKIE_NAME', 'VMS_AUTH_COOKIE'); I remove this part In app.config.php I check that define('VMS_AUTH_COOKIE', 'VMSAUTH'); also touch config.php (ArrowChat) define('DB_USERTABLE','pilots'); define('DB_USERTABLE_NAME','firstname'); define('DB_USERTABLE_LASTNAME','lastname'); define('DB_USERTABLE_USERID','pilotid'); define('DB_USERTABLE_AVATAR','pilotid'); define('DB_FRIENDSTABLE',''); define('DB_FRIENDSTABLE_USERID', ''); define('DB_FRIENDSTABLE_FRIENDID', ''); define('DB_FRIENDSTABLE_FRIENDS', ''); Thanks for all Regards Fred
  6. Vangelis I don't have in my console VMSAUTH cookie name just PHPSESSID it's the cookie of the phpvms session $_COOKIE ['VMSAUTH'] ["VMSAUTH"]=> "24|1|127.0.0.1" http://forum.phpvms....hat/#entry52674
  7. PM sent Thanks Vangelis Thanks Eddie
  8. Doesn't work don't have the cookie VMSAUTH present look here http://www.skydream-airlines.com Thanks for you help
  9. Need help with version 1.72 Someone have the code for this version of integration.php ? The original code <?php /* || #################################################################### || || # ArrowChat # || || # ---------------------------------------------------------------- # || || # Copyright ©2010-2012 ArrowSuites LLC. All Rights Reserved. # || || # This file may not be redistributed in whole or significant part. # || || # ---------------- ARROWCHAT IS NOT FREE SOFTWARE ---------------- # || || # http://www.arrowchat.com | http://www.arrowchat.com/license/ # || || #################################################################### || */ // UNCOMMENT THE SESSION START IF YOU ARE USING SESSIONS TO GET THE USER ID // session_start(); /** * This function returns the user ID of the logged in user on your site. Technical support will not * help you with this for stand-alone installations. You must purchase the professional installation * if you are having trouble. * * Suggestion: Check out the other integration files in the functions/integrations directory for * many examples of how this can be done. The easiest way is to get the user ID through a cookie. * * @return the user ID of the logged in user or NULL if not logged in */ function get_user_id() { $userid = NULL; if (isset($_COOKIE['userid'])) { $userid = $_COOKIE['userid']; } return $userid; } /** * This function returns the SQL statement for the buddylist of the user. You should retrieve * all ONLINE friends that the user is friends with. Do not retrieve offline users. You can use * global $online_timeout to get the online timeout. * ex: AND (arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . " * * @param userid the user ID of the person receiving the buddylist * @param the time of the buddylist request * @return the SQL statement to retrieve the user's friend list */ function get_friend_list($userid, $time) { global $db; global $online_timeout; $sql = (" SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, arrowchat_status.is_admin, arrowchat_status.status FROM " . TABLE_PREFIX . DB_FRIENDSTABLE . " JOIN " . TABLE_PREFIX . DB_USERTABLE . " ON " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_FRIENDID . " = " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " LEFT JOIN arrowchat_status ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid WHERE " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_USERID . " = '" . $db->escape_string($userid) . "' AND " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_FRIENDS . " = 1 AND (arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . " ORDER BY " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " ASC "); return $sql; } /** * This function returns the SQL statement for all online users. You should retrieve * all ONLINE users regardless of friend status. Do not retrieve offline users. You can use * global $online_timeout to get the online timeout. * ex: AND (arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . " * * @param userid the user ID of the person receiving the buddylist * @param the time of the buddylist request * @return the SQL statement to retrieve all online users */ function get_online_list($userid, $time) { global $db; global $online_timeout; $sql = (" SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, arrowchat_status.is_admin, arrowchat_status.status FROM " . TABLE_PREFIX . DB_USERTABLE . " JOIN arrowchat_status ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid WHERE ('" . time() . "' - arrowchat_status.session_time - 60 < '" . $online_timeout . "') AND " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " != '" . $db->escape_string($userid) . "' ORDER BY " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " ASC "); return $sql; } /** * This function returns the SQL statement to get the user details of a specific user. You should * get the user's ID, username, last activity time in unix, link to their profile, avatar, and status. * * @param userid the user ID to get the details of * @return the SQL statement to retrieve the user's defaults */ function get_user_details($userid) { global $db; $sql = (" SELECT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, arrowchat_status.is_admin, arrowchat_status.status FROM " . TABLE_PREFIX . DB_USERTABLE . " LEFT JOIN arrowchat_status ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid WHERE " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = '" . $db->escape_string($userid) . "' "); return $sql; } /** * This function returns the profile link of the specified user ID. * * @param userid the user ID to get the profile link of * @return the link of the user ID's profile */ function get_link($link, $user_id) { global $base_url; return $base_url . '../users.php?id=' . $link; } /** * This function returns the URL of the avatar of the specified user ID. * * @param userid the user ID of the user * @param image if the image includes more than just a user ID, this param is passed * in from the avatar row in the buddylist and get user details functions. * @return the link of the user ID's profile */ function get_avatar($image, $user_id) { global $base_url; if (is_file(dirname(dirname(dirname(__FILE__))) . '/images/' . $image . '.gif')) { return $base_url . '../images/' . $image . '.gif'; } else { return $base_url . AC_FOLDER_ADMIN . "/images/img-no-avatar.gif"; } } /** * This function returns the name of the logged in user. You should not need to * change this function. * * @param userid the user ID of the user * @return the name of the user */ function get_username($userid) { global $db; global $language; global $show_full_username; $users_name = $language[83]; $result = $db->execute(" SELECT " . DB_USERTABLE_NAME . " name FROM " . TABLE_PREFIX . DB_USERTABLE . " WHERE " . DB_USERTABLE_USERID . " = '" . $db->escape_string($userid) . "' "); if ($result AND $db->count_select() > 0) { $row = $db->fetch_array($result); $users_name = $row['name']; } $pieces = explode(" ", $users_name); if ($show_full_username == 1) { return $users_name; } else { return $pieces[0]; } } ?> Thanks Fred
  10. Eddie try this: <img src="<?php echo SITE_URL; ?>/images/airline/<%=flight.code%>.png"><br />
  11. Strange in my website I put this to work <?php $hubs = HubData::get_hub(); foreach($hubs as $hub) { ?> <li><a href="<?php echo url('/Hub/HubView/');?><?php echo $hub->hubid;?>"><?php echo $hub->hubicao .' - '. $hub->hubname;?></a></li> <?php }?>
  12. I can make an XML file with MakeRunways of Peter Dowson Give you that : <ICAO id="LFPG"> <ICAOName>Charles-de-Gaulle</ICAOName> <Country>France</Country> <State></State> <City>Paris</City> <Longitude>2.547778</Longitude> <Latitude>49.009724</Latitude> <Altitude>392</Altitude> <MagVar>-2.000</MagVar> <Runway id="08L"> <Len>13944</Len> <Hdg>87.350</Hdg> <Def>Macadam</Def> <ILSFreq>108.70</ILSFreq> <ILSHdg>87.30</ILSHdg> <ILSid>GLE</ILSid> <ILSslope>3.00</ILSslope> <Lat>48.995686</Lat> <Lon>2.552631</Lon> <FSStartLat>48.995777</FSStartLat> <FSStartLon>2.554275</FSStartLon> <ClosedLanding>TRUE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="08R"> <Len>8832</Len> <Hdg>87.350</Hdg> <Def>Concrete</Def> <ILSFreq>108.55</ILSFreq> <ILSHdg>87.30</ILSHdg> <ILSid>DSE</ILSid> <ILSslope>3.00</ILSslope> <Lat>48.992916</Lat> <Lon>2.565580</Lon> <FSStartLat>48.992947</FSStartLat> <FSStartLon>2.566115</FSStartLon> <ClosedLanding>FALSE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="09L"> <Len>8840</Len> <Hdg>87.350</Hdg> <Def>Tarmac</Def> <ILSFreq>109.35</ILSFreq> <ILSHdg>87.30</ILSHdg> <ILSid>PNE</ILSid> <ILSslope>3.00</ILSslope> <Lat>49.024704</Lat> <Lon>2.524823</Lon> <FSStartLat>49.024773</FSStartLat> <FSStartLon>2.525766</FSStartLon> <ClosedLanding>FALSE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="09R"> <Len>13780</Len> <Hdg>87.350</Hdg> <Def>Macadam</Def> <ILSFreq>110.10</ILSFreq> <ILSHdg>87.30</ILSHdg> <ILSid>CGE</ILSid> <ILSslope>3.00</ILSslope> <Lat>49.020611</Lat> <Lon>2.512920</Lon> <FSStartLat>49.020664</FSStartLat> <FSStartLon>2.514065</FSStartLon> <ClosedLanding>TRUE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="26L"> <Len>8832</Len> <Hdg>267.350</Hdg> <Def>Concrete</Def> <ILSFreq>108.35</ILSFreq> <ILSHdg>267.3</ILSHdg> <ILSid>DSU</ILSid> <ILSslope>3.00</ILSslope> <Lat>48.994877</Lat> <Lon>2.602380</Lon> <FSStartLat>48.994820</FSStartLat> <FSStartLon>2.601723</FSStartLon> <ClosedLanding>FALSE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="26R"> <Len>13944</Len> <Hdg>267.350</Hdg> <Def>Macadam</Def> <ILSFreq>109.10</ILSFreq> <ILSHdg>267.3</ILSHdg> <ILSid>GAU</ILSid> <ILSslope>3.00</ILSslope> <Lat>48.998783</Lat> <Lon>2.610736</Lon> <FSStartLat>48.998676</FSStartLat> <FSStartLon>2.608975</FSStartLon> <ClosedLanding>TRUE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="27L"> <Len>13780</Len> <Hdg>267.350</Hdg> <Def>Macadam</Def> <ILSFreq>110.70</ILSFreq> <ILSHdg>267.3</ILSHdg> <ILSid>CGW</ILSid> <ILSslope>3.00</ILSslope> <Lat>49.023678</Lat> <Lon>2.570370</Lon> <FSStartLat>49.022110</FSStartLat> <FSStartLon>2.562932</FSStartLon> <ClosedLanding>TRUE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> <Runway id="27R"> <Len>8840</Len> <Hdg>267.350</Hdg> <Def>Tarmac</Def> <ILSFreq>110.35</ILSFreq> <ILSHdg>267.3</ILSHdg> <ILSid>PNW</ILSid> <ILSslope>3.00</ILSslope> <Lat>49.026672</Lat> <Lon>2.561681</Lon> <FSStartLat>49.026646</FSStartLat> <FSStartLon>2.561236</FSStartLon> <ClosedLanding>FALSE</ClosedLanding> <ClosedTakeoff>FALSE</ClosedTakeoff> <EdgeLights>NONE</EdgeLights> <CenterLights>NONE</CenterLights> <CenterRed>FALSE</CenterRed> </Runway> </ICAO> But after that no idea to parse this file Best Regards Fred
  13. yes all working well the tour update and the bid is deleted
  14. Don't have missing points or points with lat, long to zero to your database are try LFPG-KJFK ?
  15. Sorry for double post an Moderator can remove this message please ? Regards
  16. part of my PIREPData.class.php # Update any pilot's information $pilotinfo = PilotData::getPilotData($pirepdata['pilotid']); $pilotcode = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); PilotData::UpdateLastPIREPDate($pilotinfo->pilotid); PirepAcData::search($pirepid); if (Config::Get('EMAIL_SEND_PIREP') === true) { # Send an email to the admin that a PIREP was submitted $sub = "A PIREP has been submitted by {$pilotcode} ({$pirepdata['depicao']} - {$pirepdata['arricao']})"; $message="A PIREP has been submitted by {$pilotcode} ({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n" ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n" ."Aircraft: {$pirepdata['aircraft']}\n" ."Flight Time: {$pirepdata['flighttime']}\n" ."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$pirepdata['comment']}"; $email = Config::Get('EMAIL_NEW_PIREP'); if(empty($email)) { $email = ADMIN_EMAIL; } Util::SendEmail($email, $sub, $message); } /* Add this into the activity feed */ $message = Lang::get('activity.new.pirep'); foreach($pirepdata as $key=>$value) { $message = str_replace('$'.$key, $value, $message); } # Add it to the activity feed ActivityData::addActivity(array( 'pilotid' => $pirepdata['pilotid'], 'type' => ACTIVITY_NEW_PIREP, 'refid' => $pirepid, 'message' => htmlentities($message), )); /* Now send data to vaCentral */ //CentralData::send_pirep($pirepid); // Reset this ID back DB::$insert_id = $pirepid; self::$pirepid = $pirepid; return true; }
  17. Strider, You use the method describ to the forum to parse navaids ? http://forum.phpvms.net/topic/19993-navdata-update/page__hl__navdata
  18. Hi Vangelis, Thanks for your work Some issues: Bids are is always present and tour doesn't increment Pirep Have you an idea for that ? Regards Fred
  19. I'm agree with you in order I think finding the good and same way to not have bad fix, navaids, vor and ndb in the database. So maybe working to the first phase howto parse navdata with a good script in php. After that maybe working to enter SIDS/STARS in the database. So to finish rework the way to include all this things to the Live Map (Sorry for my English it's not my first language)
×
×
  • Create New...