'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; if (numRowsConditions(places,"WHERE district='$district' and abandoned='abandoned'") > 0) echo ''; echo ''; echo '
'; echo '
'.stripslashes($districtName).'
'; echo '
'; $description = getInfo(description,districts,"WHERE id='$district'"); echo $description; echo '
View Archives for Abandoned Buildings
'; echo '
'; if (numRowsConditions(places,"WHERE district='$district' and abandoned='' and (type!='28' and type!='29' and type!='21' and type!='23' and type!='37')") > 0) { echo ''; echo ''; echo ''; echo ''; if (!getInfo(developed,towns,"WHERE id='$town'")) { echo ''; echo ''; echo ''; echo ''; echo ''; } echo ''; echo ''; $time = time() - (3600 * 24 * 7); $max = numRows(places); $result = getRows(places,"WHERE district='$district' and abandoned='' and hidden='' and (type!='28' and type!='29' and type!='21' and type!='23' and type!='37') ORDER BY list_order DESC, id ASC"); while ($row = mysql_fetch_array($result)) { unset($font); $name = stripslashes($row['name']); if (!$name) $name = "----"; $id = $row['id']; echo ''; echo ''; if (!getInfo(developed,towns,"WHERE id='$town'")) { $owner = $row['owner']; $owner = getInfo(username,users,"WHERE id='$owner'"); echo ''; echo ''; echo ''; echo ''; echo ''; } $counter = numRowsConditions(users,"WHERE location='$id' and status != 'dead' and logged >='$time'"); echo ''; echo ''; } echo ''; echo '
'; echo 'Buildings'; echo ''; echo '
Owner
'; echo '
'; echo '
Type
'; echo '
'; echo '
Rooms
'; echo '
'; echo '
Health
'; echo '
'; echo '
Fortification
'; echo '
'; echo '
Users
'; 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 ($owner != "God") echo $owner; echo '
'; $type = $row['type']; $type = getInfo(type,buildings,"WHERE id='$type'"); $type = capitalize($type); echo $type; echo '
'; echo $counter; echo '
'; echo getInfo(burn,places,"WHERE id='$id'"); echo '
'; echo getInfo(health,places,"WHERE id='$id'"); echo '
'; echo $counter; echo '
'; echo '
'; } if (numRowsConditions(places,"WHERE district='$district' and abandoned='' and type='28'") > 0) { echo ''; echo ''; echo ''; echo ''; if (!getInfo(developed,towns,"WHERE id='$town'")) { echo ''; echo ''; echo ''; echo ''; echo ''; } echo ''; echo ''; $time = time() - (3600 * 24 * 7); $max = numRows(places); $result = getRows(places,"WHERE district='$district' and abandoned='' and hidden='' and type='28' ORDER BY id ASC"); while ($row = mysql_fetch_array($result)) { unset($font); $name = stripslashes($row['name']); if (!$name) $name = "----"; $id = $row['id']; echo ''; echo ''; if (!getInfo(developed,towns,"WHERE id='$town'")) { $owner = $row['owner']; $owner = getInfo(username,users,"WHERE id='$owner'"); echo ''; echo ''; echo ''; echo ''; echo ''; } $counter = numRowsConditions(users,"WHERE location='$id' and status != 'dead' and logged >='$time'"); echo ''; echo ''; } echo ''; echo '
'; echo 'Roads'; echo ''; echo '
Owner
'; echo '
'; echo '
Type
'; echo '
'; echo '
Rooms
'; echo '
'; echo '
Health
'; echo '
'; echo '
Fortification
'; echo '
'; echo '
Users
'; 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 ($owner != "God") echo $owner; echo '
'; $type = $row['type']; $type = getInfo(type,buildings,"WHERE id='$type'"); $type = capitalize($type); echo $type; echo '
'; echo $counter; echo '
'; echo getInfo(burn,places,"WHERE id='$id'"); echo '
'; echo getInfo(health,places,"WHERE id='$id'"); echo '
'; echo $counter; echo '
'; echo '
'; } if (numRowsConditions(places,"WHERE district='$district' and abandoned='' and town!='' and (type='29' or type='21' or type='23' or type='37')") > 0) { echo ''; echo ''; echo ''; echo ''; if (!getInfo(developed,towns,"WHERE id='$town'")) { echo ''; echo ''; echo ''; echo ''; echo ''; } echo ''; echo ''; $time = time() - (3600 * 24 * 7); $max = numRows(places); $result = getRows(places,"WHERE district='$district' and abandoned='' and (type='29' or type='21' or type='23' or type='37') ORDER BY id ASC"); while ($row = mysql_fetch_array($result)) { unset($font); $name = stripslashes($row['name']); if (!$name) $name = "----"; $id = $row['id']; echo ''; echo ''; if (!getInfo(developed,towns,"WHERE id='$town'")) { $owner = $row['owner']; $owner = getInfo(username,users,"WHERE id='$owner'"); echo ''; echo ''; echo ''; echo ''; echo ''; } $counter = numRowsConditions(users,"WHERE location='$id' and status != 'dead' and logged >='$time'"); echo ''; echo ''; } echo ''; echo '
'; echo 'Ships/Caravans'; echo ''; echo '
Owner
'; echo '
'; echo '
Type
'; echo '
'; echo '
Rooms
'; echo '
'; echo '
Health
'; echo '
'; echo '
Fortification
'; echo '
'; echo '
Users
'; 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 ($owner != "God") echo $owner; echo '
'; $type = $row['type']; $type = getInfo(type,buildings,"WHERE id='$type'"); $type = capitalize($type); echo $type; echo '
'; echo $counter; echo '
'; echo getInfo(burn,places,"WHERE id='$id'"); echo '
'; echo getInfo(health,places,"WHERE id='$id'"); echo '
'; echo $counter; echo '
'; echo '
'; } echo '
'; echo ''; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
This town does not exist.
'; echo '
'; echo '
'; } ?>