diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-24 09:40:20 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-24 09:40:20 -0600 |
commit | 7c3f2e348c015ea93563d866f89ec8cea9159ea0 (patch) | |
tree | b7b6b18cf9087f42300f621d15101628a8d214e4 /viewuser.php | |
parent | 6c9369ad85f2fb3dc61234b54db7e7079cdc0c4e (diff) |
Refactoring part 2
Starting to move some functionality such as the session and database connection into singleton classes to manage them. Functions for modifying posts and threads are being put in one place as well.
Diffstat (limited to 'viewuser.php')
-rw-r--r-- | viewuser.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/viewuser.php b/viewuser.php index 3a33de0..155b814 100644 --- a/viewuser.php +++ b/viewuser.php @@ -1,6 +1,6 @@ <?php include_once 'includes/db_inc.php'; -include_once 'model/User.php'; +include_once 'includes/model/User.php'; session_start(); @@ -8,18 +8,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> |