forked from berman-lab/ymap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.working.php
executable file
·43 lines (43 loc) · 1.56 KB
/
project.working.php
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
session_start();
if(!isset($_SESSION['logged_on'])){ ?> <script type="text/javascript">reload(); </script> <?php } else { $user = $_SESSION['user']; }
require_once 'constants.php';
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HEAD>
<style type="text/css">
body {font-family: arial;}
</style>
<meta charset="UTF-8">
</HEAD>
<BODY>
<script type="text/javascript">
onload=function() {
// Generate a form to post data to loaded page.
var conclusion = document.createElement("form");
conclusion.setAttribute("method","post");
conclusion.setAttribute("action","project.working_server.php");
var input1 = document.createElement("input");
input1.setAttribute("type","hidden");
input1.setAttribute("name","user");
input1.setAttribute("value",user);
conclusion.appendChild(input1);
var input2 = document.createElement("input");
input2.setAttribute("type","hidden");
input2.setAttribute("name","project");
input2.setAttribute("value",project);
conclusion.appendChild(input2);
var input3 = document.createElement("input");
input3.setAttribute("type","hidden");
input3.setAttribute("name","key");
input3.setAttribute("value",key);
conclusion.appendChild(input3);
document.body.appendChild(conclusion);
// Automatically submit constructed form to post data to page.
conclusion.submit(); // works in Safari, but not Firefox.
}
</script>
</BODY>
</HTML>