$thePW1->set_type(HAW_INPUT_PASSWORD); $myForm->add_input($thePW1); $thePW2 = new CHAW_input('p2', '', camila_get_translation('camila.login.cipher.pre') . ' ' . $c2 . camila_get_translation('camila.login.cipher.post'), '*N'); $thePW2->set_size(1); $thePW2->set_maxlength(1); $thePW2->set_type(HAW_INPUT_PASSWORD); $myForm->add_input($thePW2); $thePW3 = new CHAW_input('p3', '', camila_get_translation('camila.login.cipher.pre') . ' ' . $c3 . camila_get_translation('camila.login.cipher.post'), '*N'); $thePW3->set_size(1); $thePW3->set_maxlength(1); $thePW3->set_type(HAW_INPUT_PASSWORD); $myForm->add_input($thePW3); } else { if (CAMILA_USERNAME_LOGIN) { $myParOpen = new HAW_raw(HAW_HTML, '<p>'); $myForm->add_raw($myParOpen); if (isset($_REQUEST['username'])) { $cognome = new CHAW_input('username', $_REQUEST['username'], camila_get_translation('camila.login.username') . ': '); } else { $cognome = new CHAW_input('username', '', camila_get_translation('camila.login.username') . ': '); } $cognome->set_size(20); $cognome->set_maxlength(20); $myForm->add_input($cognome); $myParClose = new HAW_raw(HAW_HTML, '</p>'); $myForm->add_raw($myParClose); } else { $myParOpen = new HAW_raw(HAW_HTML, '<p>'); $myForm->add_raw($myParOpen); if (isset($_REQUEST['surname'])) { $cognome = new CHAW_input('surname', $_REQUEST['surname'], camila_get_translation('camila.login.surname') . ': ');