index.php
1.65 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
50
51
52
53
54
55
56
57
58
59
60
61
<?php
session_start();
$dockets = Array();
$valid = 'home.html';
$id = '';
$handle = opendir('.');
while ($file = readdir($handle)) {
if (is_dir($file) && strlen($file) > 2 && $file{2} == '-') {
$dockets[$file] = md5($file);
if (isset($_GET['id']) && $_GET['id'] == md5($file)) {
$valid = $file . '/publish/';
$id = '&id=' . $_GET['id'];
}
}
}
closedir($handle);
$_SESSION['lookup'] = json_encode($dockets);
?>
<?php header("Access-Control-Allow-Origin", "*"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Tenzing Communications Inc.</title>
<style type="text/css">
body {
margin:0;
padding:0;
background-color: #3b0d32;
color: #777;
}
</style>
<script type="text/javascript">
// document.domain = 'gotenzing.com';
</script>
</head>
<frameset rows="*,75" frameborder="no" border="0" framespacing="0">
<frame src="<?php echo $valid;?>" name="mainFrame" id="mainFrame" title="mainFrame" />
<frame src="menu.php?d=<?php echo $_SERVER['HTTP_HOST']. $id;?>" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
<?php /*
<frame src="http://banners.cvs.gotenzing.com/menu.php?d=<?php echo $_SERVER['HTTP_HOST'];?>" name="bottomFrame" scrolling="No" noresize="noresize" id="bottomFrame" title="bottomFrame" />
*/ ?>
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>