From: Hendrik B. <nh...@us...> - 2009-11-14 09:35:25
|
Update of /cvsroot/arianne/stendhal_website/content/scripts In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13917/content/scripts Modified Files: online.php character.php Log Message: use nice urls at all place outfits-image-links are created Index: online.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/online.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** online.php 12 Nov 2009 19:04:16 -0000 1.5 --- online.php 14 Nov 2009 09:35:17 -0000 1.6 *************** *** 9,13 **** foreach($players as $p) { echo '<div class="onlinePlayer">'; ! echo ' <img src="createoutfit.php?outfit='.$p->outfit.'" alt="Player outfit"/>'; echo ' <a href="?id=content/scripts/character&name='.urlencode($p->name).'">'; echo ' <div class="name">'.htmlspecialchars(utf8_encode($p->name)).'</div>'; --- 9,13 ---- foreach($players as $p) { echo '<div class="onlinePlayer">'; ! echo ' <img src="'.rewriteURL('/images/outfit/'.urlencode($p->outfit).'.png').'" alt="Player outfit"/>'; echo ' <a href="?id=content/scripts/character&name='.urlencode($p->name).'">'; echo ' <div class="name">'.htmlspecialchars(utf8_encode($p->name)).'</div>'; Index: character.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/character.php,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** character.php 12 Nov 2009 19:07:16 -0000 1.29 --- character.php 14 Nov 2009 09:35:17 -0000 1.30 *************** *** 23,27 **** <div class="table"> <div class="title">Details</div> ! <img class="bordered_image" src="createoutfit.php?outfit=<?php echo htmlspecialchars($choosen->outfit); ?>" alt="Player outfit"/> <div class="statslabel">Name:</div><div class="data"><?php echo htmlspecialchars(utf8_encode($choosen->name)); ?></div> <div class="statslabel">Age:</div><div class="data"><?php echo htmlspecialchars(printAge($choosen->age)); ?> hours</div> --- 23,27 ---- <div class="table"> <div class="title">Details</div> ! <img class="bordered_image" src="<?php echo rewriteURL('/images/outfit/'.urlencode($choosen->outfit).'.png')?>" alt="Player outfit"/> <div class="statslabel">Name:</div><div class="data"><?php echo htmlspecialchars(utf8_encode($choosen->name)); ?></div> <div class="statslabel">Age:</div><div class="data"><?php echo htmlspecialchars(printAge($choosen->age)); ?> hours</div> |