diff --git a/404.html b/404.html new file mode 100644 index 0000000..df941c5 --- /dev/null +++ b/404.html @@ -0,0 +1,28 @@ + + + Hmm... a 404 error... + + + + +
+ Home +
+

I spy a 404 error

+ anthrostuff +

It seems that you tried to access a GAMA resource that you aren't allowed to access yet, anthrostuff
you tried to get to a file that used to exist, + but could have been moved or deleted, or you tried to access a file that was never hosted on this server.



+ Regardless of the reason, you have been brought here. Now I would love to help you, but I can only do what I'm told if I know what you want.

+

Some useful links would include...

+

+ Skype the admin || + E-mail the admin || + Home || + Uploads || + Image Host || + Personal Blog || + Server Information +

+
+ + \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100755 index 0000000..0916778 Binary files /dev/null and b/favicon.ico differ diff --git a/img/getfiles.php b/img/getfiles.php new file mode 100755 index 0000000..ef7c358 --- /dev/null +++ b/img/getfiles.php @@ -0,0 +1,14 @@ +'.$file.' Last Modified: '. date("m/j/y h:i:s a", $last_modified) .'
'; + } + } + closedir($handle); + } +?> \ No newline at end of file diff --git a/img/imgup.php b/img/imgup.php new file mode 100755 index 0000000..bd23f1c --- /dev/null +++ b/img/imgup.php @@ -0,0 +1,429 @@ + http://www.phphq.net +:- Copyright (c) 2010 All Rights Reserved +:- +:- This script is free software; you can redistribute it and/or modify +:- it under the terms of the GNU General Public License as published by +:- the Free Software Foundation; either version 2 of the License, or +:- (at your option) any later version. +:- +:- This script is distributed in the hope that it will be useful, +:- but WITHOUT ANY WARRANTY; without even the implied warranty of +:- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +:- GNU General Public License for more details. +:- http://www.gnu.org/licenses/gpl.txt +:- +//================================================================================ +* Description +//================================================================================ +:- phUploader is a script for uploading single or multiple images or files to your website. You can specify your +:- own file extensions that are accepted, the file size and naming options. This script was built and tested on +:- IIS6/7 and Apache 2+. It's recommended to use php 5.1+ This script is very useful for temporary file +:- storage or simple sig and avatar hosting. +//================================================================================ +* Setup +//================================================================================ +:- To setup this script, upload phUploader.php to a folder on your server. Create a new folder named uploads +:- and chmod it to 777. Edit the variables below to change how the script acts. Please read the notes if you +:- don't understand something. +//================================================================================ +* Change log +//================================================================================ +:- Version 1.0 +:- 1) Initial Release +:- Version 1.1 +:- 1) Minor bug fixes +:- 2) Enabled multiple file uploads +:- Version 1.2 +:- 1) Added CSS styling +:- 2) Removed automatic creation of file upload folder. +:- 3) Improved cookie security by hashing password and storing it within the cookie for authentication. +:- 4) Minor bug fixes +:- Version 1.3 +:- 1) Re-write of many core functions to increase security. +:- 2) Patched a vulnerability that allowed a remote attacker to upload a file with two extensions and then +:- remotely execute the script on a vulnerable web server. +:- 3) New feature allows files that pass validation to be uploaded while files that fail validation are not +:- uploaded without rejecting to whole group of files. +:- 4) Fixed a flaw that allowed files with blank names or un-sanitized names to be uploaded which may +:- cause issues for some users. +:- 5) Minor bug fixes +//================================================================================ +* Frequently Asked Questions +//================================================================================ +:- Q1: I always get an error that the files were not uploaded. IE: GENERAL ERROR +:- 1) Make sure you have CHMOD your "uploads" folder to 777 using your FTP client or similar. If you do +:- not know how to do this ask your hosting provider. +:- 2) Make sure the uploads folder actually exists. This is the second most common mistake aside from +:- improper permissions. +:- 3) If you are having problems uploading after you have chmod the uploads folder 777, try using the +:- full server path in $fullpath below. If you do not know this ask your host. +:- 4) Make sure "file_uploads" is set to ON in php.ini +:- +:- Q2: The page takes long to load and then gives me a page cannot be displayed or a blank page. +:- 1) This is usually due to a low value in php.ini for "max_execution_time". +:- 2) A newer ini setting "max_file_uploads" in php 5.2.12 was added which may be limiting the number + of simultaneous uploads. +:- 3) Your "upload_max_filesize" and "post_max_size" in php.ini might be set to low. +:- +:- Q3: How do I edit the colors of the form? +:- 1) You will need to edit the CSS near the bottom of the script to change the looks and colors of the form. +:- Check http://www.w3schools.com/css/default.asp for more information on CSS. +:- +:- Q4: Can I remove your copyright link? +:- 1) I can't physically stop you. However, I really appreciate it when people leave it intact. +:- Some people donate $5, $10, $20 to take it off. +:- +:- Q5: You never respond to my emails or to my questions in your forums! +:- 1) I'm a very busy guy. I'm out of town a lot, and at any given time I have several projects going on. +:- I get a lot of emails about this script, not to mention my other ones. +:- 2) I only understand English. If your English is very bad please write in your native language and then +:- translate it to English using . +:- 3) If you are going to contact me, describe the issue you are having as completly as possible. +:- "dude me form don't work see it at blah.com what's wrong??!?!" will get no response, ever. Write +:- in detail what the problem is. Spend a minute on it, and maybe I'll take some of my time to reply. +:- +/* +//================================================================================ +* ! ATTENTION ! +//================================================================================ +:- Please read the above FAQ before giving up or emailing me. It may sort out your problems! +*/ + +// Max size PER file in KB +$max_file_size="4096"; + +// Max size for all files COMBINED in KB +$max_combined_size="8102"; + +//Maximum file uploades at one time +$file_uploads="4"; + +//The name of your website +$websitename="UnPS-GAMA IMGShare Uploader"; + +// Full browser accessable URL to where files are accessed. With trailing slash. +$full_url="http://unps-gama.tk/img/?img="; + +// Path to store files on your server If this fails use $fullpath below. With trailing slash. +$folder="./"; + +// Use random file names? true=yes (recommended), false=use original file name. +// Random names will help prevent files being denied because a file with that name already exists. +$random_name=true; + +// Types of files that are acceptiable for uploading. Keep the array structure. +$allow_types=array("jpg","gif","png","bmp","JPEG","JPG","GIF","PNG"); + +// Only use this variable if you wish to use full server paths. Otherwise leave this empty. With trailing slash. +$fullpath="/var/www/img/"; + +//Use this only if you want to password protect your upload form. +$password=""; + +/* +//================================================================================ +* ! ATTENTION ! +//================================================================================ +: Don't edit below this line. +*/ + +// Initialize variables +$password_hash=md5($password); +$error=""; +$success=""; +$display_message=""; +$file_ext=array(); +$password_form=""; + +// Function to get the extension a file. +function get_ext($key) { + $key=strtolower(substr(strrchr($key, "."), 1)); + $key=str_replace("jpeg","jpg",$key); + return $key; +} + +// Filename security cleaning. Do not modify. +function cln_file_name($string) { + $cln_filename_find=array("/\.[^\.]+$/", "/[^\d\w\s-]/", "/\s\s+/", "/[-]+/", "/[_]+/"); + $cln_filename_repl=array("", ""," ", "-", "_"); + $string=preg_replace($cln_filename_find, $cln_filename_repl, $string); + return trim($string); +} + +// If a password is set, they must login to upload files. +If($password) { + + //Verify the credentials. + If($_POST['verify_password']==true) { + If(md5($_POST['check_password'])==$password_hash) { + setcookie("phUploader",$password_hash); + sleep(1); //seems to help some people. + header("Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); + exit; + } + } + + //Show the authentication form + If($_COOKIE['phUploader']!=$password_hash) { + $password_form="
\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="
Password Required
Enter Password:
\n"; + $password_form.="\n"; + $password_form.="\n"; + $password_form.="
\n"; + $password_form.="
\n"; + } + +} // If Password + +// Dont allow submit if $password_form has been populated +If(($_POST['submit']==true) AND ($password_form=="")) { + + //Tally the size of all the files uploaded, check if it's over the ammount. + If(array_sum($_FILES['file']['size']) > $max_combined_size*1024) { + + $error.="FAILED: All Files REASON: Combined file size is to large.
"; + + // Loop though, verify and upload files. + } Else { + + // Loop through all the files. + For($i=0; $i <= $file_uploads-1; $i++) { + + // If a file actually exists in this key + If($_FILES['file']['name'][$i]) { + + //Get the file extension + $file_ext[$i]=get_ext($_FILES['file']['name'][$i]); + + // Randomize file names + If($random_name){ + $file_name[$i]=time()+rand(0,100000); + } Else { + $file_name[$i]=cln_file_name($_FILES['file']['name'][$i]); + } + + // Check for blank file name + If(str_replace(" ", "", $file_name[$i])=="") { + + $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: Blank file name detected.
"; + + //Check if the file type uploaded is a valid file type. + } ElseIf(!in_array($file_ext[$i], $allow_types)) { + + $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: Invalide file type.
"; + + //Check the size of each file + } Elseif($_FILES['file']['size'][$i] > ($max_file_size*1024)) { + + $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: File to large.
"; + + // Check if the file already exists on the server.. + } Elseif(file_exists($folder.$file_name[$i].".".$file_ext[$i])) { + + $error.= "FAILED: ".$_FILES['file']['name'][$i]." REASON: File already exists.
"; + + } Else { + + If(move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder.$file_name[$i].".".$file_ext[$i])) { + + $success.="SUCCESS: ".$_FILES['file']['name'][$i]."
"; + $success.="URL: ".$full_url.$file_name[$i].".".$file_ext[$i]."

