Skip to content

Commit ee95325

Browse files
committed
FIX: spelling...Privet => Private
FIX: - Display airport name within character limit [71a5717] ------------------------------------------------------------------------ modified: CHANGELOG.md modified: admin/conn.php modified: admin/fba.php modified: admin/mobile.html modified: database/admin.sql modified: database/bookings.sql modified: database/drivers.sql modified: drivers/conn.php modified: user/about.html modified: user/conn.php modified: user/nav.php modified: user/ticket.php
1 parent 2d40bc4 commit ee95325

File tree

12 files changed

+19
-16
lines changed

12 files changed

+19
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4545
## [First Patch]
4646

4747
```powershell
48-
npx nativefier --name "Admin-Privet Jet" -i "./icon.ico" --inject "./admin-context.js" --disable-dev-tools --build-version "0.0.073-beta" --app-version "0.07" --show-menu-bar --bookmarks-menu "./admin_menu-Action.json" --min-width "1360" --min-height "768" --ignore-certificate --portable "http://localhost/admin/"
48+
npx nativefier --name "Admin-Private Jet" -i "./icon.ico" --inject "./admin-context.js" --disable-dev-tools --build-version "0.0.073-beta" --app-version "0.07" --show-menu-bar --bookmarks-menu "./admin_menu-Action.json" --min-width "1360" --min-height "768" --ignore-certificate --portable "http://localhost/admin/"
4949
```

admin/conn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$serverName = "127.0.0.1"; // localhost ip-----OR----enable any existing ip from SQL Server (2022) Configuration manager\SQL Server Network Configuration\protocols For SQLEXPRESS(instance name)\TCP/IP\properties\protocol(enabled)\IP Address
55
$port = "51609"; // The port, configured in SQL Server Configuration Manager
66
$connectionOptions = array(
7-
"Database" => "PrivetJet" //database name
7+
"Database" => "PrivateJet" //database name
88
);
99

1010
$conn = sqlsrv_connect("$serverName, $port", $connectionOptions);

admin/fba.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333

3434
// Process all airports
3535
foreach ($allAirports as $airport) {
36-
$airportNames[] = htmlspecialchars($airport);
36+
$nameSize = 16;
37+
$shortenedAirportName = strlen($airport) > $nameSize ? substr($airport, 0, $nameSize) . '...' : $airport; // show airport name under $limit...
38+
$airportNames[] = htmlspecialchars($shortenedAirportName);
3739
$flightCountsStart[] = isset($flightDataStart[$airport]) ? $flightDataStart[$airport] : 0;
3840
$flightCountsDestination[] = isset($flightDataDestination[$airport]) ? $flightDataDestination[$airport] : 0;
3941
}

admin/mobile.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
77
<link rel="stylesheet" href="./style/mobile.css" />
8-
<title>PrivetJet/Admin</title>
8+
<title>PrivateJet/Admin</title>
99
</head>
1010
<body>
1111
<!-- The logo -->
@@ -18,7 +18,7 @@
1818
<p>This website is designed for <strong>Desktop</strong> only and may not provide an optimal experience on mobile devices or screens with low resolutions.</p>
1919
<p>If you are on a <strong>Mobile</strong> device, we recommend using a <strong>Desktop</strong> or larger screen for the best viewing experience.</p>
2020
<p>
21-
If you'd like to refresh the page press the refresh button
21+
If you'd like to refresh the page press the refresh button
2222
<button>
2323
<a href="./schedule.php"><i class="fa-solid fa-arrows-rotate"></i> Refresh</a>
2424
</button>

database/admin.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
create database PrivetJet;
2-
use PrivetJet;
1+
create database PrivateJet;
2+
use PrivateJet;
3+
use PrivateJet;
34

45
-- admin login
56
-- Create the admin_login table

database/bookings.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use PrivetJet;
1+
use PrivateJet;
22

33
-- user login info
44
create table users(

database/drivers.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use PrivetJet
1+
use PrivateJet
22

33

44
CREATE TABLE driver_info (

drivers/conn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$serverName = "127.0.0.1"; // localhost ip-----OR----enable any existing ip from SQL Server (2022) Configuration manager\SQL Server Network Configuration\protocols For SQLEXPRESS(instance name)\TCP/IP\properties\protocol(enabled)\IP Address
55
$port = "51609"; // The port, configured in SQL Server Configuration Manager
66
$connectionOptions = array(
7-
"Database" => "PrivetJet" //database name
7+
"Database" => "PrivateJet" //database name
88
);
99

1010
$conn = sqlsrv_connect("$serverName, $port", $connectionOptions);

user/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>About/Privet Jet</title>
6+
<title>About/Private Jet</title>
77
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.9.359/pdf.min.js"></script>
88
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.9.359/pdf.worker.min.js"></script>
99
<link rel="stylesheet" href="./style/about.css" />

user/conn.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$serverName = "127.0.0.1"; // localhost ip-----OR----enable any existing ip from SQL Server (2022) Configuration manager\SQL Server Network Configuration\protocols For SQLEXPRESS(instance name)\TCP/IP\properties\protocol(enabled)\IP Address
55
$port = "51609"; // The port, configured in SQL Server Configuration Manager
66
$connectionOptions = array(
7-
"Database" => "PrivetJet" //database name
7+
"Database" => "PrivateJet" //database name
88
);
99

1010
$conn = sqlsrv_connect("$serverName, $port", $connectionOptions);

user/nav.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function logout()
2929
<meta charset="UTF-8">
3030
<meta name="viewport" content="width=device-width, initial-scale=1.0">
3131
<link rel="icon" type="image/x-icon" href="./icon.ico">
32-
<title>Privet Jet</title>
32+
<title>Private Jet</title>
3333
<style>
3434

3535
</style>

user/ticket.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function calculateDistance($lat1, $lon1, $lat2, $lon2)
150150
$pdf->Image('./image/ticket.png', -10, -5, 230);
151151
$pdf->SetFont('Arial', 'BU', 24);
152152
$pdf->Cell(71, 10, '', 0, 0);
153-
$pdf->Cell(59, 5, 'Privet Jet!', 0, 0);
153+
$pdf->Cell(59, 5, 'Private Jet!', 0, 0);
154154
$pdf->Cell(59, 10, '', 0, 0);
155155
$pdf->SetFont('Arial', 'B', 12);
156156

@@ -278,7 +278,7 @@ function calculateDistance($lat1, $lon1, $lat2, $lon2)
278278
$pdf->Image('./image/ticket.png', -10, -5, 230);
279279
$pdf->SetFont('Arial', 'BU', 24);
280280
$pdf->Cell(71, 10, '', 0, 0);
281-
$pdf->Cell(59, 5, 'Privet Jet!', 0, 0);
281+
$pdf->Cell(59, 5, 'Private Jet!', 0, 0);
282282
$pdf->Cell(59, 10, '', 0, 0);
283283
$pdf->Ln();
284284
$pdf->SetFont('Arial', 'B', 12);
@@ -409,7 +409,7 @@ function calculateDistance($lat1, $lon1, $lat2, $lon2)
409409
<body>
410410
<header>
411411
<div>
412-
<h1>YOUR PRIVATE AIRLINE!</h1>
412+
<h1>YOUR PRIVATE AIRLINE!</h1>
413413
<p>Your trusted source for premium airline tickets at an affordable price! Our goal is to ensure you get the most comfortable flying expeirence all around the globe all while at the convenience of your own home devices. We also provide the service of rescheduling your flight to ensure your experience is the most optimal that we can provide.</p>
414414
</div>
415415
</header>

0 commit comments

Comments
 (0)