From: Hendrik B. <nh...@us...> - 2009-11-30 23:37:38
|
Update of /cvsroot/arianne/stendhal_website/content/scripts In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv15133/content/scripts Modified Files: character.php item.php killedstats.php monster.php online.php Log Message: always use absolute path in urls so that we can use subfolders in url in the future Index: monster.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/monster.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** monster.php 29 Nov 2009 23:27:12 -0000 1.15 --- monster.php 30 Nov 2009 23:37:25 -0000 1.16 *************** *** 78,82 **** ?> <div class="row"> ! <a href="?id=content/scripts/item&name=<?php echo $k["name"]; ?>&exact"> <img src="<?php echo getItem($k["name"])->showImage(); ?>" alt="<?php echo ucfirst($k["name"]); ?>"/> <div class="label"><?php echo ucfirst($k["name"]); ?></div> --- 78,82 ---- ?> <div class="row"> ! <a href="/?id=content/scripts/item&name=<?php echo $k["name"]; ?>&exact"> <img src="<?php echo getItem($k["name"])->showImage(); ?>" alt="<?php echo ucfirst($k["name"]); ?>"/> <div class="label"><?php echo ucfirst($k["name"]); ?></div> Index: item.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/item.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** item.php 29 Nov 2009 23:30:48 -0000 1.9 --- item.php 30 Nov 2009 23:37:25 -0000 1.10 *************** *** 165,169 **** <br> My level ... ! <form method="post" action="?id=content/scripts/item&name=<?php echo $m->name; ?>&exact"> <input type="text" name="level" size="3" maxlength="3"> <input type="submit" value="Check stats"> --- 165,169 ---- <br> My level ... ! <form method="post" action="/?id=content/scripts/item&name=<?php echo $m->name; ?>&exact"> <input type="text" name="level" size="3" maxlength="3"> <input type="submit" value="Check stats"> *************** *** 185,189 **** ?> <div class="row"> ! <a href="?id=content/scripts/monster&name=<?php echo $monster->name; ?>&exact"> <img src="<?php echo $monster->showImage(); ?>" alt="<?php echo $monster->name; ?>"/> <div class="label"><?php echo $monster->name; ?></div> --- 185,189 ---- ?> <div class="row"> ! <a href="/?id=content/scripts/monster&name=<?php echo $monster->name; ?>&exact"> <img src="<?php echo $monster->showImage(); ?>" alt="<?php echo $monster->name; ?>"/> <div class="label"><?php echo $monster->name; ?></div> Index: online.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/online.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** online.php 29 Nov 2009 01:02:48 -0000 1.9 --- online.php 30 Nov 2009 23:37:26 -0000 1.10 *************** *** 19,23 **** echo '<div class="onlinePlayer">'; echo ' <img src="'.rewriteURL('/images/outfit/'.urlencode($p->outfit).'.png').'" alt="">'; ! echo ' <a href="?id=content/scripts/character&name='.urlencode($p->name).'">'; echo ' <div class="name">'.htmlspecialchars(utf8_encode($p->name)).'</div>'; echo ' </a>'; --- 19,23 ---- echo '<div class="onlinePlayer">'; echo ' <img src="'.rewriteURL('/images/outfit/'.urlencode($p->outfit).'.png').'" alt="">'; ! echo ' <a href="/?id=content/scripts/character&name='.urlencode($p->name).'">'; echo ' <div class="name">'.htmlspecialchars(utf8_encode($p->name)).'</div>'; echo ' </a>'; Index: character.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/character.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** character.php 29 Nov 2009 01:02:48 -0000 1.35 --- character.php 30 Nov 2009 23:37:25 -0000 1.36 *************** *** 85,89 **** <?php if($content!="") { ?> ! <a href="?id=content/scripts/item&name=<?php echo htmlspecialchars($content); ?>&exact"> <img src="<?php echo htmlspecialchars(getItem($content)->showImage()); ?>" alt="<?php echo htmlspecialchars(ucfirst($content)); ?>"/> <div class="label"><?php echo htmlspecialchars(ucwords($slot)) ?></div> --- 85,89 ---- <?php if($content!="") { ?> ! <a href="/?id=content/scripts/item&name=<?php echo htmlspecialchars($content); ?>&exact"> <img src="<?php echo htmlspecialchars(getItem($content)->showImage()); ?>" alt="<?php echo htmlspecialchars(ucfirst($content)); ?>"/> <div class="label"><?php echo htmlspecialchars(ucwords($slot)) ?></div> *************** *** 133,137 **** ?> <div class="row"> ! <a href="?id=content/scripts/monster&name=<?php echo htmlspecialchars($monster->name); ?>&exact"> <img class="creature" src="<?php echo htmlspecialchars($monster->showImage()); ?>" alt="<?php echo htmlspecialchars($monster->name); ?>"/> Killed by a <div style="display: inline;" class="label"><?php echo htmlspecialchars($monster->name); ?></div> --- 133,137 ---- ?> <div class="row"> ! <a href="/?id=content/scripts/monster&name=<?php echo htmlspecialchars($monster->name); ?>&exact"> <img class="creature" src="<?php echo htmlspecialchars($monster->showImage()); ?>" alt="<?php echo htmlspecialchars($monster->name); ?>"/> Killed by a <div style="display: inline;" class="label"><?php echo htmlspecialchars($monster->name); ?></div> *************** *** 149,153 **** ?> <div class="row"> ! <a href="?id=content/scripts/character&name=<?php echo htmlspecialchars(urlencode($source)); ?>"> <?php $killer=getPlayer($source); --- 149,153 ---- ?> <div class="row"> ! <a href="/?id=content/scripts/character&name=<?php echo htmlspecialchars(urlencode($source)); ?>"> <?php $killer=getPlayer($source); Index: killedstats.php =================================================================== RCS file: /cvsroot/arianne/stendhal_website/content/scripts/killedstats.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** killedstats.php 29 Nov 2009 01:02:48 -0000 1.6 --- killedstats.php 30 Nov 2009 23:37:25 -0000 1.7 *************** *** 55,59 **** list($m, $amount)=$result; echo '<div style="text-align: center;">'; ! echo ' <a class="creature" href="?id=content/scripts/monster&name='.$m->name.'&exact">'; echo ' <img class="creature" src="'.$m->gfx.'" alt="'.$m->name.'"/>'; echo ' <div class="creature_name">'.$m->name.'</div>'; --- 55,59 ---- list($m, $amount)=$result; echo '<div style="text-align: center;">'; ! echo ' <a class="creature" href="/?id=content/scripts/monster&name='.$m->name.'&exact">'; echo ' <img class="creature" src="'.$m->gfx.'" alt="'.$m->name.'"/>'; echo ' <div class="creature_name">'.$m->name.'</div>'; *************** *** 73,77 **** list($m, $amount)=$result; echo '<div style="text-align: center;">'; ! echo ' <a class="creature" href="?id=content/scripts/monster&name='.$m->name.'&exact">'; echo ' <img class="creature" src="'.$m->gfx.'" alt="'.$m->name.'"/>'; echo ' <div class="creature_name">'.$m->name.'</div>'; --- 73,77 ---- list($m, $amount)=$result; echo '<div style="text-align: center;">'; ! echo ' <a class="creature" href="/?id=content/scripts/monster&name='.$m->name.'&exact">'; echo ' <img class="creature" src="'.$m->gfx.'" alt="'.$m->name.'"/>'; echo ' <div class="creature_name">'.$m->name.'</div>'; *************** *** 97,101 **** $amount=getVariable($xmlStats,"Killed ".$m->name); ?> ! <a class="nodeco" href="?id=content/scripts/monster&name=<?php echo $m->name; ?>&exact"> <div class="row"> <img src="<?php echo $m->showImage(); ?>" alt="<?php echo $m->name; ?>"/> --- 97,101 ---- $amount=getVariable($xmlStats,"Killed ".$m->name); ?> ! <a class="nodeco" href="/?id=content/scripts/monster&name=<?php echo $m->name; ?>&exact"> <div class="row"> <img src="<?php echo $m->showImage(); ?>" alt="<?php echo $m->name; ?>"/> |