Skip to content

Instantly share code, notes, and snippets.

@sunlee-newyork
Created November 16, 2013 21:34
Show Gist options
  • Save sunlee-newyork/7505645 to your computer and use it in GitHub Desktop.
Save sunlee-newyork/7505645 to your computer and use it in GitHub Desktop.
Website NONAME / DASHBOARD
<?php
error_reporting(E_ERROR);
session_start();
if (! isset($_SESSION["user"])) {
header("Location: /IDEA/login/index.php");
}
if ($_GET["cmd"] == "logout") {
session_unset();
session_destroy();
session_write_close();
session_regenerate_id(true);
header('Location: /IDEA/login/index.php');
exit;
}
?>
<html>
<head>
<title>DASHBOARD</title>
<?php require $_SERVER['DOCUMENT_ROOT']."/IDEA/header/index.php"; ?>
<?php require $_SERVER['DOCUMENT_ROOT']."/IDEA/dashboardheader/index.html"; ?>
<style type="text/css">
#body {
width:680px;
height:550px;
margin-top:50px;
margin-left:auto;
margin-right:auto;
}
#profile {
float:left;
width:180px;
height:300px;
}
#profile_photo {
}
#profile_stats {
font-family:HelveticaNeue-Light;
font-size:16px;
margin-top:30px;
}
#blank {
float:left;
width:80px;
}
#graph {
float:left;
margin-top:23px;
width:420px;
height:260px;
border:1px solid black;
text-align:center;
font-size:16px;
font-family:HelveticaNeue-Light;
}
</style>
</head>
<body>
<div id="body">
<table id="profile">
<tr>
<td id="profile_photo">
<img src="/IDEA/photo.png">
</td>
</tr>
<tr>
<td id="profile_stats">
<p>Sun Lee
</br>Brooklyn, NY
</br><a href="">25</a> friends
</p>
</td>
</tr>
</div>
<table id="blank">
<tr><td></td></tr>
</table>
<table id="graph">
<tr><td>GRAPH</td></tr>
</table>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment