How to test a user is logged in?
By sylvie
Tuesday, May 02, 2006
Tuesday, May 02, 2006
In php:
if( $gBitUser->isRegistered() )
In smarty:
{if $gBitUser->isRegistered()}
if( $gBitUser->isRegistered() )
In smarty:
{if $gBitUser->isRegistered()}
<?php
{if $gBitLoc.browser.client eq 'mz' or $gBitLoc.browser.client eq 'ie'}
This browser is IE or Mozilla based!
{/if}
?>
<?php
$gBitSystem->mServerTimestamp->strtotime(...);
and
$gBitSystem->mServerTimestamp->strftime(...);
as straight replacements.
?>
<?php
{$timestamp|bit_short_datetime}
?>
<?php
$gBitSystem->mServerTimestamp->strtotime(...);
and
$gBitSystem->mServerTimestamp->strftime(...);
as straight replacements.
?>
<?php
{$timestamp|bit_short_datetime}
?>
<?php
{if $gContent->mInfo.format_guid == 'bithtml'}
This is HTML content!
{/if}
?>
<?php
{if $gBitSystemPrefs.tinymce_ask eq 'y'}
This setting is 'yes'!
{else}
This setting is 'no'!
{/if}
?>
<?php
if ($gBitUser->hasPermission('bit_p_admin_cms')) {
This user has permission!
}
?>
<?php
$gBitSystem->verifyPermission( 'bit_p_view' );
?>