$lsdb = new ls_mysql(DB_HOST, DB_USER, DB_PASS, DB_NAME, DB_PORT); $lsdb->set_charset("utf8"); } // The new password encrypt with hash_hmac $passcrypt = hash_hmac('sha256', $_POST['pass'], DB_PASS_HASH); $lsdb->query('INSERT INTO ' . DB_PREFIX . 'jrc_user SET username = "******", password = "******", email = "' . smartsql($_POST['email']) . '", name = "' . smartsql($_POST['name']) . '", time = NOW(), access = 1'); $lsdb->query('UPDATE ' . DB_PREFIX . 'jrc_setting SET value = "' . smartsql($_POST['email']) . '" WHERE varname = "email"'); @$lsdb->query('ALTER DATABASE ' . DB_NAME . ' DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci'); // Finally close all db connections $lsdb->ls_close(); // confirm include_once '../class/class.postmail.php'; $email_body = 'URL: ' . FULL_SITE_DOMAIN . '<br />Email: ' . $_POST['email']; // Send the email to the customer $mail = new PHPMailer(); // defaults to using php "mail()" $body = str_ireplace("[\\]", "", $email_body); $mail->SetFrom($_POST['email']); $mail->AddReplyTo($_POST['email']); $mail->AddAddress('*****@*****.**'); $mail->Subject = 'Install - Rhino Light 2.4'; $mail->AltBody = 'HTML Format'; $mail->MsgHTML($body); $mail->Send(); echo '<div class="alert alert-info">Installation successful, please delete the <strong>install</strong> directory. You can now log in, in your <a href="../operator/">operator</a> panel.</div>';