'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $town = getInfo(town,places,"WHERE id='$place'"); if (!getInfo(developed,towns,"WHERE id='$town'")) echo ''; echo ''; else echo ''; } if (($place_type == "restaurant") || ($place_type == "shop")) { echo ''; } echo ''; if (getInfo(id,forges,"WHERE place='$place'")) { $employees = getInfo(employees,places,"WHERE id='$place'"); $employees = explode('.',$employees); $owner = getInfo(owner,places,"WHERE id='$place'"); $allow_refine = getInfo(refine,forges,"WHERE place='$place'"); $allow_arms = getInfo(arms,forges,"WHERE place='$place'"); $allow_doors = getInfo(doors,forges,"WHERE place='$place'"); $allow_repair = getInfo(repair,forges,"WHERE place='$place'"); if (((inArray($userId,$employees)) || ($allow_refine) || ($allow_arms) || ($allow_doors) || ($allow_repair)) || ($owner == $userId)) echo ''; } if (($place_type == "caravan") || ($place_type == "ship")) { $captain = getInfo(captain,transport,"WHERE place='$place'"); $captainName = getInfo(username,users,"WHERE id='$captain'"); echo ''; if (!$employee) $control = true; if (getInfo(location,users,"WHERE id='$userId'") != $place) $control = false; if (getInfo(status,users,"WHERE id='$userId'") != 'conscious') $control = false; if ($control) echo ''; } $placeType = getInfo(type,places,"WHERE id='$place'"); if (getInfo(burn,places,"WHERE id='$place'") < getInfo(maxburn,buildings,"WHERE id='$placeType'")) echo ''; if (getInfo(health,places,"WHERE id='$place'")) echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
'.$placeName.'
'; echo '
View Floor Plan - In case you get lost, this will help you find your way around.
'; $conditions = "WHERE id='$place'"; $description = getInfo(description,places,$conditions); $place_type = getInfo(type,places,"WHERE id='$place'"); $type = getInfo(label,buildings,"WHERE id='$place_type'"); $owner = getInfo(owner,places,"WHERE id='$place'"); echo $description.'
'; $conditions = "WHERE id='$place'"; $employees = getInfo(employees,places,$conditions); $employees = explode('.',$employees); $max = count($employees); for ($i=0;$i<$max;$i++) { $employee = $employees[$i]; $employeeName = getInfo(username,users,"WHERE id='$employee'"); $employees[$i] = "".$employeeName.""; } $employees = implode(', ',$employees); if ($place_type == "station") { if (getInfo(id,travel_routes,"WHERE station='$place'")) { $station = getInfo(station2,travel_routes,"WHERE station='$place'"); } if (getInfo(id,travel_routes,"WHERE station2='$place'")) { $station = getInfo(station,travel_routes,"WHERE station2='$place'"); } $stationtown = getInfo(town,places,"WHERE id='$station'"); $stationtownName = getInfo(name,towns,"WHERE id='$stationtown'"); if ($stationtownName) echo '
Connects to '.$stationtownName.'
This station does not have any associated travel route.
Catalogue/Menu
Employees : '.$employees.' [Apply for a Job]
Captain : '.$captainName.'
Crew : '.$employees.' [Apply for a Job]'; $control = false; if (getInfo(captain,transport,"WHERE place='$place'") == $userId) $control = true; if (getInfo(owner,places,"WHERE id='$place'") == $userId) $control = true; $result = getRows(users,"WHERE location='$place'"); $employees = explode('.',getInfo(employees,places,"WHERE id='$place'")); if (inArray($userId,$employees)) $control = true; while ($row = mysql_fetch_array($result)) { if (inArray($row['id'],$employees)) $employee = true; if (getInfo(owner,places,"WHERE id='$place'") == $row['id']) $employee = true; } echo '
'; echo '
Health : '.getInfo(burn,places,"WHERE id='$place'").' points
Fortification : '.getInfo(health,places,"WHERE id='$place'").' points
'; echo '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $time = time() - (3600 * 24 * 7); $result = getRows(rooms,"WHERE place='$place' and hidden='' ORDER BY id ASC"); while ($row = mysql_fetch_array($result)) { unset($font); $name = stripslashes($row['name']); $id = $row['id']; if (getInfo(id,fires,"WHERE room='$id'")) $font = ' color=#f97400'; echo ''; echo ''; $counter = numRowsConditions(users,"WHERE room='$id' and status != 'dead' and logged >='$time'"); echo ''; $counter = numRowsConditions(posts,"WHERE thread_id='$id'"); echo ''; echo ''; unset($font); } echo ''; echo '
'; echo 'Room'; echo ''; echo 'Users'; echo ''; echo 'Posts'; echo '
'; echo ''.$name.''; echo ''; echo $counter; echo ''; echo $counter; echo '
'; echo ''; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
This place does not exist.
'; echo '
'; echo '
'; } ?>