summaryrefslogtreecommitdiff
path: root/viewuser.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-05-08 17:30:08 -0600
committerGitHub <noreply@github.com>2021-05-08 17:30:08 -0600
commit87b1dfd1f77b08915ee5e905da45e316ba2c0e7d (patch)
treef6c0f8d09454b6e887df0f66ca37c1ce9efb30d0 /viewuser.php
parent0b045d57b2164b5ce003955d79627ae506a153eb (diff)
parenta09d9f377f5c055e42e5f21b5cdea64c2e2ca896 (diff)
Merge pull request #14 from cflip/refactor
Huge refactor
Diffstat (limited to 'viewuser.php')
-rw-r--r--viewuser.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/viewuser.php b/viewuser.php
index 3a33de0..45f557a 100644
--- a/viewuser.php
+++ b/viewuser.php
@@ -1,6 +1,5 @@
<?php
-include_once 'includes/db_inc.php';
-include_once 'model/User.php';
+include_once './includes/model/User.php';
session_start();
@@ -8,18 +7,18 @@ $current = new User();
if (!isset($_GET['id'])) {
} else {
- $current->get_by_id($_GET['id'], $dbc);
+ $current->get_by_id($_GET['id']);
}
?>
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
- <title><?= $current->name; ?>'s Profile - cflip.net forum</title>
- <link rel="stylesheet" href="styles/style.css">
+ <title><?= $current->name; ?>'s Profile - cflip.net forum</title>
+ <link rel="stylesheet" href="styles/style.css">
</head>
<body>
- <?php include_once "templates/header.php" ?>
- <h1><?= $current->name; ?></h1>
- member since <?= date('M d, Y', strtotime($current->date)); ?>
+<?php include_once "includes/templates/header.php" ?>
+<h1><?= $current->name; ?></h1>
+member since <?= date('M d, Y', strtotime($current->date)); ?>
</body>
</html>