diff options
author | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-07 11:44:11 -0600 |
---|---|---|
committer | cflip <36554078+cflip@users.noreply.github.com> | 2021-04-07 11:44:11 -0600 |
commit | d61a18a93bc1b39d91725497ebb2fe85c4785ead (patch) | |
tree | 20403b00b2672c2183966989173d9dec2f4523dc /viewuser.php | |
parent | 6dd221f59e4b8fd0c824ee9831b6efdbecb3aee7 (diff) |
Update links, rename files
Diffstat (limited to 'viewuser.php')
-rw-r--r-- | viewuser.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/viewuser.php b/viewuser.php new file mode 100644 index 0000000..5a6afbc --- /dev/null +++ b/viewuser.php @@ -0,0 +1,24 @@ +<?php +include_once 'includes/db_inc.php'; +include_once 'model/User.php'; + +session_start(); + +$current = new User(); + +if (!isset($_GET['id'])) { +} else { + $current->get_by_id($_GET['id'], $dbc); +} +?> +<!DOCTYPE html> +<html> +<head> + <title><?php echo $current->name; ?>'s Profile - cflip.net forum</title> +</head> +<body> + <?php include_once "templates/header.php" ?> + <h1><?php echo $current->name; ?></h1> + member since <?php echo date('M d, Y', strtotime($current->date)); ?> +</body> +</html> |