-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwelcome.html.php
More file actions
26 lines (24 loc) · 832 Bytes
/
welcome.html.php
File metadata and controls
26 lines (24 loc) · 832 Bytes
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
<?php
$ini_array = parse_ini_file("config.ini");
$path = $ini_array['path'];
include_once $_SERVER['DOCUMENT_ROOT'] .
$path.'/includes/helpers.inc.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include $_SERVER['DOCUMENT_ROOT'].$path.'/includes/notifications.html.php'; ?>
<meta charset="UTF-8">
<title>Welcome to Social Network</title>
</head>
<body>
<?php if (isset($_SESSION['userid'])): ?>
<p> WELCOME <?php htmlout($_SESSION['userid']); ?></p>
<?php endif; ?>
<form action="./index.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload" id="fileToUpload">
<input type="submit" value="Upload Image" name="submit">
</form>
<?php include $_SERVER['DOCUMENT_ROOT'].$path.'/includes/logout.inc.html.php'; ?></p>
</body>
</html>