"; + + } Else { + $error.="FAILED: ".$_FILES['file']['name'][$i]." REASON: General upload failure.
"; + } + + } + + } // If Files + + } // For + + } // Else Total Size + + If(($error=="") AND ($success=="")) { + $error.="FAILED: No files selected
"; + } + + $display_message=$success.$error; + +} // $_POST AND !$password_form + +/* +//================================================================================ +* Start the form layout +//================================================================================ +:- Please know what your doing before editing below. Sorry for the stop and start php.. people requested that I use only html for the form.. +*/ +?> + + + + + +<?php echo $websitename; ?> - Powered By phUploader + + + + +

+
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ Allowed Types:
+ Max size per file: kb. + Max size for all files combined: kb.
+
Select File:
+
+ + + + + + +
+ + \ No newline at end of file diff --git a/img/index.php b/img/index.php new file mode 100755 index 0000000..0e7c9b8 --- /dev/null +++ b/img/index.php @@ -0,0 +1,73 @@ + + + + + + +\n"; + print "\n"; + print "\n"; + print "\n"; +} +print "GAMA IMGShare" . $title ."\n"; +?> + + + + +
+ + +To UnPS-GAMA + +
+

You didn't specify an image. This is an image hoster.
Please specify an image with the url: unps-gama.tk/img/?img=(IMGAGE STUFF HERE)


