Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.php #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 1 addition & 57 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,59 +1,3 @@
<?php
// Start the session
session_start();
?>
<?php

if ($_SERVER['HTTP_HOST'] == "loomis.com")
{
$url = "https://www." . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header("Location: $url");
}

if ($_SERVER['HTTP_HOST'] == "https://loomislogistics.com/")
{
$url = "https://www.loomislogistics.com";
header("Location: $url");
}
?>

<?php if(isset($_POST['trackingid'])){
$servername = "localhost";
$username = "flypadic_001";
$password = "An0therrichard3303";
$dbname = "flypadic_001";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

$trackingid = $_POST['trackingid'];

$sql = "SELECT * FROM tracking WHERE trackingid = '$trackingid'";
$result = $conn->query($sql);
if ($result->num_rows == 0 ) {
echo '<script>window.alert("Tracking ID Does Not Exist!");
</script> <script>window.location =

"https://www.loomislogistics.com"</script>';
exit();
}else{
$_SESSION["trackingid"] = "$trackingid";
session_write_close();
sleep(2);
echo '
</script> <script>window.location =

"https://www.loomislogistics.com/tracking.php"</script>';
exit();

}


}
?>

<!DOCTYPE html>
<html lang="en">
Expand Down Expand Up @@ -483,4 +427,4 @@


<!-- Mirrored from irsfoundation.com/tf/templates/EducationPark/index-layout2.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 02 May 2017 15:53:41 GMT -->
</html>
</html>