added first name and last name fields to installer

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40605 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
jshipman 2007-08-21 02:53:30 +00:00
parent fc66aa6797
commit 987afdab33

View File

@ -598,6 +598,16 @@ PHP
$dbAdmin->doBuild(true);
$adminmember = DataObject::get_one('Member',"`Email`= '".$_REQUEST['username']."'");
if($adminmember){
if($adminmember->_isAdmin()){
$adminmember->FirstName = $_REQUEST['firstname'];
$adminmember->Surname = $_REQUEST['surname'];
$adminmember->write();
}
}
echo "<li>Checking mod_rewrite works</li>";
$_SESSION['username'] = $_REQUEST['username'];