'; echo ''; echo ''; echo ''; echo '
Success
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
You have successfully nominated '.getInfo(username,users,"WHERE id='$nominee'").' for the Best Post Award.
'; echo ''; echo ''; echo ''; echo ''; echo '
'; } else { echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
Error
'; echo '
'; echo '
'.$failure.'
'; echo '
'; echo '
'; echo '
'; } } } $id = $_GET['room']; $commands = $_POST['command']; $post = $_POST['post']; $conditions = "WHERE id='$id'"; $buildingId = getInfo(place,rooms,$conditions); $conditions = "WHERE id='$buildingId'"; $building = getInfo(name,places,$conditions); $town = getInfo(town,places,$conditions); $id = $_GET['room']; $commands = $_POST['command']; $post = $_POST['post']; $conditions = "WHERE id='$id'"; $buildingId = getInfo(place,rooms,$conditions); $conditions = "WHERE id='$buildingId'"; $building = getInfo(name,places,$conditions); $town = getInfo(town,places,$conditions); $count = 0; if ($id) { $time = time() - (3600 * 24 * 7); $result = getRows(users,"WHERE room='$id' and status!='dead' and (logged>='$time' or NPC!='')"); while ($row = mysql_fetch_array($result)) { $name = $row['username']; $user_id = $row['id']; if (!$row['NPC']) $users_inside[] = "".$name.""; else $npcs_inside[] = "".$name.""; if ($usersInRoom) $usersInRoom .= '.'.$user_id; else $usersInRoom = $user_id; } $users_count = count($users_inside); $npcs_count = count($npcs_inside); if (!$users_inside) $users_inside = "None"; else $users_inside = implode(', ',$users_inside); if (!$npcs_inside) $npcs_inside = "None"; else $npcs_inside = implode(', ',$npcs_inside); } else $users_inside = "None"; $conditions = "WHERE id='$id'"; $place_description = stripslashes(getInfo(description,rooms,$conditions)); $room = stripslashes(getInfo(name,rooms,$conditions)); $place_id = getInfo(place,rooms,$conditions); $place_type = getInfo(type,places,"WHERE id='$place_id'"); $type = getInfo(label,buildings,"WHERE id='$place_type'"); echo ''; echo ''; $tenant = getInfo(tenant,rooms,"WHERE id='$id'"); $tenant = getInfo(username,users,"WHERE id='$tenant'"); $owner = getInfo(owner,places,"WHERE id='$place_id'"); if ($tenant) echo ''; echo ''; echo ''; if (getInfo(health,places,"WHERE id='$buildingId'")) echo ''; if ($owner) { $employees = getInfo(employees,places,"WHERE id='$buildingId'"); $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='$buildingId'")) { $station = getInfo(station2,travel_routes,"WHERE station='$buildingId'"); } if (getInfo(id,travel_routes,"WHERE station2='$buildingId'")) { $station = getInfo(station,travel_routes,"WHERE station2='$buildingId'"); } $stationName = getInfo(name,places,"WHERE id='$station'"); $stationtown = getInfo(town,places,"WHERE id='$station'"); $stationtownName = getInfo(name,towns,"WHERE id='$stationtown'"); if ($stationtownName) echo ''; else echo ''; } if (($place_type == "restaurant") || ($place_type == "shop")) { echo ''; } echo ''; $employees_echo = $employees; if (getInfo(id,forges,"WHERE place='$buildingId'")) { $employees = getInfo(employees,places,"WHERE id='$buildingId'"); $employees = explode('.',$employees); $owner = getInfo(owner,places,"WHERE id='$buildingId'"); $allow_refine = getInfo(refine,forges,"WHERE place='$buildingId'"); $allow_arms = getInfo(arms,forges,"WHERE place='$buildingId'"); $allow_doors = getInfo(doors,forges,"WHERE place='$buildingId'"); $allow_repair = getInfo(repair,forges,"WHERE place='$buildingId'"); 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='$buildingId'"); $captainName = getInfo(username,users,"WHERE id='$captain'"); echo ''; if (!$employee) $control = true; if (getInfo(location,users,"WHERE id='$userId'") != $buildingId) $control = false; if (getInfo(status,users,"WHERE id='$userId'") != 'conscious') $control = false; if ($control) echo ''; } } if (numRowsConditions(posts,"WHERE thread_id='$id' and archived!=''") > 0) echo ''; echo ''; echo '
'.$room.'
'.$place_description.'
Tenant : '.$tenant.'
Users currently inside : '.$users_inside.' ['.$users_count.']
NPCs currently inside : '.$npcs_inside.' ['.$npcs_count.']
Fortification : '.getInfo(health,places,"WHERE id='$buildingId'").' points
Connects to '.$stationName.', '.$stationtownName.'
This station does not have any associated travel route.
Catalogue/Menu
Employees : '.$employees.' [Apply for a Job]
Captain : '.$captainName.'
Crew : '.$employees_echo.' [Apply for a Job]'; $control = false; if (getInfo(captain,transport,"WHERE place='$buildingId'") == $userId) $control = true; if (getInfo(owner,places,"WHERE id='$buildingId'") == $userId) $control = true; $result = getRows(users,"WHERE location='$buildingId'"); $employees = explode('.',getInfo(employees,places,"WHERE id='$buildingId'")); if (inArray($userId,$employees)) $control = true; $employee = false; while ($row = mysql_fetch_array($result)) { if (inArray($row['id'],$employees)) $employee = true; if (getInfo(owner,places,"WHERE id='$buildingId'") == $row['id']) $employee = true; } echo '
'; echo '
View Archived Posts for this Room
View '.$user_name.'\'s Memories for this Room

