-
Notifications
You must be signed in to change notification settings - Fork 9
/
source.php
26 lines (25 loc) · 5.88 KB
/
source.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
<?php
include 'functions/settings.php';
global $global_piwik_tracking;
session_start();
$header = "<meta charset='UTF-8' /> <link rel='shortcut icon' href='favicon.ico'> <link rel='stylesheet/less' type='text/css' href='css/structure.less' > <link rel='stylesheet/less' type='text/css' href='css/storybox.less' > <script src='js/less-1.1.3.min.js' type='text/javascript'></script>";
$scripts = "<script src='js/jquery.js' type='text/javascript'></script> <script src='js/functions.js' type='text/javascript' ></script>";
$feedback = "<img src='pics/feedback.png' alt='feedback button' title='feedback button' class='feedbackDock' /><div id='feedback'></div>";
$nullImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJCgcqHkarI5cAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQ4y2P8//8/AyWAiYFCMGrAqAGjBgwWAwBjmgMd7D3zQQAAAABJRU5ErkJggg==";
$bottomBar = "<div id='bottom'> <a href='http://www.teamunwired.org/' id='logo2' title='teamunwired'> <h1></h1> </a> <ul class='bottomLinks'> <li><a href=''>Credits</a></li> <li>|</li> <li><a href='faq.php'>Faq</a></li> <li>|</li> <li><a href=''>Contribute</a></li> <li>|</li> <li> <a href='http://www.teamunwired.org/'>Teamunwired</a> <a href='http://www.teamunwired.org/'><img src='pics/web.png' alt='' ></a> <a href='http://www.facebook.com/teamunwired'><img src='pics/facebook.png' alt='' ></a> <a href='http://www.twitter.com/teamunwired'><img src='pics/twitter.png' alt='' ></a> </li> <li>|</li> <li> <a href='https://github.com/nitcalicut/Paathshaala/'>Paathshaala </a> <a href='http://www.facebook.com/paathshaala.tuw'><img src='pics/facebook.png' alt='' > </a> <a href='http://twitter.com/jaseemabid/'><img src='pics/twitter.png' alt='' > </a></li> </ul> </div> <!-- /bottom --> <div id='bottombar'></div>";
if($global_piwik_tracking)
{
$piwik = "<script type=\"text/javascript\">var pkBaseURL =\"http://192.168.5.27/piwik/\"; document.write(unescape(\"%3Cscript src=\'\" + pkBaseURL + \"piwik.js\' type=\'text/javascript\'%3E%3C/script%3E\"));</script><script type=\"text/javascript\">try {var piwikTracker = Piwik.getTracker(pkBaseURL + \"piwik.php\", 1);piwikTracker.trackPageView();piwikTracker.enableLinkTracking();} catch( err ) {} </script>";
}
else{
$piwik = "";
}
if(!isset($_SESSION['uid'])){
$topBar = "<div id='top'><a href='index.php' id='logo1' title='Paathshaala'> <h1></h1> </a><div class='topbarLeft'> <form action='search.php' method='get' > <img src='pics/search.png' class='searchButton' alt=''/> <input type='search' name='tag' placeholder='Search' class='searchBox' required /> </form></div> <ul class='userBar'> <li id=showJoin><a>Join</a></li> <li>|</li> <li id=showlogin><a>Login</a> <img src='pics/down.png' id='logChangeButton' alt=''/></li> </ul><form class='login' action='response/login.php' method='post'> <img src='pics/users.png' alt=''> <input required type='text' name='uname' placeholder='Username' /> <br /> <img src='pics/key.png' alt=''> <input required type='password' name='pass' placeholder='Password' /> <br /> <input type='hidden' name='page' value='".$_SERVER['PHP_SELF']."'> <input type='hidden' name='parameter' value='".http_build_query($_GET)."'> <button type='submit' id='loginButton'>login</button></form><form class='join' action='response/join.php' method='get'> <div class='joinMessage'>Enter your credentials</div> <img src='pics/user.png' alt='' /> <input required type='text' id='fname' placeholder='Full Name' /> <img src='$nullImage' alt='' /><br /> <img src='pics/users.png' alt='' /> <input required type='text' id='username' placeholder='Username' /> <img src='$nullImage' alt='' /> <br /> <img src='pics/mail.png' alt='' /> <input required type='email' id='email' placeholder='Email'/> <img src='$nullImage' alt='' /><br /> <img src='pics/roll.png' alt='' /> <input required type='text' id='roll' placeholder='Roll Number' /> <img src='$nullImage' alt='' /> <br /> <img src='pics/key.png' alt='' /> <input required type='password' id='pass1' placeholder='Password' /> <img src='$nullImage' alt='' /> <br /> <img src='pics/key.png' alt='' /> <input required type='password' id='pass2' placeholder='Password again'/> <img src='$nullImage' alt='' /> <br /> <button id='joinButton' type='button'>Join</button></form></div><img src='pics/load.gif' id='loading' style='display:none;' alt='loading...'>";
$commentSubmit = "Please log in to comment.";
}
else{
$topBar = "<div id='top'><a href='index.php' id='logo1' title='Paathshaala'> <h1></h1> </a><div class='topbarLeft'> <form action='search.php' method='get' > <img src='pics/search.png' class='searchButton' alt=''/> <input type='search' name='tag' placeholder='Search' class='searchBox' required /> </form></div></ul><div class='loggedUser'><img src='".$_SESSION['userpic']."' class='loggedImage' id='loggedImage' alt=''/><span class='loggedName' >".$_SESSION['fullname']."</span><img src='pics/down.png' id='logChangeButton' style='position:relative; top:-9px; height:10px;' alt='' /></div><div class='dashBoard' style='display:none'><a href='profile.php'><img src='pics/home.png' alt=''> Dashboard </a><br /><a href='faq.php'><img src='pics/settings.png' alt=''> Help </a><br /><a href='response/logout.php'><img src='pics/tick.png' alt=''> Sign off </a><br /></div></div><img src='pics/load.gif' id='loading' style='display:none;' alt='loading...'> ";
$commentSubmit = "<div class='commentBox'style='height: 70px;'> <div class='commentBoxImage'> <img src='".$_SESSION['userpic']."' class='fitin' /> </div> <div class='commentBoxText'> <span class='commentTitle' style='margin-left:5px;'>".$_SESSION['fullname']."</span> <div class='data'> <textarea id='comment' rows='2' cols='57' placeholder='Comment here. Enter for submit and down key for new line.'></textarea> </div> </div> </div>";
}
?>