session_start();\r
}\r
?>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
+<!DOCTYPE HTML>\r
+<html>\r
<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
-<meta name="keywords" content="rabr, open source, php, twitter, oauth, disinfeqt" />\r
-<meta name="description" content="Revolutionary Interface for Twitter" />\r
-<link rel="shortcut icon" href="img/favicon.ico" />\r
-<link type="text/css" id="css" href="css/main.css?ver=2010041607" rel="stylesheet" />\r
-<title>Rabr / <?php echo $title ?></title>\r
+<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />\r
+<meta name="keywords" content="embr, open source, php, twitter, oauth" />\r
+<meta name="description" content="Vivid Interface for Twitter" />\r
+<meta name="author" content="Contributors" />\r
+<link rel="icon" href="img/favicon.ico" />\r
+<link id="css" href="css/main.css" rel="stylesheet" />\r
+<title>Embr / <?php echo $title ?></title>\r
<?php \r
- $myCSS = getColor("myCSS","");\r
+ $myCSS = getDefCookie("myCSS");\r
+ $theme = getDefCookie("theme");\r
$old_css = "ul.sidebar-menu li.active a";\r
$new_css = "ul.sidebar-menu a.active";\r
$myCSS = str_replace($old_css,$new_css,$myCSS);\r
- $fontsize = getColor("fontsize","13px");\r
- $ad_display = getColor("ad_display","block");\r
- $bodyBg = getColor("bodyBg","");\r
+ $fontsize = getDefCookie("fontsize","13px");\r
+ $Bgcolor = getDefCookie("Bgcolor");\r
+ $Bgimage = getAvatar(getDefCookie("Bgimage"));\r
+ $Bgrepeat = getDefCookie("Bgrepeat","no-repeat");\r
+ \r
+ if ($title != 'Error' ){\r
+ setcookie('loginPage',$_SERVER['PHP_SELF'],$_SERVER['REQUEST_TIME']+3600*24);\r
+ }\r
?>\r
<style type="text/css">\r
-<?php echo $myCSS ?>\r
-a:active, a:focus {outline:none}\r
-body {font-size:<?php echo $fontsize ?> !important;background-color:<?php echo $bodyBg ?>}\r
-#plz_dont_block_us {display: <?php echo $ad_display ?>}\r
+<?php echo $theme;echo $myCSS ?>\r
+a:active,a:focus {outline:none}\r
+body {font-size:<?php echo $fontsize ?> !important;<?php \r
+ if ($Bgcolor != "") echo 'background-color:'.$Bgcolor.';';\r
+ if ($Bgimage != "") echo 'background-image: url("'.$Bgimage.'");';\r
+ ?>background-repeat:<?php echo $Bgrepeat ?>}\r
</style>\r
-<script type="text/javascript" src="js/jquery.js?ver=1.4.2"></script>\r
-<script type="text/javascript" src="js/jquery.plugins.js?ver=2010033101"></script>\r
-<script type="text/javascript" src="js/mediaPreview.js?ver=2010041501"></script>\r
-<script type="text/javascript" src="js/public.js?ver=2010041604"></script>\r
+<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>\r
+<script src="js/jquery.js"></script>\r
+<script src="js/mediaPreview.js"></script>\r
+<script src="js/public.js"></script>\r
</head>\r
<body>\r
<div id="shortcutTip" style="display:none"></div>\r
- <div id="header">\r
+ <header>\r
<div class="wrapper">\r
- <a href="index.php"><img id="logo" style="float:left" src="img/logo.png" /></a>\r
- <ul id="nav" class="round">\r
+ <div id="sentTip" style="display:none"></div>\r
+ <a href="index.php"><img id="logo" style="float:left" width="155" height="49" src="img/logo.png" /></a>\r
+ <nav class="round">\r
+ <ul>\r
+ <?php $scheme=(!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != "on") ? 'http://' : 'https://';\r
+ $base_url=str_replace('http://',$scheme,BASE_URL);\r
+ ?> \r
+ <li><a class="share" title="Drag me to share!" href="javascript:var%20d=document,w=window,f='<?php echo $base_url."/share.php" ?>',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&t='+e(d.title)+'&d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&s=bm';a=function(){if(!w.open(f+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=300,left=175,top=150'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0);">Share</a></li>\r
<li><a href="index.php">Home</a></li>\r
<li><a href="profile.php">Profile</a></li>\r
<li><a href="browse.php">Public</a></li>\r
<li><a href="setting.php">Settings</a></li>\r
<li><a href="logout.php">Logout</a></li> \r
</ul>\r
+ </nav>\r
</div>\r
- </div>\r
+ </header>\r
<div id="content">\r
<div class="wrapper">\r
<div class="content-bubble-arrow"></div>\r