'; $conditions = "WHERE thread_id='$id' and post!='' and archived!='' and (restricted='' or users like '%$userIdString%')"; $max = numRowsConditions(posts,$conditions); $page = $_GET['page']; if (!$page) $page = truncate(($max - 1) / 10) + 1; if ($page * 10 > $max) $page = truncate(($max - 1) / 10) + 1; $offset = (10 * ($page - 1)); $stop = 10; $result = getRows(posts,"WHERE thread_id='$id' and post!='' and archived!='' and (restricted='' or users like '%$userIdString%') ORDER BY id ASC","LIMIT $offset, $stop"); while ($row = mysql_fetch_array($result)) { $ii = $row['id']; $intox = ''; $dex = 0; $conditions = "WHERE id='$ii'"; $profile_id = getInfo(username,posts,$conditions); $username = getInfo(username,users,"WHERE id='$profile_id'"); $thread_id = getInfo(thread_id,posts,$conditions); $date = getInfo("date",posts,$conditions); $ooc = getInfo(ooc,posts,$conditions); $whisper = getInfo(whisper,posts,$conditions); if (($whisper) && (($whisper != $userId) && ($profile_id != $userId)) && (!admin($user_name))) $ooc = "ooc"; if (!$ooc) { $user_id = $row['id']; $post = $row['post']; $health = $row['health']; $mana = $row['mana']; $dex = $row['dex']; $stretch = $row['stretch']; $money = $row['money']; $nationality = $row['nationality']; $conditions = "WHERE id='$nationality'"; $nationality = getInfo(name,kingdoms,$conditions); $master = $row['master']; $statmax = $row['statmax']; $rank = $row['rank']; $status = $row['status']; $conditions = "WHERE id='$profile_id'"; $sex = getInfo(sex,users,$conditions); $conditions = "WHERE level='$rank'"; if ($sex == "f") $rank = getInfo(female,ranks,$conditions); else $rank = getInfo(male,ranks,$conditions); if ($rank == "Knight") { if ($sex == "f") $rank = "Dame"; if ($sex == "m") $rank = "Sir"; } $intox = ''; if ($dex > 0) $intox = "Barely Intoxicated"; if ($dex > 10) $intox = "Slightly Intoxicated"; if ($dex > 20) $intox = "Moderately Intoxicated"; if ($dex > 30) $intox = "Very Intoxicated"; if ($dex > 40) $intox = "Extremely Intoxicated"; if ($dex >= 50) $intox = "Passed Out"; $fatigue = $row['fatigue']; if ($fatigue <= 20) $warning = "Weary"; if ($fatigue <= 15) $warning = "Tired"; if ($fatigue <= 10) $warning = "Very Tired"; if ($fatigue <= 5) $warning = "Exhausted"; $hunger = $row['hunger']; if ($hunger <= 20) $hungry = "Peckish"; if ($hunger <= 15) $hungry = "Hungry"; if ($hunger <= 10) $hungry = "Famished"; if ($hunger <= 5) $hungry = "Starving"; echo '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; if (getInfo(NPC,users,"WHERE id='$profile_id'")) echo "[$profile_id] "; if ($rank != "Peasant") echo $rank; echo ' '.$username.''; if ($nationality) echo ' of '.$nationality; echo ''; echo $date; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; $wounds = getInfo(wounds,users,"WHERE id='$userId'"); echo ''; echo ''; echo '
'; echo ' Profile
Send Message
Trade
Offer Job'; if (admin($user_name)) echo '
View Record'; echo '
'; echo '
'; echo '

