<?php

$message = htmlentities(trim($_POST['message']), ENT_COMPAT, 'utf-8');
if (empty($message)) {
    create_error('You have to enter a text to send!');
}
// send to all council members
require_once get_file_loc('council.inc');
$councilMembers = Council::getRaceCouncil($player->getGameID(), $var['race_id']);
foreach ($councilMembers as $accountID) {
    $player->sendMessage($accountID, MSG_POLITICAL, $message, true, $player->getAccountID() != $accountID);
}
$container = array();
$container['url'] = 'skeleton.php';
if ($player->isLandedOnPlanet()) {
    $container['body'] = 'planet_main.php';
} else {
    $container['body'] = 'current_sector.php';
}
forward($container);
Example #2
0
			</tbody>
		</table><?php 
} else {
    ?>
This council doesn't have a president!<?php 
}
?>
	<br /><br />

	<img src="<?php 
echo Globals::getRaceImage($RaceID);
?>
" width="212" height="270" /><br /><br />

	<h3>Council Members</h3><br /><?php 
$CouncilMembers = Council::getRaceCouncil($ThisPlayer->getGameID(), $RaceID);
if (count($CouncilMembers) > 0) {
    ?>
		<table id="council-members" class="standard" width="85%">
			<thead>
				<tr>
					<th>&nbsp;</th>
					<th class="sort" data-sort="name">Name</th>
					<th>Race</th>
					<th class="sort" data-sort="alliance">Alliance</th>
					<th class="sort" data-sort="experience">Experience</th>
				</tr>
			</thead>
			<tbody class="list"><?php 
    foreach ($CouncilMembers as $Ranking => $AccountID) {
        $CouncilPlayer =& SmrPlayer::getPlayer($AccountID, $ThisPlayer->getGameID());