All pastes #741718 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-18 22:32 UTC
rendered paste body
			if ($user->can('add_post') or $user->can('add_page') or $user->can('view_draft') or $user->can('change_settings')):
?>
		<div class="controls" id="admin"<?php if (!empty($_COOKIE['chyrp_showadmin']) and $_COOKIE['chyrp_showadmin'] == 'false') { echo ' style="display: none;"'; } ?>>
			<a id="close_admin" href="<?php echo $misc->url("toggle_admin/"); ?>" style="float: right;">Close</a>
			<?php if ($user->can('add_post')): ?><a id="new_post" href="<?php echo $misc->url("new_post/"); ?>">New Entry</a><?php endif; ?>
			<?php if ($user->can('add_page')): ?><a id="add_page" href="<?php echo $misc->url("new_page/"); ?>">Add Page</a><?php endif; ?>
			<?php if ($user->can('view_draft')): ?><a id="your_drafts" href="<?php echo $misc->url("drafts/"); ?>">Your Drafts</a><?php endif; ?>
			<?php if ($user->can('change_settings')): ?><a id="site_settings" href="<?php echo $config->url; ?>/admin/">Admin</a><?php endif; ?>
			<br style="clear: both" />
		</div>
<?php
			endif;