move skin_view to setup.php
parent
dde959263d
commit
31d209a366
|
@ -15,8 +15,6 @@ if ($forum_user['username']=="Guest"){
|
|||
|
||||
echo "<h1>Hello, ".$forum_user['username']."</h1>\n";
|
||||
|
||||
include "scripts/skin_view.php";
|
||||
|
||||
//
|
||||
// View Skin
|
||||
//
|
||||
|
|
|
@ -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\" />";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -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\" />";
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
|
@ -3,7 +3,6 @@ require_once "scripts/setup.php";
|
|||
|
||||
require_once "scripts/formatcode.php";
|
||||
|
||||
require_once "scripts/skin_view.php";
|
||||
|
||||
$id=$_GET['id'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue