GAMA-Site/index.php
2012-11-16 20:12:49 -05:00

222 lines
12 KiB
PHP
Executable File

<!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">
<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" />
<script type="text/javascript">
function unhide(divID) {
var item = document.getElementById(divID);
if (item) {
item.className = 'unhidden';
}
}
function hide(divID) {
var item = document.getElementById(divID);
if (item) {
item.className = 'hidden';
}
}
</script>
<style type="text/css">
.hidden { display: none; }
.unhidden { display: block; }
</style>
</head>
<body>
<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>
<div id="navigation">
<ul>
<li><a href="#" onclick="javascript:unhide('home');hide('about');hide('contact');hide('minecraft');">Home</a></li>
<li><a href="#" onclick="javascript:unhide('about');hide('home');hide('contact');hide('minecraft');">About</a></li>
<li><a href="http://www.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');hide('minecraft');">Contact Us</a></li>
<li><a href="http://www.unps-gama.info/short" target="_short">URL Shortner</a></li>
<li><a href="#" onclick="javascript:unhide('minecraft');hide('home');hide('about');hide('contact');">Minecraft</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>
<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>
<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="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="javascript:unhide('Privacy');hide('home');hide('about');hide('contact');hide('minecrft')">Here</a>. and our terms of service can be found: (Currently nowhere as we don't have them).</p>
</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>
<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>
<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>
</div>
</div>
</div>
</div>
</body>
</html>