-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspecific_class_page.php
More file actions
72 lines (65 loc) · 2.2 KB
/
specific_class_page.php
File metadata and controls
72 lines (65 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
require_once 'vendor/autoload.php'; // Include Composer's autoloader
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
// Create a Monolog logger instance
$log = new Logger('my_http_logger');
$log->pushHandler(new StreamHandler('logs/http.log', Logger::INFO));
// Check if the request URL matches the endpoint you want to log
if ($_SERVER['REQUEST_URI'] === '/your-endpoint') {
// Log a message
$log->info('HTTP request received for /your-endpoint');
// Add your code to handle the HTTP request
// For example, you can send an HTTP response here
header('Content-Type: text/plain');
echo 'Hello, this is your endpoint!';
} else {
// Include the HTML code for the web page
include 'sidebar.html'; // Include the sidebar here
// Rest of your HTML code
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile Cards</title>
<style>
<?php
// Include the CSS code as-is
include 'styles.css';
?>
/* Add custom CSS for arranging the profile cards side by side */
.profile-container {
display: flex;
justify-content: space-between;
margin: 20px; /* Adjust the margin as needed */
}
/* Add CSS to change the text color of the title to white */
h1 {
color: white;
margin-left: 100px; /* Adjust the left margin to avoid overlap */
}
</style>
</head>
<body>
<h1>Welcome to CS4800 Computer Engineering</h1>
<div class="profile-container">
<?php
// Include the HTML code for the first profile card
include 'specific_class_card.html';
include 'specific_class_card.html';
include 'specific_class_card.html';
?>
</div>
<div class="profile-container">
<?php
// Include the HTML code for the second profile card
include 'specific_class_card.html';
?>
</div>
</body>
</html>
<?php
}
?>