Changed to work with new CSS

This commit is contained in:
David Todd 2013-01-08 17:07:19 -05:00
parent 215883f484
commit 85983e72c8
1 changed files with 292 additions and 167 deletions

459
index.php
View File

@ -1,217 +1,342 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
session_start();
if(isset($_GET['mysourceisyours'])) {
show_source('index.php');
die();
}
$token = uniqid(mt_rand(), TRUE);
$_SESSION['token'] = $token;
//$_SESSION['loginid'] = 580658027;
function userpic(){
$email = "tehfoxy.c0de@gmail.com";
$default = "http://fox.gy/fCDIjceUvkk.png";
$size = 100;
$grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( trim( $email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;
return $grav_url;
//return "http://unps-gama.info/upload/Pictures/zen-avi-hf.png";
}
function username(){
return "c0de";
}
function shortlinknum(){
return 55;
}
function imgnum(){
return 20;
}
$last_modified = filemtime("index.php");
$footer = '
<p>
Copyright &copy; 2012-2013 UnPS-GAMATechnologies<br />
Last Modified: '.date("m/j/y h:i:s a", $last_modified).'
Last viewed on: '.date( "m/d/Y h:i:s a").' Server time.
</p>
'
?>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="description" content="Main page for UnProfessional Standards" />
<meta name="keywords" content="GAMA,UnPS,upstandards,unps-gama,gama-unps,unps,gama,davitech,davitodd" />
<meta name="author" content="David Todd" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24492597-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<link rel="shortcut icon" type="image/ico" href="favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<title>UnProfessional Standards GAMATechnologies</title>
<link rel="stylesheet" href="site.css" />
<title>UnProfessional Standards GAMATechnologies</title>
<script type="text/javascript">
function unhide(divID) {
var item = document.getElementById(divID);
if (item) {
item.className = 'unhidden';
if (document.getElementById( "link1" )){
document.getElementById( "link1" ).setAttribute( "onClick", "hide('friends');" );
}
}
}
function hide(divID) {
var item = document.getElementById(divID);
if (item) {
item.className = 'hidden';
if (document.getElementById( "link1" )){
document.getElementById( "link1" ).setAttribute( "onClick", "unhide('friends');" );
}
}
}
</script>
function msg(){
alert('What are you doing fox!? This isn\'t part of the demo');
}
</script>
<style type="text/css">
.hidden { display: none; }
.unhidden { display: block; }
.hidden {
-webkit-transition: all 0.45s ease;
-moz-transition: all 0.45s ease;
-o-transition: all 0.45s ease;
-ms-transition: all 0.45s ease;
transition: all 0.45s ease;
display: none;
}
.unhidden {
-webkit-transition: all 0.45s ease;
-moz-transition: all 0.45s ease;
-o-transition: all 0.45s ease;
-ms-transition: all 0.45s ease;
transition: all 0.45s ease;
display: block;
}
</style>
</head>
<body>
<body onload="javascript:checkads();">
<div id="container">
<div id="header">
<a href="http://www.unps-gama.info">
<img src="http://www.unps-gama.info/upload/Pictures/header.png" alt="UnPS-GAMA Header logo" />
</a>
<div id="header-bg-bg">
<div id="header-bg">
<div id="header">
<a href="#">
<img src="header.png" alt="UnPS-GAMA Header logo" />
</a>
</div>
</div>
</div>
<div id="navigation">
<ul>
<li><a href="#" onclick="javascript:unhide('home');hide('about');hide('contact');">Home</a></li>
<li><a href="#" onclick="javascript:unhide('about');hide('home');hide('contact');">About</a></li>
<li><a href="http://img.unps-gama.info/" target="img">IMGShare</a></li>
<li><a href="http://www.unps-gama.info/fp/flatpress/" target="blog">Personal Blog</a></li>
<li><a href="http://www.unps-gama.info/upload/index.php" target="upload">Uploads</a></li>
<li><a href="http://www.unps-gama.info/pox/" target="pox">Proxy</a></li>
<li><a href="https://github.com/alopexc0de/GAMA-Site" target="_ghgama">GitHub</a></li>
<li><a href="#" onclick="javascript:unhide('contact');hide('home');hide('about');">Contact Us</a></li>
<li><a href="http://www.unps-gama.info/short" target="_short">URL Shortner</a></li>
<li><a href="http://unps-gama.info/privacy.html">Privacy Policy</a></li>
<li><a href="http://unps-gama.info/ToS.html">Terms of Service</a></li>
</ul>
<div id="navigation-bg">
<div id="navigation">
<ul>
<li><a href="#" onclick="javascript:unhide('home');hide('about');hide('contact');">Home</a></li>
<li><a href="#" onclick="javascript:unhide('about');hide('home');hide('contact');">About</a></li>
<li><a href="#" onclick="javascript:unhide('contact');hide('home');hide('about');">Contact Us</a></li>
<li><a href="http://unps.us">URL Shortner</a></li>
<li><a href="http://img.unps-gama.info">IMGShare</a></li>
<li><a href="http://p.unps.us">Projects</a></li>
<li><a href="privacy.html">Privacy Policy</a></li>
<li><a href="ToS.html">Terms of Service</a></li>
<li><a href="http://www.unps-gama.info/fp/flatpress">Personal Blog</a></li>
<li><a href="http://www.unps-gama.info/upload/">Uploads</a></li>
<li><a href="https://github.com/alopexc0de/GAMA-Site">GitHub</a></li>
</ul>
</div>
</div>
<div id="content-container1">
<div id="content-container2">
<div id="section-navigation">
<ul>
<li><h4>Offered Services:</h4></li>
<li><a href="http://teamspeak.com" target="ts">TeamSpeak</a> - unps-gama.tk:9987</li>
<li><a href="http://img.unps-gama.info/" target="img">Image Host</a></li>
<li><a href="http://en.wikipedia.org/wiki/Secure_Shell" target="ssh">SSH Access</a> - email <a href="mailto:c0de@unps-gama.tk">c0de</a> for info</li>
<li><a href="http://en.wikipedia.org/wiki/Email" target="email">EMail</a> (through SSH)</li>
<li><a href="http://en.wikipedia.org/wiki/Ftp" target="ftp">FTP</a> (through <a href="http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol" target="sftp">SFTP</a>)</li>
<li><a href="upload.html" target="upload">File Storage</a> (up to 20MB)</li>
<li><a href="http://en.wikipedia.org/wiki/Proxy_server" target="proxy">Proxy</a> at <a href="http://www.unps-gama.info/pox/" target="pox">Pox</a></li>
<li><a href="http://www.unps-gama.info/short" target="_short">URL Shortner</a></li>
</ul>
<div id="section-navigation" align="center">
<table>
<tr>
<td>
<ul>
<li><h4>User Area:</h4><hr /></li>
<li id="login" style="text-align:center" class="<?php if(isset($_SESSION['loginid']) && $_SESSION['loginid'] != '' || $_SESSION['loginid'] != null) echo"hidden"; ?>">
<form id="user" name="user" action="#" method="post">
<input name="uname" id="uname" class="uname" title="Insert Username Here" placeholder="Username" value="" type="text" size="20" />
<br />
<input name="upass" id="upass" class="upass" title="Insert Password Here" placeholder="Password" value="" type="password" size="20" />
<br />
<input name="register" id="register" value="Register" type="submit" />
<input name="login" id="login" value="Login" type="submit" />
</form>
<hr />
</li>
<li id="main" style="text-align:center" class="<?php if(isset($_SESSION['loginid']) && $_SESSION['loginid'] != '' || $_SESSION['loginid'] != null) echo "unhidden"; else echo "hidden"; ?>">
<img src="<?php echo userpic(); ?>" alt="Profile Picture of <?php echo username(); ?>" title="Profile Picture of <?php echo username(); ?>">
<br />
<?php echo username()."\r\n<br />"; ?>
<a href="profile.php">User Profile</a><br />
<?php echo shortlinknum()." <a href=\"http://unps.us/?links\">Shortened Links</a><br />\r\n"; ?>
<?php echo imgnum()." <a href=\"http://img.unps-gama.info/?imgs\">Uploaded Images</a><br />\r\n"; ?>
<a href="logout.php?token=<?php echo $token; ?>">Logout</a>
<hr />
</li>
</ul>
<br />
</td>
</tr>
<tr>
<td>
<ul>
<li><h4>Offered Services:</h4><hr /></li>
<li><a href="http://teamspeak.com/">TeamSpeak</a> - ts.unps.us:9987</li>
<li><a href="http://img.unps-gama.info">Image Host</a></li>
<li><a href="http://unps.us">URL Shortner</a></li>
<li><a href="upload.html">File Storage</a> (up to 20MB)</li>
<hr />
</ul>
<br />
</td>
</tr>
<!--<tr> I didn't really like how this was pulled off. I may readd this later, or it could be dead code
<td>
<ul>
<li><a id="link1" href="#" onclick="javascript:unhide('friends');"><h4>Friends</h4></a></li>
<div id="friends" class="hidden" align="center">
<hr /><br />
<li><a href="http://furcast.fm"> Furcast </a></li>
<li><a href="http://fridaynighttech.com"> Friday Night Tech </a></li>
<li><a href="http://xanacreations.com"> XanaCreations </li>
<li><a href="http://doridian.de"> Doridian </li>
<li><a href="https://foxcav.es"> FoxCaves </a></li>
<li><a href="http://ruinsofmc.com"> Ruins of Minecraft </a></li>
<hr />
</div>
</ul>
</td>
</tr>-->
</table>
</div>
<div id="content"><div id="home" class="unhidden">
<h2>
UnProfessional Standards - GAMATechnologies | Home Page
</h2><hr />
<p>
@Nov 16, 2012 - 1933 EST: <br />
Our new updated image host, which can be found at <a href="http://img.unps-gama.info" target="img">IMGShare</a>, is one of our recent changes. Others include a <a href="ToS.html"> Terms of Service</a>, and a <a href="privacy.html">Privacy Policy</a>.
</p><hr />
<p>
@Nov 2, 2012 - 0130 EST: <br />
We have officially launched with an actual domain name! In the next few days you'll also see some changes to this site, hopefully for the better. I have been hard at work setting up an email system, and it has caused a lot of grief. If you see webmail one day, then great, I managed to get the mysql working with postfix and whatever I choose to use for webmail. Registration is, as always going to be free. I am also currently adding mysql to other sections of my site, and I'm debating on requiring user login for uploading files and pictures. I have added a privacy policy <a href="javascript:unhide('Privacy');hide('home');hide('about');hide('contact');hide('minecrft')">Here</a>. So have fun with that.
</p><hr />
<p>
Hello and welcome to the newly designed UnPS-GAMA website! The past week has mainly been spent upgrading my image share system, and it is nearly at completion. I have been absolutly dreading redesiging this page, but I decided today, September 13th 2012 at 1500 EST, that I would finally get to work. I decided to start more from scratch and pull in the things that I wanted. Currently this is beta and not every page is done with formatting. Pages that I'm happy with for now (aside for not having CSS2 or XHTML1 compliance) are the <a href="http://www.unps-gama.info/404.html">404</a> page, and pretty much anything with the <a href="http://www.unps-gama.info/img">image host</a>. Pages that I need to work on are the upload, contact us, and about pages so far. As of now, they'll just redirect to the 404 page until I get to them.<br />As I have placement tests for college today, I am trying to get as much done as I can before then, <strike>but it could be unlikely that I get the page uploaded and live until then.</strike> I got it uploaded and debugged quickly. There are some alignment issues but good otherwise. Updates soon to follow.
</p></div>
<div id="content">
<div id="home" class="unhidden">
<h2>
UnProfessional Standards - GAMATechnologies | Home Page
</h2><hr />
<div class="content-post-wrapper">
<div id="content-post">
<h3>
@Dec 10th, 2012 - Sometime:
</h3><hr />
<p>
I've created something of a project repo. This will be where I test a lot of things before I commit them.
Some directories will be password protected to have a closed beta for some people. Anything not protected, unless otherwise stated in the comments, is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">http://creativecommons.org/licenses/by-nc-sa/3.0/</a>
</p>
</div>
</div>
<br />
<div class="content-post-wrapper">
<div id="content-post">
<h3>
@Nov 16, 2012 - 1933 EST:
</h3><hr />
<p>
Our new updated image host, which can be found at <a href="http://img.unps-gama.info/">IMGShare</a>, is one of our recent changes. Others include a <br /><a href="http://unps-gama.info/ToS.html">Terms of Service</a>, and a <a href="http://unps-gama.info/privacy.html">Privacy Policy</a>.
</p>
</div>
</div>
<br />
<div class="content-post-wrapper">
<div id="content-post">
<h3>
@Nov 2, 2012 - 0130 EST:
</h3><hr />
<p>
We have officially launched with an actual domain name! In the next few days you'll also see some changes to this site, hopefully for the better. I have been hard at work setting up an email system, and it has caused a lot of grief. If you see webmail one day, then great, I managed to get the mysql working with postfix and whatever I choose to use for webmail. Registration is, as always going to be free. I am also currently adding mysql to other sections of my site, and I'm debating on requiring user login for uploading files and pictures. I have added a privacy policy <a href="http://www.unps-gama.info/privacy.html">Here</a>. So have fun with that.
</p>
</div>
</div>
<br />
<div class="content-post-wrapper">
<div id="content-post">
<p>
Hello and welcome to the newly designed UnPS-GAMA website! The past week has mainly been spent upgrading my image share system, and it is nearly at completion. I have been absolutly dreading redesiging this page, but I decided today, September 13th 2012 at 1500 EST, that I would finally get to work. I decided to start more from scratch and pull in the things that I wanted. Currently this is beta and not every page is done with formatting. Pages that I'm happy with for now (aside for not having CSS2 or XHTML1 compliance) are the <a href="http://www.unps-gama.info/404.html">404</a> page, and pretty much anything with the <a href="http://www.unps-gama.info/img">image host</a>. Pages that I need to work on are the upload, contact us, and about pages so far. As of now, they'll just redirect to the 404 page until I get to them.<br />As I have placement tests for college today, I am trying to get as much done as I can before then, <strike>but it could be unlikely that I get the page uploaded and live until then.</strike> I got it uploaded and debugged quickly. There are some alignment issues but good otherwise. Updates soon to follow.
</p>
</div>
</div>
<br />
<div id="content-foot">
<?php echo $footer; ?>
</div>
</div>
<div id="about" class="hidden">
<h2>
UnProfessional Standards - GAMATechnologies | About Us
</h2><hr />
<p>
The way this works is fairly simple, what I do is I host web services. If you want to use me for anything, then feel free to contact me at <a href="mailto:c0de@unps-gama.tk">c0de</a>. Most of what I offer is free for anyone, and I can terminate service for anybody, including to the point of not being able to access anything on the GAMA network. If I decide to terminate service however, I will compress any of your files and give you a link. The link is only good for ~48 hours before it will be deleted automatically. Services that I offer by default are listed to the left, these are free for anyone who wants to use them. Depending on your request I might be able to host other things though, just ask.
</p>
<p>Our privacy policy can be found <a href="privacy.html">Here</a>, and our Terms of Service can be found: <a href="ToS.html">Here</a>.</p>
</h2>
<hr />
<div class="content-post-wrapper">
<div id="content-post">
<p>
What I do is I host web services. If you want to use me for anything, then feel free to contact me at <a href="mailto:c0de@unps-gama.info">c0de</a>. Most of what I offer is free for anyone, and I can terminate service for anybody, including to the point of not being able to access anything on the GAMA network. If I decide to terminate service however, I will compress any of your files and give you a link. The link is only good for ~48 hours before it will be deleted automatically. Services that I offer by default are listed to the left, these are free for anyone who wants to use them. Depending on your request I might be able to host other things though, just ask.
<br />
Our privacy policy can be found <a href="privacy.html">Here</a>, and our Terms of Service can be found: <a href="ToS.html">Here</a>.
</p>
</div>
</div>
<br />
<div id="content-foot">
<?php echo $footer; ?>
</div>
</div>
<div id="contact" class="hidden">
<h2>
UnProfessional Standards - GAMATechnologies | Contact Us
</h2><hr />
<p>Hello, I'm assuming that you want to contact me.</p><ul>
<li>Skype: <a href="skype:alopexlagopus-c0de?chat">alopexlagopus-c0de</a></li>
</ul>
<div class="content-post-wrapper">
<div id="content-post">
<h3>
So You Want to Contact me? Lets see what I can do for you...
</h3><hr />
<p>
I have quite an online presence, but here I'll list just a few places to easily get in contact with me :3
<br />
<ul style="list-style-type: none;">
<li>Skype: <a href="skype:alopexlagopus-c0de?chat">alopexlagopus-c0de</a></li><br />
<li>Email: <a href="mailto:c0de@unps-gama.info">c0de@unps-gama.info</a></li><br />
<li>Facebook: <a href="http://facebook.com/alopexc0de">alopexc0de</a></li><br />
<li>HF: <a href="http://www.hackforums.net/member.php?action=profile&uid=1216472">alopexlagopus</a></li>
<ul />
</p>
</div>
</div>
<br />
<div id="content-foot">
<?php echo $footer; ?>
</div>
</div>
<!--<div id="minecraft" class="hidden">
<h4>Server Status:</h4><br />
<table align="center">
<?php /*
$ip = 'mc.unps-gama.info';
$port = '36565';
$result = '';
$fp = fsockopen($ip, $port, $errno, $errstr, 5); // Socket for connecting to server
if (!$fp) {
echo "<font color='red'>Unable to reach server</font>";
} else {
$out = "\xFE"; // Hex needed for server info
fwrite($fp, $out);
while (!feof($fp)) {
$result .= fgets($fp, 128);
}
fclose($fp);
// Remove extra spaces between characters
$result = str_replace("\x00", "", $result);
$result = str_replace("\x1A", "", $result);
$result = str_replace("\xFF", "", $result);
$srvinfo = explode("\xA7",$result);
echo "<tr><td>\n";
echo "Server:<font color='red'> " . $ip . "</font> on port:<font color='blue'> " . $port . " </font> is: ";
include('testserver.php');
$status = GetServerStatus($ip, $port);
if ($status=="ONLINE") echo "<font color='green'>" . $status . "</font></td></tr>\n";
if ($status=="OFFLINE") echo "<font color='red'>" . $status . "</font></td></tr>\n";
echo "<tr><td>motd:".$srvinfo[0]."</td></tr>\n";
echo "<tr><td>players online: " . $srvinfo[1] . "</td></tr>\n";
echo "<tr><td>max players: " . $srvinfo[2] . "</td></tr>\n";
}
*/?><tr><td><hr /></td></tr>
<tr><td><img src="http://www.unps-gama.info/mcimage.php" alt="server status image" /></td></tr>
<tr><td><form action="404.html" method="get"><p>Share this banner:</p>
<p>Direct: <input type="text" size="28" name="directlink" value="http://www.unps-gama.info/mcimage.php" readonly="readonly" /></p>
<p>HTML: <input type="text" size="88" name="html" value="&lt;img src='http://www.unps-gama.info/mcimage.php alt='UnPS-GAMA Minecraft server status image' &#47;&gt;" readonly="readonly" /></p>
<p>BBCode (for forums): <input type="text" size="58" value="[align=center][img]http://www.unps-gama.info/mcimage.php[/img][/align]" readonly="readonly" name="bbcode" /></p></form></td></tr>
</table><br /><hr />
</div>-->
</div>
<div id="aside">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-6762927271223365";
/* Side ad unps1 */
google_ad_slot = "3534639421";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="JWBVWZ8XGM73W" />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" />
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>
<div id="ads">
<script type="text/javascript" id="theads" "><!--
google_ad_client = "ca-pub-6762927271223365";
/* sidebar ads */
google_ad_slot = "1523932882";
google_ad_width = 120;
google_ad_height = 240;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div id='noa' class="hidden">
<p>
The reason you're seeing this is because either through our fault, or you just have an adblocker, the ads have failed to load.
<br />
Ads are great you know. I pay for these domains out of pocket, it doesn't hurt to click an ad once in a while...
</p>
</div>
<br />
<h3>
Upload Files (20MB limit)
</h3>
<p>
Files will automatically sort after 5 minutes. If you can't find your file, check <a href="http://www.unps-gama.info/upload/index.php">Uploads</a> for your files.
</p>
<form enctype="multipart/form-data" method="post" action="upload.php">
<label for="file">Filename:</label>
<input id="file" type="file" name="file" /><br />
<input value="Upload!" type="submit" name="submit" />
</form>
<br /><h3>Files currently on GAMA: </h3>
<?php
include 'upload-list.php';
getDirectory( "./upload" );
?>
</div>
<div id="footer">
<p>
<a href="http://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" />
</a>
<a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" />
</a>
</p>
<h5>Everything availiable <a href="https://github.com/alopexc0de/GAMA-Site" target="_ghgama">here</a> on <a href="https://github.com">GitHub</a><br />
Copyright &copy; UnPS-GAMATechnologies, 2012 - CSS Provided by: <a href="http://www.maxdesign.com.au/articles/css-layouts/three-liquid/" target="maxdesign">maxdesign</a><br />
<?php
$last_modified = filemtime("index.php");
print("Last Modified ");
print(date("m/j/y h:i:s a", $last_modified));
?>
<?php
//displays the time / date a page was last accessed
echo "Last viewed on: " . date( "m/d/Y h:i:s a");
?> Server time.</h5>
<ul>
<li>
<h3>
Upload Files (20MB limit)
</h3><hr />
<p>
If you can't find your file, check <a href="#">Uploads</a> for your files.
</p>
<form enctype="multipart/form-data" method="post" action="upload.php">
<label for="file">Filename:</label>
<input id="file" type="file" name="file" /><br />
<input value="Upload!" type="submit" name="submit" />
</form>
<hr />
</li>
</ul>
<br />
<ul>
<li>
<h3>Files currently on GAMA: </h3><hr />
<?php
include 'upload-list.php';
getDirectory( "./upload" );
?>
<hr />
</li>
</ul>
</div>
</div>
</div>