summaryrefslogtreecommitdiffstats
path: root/functions.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2007-12-17 10:17:50 +0100
committerArun Persaud <arun@nubati.net>2007-12-17 10:17:50 +0100
commitad48a970a52fc44b65176b951a15b9846a290bab (patch)
tree8153c3fafe6a26e19dbeac9f96fb711bde767d5d /functions.php
parente7e64b1ada481710704c16bfb8ee4a7c337dc8f1 (diff)
downloade-DoKo-ad48a970a52fc44b65176b951a15b9846a290bab.tar.gz
e-DoKo-ad48a970a52fc44b65176b951a15b9846a290bab.tar.bz2
e-DoKo-ad48a970a52fc44b65176b951a15b9846a290bab.zip
BUGFIX: use of local web links now possible
before I used a lot of http:// requests although the files were in the same domain, now local links with absolute paths are used.
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/functions.php b/functions.php
index b1ed09f..0ce3104 100644
--- a/functions.php
+++ b/functions.php
@@ -640,7 +640,7 @@ function can_call($what,$hash)
function display_table ()
{
- global $gameid, $GT, $debug,$host,$defaulttimezone;
+ global $gameid, $GT, $debug,$INDEX,$defaulttimezone;
$result = mysql_query("SELECT User.fullname as name,".
" Hand.position as position, ".
@@ -677,7 +677,7 @@ function display_table ()
if(!$debug)
echo " $name \n";
else
- echo " <a href=\"".$host."?me=".$hash."\">$name</a>\n";
+ echo " <a href=\"".$INDEX."?me=".$hash."\">$name</a>\n";
/* add hints for poverty, wedding, solo, etc */
if($GT=="poverty" && $party=="re")
@@ -785,9 +785,9 @@ function display_table ()
function display_user_menu()
{
- global $wiki,$myid,$host;
+ global $wiki,$myid,$INDEX,$STATS;
echo "<div class=\"usermenu\">\n".
- "<a href=\"index.php\"> Go to my user page </a>";
+ "<a href=\"".$INDEX."\"> Go to my user page </a>";
$result = mysql_query("SELECT Hand.hash,Hand.game_id,Game.player from Hand".
" LEFT JOIN Game On Hand.game_id=Game.id".
@@ -800,15 +800,15 @@ function display_user_menu()
while( $r = mysql_fetch_array($result,MYSQL_NUM))
{
- echo "<a href=\"".$host."?me=".$r[0]."\">game ".DB_format_gameid($r[1])." </a><br />\n";
+ echo "<a href=\"".$INDEX."?me=".$r[0]."\">game ".DB_format_gameid($r[1])." </a><br />\n";
}
- echo "<hr /> <a href=\"".$host."?new\">Start a new game</a>\n";
+ echo "<hr /> <a href=\"".$INDEX."?new\">Start a new game</a>\n";
- echo "<hr /> <a href=\"".substr($host,0,-9)."stats.php\">Statistics</a>\n";
+ echo "<hr /> <a href=\"".$STATS."\">Statistics</a>\n";
echo
- "<hr />Report bugs in the <a href=\"". $wiki."\">wiki</a>\n";
+ "<hr />Report bugs in the <a href=\"".$wiki."\">wiki</a>\n";
echo "</div>\n";
return;
}