Exemplo n.º 1
0
<?php 
if (empty($profile_information)) {
    $profileAdd = new UserProfile($GLOBALS['conx']);
    $profileAdd->sessionPersistent("ProfileEditSave", "index.php", 3600);
    $profileAdd->newAddForm("ProfileEditSave");
    $profileAdd->form->addParam("goto", "settings_myinfo.php");
    $profileAdd->form->setGotFile(true);
    echo $profileAdd->form->getFormHeader();
    echo $profileAdd->form->getFormEvent();
} else {
    if (is_object($_SESSION['ProfileEditSave'])) {
        $ProfileEdit = $_SESSION['ProfileEditSave'];
        $ProfileEdit->getProfileInformation((int) $_SESSION['do_User']->iduser);
    } else {
        $ProfileEdit = new UserProfile($GLOBALS['conx']);
        $ProfileEdit->sessionPersistent("ProfileEditSave", "index.php", 120);
        $ProfileEdit->getProfileInformation((int) $_SESSION['do_User']->iduser);
    }
    $ProfileEdit->newUpdateForm('ProfileEditSave');
    $ProfileEdit->setRegistry("user_profile");
    $ProfileEdit->form->addParam("goto", "settings_myinfo.php");
    $ProfileEdit->form->setGotFile(true);
    echo $ProfileEdit->form->getFormHeader();
    echo $ProfileEdit->form->getFormEvent();
}
?>
    <?php 
echo $_SESSION['ProfileEditSave']->iduser;
?>
          
  <table class="tplain">