require "constants.php"; $title = "Anathema Online"; include "index-top.php"; ?> $district = $_GET['district']; $conditions = "WHERE id='$district'"; $districtName = getInfo(name,districts,$conditions); $owner = getInfo(owner,districts,"WHERE id='$town'"); $ownerName = getInfo(username,users,"WHERE id='$owner'"); if ($districtName) { echo '
| ';
echo ' | ';
echo '
|---|
| '; $description = getInfo(description,districts,"WHERE id='$district'"); echo $description; echo ' | '; echo '
| '; echo 'Buildings'; echo ' | '; if (!getInfo(developed,towns,"WHERE id='$town'")) { echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
}
echo '';
echo ' | ';
echo '
| '; $counter = numRowsConditions(rooms,"WHERE place='$id' and hidden=''"); $fire = getInfo(id,fires,"WHERE place='$id'"); if ($fire) $font = ' color="#f97400"'; if ($counter == 1) { $conditions = "WHERE place='$id'"; $room = getInfo(entrance,places,"WHERE id='$id'"); if (!$room) $room = getInfo(id,rooms,$conditions); echo ''.$name.''; } else echo ''.$name.''; unset($fire); unset($font); echo ' | '; if (!getInfo(developed,towns,"WHERE id='$town'")) { $owner = $row['owner']; $owner = getInfo(username,users,"WHERE id='$owner'"); echo '
| '; echo 'Roads'; echo ' | '; if (!getInfo(developed,towns,"WHERE id='$town'")) { echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
}
echo '';
echo ' | ';
echo '
| '; $counter = numRowsConditions(rooms,"WHERE place='$id' and hidden=''"); $fire = getInfo(id,fires,"WHERE place='$id'"); if ($fire) $font = ' color="#f97400"'; if ($counter == 1) { $conditions = "WHERE place='$id'"; $room = getInfo(entrance,places,"WHERE id='$id'"); if (!$room) $room = getInfo(id,rooms,$conditions); echo ''.$name.''; } else echo ''.$name.''; unset($fire); unset($font); echo ' | '; if (!getInfo(developed,towns,"WHERE id='$town'")) { $owner = $row['owner']; $owner = getInfo(username,users,"WHERE id='$owner'"); echo '
| '; echo 'Ships/Caravans'; echo ' | '; if (!getInfo(developed,towns,"WHERE id='$town'")) { echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
echo '';
echo ' | ';
}
echo '';
echo ' | ';
echo '
| '; $counter = numRowsConditions(rooms,"WHERE place='$id' and hidden=''"); $fire = getInfo(id,fires,"WHERE place='$id'"); if ($fire) $font = ' color="#f97400"'; if ($counter == 1) { $conditions = "WHERE place='$id'"; $room = getInfo(entrance,places,"WHERE id='$id'"); if (!$room) $room = getInfo(id,rooms,$conditions); echo ''.$name.''; } else echo ''.$name.''; unset($fire); unset($font); echo ' | '; if (!getInfo(developed,towns,"WHERE id='$town'")) { $owner = $row['owner']; $owner = getInfo(username,users,"WHERE id='$owner'"); echo '
| ';
echo ' | ';
echo '
|---|
| ';
echo ' | ';
echo '