'; echo stripslashes($post); echo '
'; echo '
'; echo 'Nominate for Award (Best Post)

'; if ($status == "unconscious") echo "Unconscious
"; if ($status == "immobilized") echo "Tied Up
"; echo $health.' Health Points
'; echo $mana.' Mana Points
'; echo $intox.'
'; if ($warning) echo $warning.'
'; if ($hungry) echo $hungry.'
'; if ((admin($user_name)) || (last($ii,$id,$userId)) || (moderator($user_name))) echo '
'; if ((admin($user_name)) || (last($ii,$id,$userId)) || (moderator($user_name))) echo '
'; echo '[Report this Post]'; echo '
'; unset($dex); unset($intox); unset($warning); unset($hungry); } else { $whispername = getInfo(username,users,"WHERE id='$whisper'"); $user_id = $row['id']; $post = $row['post']; $nationality = $row['nationality']; $conditions = "WHERE id='$nationality'"; $nationality = getInfo(name,kingdoms,$conditions); $rank = $row['rank']; $rankLevel = $rank; $conditions = "WHERE id='$profile_id'"; $sex = getInfo(sex,users,$conditions); $conditions = "WHERE level='$rank'"; if ($sex == "f") $rank = getInfo(female,ranks,$conditions); else $rank = getInfo(male,ranks,$conditions); if ($rank == "Knight") { if ($sex == "f") $rank = "Dame"; if ($sex == "m") $rank = "Sir"; } echo '

'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
['; if (!$whisper) { if ($ooc == "ooc") echo "OOC"; else echo "Failed Counter"; } else { echo "Whisper"; } echo '] '; if (getInfo(NPC,users,"WHERE id='$profile_id'")) echo "[$profile_id] "; if (($username != "God") && ($rankLevel > 10)) echo $rank; echo ' '.$username.''; if ($nationality) echo ' of '.$nationality; echo ''; echo $date; echo 'Show/Hide
'; echo ''; echo ''; echo ''; echo '
'; if (!$whisper) { echo str_replace("\\'","'",str_replace('\\"','"',stripslashes($post))); } else { echo "$username whispered to $whispername."; } echo '
[Report this Post]'; if ((admin($user_name)) || (moderator($user_name))) echo '
'; if ((admin($user_name)) || (moderator($user_name))) echo '
'; echo '
'; } } if ($max > 10) { echo '
'; echo ''; echo ''; echo '
Pages
'; $pages = truncate(($max - 1)/ 10) + 1; $pstart = $page - 3; if ($pstart < 1) $pstart = 1; if ($pstart != 1) echo '1, '; $pend = $page + 3; if ($pend > $pages) $pend = $pages; if ($pstart > 2) echo '..'; for ($p = $pstart;$p <= $pend;$p++) { if ($p == $page && $page != $pend) echo $p.', '; elseif ($p == $pages) echo ''; else echo ''.$p.', '; } if ($pend < $pages - 1) echo '..'; if ($page != $pend) echo ''.$pages.''; if ($page == $pend) echo $pages; echo '
'; } ?>
$max) $page = truncate(($max - 1) / 10) + 1; $offset = (10 * ($page - 1)); $stop = 10; $result = getRows(posts,"WHERE thread_id='$id' and post!='' ORDER BY id ASC"," LIMIT $offset, $stop"); while ($row = mysql_fetch_array($result)) { $ooc = $row['ooc']; $i = $row['id']; $whisper = $row['whisper']; if (($whisper) && (($whisper != $userId) && ($profile_id != $userId)) && (!admin($user_name))) $ooc = "ooc"; if ($ooc) { echo ''; } } ?>