move skin_view to setup.php

master
Rubenwardy 2012-12-20 19:49:31 +00:00
parent dde959263d
commit 31d209a366
4 changed files with 18 additions and 22 deletions

View File

@ -15,8 +15,6 @@ if ($forum_user['username']=="Guest"){
echo "<h1>Hello, ".$forum_user['username']."</h1>\n";
include "scripts/skin_view.php";
//
// View Skin
//

View File

@ -31,4 +31,22 @@ if ($forum_user['username']=="Guest"){
}
}
function skin_view($type,$front,$back){
if ($type==2){
// 2d Skin displayer
echo "<img src=\"$front\" width=64 height=128 alt=\"left\" /> ";
echo "<img src=\"$back\" width=64 height=128 alt=\"right\" />";
}else{
// 3d skin displayer
echo "<img src=\"$front\" width=128 height=64 alt=\"3d flat skin\" />";
}
}
?>

View File

@ -1,19 +0,0 @@
<?php
function skin_view($type,$front,$back){
if ($type==2){
// 2d Skin displayer
echo "<img src=\"$front\" width=64 height=128 alt=\"left\" /> ";
echo "<img src=\"$back\" width=64 height=128 alt=\"right\" />";
}else{
// 3d skin displayer
echo "<img src=\"$front\" width=128 height=64 alt=\"3d flat skin\" />";
}
}
?>

View File

@ -3,7 +3,6 @@ require_once "scripts/setup.php";
require_once "scripts/formatcode.php";
require_once "scripts/skin_view.php";
$id=$_GET['id'];