-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst_visit.php
More file actions
37 lines (29 loc) · 926 Bytes
/
first_visit.php
File metadata and controls
37 lines (29 loc) · 926 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
27
28
29
30
31
32
33
34
35
36
37
<?php
include_once("lib/settings/config.php");
$title = "Welcome";
try {
$u = new User;
$username = rand(0,100).".".rand(0,100).".".rand(0,100).".".rand(0,100);
$u->setUsername($username);
//$cookieVal = $username;
// remember that the user has logged in (cookies)
//setcookie('login', $cookieVal, time()+60*60*24*360); //+1 year
$u->register();
$u->login();
}
catch(Exception $e){
}
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<?php include("lib/includes/head.inc.php"); ?>
<title>Muse</title>
</head>
<body>
<!-- can add instructions or intro animation-->
<?php include_once("lib/includes/footer.inc.php"); ?>
</body>
</html>