Want to upload pictures?

Image Uploader Here


" . "

List of files:

" . $thelist . "
"; + +}else{ +echo "
\n"; +echo "
\n"; +echo "\n"; +echo "

Currently viewing: " . $img . "

\n"; +echo "
\n"; +} +?> +
+ \ No newline at end of file diff --git a/img/zen1.png b/img/zen1.png new file mode 100755 index 0000000..9a822df Binary files /dev/null and b/img/zen1.png differ diff --git a/index.php b/index.php new file mode 100755 index 0000000..76ea97a --- /dev/null +++ b/index.php @@ -0,0 +1,137 @@ + + + + + + + + + + + +UnProfessional Standards GAMATechnologies + + + + + +
+ + +
+
+
+ +
+
+

+ UnProfessional Standards - GAMATechnologies | Home Page +


+

+ 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 404 page, and pretty much anything with the image host. 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.
As I have placement tests for college today, I am trying to get as much done as I can before then, but it could be unlikely that I get the page uploaded and live until then. I got it uploaded and debugged quickly. There are some alignment issues but good otherwise. Updates soon to follow. +


+

(Pulled from old index)

Whoo! We've gone through our first actual hack!

+

This page was defaced today, May 25th at 8:18am EST by Nightmare Team. + The page can still be accessed here + It was actually pretty fun, and I saw that it was a simple php upload exploit to change the way php worked on the system. + The person who pulled it off has not been banned from this server (because of my hackerish side) + ciao - dc0de +

+
+
+ +
+
+ + + + +
+
+

+ Upload Files (20MB limit) +

+

+ Files will automatically sort after 5 minutes. If you can't find your file, check Uploads for your files. +

+
+ +
+ +
+

Files currently on GAMA (No links):

+ %s\n", $file); + ?> +
+ +
+
+
+ + diff --git a/index.php.hack b/index.php.hack new file mode 100755 index 0000000..a4a93c3 --- /dev/null +++ b/index.php.hack @@ -0,0 +1,148 @@ + + + + + + + + +!~! HaCkeD By NabiloS-Tn-X-Hack From Tunisian Nightmare team !~! + + + + + + + + + +.......Error...... +!! You Have Just Got Owned By Nabilos-Tn-X-Hack!!

+ +

+ + + +

+

+

 

+ +

+ + +!! You Have Just Got Owned By Nightmare Team !!

+

+Thnx to All TUnisiens Hackers + + + +

+
+

+http://www14.0zz0.com/2011/12/03/15/302261600.gif

+ + + + +
+

+
+
+

+ +
+

+ +http://www14.0zz0.com/2011/12/03/15/302261600.gif

+
+

+

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ + + + + + +

+

Contact Me: +https://www.facebook.com/NabilosTnHack3r//***//

+

+

+

! Go To +Hell !

+ + + + + diff --git a/layout-three-liquid-background1.gif b/layout-three-liquid-background1.gif new file mode 100755 index 0000000..16afe78 Binary files /dev/null and b/layout-three-liquid-background1.gif differ diff --git a/layout-three-liquid-background2.gif b/layout-three-liquid-background2.gif new file mode 100755 index 0000000..a5c97d0 Binary files /dev/null and b/layout-three-liquid-background2.gif differ diff --git a/mcping.php b/mcping.php new file mode 100755 index 0000000..021eb3a --- /dev/null +++ b/mcping.php @@ -0,0 +1,59 @@ +UnPS MC Checker + +
+
+ + + + + + +
If you want to parse this information for yourself, just give the script an $ip and $port (default assumed)
then pull an arraylist for $srvinfo from 0-2 to get motd, players online, and max players.
Server and port are just echo'd $ip and $port. To check online status, use testserver.php.
Call testserver.php and use the GetServerStatus($ip, $port); function - echo that and done :3
Example:
+include('http://unps-gama.tk/mcping.php?ip=$ip&port=$port')
+	echo "Server: " . $ip . " on port: " . $port . "  is: ";
+	include('http://unps-gama.tk/testserver.php');
+		$status = GetServerStatus($ip, $port);
+			if ($status=="ONLINE") echo "" . $status . "\n";
+			if ($status=="OFFLINE") echo "" . $status . "\n";
+		echo "motd: " . $srvinfo[0] . "\n";
+		echo "players online: " . $srvinfo[1] . "\n";
+		echo "max players: " . $srvinfo[2] . "\n";



