Exemple #1
0
<?php

$pageMenu = array();
if (($isMine || $auth->allowedToModifyCharPrefs) && $auth->actionAllowed('character', 'prefs')) {
    $pageMenu['Modify Preferences'] = $this->url('character', 'prefs', array('id' => $char->char_id));
}
if (($isMine || $auth->allowedToChangeSlot) && $auth->actionAllowed('character', 'changeslot')) {
    $pageMenu['Change Slot'] = $this->url('character', 'changeslot', array('id' => $char->char_id));
}
if (($isMine || $auth->allowedToResetLook) && $auth->actionAllowed('character', 'resetlook')) {
    $pageMenu['Reset Look'] = $this->url('character', 'resetlook', array('id' => $char->char_id, 'Session' => Flux_Security::csrfGet('Session')));
}
if (($isMine || $auth->allowedToResetPosition) && $auth->actionAllowed('character', 'resetpos')) {
    $pageMenu['Reset Position'] = $this->url('character', 'resetpos', array('id' => $char->char_id, 'Session' => Flux_Security::csrfGet('Session')));
}
if ($char->partner_id && ($isMine || $auth->allowedToDivorceCharacter) && $auth->actionAllowed('character', 'divorce')) {
    $pageMenu['Divorce'] = $this->url('character', 'divorce', array('id' => $char->char_id));
}
return $pageMenu;
Exemple #2
0
        ?>
				<?php 
        if ($auth->allowedToEditShopItem) {
            ?>
				/ <a href="<?php 
            echo $this->url('itemshop', 'edit', array('id' => $item->shop_item_id));
            ?>
">Modify</a>
				<?php 
        }
        ?>
				<?php 
        if ($auth->allowedToDeleteShopItem) {
            ?>
				/ <a href="<?php 
            echo $this->url('itemshop', 'delete', array('id' => $item->shop_item_id, 'Session' => Flux_Security::csrfGet('Session')));
            ?>
"
					onclick="return confirm('Are you sure you want to remove this item from the item shop?')">Delete</a>
				<?php 
        }
        ?>
			</p>
		</td>
		<td class="shop-item-cost-qty">
			<p><span class="cost"><?php 
        echo number_format($item->shop_item_cost);
        ?>
</span> credits.</p>
			<p class="shop-item-action">
				<?php