9
Also, I thought it might be useful to include the source code for the char.php page. I couldn't figure out how to post the code without XOOPS converting php tags, So I have the open brackets deleted and replaced with a (, but not in the source code. It is below:
======================
(?php
include("../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
include "conf.php";
include "lib/char.php";
include "lib/bag.php";
$xoopsOption['show_rblock'] = 1;
?>
(?php
header("Content-type: text/html; charset=utf-8");
$wowdb->connect( $db_host, $db_user, $db_passwd, $db_name );
$name = $_REQUEST['name'];
$server = $_REQUEST['server'];
if( get_magic_quotes_gpc() ) {
$name = stripslashes( $name );
$server = stripslashes( $server );
}
$char = char_get_one( $name, $server );
echo '
(html>
(head>
(title>WoW : '.$char->get('name').'
(link rel="stylesheet" type="text/css" href="'.$stylesheet.'" />
(/head>
(body>
';
$char->out();
if( $show_inventory == 1 ) {
$bag0 = bag_get( $name, $server, "Bag0" );
if( isset( $bag0 ) ) {
$bag0->out();
}
$bag1 = bag_get( $name, $server, "Bag1" );
if( isset( $bag1 ) ) {
$bag1->out();
}
$bag2 = bag_get( $name, $server, "Bag2" );
if( isset( $bag2 ) ) {
$bag2->out();
}
$bag3 = bag_get( $name, $server, "Bag3" );
if( isset( $bag3 ) ) {
$bag3->out();
}
$bag4 = bag_get( $name, $server, "Bag4" );
if( isset( $bag4 ) ) {
$bag4->out();
}
}
echo '