+Error"; +} 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 "\n"; + if ($status=="OFFLINE") echo "" . $status . "\n"; + //echo $status . "
"; + echo "\n"; + echo "\n"; + echo "\n"; +} +?> +
\n"; + echo "Server: " . $ip . " on port: " . $port . " is: "; + include('testserver.php'); + $status = GetServerStatus($ip, $port); + if ($status=="ONLINE") echo "" . $status . "
motd: " . $srvinfo[0] . "
players online: " . $srvinfo[1] . "
max players: " . $srvinfo[2] . "
+
diff --git a/preg_find.php b/preg_find.php new file mode 100755 index 0000000..31e5ed4 --- /dev/null +++ b/preg_find.php @@ -0,0 +1,138 @@ + + * 20 March 2004, Updated 20 April 2004 + * Updated 18 April 2007 to add the ability to sort the result set + * Updated 9 June 2007 to prevent multiple calls to sort during recursion + * Updated 12 June 2009 to allow for sorting by extension and prevent following + * symlinks by default + * Version: 2.3 + * This function is backwards capatible with any code written for a + * previous version of preg_find() + * + * Open Source Code: If you use this code on your site for public + * access (i.e. on the Internet) then you must attribute the author and + * source web site: http://www.pgregg.com/projects/php/preg_find/preg_find.phps + * Working examples: http://www.pgregg.com/projects/php/preg_find/ + * + */ + +define('PREG_FIND_RECURSIVE', 1); +define('PREG_FIND_DIRMATCH', 2); +define('PREG_FIND_FULLPATH', 4); +define('PREG_FIND_NEGATE', 8); +define('PREG_FIND_DIRONLY', 16); +define('PREG_FIND_RETURNASSOC', 32); +define('PREG_FIND_SORTDESC', 64); +define('PREG_FIND_SORTKEYS', 128); +define('PREG_FIND_SORTBASENAME', 256); # requires PREG_FIND_RETURNASSOC +define('PREG_FIND_SORTMODIFIED', 512); # requires PREG_FIND_RETURNASSOC +define('PREG_FIND_SORTFILESIZE', 1024); # requires PREG_FIND_RETURNASSOC +define('PREG_FIND_SORTDISKUSAGE', 2048); # requires PREG_FIND_RETURNASSOC +define('PREG_FIND_SORTEXTENSION', 4096); # requires PREG_FIND_RETURNASSOC +define('PREG_FIND_FOLLOWSYMLINKS', 8192); + +// PREG_FIND_RECURSIVE - go into subdirectorys looking for more files +// PREG_FIND_DIRMATCH - return directorys that match the pattern also +// PREG_FIND_DIRONLY - return only directorys that match the pattern (no files) +// PREG_FIND_FULLPATH - search for the pattern in the full path (dir+file) +// PREG_FIND_NEGATE - return files that don't match the pattern +// PREG_FIND_RETURNASSOC - Instead of just returning a plain array of matches, +// return an associative array with file stats +// PREG_FIND_FOLLOWSYMLINKS - Recursive searches (from v2.3) will no longer +// traverse symlinks to directories, unless you +// specify this flag. This is to prevent nasty +// endless loops. +// +// You can also request to have the results sorted based on various criteria +// By default if any sorting is done, it will be sorted in ascending order. +// You can reverse this via use of: +// PREG_FIND_SORTDESC - Reverse order of sort +// PREG_FILE_SORTKEYS - Sort on the keyvalues or non-assoc array results +// The following sorts *require* PREG_FIND_RETURNASSOC to be used as they are +// sorting on values stored in the constructed associative array +// PREG_FIND_SORTBASENAME - Sort the results in alphabetical order on filename +// PREG_FIND_SORTMODIFIED - Sort the results in last modified timestamp order +// PREG_FIND_SORTFILESIZE - Sort the results based on filesize +// PREG_FILE_SORTDISKUSAGE - Sort based on the amount of disk space taken +// PREG_FIND_SORTEXTENSION - Sort based on the filename extension +// to use more than one simply seperate them with a | character + + + +// Search for files matching $pattern in $start_dir. +// if args contains PREG_FIND_RECURSIVE then do a recursive search +// return value is an associative array, the key of which is the path/file +// and the value is the stat of the file. +Function preg_find($pattern, $start_dir='.', $args=NULL) { + + static $depth = -1; + ++$depth; + + $files_matched = array(); + + $fh = opendir($start_dir); + + while (($file = readdir($fh)) !== false) { + if (strcmp($file, '.')==0 || strcmp($file, '..')==0) continue; + $filepath = $start_dir . '/' . $file; + if (preg_match($pattern, + ($args & PREG_FIND_FULLPATH) ? $filepath : $file)) { + $doadd = is_file($filepath) + || (is_dir($filepath) && ($args & PREG_FIND_DIRMATCH)) + || (is_dir($filepath) && ($args & PREG_FIND_DIRONLY)); + if ($args & PREG_FIND_DIRONLY && $doadd && !is_dir($filepath)) $doadd = false; + if ($args & PREG_FIND_NEGATE) $doadd = !$doadd; + if ($doadd) { + if ($args & PREG_FIND_RETURNASSOC) { // return more than just the filenames + $fileres = array(); + if (function_exists('stat')) { + $fileres['stat'] = stat($filepath); + $fileres['du'] = $fileres['stat']['blocks'] * 512; + } + if (function_exists('fileowner')) $fileres['uid'] = fileowner($filepath); + if (function_exists('filegroup')) $fileres['gid'] = filegroup($filepath); + if (function_exists('filetype')) $fileres['filetype'] = filetype($filepath); + if (function_exists('mime_content_type')) $fileres['mimetype'] = mime_content_type($filepath); + if (function_exists('dirname')) $fileres['dirname'] = dirname($filepath); + if (function_exists('basename')) $fileres['basename'] = basename($filepath); + if (($i=strrpos($fileres['basename'], '.'))!==false) $fileres['ext'] = substr($fileres['basename'], $i+1); else $fileres['ext'] = ''; + if (isset($fileres['uid']) && function_exists('posix_getpwuid')) $fileres['owner'] = posix_getpwuid ($fileres['uid']); + $files_matched[$filepath] = $fileres; + } else + array_push($files_matched, $filepath); + } + } + if ( is_dir($filepath) && ($args & PREG_FIND_RECURSIVE) ) { + if (!is_link($filepath) || ($args & PREG_FIND_FOLLOWSYMLINKS)) + $files_matched = array_merge($files_matched, + preg_find($pattern, $filepath, $args)); + } + } + + closedir($fh); + + // Before returning check if we need to sort the results. + if (($depth==0) && ($args & (PREG_FIND_SORTKEYS|PREG_FIND_SORTBASENAME|PREG_FIND_SORTMODIFIED|PREG_FIND_SORTFILESIZE|PREG_FIND_SORTDISKUSAGE)) ) { + $order = ($args & PREG_FIND_SORTDESC) ? 1 : -1; + $sortby = ''; + if ($args & PREG_FIND_RETURNASSOC) { + if ($args & PREG_FIND_SORTMODIFIED) $sortby = "['stat']['mtime']"; + if ($args & PREG_FIND_SORTBASENAME) $sortby = "['basename']"; + if ($args & PREG_FIND_SORTFILESIZE) $sortby = "['stat']['size']"; + if ($args & PREG_FIND_SORTDISKUSAGE) $sortby = "['du']"; + if ($args & PREG_FIND_SORTEXTENSION) $sortby = "['ext']"; + } + $filesort = create_function('$a,$b', "\$a1=\$a$sortby;\$b1=\$b$sortby; if (\$a1==\$b1) return 0; else return (\$a1<\$b1) ? $order : 0- $order;"); + uasort($files_matched, $filesort); + } + --$depth; + return $files_matched; + +} + +?> + diff --git a/site.css b/site.css new file mode 100755 index 0000000..31e8cb1 --- /dev/null +++ b/site.css @@ -0,0 +1,115 @@ +#container +{ + margin: 0 auto; + width: 100%; + background: #fff; +} + +#header +{ + text-align: center; + background: #ccc; + padding: 20px; +} + +#header h1 { margin: 0; } + +#navigation +{ + float: left; + width: 100%; + background: #333; + text-align: center; +} + +#navigation ul +{ + margin: 0; + padding: 0; +} + +#navigation ul li +{ + list-style-type: none; + display: inline; + text-align: center; +} + +#navigation li a +{ + text-align: center; + display: block; + float: left; + padding: 5px 10px; + color: #fff; + text-decoration: none; + border-right: 1px solid #fff; +} + +#navigation li a:hover { background: #383; } + +#content-container1 +{ + float: left; + width: 100%; + background: #fff url(layout-three-liquid-background1.gif) repeat-y 20% 0; +} + +#content-container2 +{ + float: left; + width: 100%; + background: url(layout-three-liquid-background2.gif) repeat-y 80% 0; +} + +#section-navigation +{ + float: left; + width: 16%; + padding: 20px 0; + margin: 0 2%; + display: inline; +} + +#section-navigation ul +{ + margin: 0; + padding: 0; +} + +#section-navigation ul li +{ + margin: 0 0 1em; + padding: 0; + list-style-type: none; +} + +#content +{ + float: left; + width: 56%; + padding: 20px 0; + margin: 0 0 0 2%; +} + +#content h2 { margin: 0; } + +#aside +{ + float: right; + width: 16%; + padding: 20px 0; + margin: 0 2% 0 0; + display: inline; +} + +#aside h3 { margin: 0; } + +#footer +{ + clear: both; + background: #ccc; + text-align: right; + padding: 20px; + height: 1%; +} \ No newline at end of file diff --git a/testserver.php b/testserver.php new file mode 100755 index 0000000..e8b75bd --- /dev/null +++ b/testserver.php @@ -0,0 +1,11 @@ + diff --git a/upload.html b/upload.html new file mode 100755 index 0000000..e097949 --- /dev/null +++ b/upload.html @@ -0,0 +1,24 @@ + + + + +
+ + +
+ +
+ + diff --git a/upload.php b/upload.php new file mode 100755 index 0000000..5382824 --- /dev/null +++ b/upload.php @@ -0,0 +1,49 @@ + + + + 0) + { + echo "Return Code: " . $_FILES["file"]["error"] . "
"; + } + else + { + echo "Upload: " . $_FILES["file"]["name"] . "
"; + echo "Type: " . $_FILES["file"]["type"] . "
"; + echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
"; + echo "Temp file: " . $_FILES["file"]["tmp_name"] . "
"; + + if (file_exists("upload/" . $_FILES["file"]["name"])) + { + echo $_FILES["file"]["name"] . " already exists. "; + } + else + { + move_uploaded_file($_FILES["file"]["tmp_name"], + "upload/" . $_FILES["file"]["name"]); + echo "Stored in: " . "unps-gama.tk/upload/" . $_FILES["file"]["name"]; + } + } + } +else + { + echo "Invalid file"; + } +?> + + diff --git a/upload/Audio/index.php b/upload/Audio/index.php new file mode 100755 index 0000000..4b95ce6 --- /dev/null +++ b/upload/Audio/index.php @@ -0,0 +1,97 @@ + + + +index of UnPS-GAMA uploads + + + + + +
+ + +

+ + + + + + + +1024; $c++) { + $size/=1024; + } + + $size=round($size,1); + return("$size ".$size_label[$c]); +} + + +$trbg = "1"; // which - background + +// reading the content and... +$mydir = dir("./"); +while ($file=$mydir->read()){ + $kind = filetype($file); + // if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query + // if ($kind != '.' && $kind != '..' && $kind != 'index.php'){ + //... showing the content: + // - backgroundcolor + echo ""; + if ($trbg=="1"){ + echo ""; + $trbg = "2"; + } + else if ($trbg=="2"){ + echo ""; + $trbg = "1"; + } + + //"; + //...filesize... + echo ""; + //... last change... + $change = filemtime($file); + echo ""; + } +//} +$mydir->close(); +?> + +
file
size
last modified
and filename... + echo "".$file."".size($file)." ".date("j. - M. - Y; H:i:s",$change)."
+

