<?php
$fullname  = "Dylan Reid";
$email     = "dhreid@usc.edu";
$classyear = "2028";

date_default_timezone_set('America/Los_Angeles');

$userAgent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'Unknown';
$ip        = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : 'Unknown';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>PHP Variables + Date Demo</title>
    <style>
        body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 2rem; line-height: 1.5; }
        .info { margin-bottom: 1.5rem; }
        .columns { display: flex; gap: 1rem; margin-top: 2rem; }
        .col { flex: 1; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; }
        h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
        code { background: #f6f6f6; padding: .15rem .3rem; border-radius: 4px; }
    </style>
</head>
<body>

<h1>Student Info</h1>
<div class="info">
    <?php
    echo "<strong>Full Name:</strong> $fullname<br />";
    echo "<strong>Email:</strong> $email<br />";
    echo "<strong>Class Year:</strong> $classyear<br />";
    ?>
</div>

<h1>Current Date &amp; Time</h1>
<div class="info">
    <?php
    echo "It is " . date('l, F j, Y \a\t g:i A T');
    ?>
</div>

<h1>Your Browser &amp; IP</h1>
<div class="info">
    <?php
    echo "You are using $userAgent. ";
    echo "Your browser is located at $ip.";
    ?>
</div>

<div class="columns">
    <div class="col">
        <h2>Labs</h2>
        <p>Future labs will be posted here.</p>
    </div>
    <div class="col">
        <h2>Assignments</h2>
        <p>Future assignments will be posted here.</p>
    </div>
</div>

</body>
</html>
