tr - rm doubling

This commit is contained in:
221V
2024-12-11 19:21:33 +02:00
parent 8fb900524a
commit 4aa4ef0480
5 changed files with 10 additions and 16 deletions
+6 -6
View File
@@ -81,13 +81,13 @@ Submitting this form will create new Users<br>(and their home Villages) on your
$tribe = RANDOM;
break;
case '1':
$tribe = ROMANS;
$tribe = TRIBE1; // Romans
break;
case '2':
$tribe = TEUTONS;
$tribe = TRIBE2; // Teutons
break;
case '3':
$tribe = GAULS;
$tribe = TRIBE3; // Gauls
break;
default:
// Should never reach here
@@ -157,9 +157,9 @@ Beginners Protection &nbsp;&nbsp;<input type ="checkbox" name="users_protection"
<br><br>
Tribe:<br>
<label><input type="radio" name="tribe" value="0" checked> &nbsp;<?php echo RANDOM; ?></label><br>
<label><input type="radio" name="tribe" value="1"> &nbsp;<?php echo ROMANS; ?></label><br>
<label><input type="radio" name="tribe" value="2"> &nbsp;<?php echo TEUTONS; ?></label><br>
<label><input type="radio" name="tribe" value="3"> &nbsp;<?php echo GAULS; ?></label><br>
<label><input type="radio" name="tribe" value="1"> &nbsp;<?php echo TRIBE1; /* Romans */ ?></label><br>
<label><input type="radio" name="tribe" value="2"> &nbsp;<?php echo TRIBE2; /* Teutons */ ?></label><br>
<label><input type="radio" name="tribe" value="3"> &nbsp;<?php echo TRIBE3; /* Gauls */ ?></label><br>
<br><br>
<input type="submit" value="Create Users">
</form>
-3
View File
@@ -662,9 +662,6 @@ define("STARTED"," The server started ". round((time()-COMMENCE)/86400) ." days
define("NICKNAME","Nickname");
define("EMAIL","Email");
define("PASSWORD","Password");
define("ROMANS","Romans");
define("TEUTONS","Teutons");
define("GAULS","Gauls");
define("NW","North West");
define("NE","North East");
define("SW","South West");
-3
View File
@@ -662,9 +662,6 @@ define("STARTED"," 服务器启动于 ". round((time()-COMMENCE)/86400) ." 天
define("NICKNAME","昵称");
define("EMAIL","邮箱");
define("PASSWORD","密码");
define("ROMANS","罗马");
define("TEUTONS","条顿");
define("GAULS","高卢");
define("NW","西北");
define("NE","东北");
define("SW","西南");
+1 -1
View File
@@ -27,7 +27,7 @@ $totalpop = 0;
foreach($varray as $vil) $totalpop += $vil['pop'];
$countAu = $database->CountTopic($arr['owner']);
$tribeArray = [ROMANS, TEUTONS, GAULS];
$tribeArray = [TRIBE1, TRIBE2, TRIBE3];
$displayarray = $database->getUserArray($arr['owner'], 1);
$trip = $tribeArray[$displayarray['tribe'] - 1];
+3 -3
View File
@@ -93,17 +93,17 @@ if(REG_OPEN == true){ ?>
<th colspan="2"><img src="img/x.gif" class="img_u07" alt="starting position" /></th>
</tr>
<tr>
<td class="nat"><label><input class="radio" type="radio" name="vid" value="1" <?php echo $form->getRadio('vid',1); ?> />&nbsp;<?php echo ROMANS; ?></label></td>
<td class="nat"><label><input class="radio" type="radio" name="vid" value="1" <?php echo $form->getRadio('vid',1); ?> />&nbsp;<?php echo TRIBE1; /* Romans */ ?></label></td>
<td class="pos1"><label><input class="radio" type="radio" name="kid" value="0" checked="checked" />&nbsp;<?php echo RANDOM; ?></label></td>
<td class="pos2">&nbsp;</td>
</tr>
<tr>
<td><label><input class="radio" type="radio" name="vid" value="2" <?php echo $form->getRadio('vid',2); ?> />&nbsp;<?php echo TEUTONS; ?></label></td>
<td><label><input class="radio" type="radio" name="vid" value="2" <?php echo $form->getRadio('vid',2); ?> />&nbsp;<?php echo TRIBE2; /* Teutons */ ?></label></td>
<td><label><input class="radio" type="radio" name="kid" value="1" <?php echo $form->getRadio('kid',1); ?> />&nbsp;<?php echo NW; ?> <b>(-|+)</b>&nbsp;</label></td>
<td><label><input class="radio" type="radio" name="kid" value="2" <?php echo $form->getRadio('kid',2); ?> />&nbsp;<?php echo NE; ?> <b>(+|+)</b></label></td>
</tr>
<tr class="btm">
<td><label><input class="radio" type="radio" name="vid" value="3" <?php echo $form->getRadio('vid',3); ?> />&nbsp;<?php echo GAULS; ?></label></td>
<td><label><input class="radio" type="radio" name="vid" value="3" <?php echo $form->getRadio('vid',3); ?> />&nbsp;<?php echo TRIBE3; /* Gauls */ ?></label></td>
<td><label><input class="radio" type="radio" name="kid" value="3" <?php echo $form->getRadio('kid',3); ?> />&nbsp;<?php echo SW; ?> <b>(-|-)</b></label></td>
<td><label><input class="radio" type="radio" name="kid" value="4" <?php echo $form->getRadio('kid',4); ?> />&nbsp;<?php echo SE; ?> <b>(+|-)</b></label></td>
</tr>