-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog_in.php
More file actions
31 lines (24 loc) · 726 Bytes
/
log_in.php
File metadata and controls
31 lines (24 loc) · 726 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
<?php
error_reporting(E_ALL);
session_start();
if($_SERVER['SERVER_PORT'] !== 443 &&
(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === 'off')) {
header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
exit;
}
include "home_pages.php";
include "connectvars.php";
include "header.php";
$entries = array(
new AutoEntry("username","text","autoset","",true),
new AutoEntry("password","password","regular","",true)
);
$forms = array(
new AutoForm("Sign In","signIn",$entries,false)
);
$autoGets = array();
$hasTable = false;
$hasLog = false;
$page = new AutoPage("Quest Database","Sign Up",$forms,$content,$autoGets,$hasTable,$hasLog);
$page->generatePage();
?>