<h3>Airports List</h3> <div id="results"></div> <table id="grid"></table> <div id="pager"></div> <br /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo fileurl('/lib/js/jqgrid/css/ui.jqgrid.css'); ?> " /> <script src="<?php echo fileurl('/lib/js/jqgrid/js/i18n/grid.locale-en.js'); ?> " type="text/javascript"></script> <script src="<?php echo fileurl('/lib/js/jqgrid/js/jquery.jqGrid.min.js'); ?> " type="text/javascript"></script> <script type="text/javascript"> $("#grid").jqGrid({ url: '<?php echo adminaction('/operations/airportgrid'); ?> ', datatype: 'json', mtype: 'GET', colNames: ['ICAO', 'Airport Name', 'Airport Country', 'Fuel Cost', 'Lat', 'Lng', 'Edit'], colModel : [ {index: 'icao', name : 'icao', width: 40, sortable : true, align: 'center', search: 'true', searchoptions:{sopt:['eq','ne']}}, {index: 'name', name : 'name', width: 65, sortable : true, align: 'center', searchoptions:{sopt:['in']}},
?> "; var geourl = "<?php echo GEONAME_URL; ?> "; </script> <link rel="stylesheet" media="all" type="text/css" href="<?php echo fileurl('lib/css/phpvms.css'); ?> " /> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo Config::Get('PAGE_ENCODING'); ?> " /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js'); ?> "></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/phpvms.js'); ?> "></script> <?php echo $MODULE_HEAD_INC;
public function badge() { $this->set('badge_url', fileurl(SIGNATURE_PATH . '/' . PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid) . '.png')); $this->set('pilotcode', PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid)); $this->render('profile_badge.tpl'); }
?> <div align="center" style="width: 100%;"> <div align="center" id="summary_chart"></div> </div> <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/json/json2.js'); ?> "></script> <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js'); ?> "></script> <script type="text/javascript"> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf'); ?> ", "summary_chart", "<?php echo $chart_width; ?> ", "<?php echo $chart_height; ?> ", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo adminaction('/finance/viewexpensechart?' . $_SERVER['QUERY_STRING']); ?> "}); </script>
map: map, icon: depicon, title: "<?php echo $mapdata->depname; ?> " }); <?php /* Populate the route */ if (is_array($mapdata->route_details)) { $list = array(); foreach ($mapdata->route_details as $route) { if ($route->type == NAV_VOR) { $icon = fileurl('/lib/images/icon_vor.png'); } else { $icon = fileurl('/lib/images/icon_fix.png'); } echo 'var loc = new google.maps.LatLng(' . $route->lat . ', ' . $route->lng . '); var _marker = new google.maps.Marker({ position: loc, map: map, icon: "' . $icon . '", title: "' . $route->title . '" }); bounds.extend(loc);'; // For the polyline $list[] = "new google.maps.LatLng({$route->lat}, {$route->lng})"; } } ?>
function duplication_parse($output) { global $antipla; $results = array(); $rank = 1; $re = '/^(?<similarity>[0-9\\.]+) .*\\/(?<assignment1>\\d+)\\/(?<user1>\\d+)\\/(?<filename1>[^\\/]+)<-->.*\\/(?<assignment2>\\d+)\\/(?<user2>\\d+)\\/(?<filename2>[^\\/]+)/'; foreach ($output as $line) { if (preg_match($re, $line, $matches)) { // Ignore plagiarism between the same user if ($matches['user1'] === $matches['user2']) { continue; } $result = new stdClass(); $result->user1 = $matches['user1']; $result->user2 = $matches['user2']; $result->apid = $antipla->id; $result->rank = $rank++; $result->judger = 'duplication'; $result->extnames = $antipla->extnames; $result->judgedate = time(); //Make info $info = new object(); $info->filename1 = $matches['filename1']; $info->filename2 = $matches['filename2']; $info->url1 = fileurl($matches['assignment1'], $matches['user1'], $matches['filename1']); $info->url2 = fileurl($matches['assignment2'], $matches['user2'], $matches['filename2']); $info->similarity = $matches['similarity']; $result->info = get_string('duplicationinfo', 'block_anti_plagiarism', $info); $results[] = $result; } } return $results; }
public static function SiteSetup() { /*$_POST['SITE_NAME'] == '' || $_POST['firstname'] == '' || $_POST['lastname'] == '' || $_POST['email'] == '' || $_POST['password'] == '' || $_POST['vaname'] == '' || $_POST['vacode'] == ''*/ // first add the airline $_POST['vacode'] = strtoupper($_POST['vacode']); if (!OperationsData::AddAirline($_POST['vacode'], $_POST['vaname'])) { self::$error = DB::$error; return false; } // Add an initial airport/hub, because I love KJFK so much $data = array('icao' => 'KJFK', 'name' => 'Kennedy International', 'country' => 'USA', 'lat' => '40.6398', 'lng' => '-73.7787', 'hub' => false, 'fuelprice' => 0); $ret = OperationsData::AddAirport($data); // Add the user $data = array('firstname' => $_POST['firstname'], 'lastname' => $_POST['lastname'], 'email' => $_POST['email'], l, 'password' => $_POST['password'], 'code' => $_POST['vacode'], 'location' => 'US', 'hub' => 'KJFK', 'confirm' => true); if (!RegistrationData::AddUser($data)) { self::$error = DB::$error; return false; } // Add a rank RanksData::updateRank(1, 'New Hire', 0, fileurl('/lib/images/ranks/newhire.jpg'), 18.0); # Add to admin group $pilotdata = PilotData::GetPilotByEmail($_POST['email']); if (!PilotGroups::AddUsertoGroup($pilotdata->pilotid, 'Administrators')) { self::$error = DB::$error; return false; } # Add the final settings in SettingsData::SaveSetting('SITE_NAME', $_POST['SITE_NAME']); SettingsData::SaveSetting('ADMIN_EMAIL', $_POST['email']); SettingsData::SaveSetting('GOOGLE_KEY', $_POST['googlekey']); return true; }
<link type="text/css" rel="stylesheet" href="<?php echo fileurl('lib/css/pagination.css'); ?> "/> <link type="text/css" rel="stylesheet" href="<?php echo fileurl('lib/css/pagination_parkho.css'); ?> "/> <style type="text/css"> td{ padding-left: 10px; } </style> <table align="center" border="1" width="100%" cellpadding="0" cellspacing="0" > <tr> <td><b>Name</b></td> <td><b>Last Pirep</b></td> <td><b>Last Email Sent</b></td> <td align="center"><b>Warning</b></td> <td align="center"><b>Welcome</b></td> <td align="center"><b>General</b></td> <td align="center"><b>Send Email</b></td> </tr> <?php foreach ($pilots as $pilot) { $pid = $pilot->pilotid; $param = PManagerData::param($pid); $ptme = strtotime($pilot->lastpirep); $dtme = strtotime($param->datesent); $chk = date("Y", $dtme); ?>
*/ /* Here, just did some titles which will show up above the image */ $type = strtolower($type); if ($type == 'flightmap') { $title = 'Route Map'; } elseif ($type == 'flightmapweather') { $title = 'Route Weather'; } elseif ($type == 'flightmaptaxiout') { $title = 'Taxi Out Path'; } elseif ($type == 'flightmaptaxiin') { $title = 'Taxi In Path'; } elseif ($type == 'flightmapverticalprofile') { $title = ' Vertical Profile'; } elseif ($type == 'flightmaplandingprofile') { $title = 'Landing Profile'; } ?> <strong><?php echo $title; ?> </strong><br /> <img src="<?php echo fileurl(Config::Get('FSFK_IMAGE_PATH')) . '/' . $image; ?> " alt="<?php echo $type; ?> " /> <br /> <?php }
<td > <select style="width: 30%" name="arricao"> <option value="">All</option> <?php $airs = FBSVData::arrivalairport($last_location->arricao); if (!$airs) { echo '<option>No Airports Available!</option>'; } else { foreach ($airs as $air) { $nam = OperationsData::getAirportInfo($air->arricao); echo '<option value="' . $air->arricao . '">' . $air->arricao . ' - ' . $nam->name . '</option>'; } } ?> </select> <img src="<?php echo fileurl('/lib/images/info.png'); ?> " title="Available airports to search from your current location"> </td> <td align="center" > <input type="hidden" name="action" value="findflight" /> <input type="submit" name="submit" value="Search Flight" /> </td> </tr> </table> </form> </div> <h3>Pilot Transfer</h3> <ul> <li>Your Bank limit is : <font color="#66FF00"><?php
<li><a href="<?php echo url('/profile'); ?> ">Pilot Center</a></li> <?php } ?> <li><a href="<?php echo url('/pilots'); ?> ">Pilots</a></li> <li><a href="<?php echo url('/acars'); ?> ">Live Map</a></li> <?php echo $MODULE_NAV_INC; if (Auth::LoggedIn()) { if (PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { echo '<li><a href="' . fileurl('/admin') . '">Admin Center</a></li>'; } ?> <li><a href="<?php echo url('/logout'); ?> ">Log Out</a></li> <?php }
$link_href = url('/pireps/view/' . $activity->refid); $link_title = 'View Flight Report'; } elseif ($activity->type == ACTIVITY_TWITTER) { $link_href = 'http://twitter.com/#!/' . Config::get('TWITTER_AIRLINE_ACCOUNT') . '/status/' . $activity->refid; $link_title = 'View Tweet'; } elseif ($activity->type == ACTIVITY_NEW_PILOT) { $link_href = url('/profile/view/' . $activity->pilotid); $link_title = 'View Profile'; } ?> <p> <?php /* Example, if it's a twitter status update (ACTIVITY_TWITTER), then show an image (in this case, a small Twitter icon) */ if ($activity->type == ACTIVITY_TWITTER) { echo '<img src="' . fileurl('/lib/images/twitter.png') . '" alt="twitter update" />'; } ?> <?php /* If there is a pilot associated with this feed update, show their name and a link to their profile page */ if ($activity->pilotid != 0) { $pilotCode = PilotData::getPilotCode($activity->code, $activity->pilotid); ?> <a href="<?php echo url('/profile/view/' . $activity->pilotid); ?> "> <?php echo $pilotCode . ' ' . $activity->firstname . ' ' . $activity->lastname;
<?php if (!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die; } if (PilotGroups::group_has_perm(Auth::$usergroups, EDIT_NEWS) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PAGES) || PilotGroups::group_has_perm(Auth::$usergroups, EDIT_DOWNLOADS) || PilotGroups::group_has_perm(Auth::$usergroups, EMAIL_PILOTS) || PilotGroups::group_has_perm(Auth::$usergroups, MODERATE_REGISTRATIONS)) { ?> <li style="padding: 0; margin: 0;"><a class="menu" href="#"> <img src="<?php echo fileurl('/admin/lib/layout/images/site_icon.png'); ?> " />News & Content </a> <ul style="padding: 0; margin: 0;"> <?php if (PilotGroups::group_has_perm(Auth::$usergroups, EDIT_NEWS)) { ?> <li><a href="<?php echo adminurl('/sitecms/viewnews'); ?> ">News</a></li> <?php } if (PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PAGES)) { ?> <li><a href="<?php echo adminurl('/sitecms/viewpages'); ?> ">Pages</a></li> <?php }
<link type="text/css" rel="stylesheet" href="<?php echo fileurl('lib/css/pagination_parkho.css'); ?> "/> <link type="text/css" rel="stylesheet" href="<?php echo fileurl('lib/css/pagination.css'); ?> "/> <link rel="stylesheet" href="./css/style.css" type="text/css" /> <h3><?php echo $title; ?> </h3> <form name="welcome" method="post" action="<?php echo adminurl('/pilotmanager/send_blank'); ?> "> <table width="100%" align="center"> <tr> <th colspan="2" align="center">Blank Email Form</th> </tr> <tr> <td width="10%" align="right">To:</td> <td align="left"><input type="text" value="<?php echo $email; ?> " disabled="disabled"></td> </tr> <tr> <td align="right">Subject:</td> <td align="left"><input type="text" name="subject" value="" /></td>
<thead> <tr> <td><b>Pilot</b></td> <td><b>Flight Number</b></td> <td><b>Departure</b></td> <td><b>Arrival</b></td> <td><b>Status</b></td> <td><b>Altitude</b></td> <td><b>Speed</b></td> <td><b>Distance/Time Remain</b></td> </tr> </thead> <tbody id="pilotlist"></tbody> </table> <script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js'); ?> "></script> <?php /* This is the template which is used in the table above, for each row. Be careful modifying it. You can simply add/remove columns, combine columns too. Keep each "section" (<%=...%>) intact Variables you can use (what they are is pretty obvious) Variable: Notes: <%=flight.pilotid%> <%=flight.firstname%> <%=flight.lastname%> <%=flight.pilotname%> First and last combined <%=flight.flightnum%>
?> "></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.form.js'); ?> "></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.bigiframe.js'); ?> "></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/jquery.metadata.js'); ?> "></script> <script type="text/javascript" src="<?php echo fileurl('lib/js/ckeditor/ckeditor.js'); ?> "></script> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript" src="<?php echo SITE_URL; ?> /admin/lib/phpvmsadmin.js"></script> <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo SITE_URL; ?> /lib/rss/latestpireps.rss"> <?php if (isset($MODULE_HEAD_INC)) { echo $MODULE_HEAD_INC;