"*", 
            											  1); 
            											  
            											  
            
            		*/
        }
        /* --- The following line has been uncommented by Gulyx --- */
        aux::mail($_REQUEST['email'], "{$GLOBALS['config']['website']['name']} Login data", $mail->get(), $GLOBALS['config']['website']['email']);
    }
}
/* LOCAL END */
$main = new Skin();
$form1 = new UserForm("dataEntry", $usersEntity);
$form1->addSection("User Management");
$form1->addText("username", "username", 20, MANDATORY);
$form1->addSection("personal data");
$form1->addText("email", "Email", 50, MANDATORY);
$form1->addText("name", "Name", 40, MANDATORY);
$form1->addText("surname", "Surname", 40, MANDATORY);
$form1->addSelectFromReference2($facultyRoleEntity, "id_role", "Position");
$form1->addSelectFromReference2($ssdEntity, "id_ssd", "SSD");
$form1->addSelectFromReference2($areaEntity, "id_area", "Macro Area");
$form1->addSelectFromReference2($resGroupEntity, "id_resgroup", "Research Group");
$form1->addText("phone", "Phone", 20);
$form1->addSelectFromReference2($buildingEntity, "building_id", "Building");
$form1->addText("room", "Room", 15);
#$form1->addText("fax", "Fax", 20);
$form1->addFile("picture", "Picture");
$form1->addCheck("Active", ":active:*:CHECKED");
$form1->addCheck("Home", ":active_home:*:CHECKED");
        $mail->setContent("message", $_REQUEST['message']);
        $mail->setContent("email", $_REQUEST['email']);
        if (isset($GLOBALS['homeEntity'])) {
            if (isset($_REQUEST['home'])) {
                $mail->setContent("home", "http://www.di.univaq.it/home.php?username={$_REQUEST['username']}");
                $GLOBALS['homeEntity']->insertItem(NULL, "{$_REQUEST['username']}", date('YmdHi'), date('YmdHi'), "Generale", "General", "Home", "Home", "Pagina provvisoria di {$_REQUEST['name']} {$_REQUEST['surname']}", "Temporary page of {$_REQUEST['name']} {$_REQUEST['surname']}", "*", 1);
            }
            $config = Config::getInstance()->getConfigurations();
            Parser::mail($_REQUEST['email'], "{$config['website']['name']} Login data", $mail->get(), $config['website']['email']);
        }
    }
}
/* LOCAL END */
$main = new Skin("system");
InitGraphic::getInstance()->createSystemGraphic($main);
$form1 = new UserForm("dataEntry", $usersEntity);
$form1->addSection("User Management");
$form1->addText("username", "Username", 50, MANDATORY);
$form1->addPassword("password", "Password");
$form1->addSection("personal data");
$form1->addText("email", "Email", 50, MANDATORY);
$form1->addText("name", "Name", 40, MANDATORY);
$form1->addText("surname", "Surname", 40, MANDATORY);
$form1->addCheck("active", "Active");
$form1->addCheck("active_newsletter", "Newsletter");
$form2 = new RelationForm("dataEntry2", $usersGroupsRelation);
$form1->addSection("usergroups");
$form2->addRelationManager("groups", "Groups");
$form1->triggers($form2);
$main->setContent("body", $form1->requestAction());
$main->close();