+
+ + + diff --git a/upload/Documents/index.php b/upload/Documents/index.php new file mode 100755 index 0000000..65e0cf7 --- /dev/null +++ b/upload/Documents/index.php @@ -0,0 +1,97 @@ + + + +index of UnPS-GAMA uploads + + + + + +
+ + +

+ + + + + + + +1024; $c++) { + $size/=1024; + } + + $size=round($size,1); + return("$size ".$size_label[$c]); +} + + +$trbg = "1"; // which - background + +// reading the content and... +$mydir = dir("./"); +while ($file=$mydir->read()){ + $kind = filetype($file); + // if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query + if ($kind != '.' && $kind != '..' && $kind != 'index.php'){ + //... showing the content: + // - backgroundcolor + echo ""; + if ($trbg=="1"){ + echo ""; + $trbg = "2"; + } + else if ($trbg=="2"){ + echo ""; + $trbg = "1"; + } + + //"; + //...filesize... + echo ""; + //... last change... + $change = filemtime($file); + echo ""; + } +} +$mydir->close(); +?> + +
file
size
last modified
and filename... + echo "".$file."".size($file)." ".date("j. - M. - Y; H:i:s",$change)."
+

+
+ + + diff --git a/upload/Pictures/header.png b/upload/Pictures/header.png new file mode 100755 index 0000000..8320d0a Binary files /dev/null and b/upload/Pictures/header.png differ diff --git a/upload/Pictures/index.php b/upload/Pictures/index.php new file mode 100755 index 0000000..4b95ce6 --- /dev/null +++ b/upload/Pictures/index.php @@ -0,0 +1,97 @@ + + + +index of UnPS-GAMA uploads + + + + + +
+ + +

