-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaderverify1.php
More file actions
49 lines (44 loc) · 1.17 KB
/
headerverify1.php
File metadata and controls
49 lines (44 loc) · 1.17 KB
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
44
45
46
47
48
49
<?php
session_start();
if($_SESSION["me"]==""){
?>
<script>
window.location="login.php";
</script>
<?php
}
$me=$_SESSION["me"];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<script type="text/javascript">
function showHint(str){
if(str.length==0){
document.getElementById("texhint").innerHTML="";
}
else{
var me='<?php echo ($me) ?>';
var xmlhttp=new XMLHttpRequest();
xmlhttp.onreadystatechange=function(){
if(this.readyState == 4 && this.status == 200){
document.getElementById("texhint").innerHTML=this.responseText;
}
};
xmlhttp.open("GET","texthint.php?q="+str+"&user="+me,true);
xmlhttp.send();
}
}
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chitchat</title>
<link rel="icon" type="img/png" href="css/messages.png" sizes="96x96"></link>
<link rel="stylesheet" href="css1/verify1.css"></link>
</head>
<body class="background-image" style="margin: 0px;padding: 0px">
<header>
<span style="padding-left: 35em;"><img src="css/messages.png" alt="chitchat" style="width: 80px; height: 80px;" align="middle">ChitChat</span>
</header>
<hr style="color: #404040;margin-top: 0px;">
<nav>Search for the User</nav>