index.php 1.64 KB
<?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>