+ + + + + + + +1024; $c++) { + $size/=1024; + } + + $size=round($size,1); + return("$size ".$size_label[$c]); +} + + +$trbg = "1"; // which - background + +// reading the content and... +$mydir = dir("./"); +while ($file=$mydir->read()){ + $kind = filetype($file); + // if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query + // if ($kind != '.' && $kind != '..' && $kind != 'index.php'){ + //... showing the content: + // - backgroundcolor + echo ""; + if ($trbg=="1"){ + echo ""; + $trbg = "2"; + } + else if ($trbg=="2"){ + echo ""; + $trbg = "1"; + } + + //"; + //...filesize... + echo ""; + //... last change... + $change = filemtime($file); + echo ""; + } +//} +$mydir->close(); +?> + +
file
size
last modified
and filename... + echo "".$file."".size($file)." ".date("j. - M. - Y; H:i:s",$change)."
+

+
+ + + diff --git a/upload/Video/index.php b/upload/Video/index.php new file mode 100755 index 0000000..4b95ce6 --- /dev/null +++ b/upload/Video/index.php @@ -0,0 +1,97 @@ + + + +index of UnPS-GAMA uploads + + + + + +
+ + +

+ + + + + + + +1024; $c++) { + $size/=1024; + } + + $size=round($size,1); + return("$size ".$size_label[$c]); +} + + +$trbg = "1"; // which - background + +// reading the content and... +$mydir = dir("./"); +while ($file=$mydir->read()){ + $kind = filetype($file); + // if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query + // if ($kind != '.' && $kind != '..' && $kind != 'index.php'){ + //... showing the content: + // - backgroundcolor + echo ""; + if ($trbg=="1"){ + echo ""; + $trbg = "2"; + } + else if ($trbg=="2"){ + echo ""; + $trbg = "1"; + } + + //"; + //...filesize... + echo ""; + //... last change... + $change = filemtime($file); + echo ""; + } +//} +$mydir->close(); +?> + +
file
size
last modified
and filename... + echo "".$file."".size($file)." ".date("j. - M. - Y; H:i:s",$change)."
+

+
+ + + diff --git a/upload/index.php b/upload/index.php new file mode 100755 index 0000000..65e0cf7 --- /dev/null +++ b/upload/index.php @@ -0,0 +1,97 @@ + + + +index of UnPS-GAMA uploads + + + + + +
+ + +

+ + + + + + + +1024; $c++) { + $size/=1024; + } + + $size=round($size,1); + return("$size ".$size_label[$c]); +} + + +$trbg = "1"; // which - background + +// reading the content and... +$mydir = dir("./"); +while ($file=$mydir->read()){ + $kind = filetype($file); + // if ($kind != "php"){ // ATTENTION! if you want this file to show subdirectories, remove this query + if ($kind != '.' && $kind != '..' && $kind != 'index.php'){ + //... showing the content: + // - backgroundcolor + echo ""; + if ($trbg=="1"){ + echo ""; + $trbg = "2"; + } + else if ($trbg=="2"){ + echo ""; + $trbg = "1"; + } + + //"; + //...filesize... + echo ""; + //... last change... + $change = filemtime($file); + echo ""; + } +} +$mydir->close(); +?> + +
file
size
last modified
and filename... + echo "".$file."".size($file)." ".date("j. - M. - Y; H:i:s",$change)."
+

+
+ + +