A lot of stuff

master
Rubenwardy 2012-11-23 17:56:10 +00:00
parent b86799a290
commit b5d3a41f4b
17 changed files with 48 additions and 9 deletions

17
adapt_mc_skins.php Normal file
View File

@ -0,0 +1,17 @@
<?php
include "scripts/setup.php";
$page_title="Welcome";
$page_links="<a onClick=\"javascript:use_cha();\"><u>Select current Skin</u></a>";
include "scripts/pageheader.php";
?>
<script language="javascript">
function use_cha(){
document.write("URL: "+document.getElementById("bro").contentWindow.location.href);
}
</script>
<iframe id="bro" width="100%" height="580" src="http://minecraftskins.com/">
</iframe>

BIN
files/Creepy block man.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 907 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 948 B

BIN
files/Minetest Enhanced.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

BIN
files/Misa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
files/Misa_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

BIN
files/john.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

BIN
files/john_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 416 B

View File

@ -9,6 +9,16 @@ echo "<h1>Gallery</h1>";
$query = $_GET['id'];
$mode = $_GET['mode'];
$type = $_GET['type'];
if (!$type)
if (!$query && !$mode){
echo "<a href=\"gallery.php?type=2d\">2d Character (Sprite)</a><br /><br /><!--<a href=\"gallery.php?type=3d\">-->3d Character <i>currently unavailable</i></a>";
include "scripts/pagefooter.php";
}else
$type="2d";
if (!$mode)
$mode="tags";

View File

@ -16,14 +16,14 @@ if ($forum_user['username']=="Guest"){
echo "<h1>Hello, ".$forum_user['username']."</h1>\n";
$def=false;
if (file_exists("files/".$forum_user['cha_front'].".png")){
echo "<img src=\"files/".$forum_user['cha_front'].".png\" width=64 height=128 /> ";
if ($forum_user['cha_back']!=""){
echo "<img src=\"".$forum_user['cha_front'].".png\" width=64 height=128 alt=\"left\" /> ";
}else{
echo "<img src=\"files/default_texture.png\" width=64 height=128 /> ";
$def=true;
}
if (file_exists("files/".$forum_user['cha_back'].".png")){
echo "<img src=\"files/".$forum_user['cha_back'].".png\" width=64 height=128 />";
if ($forum_user['cha_back']!=""){
echo "<img src=\"".$forum_user['cha_back'].".png\" width=64 height=128 alt=\"right\" />";
}else{
echo "<img src=\"files/default_texture_back.png\" width=64 height=128 />";
$def=true;
@ -37,12 +37,24 @@ if ($def==true)
<a href="upload.php">Upload an Avatar</a>
</p>
<fieldset>
<script>
function hideNotice(){
var element = document.getElementById("notice");
var display ='none';
element.style.display = display;
}
</script>
<fieldset id="notice">
<legend>Notice</legend>
You will not be able to change your character texture on servers which do not have the mod by PilzAdam installed.<br />
In those servers, all players will have the same character texture, which is dependant on the texture pack installed<br />
<br />
When you are on a server that has the mod installed, type <i>/register [your forum name]</i> to claim your avatar
The mod does not currently download the player's avatar, but it will do soon.
<!--When you are on a server that has the mod installed, type <i>/register [your forum name]</i> to claim your avatar-->
<br /><br />
<a onClick="javascript:hideNotice();"><u>Close</u></a>
</fieldset>
<?php

View File

@ -6,7 +6,7 @@ function SQLerror($title,$text){
session_start();
$serverpath="http://multa.bugs3.com/minetest/characters";
$serverpath="http://multa.bugs3.com/minetest/website/avatar";
$sql_url="mysql.serversfree.com"; // The URL to the MySql Server
$sql_user="u372522788_admin"; // The username for the MySql Server
$sql_pass="password"; // The password for the MySql Server
@ -22,7 +22,7 @@ mysql_select_db($sql_db,$handle) or die("Error Switching DB");
define('FORUM_QUIET_VISIT', 1);
define('FORUM_TURN_OFF_MAINT', 1);
define('FORUM_DISABLE_CSRF_CONFIRM', 1);
define('FORUM_ROOT', '../../mtforum/');
define('FORUM_ROOT', '../forum/');
require FORUM_ROOT.'include/common.php';
function require_login($forum_user){

View File

@ -23,7 +23,7 @@ echo "<table width=\"900\"><tr><td>\n";
echo "<table width=\"900\" bgcolor=\"#FFFFBD\"><tr><td width=\"100\">";
if ($forum_user['username']!="Guest")
echo "<a href=\"change.php?f={$row[3]}&b={$row[3]}_back\">Use This</a>";
echo "<a href=\"change.php?f=http://multa.bugs3.com/minetest/characters/files/{$row[3]}&b=http://multa.bugs3.com/minetest/characters/files/{$row[3]}_back\">Use This</a>";
echo "</td>\n";