benoitlaprise
Messages postés3Date d'inscriptionlundi 3 septembre 2007StatutMembreDernière intervention 3 septembre 2007
-
3 sept. 2007 à 07:43
simo -
21 sept. 2007 à 02:36
Voilà mon problème, j'ai installé un module préfait en php sur mon site et lorsque j'essais de me rendre sur la page index voici l'erreur qui me saute au visage:
Parse error: syntax error, unexpected $end in C:\wamp\www\armory\inc\functions.php on line 260
J'ai tout fait mais je suis à bout d'idées. Il y a quelqu'un ici qui pourrait m'aider SVP?! Merci en avance!
############################################################################ Voici le code de du fichier "index.php" ############################################################################
<?php
session_start();
#
# 0000 0000 0000000 0000
# 00000 000000 00000000000 00000
# 000000 000000 0000000000000 00000 000
# 000000 000000 00000000000000 00000 Q00000
# 00000 000000 00000000 00000 00000000
# 00000 00000 0000000 00000 00000000
# 000000 00000 000000 00000 00000000
# 00000T 00000 000000 00000 00000000
# 00000 0000000 00000 Por Nesty 0000000000000
# 00000 00000000 00000 000 000000000000
# 00000 000000000 00000 00000 00000000000
# 00000000000000000 000000 000000 0000000000
# 0000000000000000 0000000000000000 000000000
# 0000000000000000 000000000000000 00000000
# 000000000000000 00000000000000 0000000
# 0000000 00000 0000000000 000000
# 0000 0000
# 000 Version 0.1-SVN
?>
<html>
<head>
<link type="text/css" rel="stylesheet" href="css.css" />
<script>
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function hide_bag(object){
id = document.getElementById(object);
style = id.style;
if (style.display == "block"){
style.display = "none";
} else {
style.display = "block";
}
}
</script>
</head>
<?php
require_once("inc/config.php"); // Incluir el fichero de configuraciones
require_once("inc/id_tables.php"); // Incluir el fichero con las tablas
require_once("inc/functions.php"); // Incluir el fichero de las funciones y las clases
require_once("inc/lang/".$config['d_l'].".php");
$conn = mysql_connect($config['host'],$config['user'],$config['pass']) or die(mysql_error());
mysql_select_db($config['db_m']) or die(mysql_error());
if (!@$_SESSION['CVW'])header("location: login.php");
if (@$_SESSION['CVW'] && $_SESSION['CVW_id']){// Se saca la informacion de los caracteres y se ordena por nombre
$id = $_SESSION['CVW_id'];
$query = mysql_query("SELECT name,guid FROM `character` WHERE account='$id' order by Name");
}
if (@$_SESSION['CVW'] && $_SESSION['CVW_id'] && $_SESSION['CVW_gmlevel'] > 0){// Se saca la informacion de los caracteres y se ordena por nombre
$id = $_SESSION['CVW_id'];
$query = mysql_query("SELECT name,guid FROM `character` order by Name");
}
if (mysql_num_rows($query) == 1){
$row = mysql_fetch_assoc($query);
$guid = $row['guid'];
} else {
echo $lang['char'].": <select name=\"menu1\" onChange=\"MM_jumpMenu('parent',this,0)\"><option>".$lang['char']."</option>";
while($row = mysql_fetch_array($query)){
if (@$_GET['guid'] == $row['guid']) { $selected = "selected=\"selected\""; } else { $selected = ""; }
echo "<option $selected value=\"index.php?guid=".$row['guid']."\">".$row['name']."</option>";
}
echo "</select>";
$guid = @$_GET['guid'];
}
if (@$guid){
$query = mysql_query("SELECT * FROM `character` WHERE guid='$guid'") or die(mysql_error());
$char = mysql_fetch_array($query);
/* -------------------------------------- */
$char_name = $char['name']; // Nombre del caracter
$char_race = $df['char_race'][$char['race']]; // Raza del caracter
$char_data = explode(' ',$char['data']); // Informacion del caracter
$rank = $char['highest_rank']; // Informacion del rango del caracter
/* --------------- */
$char_gender = dechex($char_data[36]);
$char_gender = str_pad($char_gender,8, 0, STR_PAD_LEFT);
$char_gender = $char_gender{3};
$char_gender = $df['char_gender'][$char_gender]; // Genero
/* --------------- */
$char_class_type = $df['char_class_'.$char_gender][$char['class']];
$char_level = $char_data[34]; // Nivel
$char_curXP = $char_data[654]; //Experiencia actual
$char_maxXP = $char_data[655]; // Maxima experiencia
/* --------------- */
$money = $char_data[1176]; // Dinero
$gold = floor($money/10000); // Oro
$silver = floor(($money-$gold*10000)/100);// Plata
$bronze = floor($money-$gold*10000-$silver*100); // Bronze
$zone_name = get_map_name($char['map'])." - ".get_zone_name($char['map'], $char['position_x'], $char['position_y']); // Nombre de la zona
/* --------------- */
$block = unpack("f", pack("V", $char_data[1106]));
$block = round($block[1],2);
// Se adquiere el bloqueo, se convierte de entero fijo a flotante y se redondea
$dodge = unpack("f", pack("V", $char_data[1107]));
$dodge = round($dodge[1],2);
// Se adquiere el esquive, se convierte de entero fijo a flotante y se redondea
$parry = unpack("f", pack("V", $char_data[1108]));
$parry = round($parry[1],2);
$crit = unpack("f", pack("V", $char_data[1109]));
$crit = round($crit[1],2);
// Se adquiere el Daño critico, se convierte de entero fijo a flotante y se redondea
$range_crit = unpack("f", pack("V", $char_data[1110]));
$range_crit = round($range_crit[1],2);
// Se adquiere el Daño critico de largo alcance, se convierte de entero fijo a flotante y se redondea
$char_online = $char['online']; // Si esta en linea o no
switch ($char_online){
case "0":
$char_online = "<font color=\"#ff0000\">".$lang['offline']."</font>"; break;
case "1":
$char_online = "<font color=\"#00ff00\">".$lang['online']."</font>"; break;
}
/* --------------- */
// Varias estadisticas del jugador
list(, $char_str) = unpack("f", pack("V", $char_data[150]));
list(, $char_agi) = unpack("f", pack("V", $char_data[151]));
list(, $char_sta) = unpack("f", pack("V", $char_data[152]));
list(, $char_int) = unpack("f", pack("V", $char_data[153]));
list(, $char_spi) = unpack("f", pack("V", $char_data[154]));
list(, $char_armor) = unpack("f", pack("V", $char_data[155]));
list(, $char_resist1) = unpack("f", pack("V", $char_data[156])); // Holy
list(, $char_resist2) = unpack("f", pack("V", $char_data[157])); // Arcane
list(, $char_resist3) = unpack("f", pack("V", $char_data[158])); // Fire
list(, $char_resist4) = unpack("f", pack("V", $char_data[159])); // Nature
list(, $char_resist5) = unpack("f", pack("V", $char_data[160])); // Frost
list(, $char_resist6) = unpack("f", pack("V", $char_data[161])); // Shadow
$resists = array ( // Poniendo las resistencias en un array
0 => $char_resist1,
1 => $char_resist1,
2 => $char_resist1,
3 => $char_resist1,
4 => $char_resist1,
5 => $char_resist1
);
$char_health = $char_data[22]; // La vida del jugador
list(, $char_max_health) = unpack("f", pack("V", $char_data[28]));
list(, $char_mana) = unpack("f", pack("V", $char_data[23])); // El mana
list(, $char_max_mana) = unpack("f", pack("V", $char_data[29]));
if($char_data[191]){ // Sacar la informacion del Guild
$sql = "SELECT name FROM guild WHERE guildid='".$char_data[191]."'";
$query = mysql_query($sql);
$row = mysql_fetch_assoc($query);
$guild_name = "<font color=\"#ffff00\">".$row['name']."</font>";
$guild_rank = $char_data[192];
} else { // Si no esta en ningun Guild, no se muestra nada
$guild_name = "0";
$guild_rank = "<font color=\"#ff0000\">Ninguno</font>";
}
$char_class = new character(); // Llamando a la clase principal
$char_class->get_stats(); // Declarando la clase en la variable char_class, a partir de ahora todas las funciones van aqui
$honor = $char_class->get_character_honor($guid); // Obteniendo el honor del caracter
$rank = $char_class->calc_character_rank($honor); // Calculando el rango del caracter
$side = $char_class->get_char_side($char['race']); // Obtener el lado del caracter
?>
<title>Datos de: <?=$char_name?></title>
<body>
<script language="JavaScript" type="text/javascript" src="js/tooltip.js"></script>
<table>
<tr valign="top">
<td>
<div style="height: 21px; left: -1000px; top: 484px; visibility: hidden;" id="contents">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td><img src="img/pixel.gif" height="1" width="1"></td>
<td bgcolor="#000000"></td>
<td><img src="img/pixel.gif" height="1" width="1"></td>
</tr>
<tr>
<td bgcolor="#000000"></td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td bgcolor="#000000" height="1" width="1"></td>
<td bgcolor="#d5d5d7" height="1"><img src="img/pixel.gif" height="1" width="1"></td>
<td bgcolor="#000000" height="1" width="1"></td>
</tr>
<tr>
<td bgcolor="#a5a5a5" width="1"><img src="img/pixel.gif" height="1" width="1"></td>
<td class="trans_div" valign="top"><div style="visibility: visible;" id="tooltipText"></div></td>
<td bgcolor="#a5a5a5" width="1"><img src="img/pixel.gif" height="1" width="1"></td>
</tr>
<tr>
<td bgcolor="#000000" height="1" width="1"></td>
<td bgcolor="#4f4f4f"><img src="img/pixel.gif" height="2" width="1"></td>
<td bgcolor="#000000" height="1" width="1"></td>
</tr>
</tbody>
</table> </td>
<td bgcolor="#000000"></td>
</tr>
<tr>
<td><img src="img/pixel.gif" height="1" width="1"></td>
<td bgcolor="#000000"></td>
<td><img src="img/pixel.gif" height="1" width="1"></td>
</tr>
</tbody>
</table>
</div>
<div>
<?php
// Mostrar barra de vida
$h_tot = $char_max_health;
$h_parte = $char_health;
if ($h_parte > $h_tot){ $h_parte = $h_tot; }
if ($h_tot != 0){ $h_percent = round($h_parte/$h_tot*100,0); } else { $h_percent = 0; }
if ($h_parte > 0 ){ $h_l_on_off = "on"; } else { $h_l_on_off = "off"; }
if ($h_percent == 100 ){ $h_r_on_off = "on"; } else { $h_r_on_off = "off"; }
// Mostrar barra de mana
$m_tot = $char_max_mana;
$m_parte = $char_mana;
if ($m_parte > $m_tot){ $m_parte = $m_tot; }
if ($m_tot != 0){ $m_percent = round($m_parte/$m_tot*100,0); } else { $m_percent = 0; }
if ($m_parte > 0 ){ $m_l_on_off = "mana-left-on"; } else { $m_l_on_off = "left-off"; }
if ($m_percent == 100 ){ $m_r_on_off = "mana-right-on"; } else { $m_r_on_off = "right-off"; }
?>
<table cellpadding="0" cellspacing="0" style="position:absolute; margin-top:80px; margin-left:70px">
<tr>
<td style="position:absolute; padding-left:50px; font-size:10px;"><?=$lang['life']?>: <?=$h_parte?> / <?=$h_tot?></td>
<td style="background: url(img/bar/left-<?=$h_l_on_off?>.png) repeat-x; width:7px"/></td><td style="width:<?=$h_percent*1.6?>px; height:10px; background: url(img/bar/bar-on.png) repeat-x;"> </td><td style="width:<?=(100-$h_percent)*1.6?>px; height:10px; background: url(img/bar/bar-off.png) repeat-x;"></td><td style="background: url(img/bar/right-<?=$h_r_on_off?>.png) repeat-x; width:7px"/>
</tr>
</table>
<?php if ($char['class'] != "1" && $char['class'] != "3" && $char['class'] != "4"){ ?>
<table cellpadding="0" cellspacing="0" style="position:absolute; margin-top:95px; margin-left:70px">
<tr>
<td style="position:absolute; padding-left:50px; font-size:10px;"><?=$lang['mana']?>: <?=$m_parte?> / <?=$m_tot?></td>
<td style="background: url(img/bar/<?=$m_l_on_off?>.png) repeat-x; width:7px"/></td><td style="width:<?=$m_percent*1.6?>px; height:10px; background: url(img/bar/mana-bar-on.png) repeat-x;"> </td><td style="width:<?=(100-$m_percent)*1.6?>px; height:10px; background: url(img/bar/bar-off.png) repeat-x;"></td><td style="background: url(img/bar/<?=$m_r_on_off?>.png) repeat-x; width:7px"/>
</tr>
</table>
<?php }
if ($rank == 0){
$img_rank = "img/blank.gif";
}elseif($rank >= 1 && $rank < 10){
$img_rank = "img/interface/PvPRanks/PvPRank0".$rank.".png";
}else{
$img_rank = "img/interface/PvPRanks/PvPRank".$rank.".png";
}
?>
<img src="img/blank.gif" style="position:absolute; margin-left:12px; margin-top:8px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img\interface\CharacterFrame\TemporaryPortrait-<?=$char_gender?>-<?=$char['race']?>.png',sizingMethod='scale')" width=56 height=56>
<img src="img/blank.gif" align="absmiddle" width="25" height="25" style=" position:absolute; margin-left:320px; margin-top:38px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?=$img_rank?>',sizingMethod='scale');" />
<div style="font-size:14px; font-weight:normal; position:absolute; margin-top:16px; margin-left:75px; width:250px;" align="center"><b><?=$char_name?></b></div>
<div style="position:absolute; color:#ffff00; font-size:12px; margin-top:35px; margin-left:75px; width:250px; font-family: arial,sans-serif;" align="center"><?=$lang['level']?> <?=$char_level?> - <?=$char_race?> - <?=$char_class_type?><br>
<?php if ($guild_name != "0"){ ?><font color="#FFFFFF"><</font><?=$guild_name?><font color="#FFFFFF">></font><?php } ?>
</div>
<img style="position:absolute; <?php echo $char_class->item_pos(1); ?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Head.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[260]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(1)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[260],1)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[260]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(2)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Neck.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[272]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(2)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[272],2)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[272]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(3)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Shoulder.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[284]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(3)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[284],3)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[284]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(4)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Chest.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[428]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(4)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[428],4)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[428]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(5)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Chest.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[308]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(5)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[308],5)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[308]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(6)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Shirt.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[296]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(6)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[296],6)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[296]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(7)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Tabard.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[476]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(7)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[476],7)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[476]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(8)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Wrists.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[356]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(8)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[356],8)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[356]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(9)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-MainHand.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[440]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(9)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[440],9)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[440]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(10)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-SecondaryHand.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[452]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(10)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[452],10)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[452]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(11)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Ranged.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[464]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(11)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[464],11)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[464]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(12)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Hands.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[368]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(12)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[368],12)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[368]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(13)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Waist.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[320]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(13)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[320],13)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[320]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(14)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Legs.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[332]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(14)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[332],14)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[332]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(15)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Feet.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[344]) != ".png") { ?><img style="position:absolute; <?=$char_class->item_pos(15)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[344],15)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[344]);?>" /> <?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(16)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Finger.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[380]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(16)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[380],16)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[380]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(17)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Finger.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[392]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(17)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[392],17)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[392]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(18)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Trinket.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[404]) != ".png") {?><img style="position:absolute; <?=$char_class->item_pos(17)?>" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[344],18)?>', 'black' , '300')" onMouseout="hideddrivetip()" width="36" height="36" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[404]);?>"><?php } ?>
<img style="position:absolute; <?=$char_class->item_pos(19)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Trinket.png" width="36" height="36"/>
<?php if ($char_class->get_item_icon($char_data[417]) != ".png") {?><img <?=$char_class->item_pos(17)?> width="36" height="36" onMouseover="ddrivetip('<?=$char_class->get_char_info($char_data[417])?>', 'black' , '300')" onMouseout="hideddrivetip()" src="img/interface/Icons/<?=$char_class->get_item_icon($char_data[417],17); ?>"><?php } ?>
<img style="position:absolute; left: 240px; top: 420px;" src="img/interface/aa.gif" />
<img style="position:absolute; left: 256px; top: 408px;" src="img/interface/ammoslot.gif" />
<img style="position:absolute; margin-left:324px; margin-top:9px;" src="img/interface/Buttons/UI-Panel-MinimizeButton-Up.gif" />
<img style="position:absolute; margin-left:268px; margin-top:80px;" src="img/interface/PaperDollInfoFrame/UI-Character-ResistanceIcons.png" />
<img style="position:absolute; margin-left:68px;margin-top:290px;" src="img/interface/PaperDollInfoFrame/UI-Character-StatBackground-Short.png">
<div style="color: #FFFFFF; font-size: 8pt; font-family: georgia,sans-serif; font-weight: bold; position:absolute; margin-left:40px;margin-top:440px;"><?=$lang['char_tab']?></div>
<div style="color:#cc9900; font-size: 8pt; font-family: georgia,sans-serif; font-weight: bold; position:absolute; margin-left:145px;margin-top:440px;"><a href="#"><?=$lang['rep_tab']?></a></div>
<div style="color:#cc9900; font-size: 8pt; font-family: georgia,sans-serif; font-weight: bold; position:absolute; margin-left:275px;margin-top:440px;"><a href="#"><?=$lang['honor_tab']?></a></div>
<a href="#" style="position:absolute; <?=$char_class->item_pos(20)?>" onClick="hide_bag('bag-18')"><img border="0" style="position:absolute;" src="img/interface/icons/inv_misc_bag_08.png"></a>
<img style="position:absolute; <?=$char_class->item_pos(21)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Bag.png">
<img style="position:absolute; <?=$char_class->item_pos(22)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Bag.png">
<img style="position:absolute; <?=$char_class->item_pos(23)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Bag.png">
<img style="position:absolute; <?=$char_class->item_pos(24)?>" src="img/interface/PaperDoll/UI-PaperDoll-Slot-Bag.png">
<?php
$query = mysql_query("SELECT item_template,slot FROM character_inventory WHERE guid=$guid AND bag=255 AND slot >= 19 AND slot <= 22");
while ($row = mysql_fetch_assoc($query)){
?>
<a href="#" onClick="hide_bag('bag-<?=$row['slot']?>')"><img border="0" onMouseover="ddrivetip('<?=$char_class->get_char_info($row['item_template'],$row['slot']+2)?>', 'black' , '300')" onMouseout="hideddrivetip()" style="position:absolute; <?=$char_class->item_pos($row['slot']+2)?>" src="img/interface/Icons/<?=$char_class->get_item_icon($row['item_template']);?>"></a>
<?php } ?>
<div style="position:absolute; margin-top:270px; margin-left:100px;"><?=$zone_name?></div>
<img style="position:absolute; margin-left:183px;margin-top:290px;" src="img/interface/PaperDollInfoFrame/back_small.jpg">
<?php echo $char_class->stats(); ?>
<div id="" style="position:absolute;margin-left:190px;margin-top:295px;">
<table cellspacing="0" cellpadding="0" width="100" style="color: #CBA300; font-size: 7pt; font-weight: bold; font-family: arial,sans-serif;">
<tr><td><?=$lang['block']?>:</td><td align=right><font color="white"><?=$block?>%</font></td></tr>
<tr><td><?=$lang['dodge']?>:</td><td align=right><font color="white"><?=$dodge?>%</font></td></tr><tr><td><?=$lang['dmg_crit']?>:</td><td align=right><font color="white"><?=$crit?>%</font></td></tr>
<tr><td><?=$lang['rang_crit']?>:</td><td align=right><font color="white"><?=$range_crit?>%</font></td></tr></table>
</div>
<div style="position:absolute; margin-top:350px; margin-left:200px"><?=@$char_online;?></div>
<img src="img/interface/PaperDollInfoFrame/UI-Character-CharacterTab-L1.png" /><img src="img/interface/PaperDollInfoFrame/UI-Character-CharacterTab-R1.png" /><br /><img src="img/interface/PaperDollInfoFrame/UI-Character-CharacterTab-L2.png" /><img src="img/interface/PaperDollInfoFrame/UI-Character-CharacterTab-R2.png" />
</div>
</td>
<td >
<div id="bag-18" class="bagGen">
<img class="bagBG" src="img/interface/ContainerFrame/UI-BackpackBackground.png"; />
<div style="margin-left:-66px;">
<?php
$query_bag18 = mysql_query("SELECT * FROM character_inventory WHERE GUID=$guid AND bag=255 AND slot >=23 AND slot <=35");
$rr=0;
$addrow = 0;
if($addrow>0){$cc=2;$pm=-20;}else{$cc=0;$pm=0;}
for($i=0;$i<=16;$i++){
if($cc>=4){$cc = 0;$rr++;}
$cc++;
$itempos[$i]['x'] = $cc;
$itempos[$i]['y'] = $rr;
}
for($i=0;$i<=16;$i++){
$m_l[$i] = $itempos[$i]['x']*41+43;
$m_t[$i] = $itempos[$i]['y']*41+50+$pm;
}
$pos = 0;
while($row_bag18 = mysql_fetch_array($query_bag18)){
?>
<img style="position:absolute; margin-left:<?=$m_l[$pos]?>; margin-top:<?=$m_t[$pos]?>" width="36" height="36" onMouseover="ddrivetip('<?=$char_class->get_char_info($row_bag18['item_template'],17)?>', 'black' , '300')" onMouseout="hideddrivetip()" src="img/interface/Icons/<?=$char_class->get_item_icon($row_bag18['item_template'],17); ?>">
<?php $pos++;} ?>
</div>
<div style="font-size:10px; position:absolute; margin-top:10px; margin-left:50px; width:115px; text-align:center;"><b><?=$lang['backpack']?></b></div>
<div style="color: #FFFFFF; font-size: 8pt; position:absolute; margin-top:215px; margin-left:10px; width:163px; text-align:right;">
<?=$gold?>
<img src="img/blank.gif" align="absmiddle" width="15" height="15" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/interface/MoneyFrame/UI-MoneyIcons-Gold.png',sizingMethod='scale');" />
<?=$silver?>
<img src="img/blank.gif" align="absmiddle" width="15" height="15" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/interface/MoneyFrame/UI-MoneyIcons-silver.png',sizingMethod='scale');" />
<?=$bronze?><img src="img/blank.gif" align="absmiddle" width="15" height="15" style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/interface/MoneyFrame/UI-MoneyIcons-bronze.png',sizingMethod='scale');" />
</div>
<a onClick="hide_bag('bag-18')" title="<?=$lang['close']?>" href="#" style="margin-top:1px; margin-left:159px;position:absolute"><img border="0" src="img/interface/Buttons/UI-Panel-MinimizeButton-Up.gif"></a>
</div>
<?php $query = mysql_query("SELECT item_template,slot FROM character_inventory WHERE guid=$guid AND bag=255 AND slot >= 19 AND slot <= 22");
while ($row = mysql_fetch_assoc($query)){
$q = mysql_query("SELECT ContainerSlots FROM item_template WHERE entry='".$row['item_template']."'"); $size = mysql_result($q,0);
$row1 = floor($size/4);
$row_str = $row1.'x4';
$addrow = $size-$row1*4;
if($addrow>0)$addrow_str = '+2';else $addrow_str = '';
$img = $row_str.$addrow_str;
?>
<div id="bag-<?=$row['slot']?>" class="bagGen">
<img class="bagBG" src="img/interface/ContainerFrame/UI-Bag-<?=$img?>.png"; />
<div style="margin-left:-65px;">
<?php
$query_bag18 = mysql_query("SELECT * FROM character_inventory WHERE GUID=$guid AND bag=".$row['slot']);
$rr=0;
if($addrow>0){$cc=2;$pm=-20;}else{$cc=0;$pm=0;}
for($i=0;$i<=$size;$i++){
if($cc>=4){$cc = 0;$rr++;}
$cc++;
$itempos[$i]['x'] = $cc;
$itempos[$i]['y'] = $rr;
}
for($i=0;$i<=$size;$i++){
$m_l[$i] = $itempos[$i]['x']*41+42;
$m_t[$i] = $itempos[$i]['y']*41+49+$pm;
}
$pos = 0;
while($row_bag18 = mysql_fetch_array($query_bag18)){
?>
<img style="position:absolute; margin-left:<?=$m_l[$pos]?>; margin-top:<?=$m_t[$pos]?>" width="36" height="36" onMouseover="ddrivetip('<?=$char_class->get_char_info($row_bag18['item_template'],17)?>', 'black' , '300')" onMouseout="hideddrivetip()" src="img/interface/Icons/<?=$char_class->get_item_icon($row_bag18['item_template'],17); ?>">
<?php $pos++;} ?>
</div>
<a onClick="hide_bag('bag-<?=$row['slot']?>')" title="<?=$lang['close']?>" href="#" style="margin-left:159px; margin-top:1px;position:absolute"><img border="0" src="img/interface/Buttons/UI-Panel-MinimizeButton-Up.gif"></a>
</div>
<?php }?>
</td>
</tr>
</table>
<?php } mysql_close($conn); // Cerrar la conexion com mysql
/* Fin de CVW */
?>
############################################################################ Et voici celui du fichier "functions.php" d'où l'erreur provient (Je crois) ---- Erreur Ligne 260 (Dernière Ligne)
############################################################################
<?php
class character {
private $stats;
function get_char_side($race){
switch($race){
case 1: case 3: case 4: case 7: $side = 0; break;
default: $side = 1; break;
}
return $side;
}
function item_pos($item_type){ // Clase donde se definen la posicion de los objetos con respecto a la interface
switch ($item_type){
case 1: $r = 'margin-left:21px;margin-top:75px;';break; // Cabeza - 260
case 2: $r = 'margin-left:21px;margin-top:115px;';break; // Cuello - 272
case 3: $r = 'margin-left:21px;margin-top:156px;';break; // Hombros - 284
case 4: $r = 'margin-left:21px;margin-top:198px;';break; // Espalda - 428
case 5: $r = 'margin-left:21px;margin-top:239px;';break; // Pecho - 308
case 6: $r = 'margin-left:21px;margin-top:280px;';break; // Camisa - 296
case 7: $r = 'margin-left:21px;margin-top:321px;';break; // Tabard - 476
case 8: $r = 'margin-left:21px;margin-top:362px;';break; // Munecas - 356
case 9: $r = 'margin-left:121px;margin-top:385px;';break; // Arma - 440
case 10: $r = 'margin-left:163px;margin-top:385px;';break; // Arma secundaria - 452
case 11: $r = 'margin-left:205px;margin-top:385px;';break; // Largo alcance - 464
case 12: $r = 'margin-left:307px;margin-top:75px;';break; // Guantes - 368
case 13: $r = 'margin-left:307px;margin-top:115px;';break; // Cinto - 320
case 14: $r = 'margin-left:307px;margin-top:156px;';break; // Pantalon - 332
case 15: $r = 'margin-left:307px;margin-top:198px;';break; // Zapatos - 344
case 16: $r = 'margin-left:307px;margin-top:239px;';break; // Anillo - 380
case 17: $r = 'margin-left:307px;margin-top:280px;';break; // Anillo - 392
case 18: $r = 'margin-left:307px;margin-top:321px;';break; // Arete - 404
case 19: $r = 'margin-left:307px;margin-top:362px;';break; // Arete - 417
case 20: $r = 'margin-left:285px;margin-top:470px;';break; // Bolsa 1
case 21: $r = 'margin-left:25px;margin-top:470px;';break; // Bolsa 2
case 22: $r = 'margin-left:90px;margin-top:470px;';break; // Bolsa 3
case 23: $r = 'margin-left:155px;margin-top:470px;';break; // Bolsa 4
case 24: $r = 'margin-left:220px;margin-top:470px;';break; // Bolsa 5
}
$r .= "cursor:hand;"; // Se agrega la mano como cursor sobre cada objeto
return $r;
}
function get_stats(){ // Funcion para obtener las estadisticas del jugador
global $char_str,$char_agi,$char_sta,$char_int,$char_spi,$char_armor,$resists;
function stat_type($stat){ // Declaracion del tipo de estadistica que modifica el objeto
global $lang;
switch($stat){
case 3: $type = $lang['stat'][3]; break;
case 4: $type = $lang['stat'][4]; break;
case 5: $type = $lang['stat'][5]; break;
case 6: $type = $lang['stat'][6]; break;
case 7: $type = $lang['stat'][7];; break;
default:
$type = $lang['stat'][255];; break;
}
return $type;
}
function resist($row){ // Declaracion de las resistencias que aporta el objeto
global $lang;
$res[] = $row['holy_res'];
$res[] = $row['fire_res'];
$res[] = $row['nature_res'];
$res[] = $row['frost_res'];
$res[] = $row['shadow_res'];
$res[] = $row['arcane_res'];
$spell[0] = $lang['res'][0];
$spell[1] = $lang['res'][1];
$spell[2] = $lang['res'][2];
$spell[3] = $lang['res'][3];
$spell[4] = $lang['res'][4];
$spell[5] = $lang['res'][5];
for ($i = 0; $i <= 5; $i++){
if ($res[$i] != 0){
echo "<br>+<b>".$res[$i]."</b> ".$spell[$i];
$this->stats[$i] = $this->stats[$i] + $res[$i];
}
}
}
function get_item_icon($item){ // Obtener el icono del objeto
global $config;
$query = mysql_query("SELECT displayid FROM item_template where entry='$item'");
$row = mysql_fetch_assoc($query);
$itemid = $row['displayid'];
$query = mysql_query("SELECT icon FROM dbc_itemdisplayinfo WHERE id='$itemid'");
$row = mysql_fetch_array($query);
return $row['icon'].".png";
}
function get_char_info($charid,$charloc){ // Mostrar la informacion del objeto
$row = mysql_fetch_array(mysql_query("SELECT * FROM item_template WHERE entry='$charid'"));
//------------------------------------
$name = str_replace("'","",$row['name']);
$name = str_replace("\"","",$name);
// Mostrar el nombre sin comillas ni apostrofes ya que esto bloquea la web
//------------------------------------
global $resists,$char_str,$char_class,$lang;
switch ($row['Quality']){ // Mostrar la calidad del objeto en colores
case 0: $color = "gray"; break;
case 1: $color = "#FFFFFF"; break;
case 2: $color = "#1EFF00"; break;
case 3: $color = "#0080ff"; break;
case 4: $color = "#b048f8"; break;
case 5: $color = "#F07902"; break;
case 6: $color = "#FFCF00"; break;
}
if ($row['bonding']){ // Mostrar si el objeto es une o no
echo "<br>".$lang['bind'][$row['bonding']];
}
switch ($row['maxcount']){ // Si el objeto es unico o no
case 1: echo "<br><font color=#ffff00>".$lang['unique']."</font>"; break;
default: echo ""; break;
}
echo "<br><span class=typeleft>";
echo $lang['type'][$row['class']];
switch($row['class']){ // La clase del objero
case 0: // Si es un objeco consumible
echo "</span><span class=typeright>".$lang['subclass'][0][$row['subclass']]."</span>"; break;
case 1: // Si es una bolsa
$q = mysql_query("SELECT ContainerSlots FROM item_template WHERE entry='$charid'"); $size = mysql_result($q,0);
echo "<br>".$lang['slots'].": $size"; break;
case 2:
echo "</span><span class=typeright>".$lang['subclass'][2][$row['subclass']]."</span>";
$avg_damage = (round($row['dmg_min1'])+round($row['dmg_max1']))/2;
$avg_damage_per_second = round($avg_damage / ($row['delay']/1000),1);
// Se muestra el daño ocasionado por el arma
$maxdur = $row['MaxDurability']; // La durabilidad del arma
echo "</span><br><span class=typeleft><B>".round($row['dmg_min1'])."</b> - <b>".round($row['dmg_max1'])."</b> daño</span><span class=typeright>Velocidad <b>".($row['delay']/1000)."0</b></span><br>(<b>".$avg_damage_per_second."</b> daño por segundo)<br>Durabilidad <b>$maxdur</b> / <b>$maxdur</b>"; break; // Se muestra el arma y su descripcion
case 4:
echo "</span><span class=typeright>".$lang['subclass'][4][$row['subclass']]."</span>";
if ($row['armor'] > 0){
echo "<br><b>".$row['armor']."</b> ".$lang['armor'];
$this->stats[11] = $this->stats[11]+$row['armor'];
} // Si tiene armadura se muestra
break;
case 5:
echo "asda";
break;
}
for ($i = 1; $i <= 10; $i++){
if (@$row['stat_type'.$i]){
echo "<br><span class=stats><b>+".$row['stat_value'.$i]."</b> ".$char_class->stat_type($row['stat_type'.$i])."</span>";
switch ($row['stat_type'.$i]){ // Se modifican cada una de las estadisticas
case 3: $this->stats[7] += $row['stat_value'.$i]; break;
case 4: $this->stats[6] += $row['stat_value'.$i]; break;
case 5: $this->stats[9] += $row['stat_value'.$i]; break;
case 6: $this->stats[10] += $row['stat_value'.$i]; break;
case 7: $this->stats[8] += $row['stat_value'.$i]; break;
}
} // Se muestra el tipo de estadisticas que modifica
}
$char_class->resist($row);
echo "<br><font color=#00ff00>".$lang['req_level'].": ".$row['RequiredLevel']."</font></font>";
}
function stats(){ // Funcion para mostrar las estadisticas finales del jugador ya modificadas por los objetos.
global $lang;
$char_str = $this->stats[6];
$char_agi = $this->stats[7];
$char_sta = $this->stats[8];
$char_int = $this->stats[9];
$char_spi = $this->stats[10];
$char_armor = $this->stats[11];
benoitlaprise
Messages postés3Date d'inscriptionlundi 3 septembre 2007StatutMembreDernière intervention 3 septembre 2007 3 sept. 2007 à 08:14
Jai vérifier et je ne vois vraiment pas où il manquerais un } . ... Voici l'adresse du site si vous voulez voir l'erreur: http://woweb.game-host.org/armory/
Vous n’avez pas trouvé la réponse que vous recherchez ?