Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by Mistral ( 17 years ago )
<?php
if($_POST && !@$templates -> isErrors()) {
$aFlashs = $templates -> getFlashs();
foreach($aFlashs as $v) {
echo $v;
}
} else if(!$_POST && @$templates -> isErrors()) {
?>
<div class="error">
<?php
$aErrors = $templates -> getErrors();
foreach($aErrors as $v) {
echo $v;
}
?>
</div>
<?php
} else {
if(@$templates -> isErrors()) {
?>
<div class="error">
<?php
$aErrors = $templates -> getErrors();
foreach($aErrors as $v) {
echo $v;
}
?>
</div>
<?php
}
echo $templates -> helpers['gfHTML_Helper'] -> addForm('register', gfFW::Router()->createFormURL('user', 'register', gf_ROUTER_EXT_HTM, array()), 'POST', 'id="register"');
echo $templates -> helpers['gfHTML_Helper'] -> addInput(gfHTML_TEXT, 'name', 'form_text', 'Login: ', array('default' => @$_POST['name'], 'onBlur' => "validName(this)"));
echo $templates -> helpers['gfHTML_Helper'] -> addInput(gfHTML_TEXT, 'email', 'form_text', 'Email: ', array('default' => @$_POST['email'], 'onBlur' => "validEmail(this)"));
echo $templates -> helpers['gfHTML_Helper'] -> addInput(gfHTML_PASSWORD, 'pass1', 'form_text', 'Hasło: ', array('default' => @$_POST['pass1'], 'onBlur' => "validPassword(this)"));
echo $templates -> helpers['gfHTML_Helper'] -> addInput(gfHTML_PASSWORD, 'pass2', 'form_text', 'Powtórz Hasło: ', array('default' => @$_POST['pass2'], 'onBlur' => "validPassword2(this)"));
echo $templates -> helpers['gfHTML_Helper'] -> addInput(gfHTML_SELECT, 'country', 'form_text', 'Kraj: ', array('select' => getArrayWithCountry()));
echo $templates -> helpers['gfHTML_Helper'] -> addToken();
echo $templates -> helpers['gfHTML_Helper'] -> addSubmitAndReset('Rejestruj', 'Wyczyść');
echo $templates -> helpers['gfHTML_Helper'] -> closeForm();
}
?>
Revise this Paste