mirror of
https://github.com/c0de-archive/GAMA-Site.git
synced 2024-11-01 02:27:46 +00:00
280 lines
19 KiB
PHP
Executable File
280 lines
19 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="javascript:unhide('home');hide('about');hide('contact');hide('minecraft');hide('Privacy');">Home</a></li>
|
|
<li><a href="javascript:unhide('about');hide('home');hide('contact');hide('minecraft');hide('Privacy');">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="javascript:unhide('contact');hide('home');hide('about');hide('minecraft');hide('Privacy');">Contact Us</a></li>
|
|
<li><a href="http://www.unps-gama.info/short" target="_short">URL Shortner</a></li>
|
|
<li><a href="javascript:unhide('minecraft');hide('home');hide('about');hide('contact');hide('Privacy');">Minecraft</a></li>
|
|
<!--<li><a href="javascript:unhide('Privacy');hide('home');hide('about');hide('contact');hide('minecrft')">Privacy Policy</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 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><p>Here's a list of ways (listed in order of highest chance of reaching me to lowest):</p>
|
|
<ul>
|
|
<li>Skype: <a href="skype:alopexlagopus-c0de?chat">alopexlagopus-c0de</a></li>
|
|
<li>Facebook: <a href="http://facebook.com/G1itch3D" target="_fbgama">G1itch3D</a></li>
|
|
<li>Email: <a href="mailto:c0de@unps-gama.info">c0de@unps-gama.tk</a></li>
|
|
<li>TeamSpeak: <a href="teamspeak:unps-gama.info">unps-gama.tk</a> default channel</li>
|
|
</ul>
|
|
</div>
|
|
<div id="Privacy" class="hidden">
|
|
<!-- START PRIVACY POLICY CODE --><div style="font-family: verdana;"><strong>What information do we collect?</strong> <br /><br />We collect information from you when you register on our site, fill out a form or store files. <br /><br />When ordering or registering on our site, as appropriate, you may be asked to enter your: name or e-mail address. You may, however, visit our site anonymously.<br /><br />Google, as a third party vendor, uses cookies to serve ads on your site. Google's use of the DART cookie enables it to serve ads to your users based on their visit to your sites and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy..<br /><br /><strong>What do we use your information for?</strong> <br /><br />Any of the information we collect from you may be used in one of the following ways: <br /><br />; To personalize your experience<br />(your information helps us to better respond to your individual needs)<br /><br /><br />; To administer a contest, promotion, survey or other site feature<br /><br /><br /><br /><strong>How do we protect your information?</strong> <br /><br />We implement a variety of security measures to maintain the safety of your personal information when you enter, submit, or access your personal information. <br /><br /><strong>Do we use cookies?</strong> <br /><br />Yes (Cookies are small files that a site or its service provider transfers to your computers hard drive through your Web browser (if you allow) that enables the sites or service providers systems to recognize your browser and capture and remember certain information<br /><br /> We use cookies to understand and save your preferences for future visits, keep track of advertisements and compile aggregate data about site traffic and site interaction so that we can offer better site experiences and tools in the future.<br /><br /><strong>Do we disclose any information to outside parties?</strong> <br /><br />We do not sell, trade, or otherwise transfer to outside parties your personally identifiable information. This does not include trusted third parties who assist us in operating our website, conducting our business, or servicing you, so long as those parties agree to keep this information confidential. We may also release your information when we believe release is appropriate to comply with the law, enforce our site policies, or protect ours or others rights, property, or safety. However, non-personally identifiable visitor information may be provided to other parties for marketing, advertising, or other uses.<br /><br /><strong>Third party links</strong> <br /><br /> Occasionally, at our discretion, we may include or offer third party products or services on our website. These third party sites have separate and independent privacy policies. We therefore have no responsibility or liability for the content and activities of these linked sites. Nonetheless, we seek to protect the integrity of our site and welcome any feedback about these sites.<br /><br /><strong>California Online Privacy Protection Act Compliance</strong><br /><br />Because we value your privacy we have taken the necessary precautions to be in compliance with the California Online Privacy Protection Act. We therefore will not distribute your personal information to outside parties without your consent.<br /><br /><strong>Childrens Online Privacy Protection Act Compliance</strong> <br /><br />We are in compliance with the requirements of COPPA (Childrens Online Privacy Protection Act), we do not collect any information from anyone under 13 years of age. Our website, products and services are all directed to people who are at least 13 years old or older.<br /><br /><strong>Online Privacy Policy Only</strong> <br /><br />This online privacy policy applies only to information collected through our website and not to information collected offline.<br /><br /><strong>Your Consent</strong> <br /><br />By using our site, you consent to our privacy policy.<br /><br /><strong>Changes to our Privacy Policy</strong> <br /><br />If we decide to change our privacy policy, we will post those changes on this page, and/or update the Privacy Policy modification date below. <br /><br />This policy was last modified on November 2nd, 2012<br /><br /><strong>Contacting Us</strong> <br /><br />If there are any questions regarding this privacy policy you may contact us using the information below. <br /><br />http://unps-gama.info<br />c0de@unps-gama.info</div><!-- END PRIVACY POLICY CODE -->
|
|
</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="<img src='http://www.unps-gama.info/mcimage.php alt='UnPS-GAMA Minecraft server status image' />" 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 /><br />
|
|
<!--<?php/*
|
|
$choice = '';
|
|
$map = '';
|
|
$uniqueid = '';
|
|
$voterip = '';
|
|
$random = rand();
|
|
if(!$_POST['submit'])
|
|
{
|
|
?>
|
|
<h4>Poll - I'm planning on doing a custom map for a short time, who votes yes, who votes no and if you're yes tell me what map please</h4>
|
|
<form action="index.php" method="post">
|
|
<p>Yes, put up a custom map for a short time <input type="radio" name="choice" value="yes" /></p>
|
|
<p>No, don't change the map <input type="radio" name="choice" value="no" /></p>
|
|
<p>Map to use(optional): <input name="map" type="text" size="30" value="No map was supplied" /></p>
|
|
<input type="hidden" name="uniqueid" value="<?php echo $random; ?>" />
|
|
<input type="hidden" name="voterip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" />
|
|
<input type="submit" name="submit" value="submit" />
|
|
</form>
|
|
<?php
|
|
}
|
|
$choice = $_POST['choice'];
|
|
//$map = $_POST['map'];
|
|
$uniqueid = $_POST['uniqueid'];
|
|
$voterip = $_POST['voterip'];
|
|
if($_POST["submit"])
|
|
{
|
|
if(isset($_POST['choice']) && isset($_POST['uniqueid']) && isset($_POST['voterip']) && $choice != "" && $uniqueid != "" && $voterip != "")
|
|
{
|
|
if(isset($_POST['map'])){
|
|
$map = $_POST['map'];
|
|
}else{
|
|
$map = "No Map was supplied";
|
|
}
|
|
$myFile = "poll.txt";
|
|
$fh = fopen($myFile, 'a') or die("can't open file");
|
|
$stringData = "Voter: ".$uniqueid." Of IP: ".$voterip.", has voted ".$choice." and their map is: ".$map.".\n";
|
|
fwrite($fh, $stringData);
|
|
fclose($fh);
|
|
echo "
|
|
<script type='text/javascript'>
|
|
unhide('minecraft');hide('home');hide('about');hide('contact');
|
|
</script>
|
|
<h3>Thanks for voting!</h3>";
|
|
//echo "Voter: ".$uniqueid." Of IP: ".$voterip.", has voted ".$choice." and their map is: ".$map."\r\n\r\n";
|
|
}if($choice == "" || $uniqueid == "" || $voterip == ""){
|
|
echo "
|
|
<script type='text/javascript'>
|
|
unhide('minecraft');hide('home');hide('about');hide('contact');
|
|
</script>
|
|
<h1>Something's not right here... Try using the poll again</h1>";
|
|
}
|
|
}
|
|
*/?>-->
|
|
</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 'preg_find.php';
|
|
//$files = preg_find('/./', './upload', PREG_FIND_RECURSIVE);
|
|
//foreach($files as $file) printf("<br />%s\n", $file);
|
|
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 © 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>
|