예제 #1
0
파일: index.php 프로젝트: LOVDnl/LOVD3
     if (!lovd_error()) {
         // Gather information and go to next page.
         // Prepare password...
         $_POST['password'] = lovd_createPasswordHash($_POST['password_1']);
         unset($_POST['password_1'], $_POST['password_2']);
         print '      Account details OK. Ready to proceed to the next step.<BR>' . "\n" . '      <BR>' . "\n\n";
         lovd_printInstallForm();
         $_T->printFooter();
         exit;
     } else {
         // Errors, thus we must return to the form. Remove the password fields!
         unset($_POST['password_1'], $_POST['password_2']);
     }
 } else {
     // Default values.
     $_USER->setDefaultValues();
 }
 if (!isset($_GET['sent'])) {
     print '      Please fill in the Administrator\'s account details and press \'Continue\' to continue the installation.<BR>' . "\n" . '      <BR>' . "\n\n";
 }
 lovd_errorPrint();
 // Tooltip JS code.
 lovd_includeJS('inc-js-tooltip.php');
 // Table.
 print '      <FORM action="install/?step=' . $_GET['step'] . '&amp;sent=true" method="post">' . "\n";
 // Array which will make up the form table.
 $aForm = array_merge($_USER->getForm(), array('skip', array('', '', 'submit', 'Continue &raquo;')));
 lovd_viewForm($aForm);
 print '</FORM>' . "\n\n";
 $_T->printFooter();
 exit;
예제 #2
0
파일: users.php 프로젝트: LOVDnl/LOVD3
         // Thank the user...
         $_T->printHeader();
         $_T->printTitle();
         lovd_showInfoTable('Successfully created ' . (ACTION == 'create' ? 'the user' : 'your') . ' account!' . (!$bMail ? '' : '<BR>We\'ve sent ' . (ACTION == 'create' ? 'the user' : 'you') . ' an email containing ' . (ACTION == 'create' ? 'the' : 'your') . ' account information.'), 'success');
         if ($bMail === false) {
             lovd_showInfoTable('Due to an error, we couldn\'t send an email containing the account information. Our apologies for the inconvenience.', 'stop');
         }
         $_T->printFooter();
         exit;
     } else {
         // Because we're sending the data back to the form, I need to unset the password fields!
         unset($_POST['password'], $_POST['password_1'], $_POST['password_2']);
     }
 } else {
     // Default values.
     $_DATA->setDefaultValues();
     // ORCID DATA?
     if ($_POST['orcid_id'] != 'none') {
         $_POST['name'] = $_SESSION['orcid_data']['name'];
         $_POST['email'] = $_SESSION['orcid_data']['email'];
         $_POST['countryid'] = $_SESSION['orcid_data']['countryid'];
     }
 }
 $_T->printHeader();
 $_T->printTitle();
 if (GET) {
     print '      To ' . (ACTION == 'create' ? 'create a new user' : 'register as a new submitter') . ', please fill out the form below.<BR>' . "\n" . '      <BR>' . "\n\n";
 }
 if (ACTION == 'register') {
     lovd_showInfoTable('Please note that you do <B>NOT</B> need to register to view the data available at these pages. You only need an account for submitting new variants.', 'warning');
 }