-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
43 lines (37 loc) · 931 Bytes
/
Copy pathindex.php
File metadata and controls
43 lines (37 loc) · 931 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
38
39
40
41
42
43
<?php
include('config.php');
$action= strtolower($_REQUEST['action']);
?>
<!DOCTYPE html>
<html>
<head>
<title>Caro game</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="js/jquery.js"></script>
<link rel="stylesheet" href="css/style.css" media="all">
</head>
<body>
<div class="wrap">
<?php
if(!is_user_logged_in()){
switch($action){
case 'lost-password':
include('templates/lost-password-form.php');
break;
case 'register':
include('templates/register-form.php');
break;
default:
include('templates/login-form.php');
}
}else{
if($action=='update-user'){
include('templates/register-form.php');
}else{
go_to('rooms.php');
}
}
?>
</div>
</body>
</html>