projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c54caff
)
some small changes
author
arun
<arun@nubati.net>
Mon, 4 Dec 2006 16:59:49 +0000
(16:59 +0000)
committer
arun
<arun>
Mon, 4 Dec 2006 16:59:49 +0000
(16:59 +0000)
index.php
patch
|
blob
|
history
standard.css
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index f2228988735f7ae6b926a33eb4b972afc453d8b7..6ab8f2e2fe65e2df05228022039f8a42751c2f5a 100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-3,7
+3,7
@@
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
- <title>e-Do
k
o</title>
+ <title>e-Do
K
o</title>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="stylesheet" type="text/css" href="standard.css" />
<script type="text/javascript">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" />
<link rel="stylesheet" type="text/css" href="standard.css" />
<script type="text/javascript">
@@
-33,7
+33,7
@@
</head>
<body onload="high_last();">
<div class="header">
</head>
<body onload="high_last();">
<div class="header">
-<h1> Welcome to E-Do
k
o </h1>
+<h1> Welcome to E-Do
K
o </h1>
<?php
/*
<?php
/*
@@
-42,7
+42,7
@@
$host = "http://doko.nubati.net/index.php";
$wiki = "http://wiki.nubati.net/index.php?title=EmailDoko";
$host = "http://doko.nubati.net/index.php";
$wiki = "http://wiki.nubati.net/index.php?title=EmailDoko";
-$debug =
1
;
+$debug =
0
;
$last=-2;
$last=-2;
@@
-53,7
+53,6
@@
$last=-2;
echo "</div>\n";
/* end header */
echo "</div>\n";
/* end header */
-
/* helper function */
function mymail($To,$Subject,$message)
/* helper function */
function mymail($To,$Subject,$message)
@@
-480,7
+479,6
@@
function save_status()
/***************** M A I N **************************/
/***************** M A I N **************************/
-
$history=array();
/* check for status file and read it, if possible */
$history=array();
/* check for status file and read it, if possible */
@@
-539,7
+537,7
@@
if( isset($_REQUEST["PlayerA"]) &&
else
die("no random file");
else
die("no random file");
- $randomNR = explode( ":", $random[
2
] );
+ $randomNR = explode( ":", $random[
4
] );
/* write initial status into file */
$output = fopen("status.txt","w");
/* write initial status into file */
$output = fopen("status.txt","w");
@@
-955,7
+953,7
@@
else
echo " </div>\n </li>\n";
}
echo " </div>\n </li>\n";
}
- echo "</ul>\n";
+ echo "</ul>
<hr />
\n";
echo "<div class=\"line\"></div>";
echo "<div class=\"line\"></div>";
@@
-1083,7
+1081,14
@@
else
if(strlen($player[$hash[0]]["cards"]))
$history[] = "\n".$win.":\n"; /* not sure why I need the first \n here */
if(strlen($player[$hash[0]]["cards"]))
$history[] = "\n".$win.":\n"; /* not sure why I need the first \n here */
+ /* check if game is done */
+ $end = 1;
+ for($i=0;$i<4;$i++)
+ if(strlen(trim($player[$hash[$i]]["cards"]))!=0)
+ $end = 0;
+
/* email the player who needs to move next*/
/* email the player who needs to move next*/
+ if(!$end)
for($i=0;$i<4;$i++)
{
if((ereg("c",$player[$hash[$i]]["option"]) || $i==$win) )
for($i=0;$i<4;$i++)
{
if((ereg("c",$player[$hash[$i]]["option"]) || $i==$win) )
diff --git
a/standard.css
b/standard.css
index 8abd07ccb9782a598e01dac388c65667bbfce087..4e6650aa9e6e12ff1775045e74806e26f56f48df 100644
(file)
--- a/
standard.css
+++ b/
standard.css
@@
-17,18
+17,20
@@
ul.oldtrick {
ul.oldtrick {
+ position:relative;
list-style:none;
margin:3px;
padding:0;
/*background-color:yellow;*/
text-align:center;
list-style:none;
margin:3px;
padding:0;
/*background-color:yellow;*/
text-align:center;
+
}
ul.oldtrick a { text-decoration:none; color:#000;}
ul.oldtrick li {
/*background-color:blue;*/
}
ul.oldtrick a { text-decoration:none; color:#000;}
ul.oldtrick li {
/*background-color:blue;*/
- margin:0 0.5em;
+ margin:0
.2em
0.5em;
display:inline;
}
ul.oldtrick li:hover {
display:inline;
}
ul.oldtrick li:hover {
@@
-39,9
+41,9
@@
ul.oldtrick li div.table img.table {
position:absolute;
margin:0;
padding:0;
position:absolute;
margin:0;
padding:0;
- top:
3
em;
- left:
4
em;
- height:2
4
em;
+ top:
4
em;
+ left:
3
em;
+ height:2
2
em;
z-index:-2;
}
z-index:-2;
}
@@
-58,8
+60,9
@@
ul.oldtrick li div.table {
display:none;
}
display:none;
}
-/*ul.oldtrick li:hover div.table{ display:block; }
-*/
+hr {clear:both;}
+
+/*ul.oldtrick li:hover div.table{ display:block; }*/
ul.oldtrick li div div.card0 {
position:absolute;
ul.oldtrick li div div.card0 {
position:absolute;
@@
-172,7
+175,7
@@
ul.oldtrick li div div.card3 span span{
.mycards {
clear:both;
margin:0;
.mycards {
clear:both;
margin:0;
- margin-top:3
3
em;
+ margin-top:3
8
em;
padding:0;
border:1px solid red;
background-color:yellow;
padding:0;
border:1px solid red;
background-color:yellow;