get() static public method

static public get ( $part = null, $cookiename = 'gb-author' )
Example #1
0
function gb_comment_author_field($what, $default_value = '', $id_prefix = 'comment-', $attrs = '')
{
    $value = gb_author_cookie::get($what);
    if (!$value) {
        $value = $default_value;
        $attrs .= ' class="default" ';
    }
    return '<input type="text" id="' . $id_prefix . 'author-' . $what . '" name="author-' . $what . '" value="' . h($value) . '"' . ' onfocus="if(this.value==unescape(\'' . rawurlencode($default_value) . '\')){this.value=\'\';this.className=\'\';}"' . ' onblur="if(this.value==\'\'){this.value=unescape(\'' . rawurlencode($default_value) . '\');this.className=\'default\';}"' . ' ' . $attrs . ' />';
}
Example #2
0
echo gb::url();
?>
" method="post" 
		onsubmit="chap.submit('<?php 
echo $auth->nonce();
?>
','<?php 
echo $auth->opaque();
?>
','<?php 
echo $auth->context;
?>
')">
		<div>
			<input type="hidden" id="chap-response" name="chap-response" value="" />
		</div>
		<p>
			Username: <input type="text" id="chap-username" name="chap-username" 
				value="<?php 
echo isset($_REQUEST['chap-username']) ? $_REQUEST['chap-username'] : gb_author_cookie::get('email');
?>
" /><br />
			Password: <input type="password" id="chap-password" name="chap-password" />
		</p>
		<p>
			<input type="submit" value="Login" />
		</p>
	</form>
</div>
<?php 
include '../_footer.php';