putRowData('administrator', $data); } } else { $error = 6; } } else { $error = $row; } } switch ($error) { case 0: $error_message = '
User authenticated and Profile updated.
'; break; case 1: $error_message = '
Your current password is incorrect!
'; break; case 3: $error_message = '
Nothing to update! New password and new email are empty.
'; break; case 4: $error_message = '
Password not updated because it is empty. Email is updated.
'; break; case 5: $error_message = '
Email not updated because it is empty. Password is updated.
'; break; case 6: $error_message = '
New passwords do not match.
'; break; default: $error_message = '
For your security, verify your current password
again before updating your profile.
'; break; } if ($error == "1") { } elseif ($error == "2") { } openBox("Edit Your Profile", "lock", 11, "

Current Password: For your security, this application requires you to authenticate yourself before you can modify the admin profile. Please enter your existing password for authentication.

Username: Enter a new admin user name. A name like admin is fine, but something less obvious would be more secure.

New Password: Please type in a new strong password (at least six characters long), and verify it.

Email: Optional: Please provide an email address where you can receive password retrieval information, in case you forget your password.

"); $current = $db->getRowData('administrator'); ?>