Location: PHPKode > scripts > GigKalender > user/editCurrentUser.php
<?php
/*
    CREATIVE COMMONS - Attribution-No Derivative Works 3.0 Germany:
    - You may not alter, transform, or build upon this work.
    - Dieses Werk darf nicht bearbeitet oder in anderer Weise verändert werden.
*/
  if ( !isset($UserName) ) $UserName = '';
  if ( !isset($UserStatus) ) $UserStatus = '';
  if ( !isset($UserCurrentPassword) ) $UserCurrentPassword = '';
  if ( !isset($Input_UserCurrentPassword) ) $Input_UserCurrentPassword = '';
  if ( !isset($UserNewPassword) ) $UserNewPassword = '';
  if ( !isset($UserNewPasswordRepeated) ) $UserNewPasswordRepeated = '';
  if ( !isset($UserEmailadress) ) $UserEmailadress = '';
  if ( !isset($UserLanguage) ) $UserLanguage = '';
  if ( !isset($UserFirstDayOfWeek) ) $UserFirstDayOfWeek = '';
  //if ( !isset($UserBackendCalenderListCols) ) $UserBackendCalenderListCols = $StandardUserBackendCalenderListCols;
  if ( !isset($uid) ) $uid = '';
  if ( !isset($senden) ) $senden = '';
  if ( !isset($job) ) $job = '';
  // POST-Variablen definieren
    if ( $senden )
    {
      
    }
    else
    {
      $SQL = "SELECT * FROM ".$prefix."user Where UserName = '".getCurrentUser()."'";
      $resultat = mysql_query($SQL);
      while ($row = mysql_fetch_array($resultat)) { extract($row); }
    }
  // Formular überprüfen
    if ( $senden
         && $Input_UserCurrentPassword
         && $Input_UserCurrentPassword==getCurrentUserVar('UserCurrentPassword')
         && $UserNewPassword==$UserNewPasswordRepeated
         && $UserEmailadress
         && checkEmail ($UserEmailadress)
         && $UserLanguage
         && loggedIn()
         && ($UserNewPassword=='' OR strlen($UserNewPassword)>=$MinUserPasswordChars)
         && $UserFirstDayOfWeek
       )
    { $FormularKorrektAusgefuellt = true; }
    else { $FormularKorrektAusgefuellt = false; }

  if ( !loggedIn() ) { echo $L_003; }
  else
  {
    // Inhalt hier einfügen
      if ($FormularKorrektAusgefuellt == true)
      {
        if ( $UserNewPassword=="" ) $UserNewPassword = $Input_UserCurrentPassword;
        if ( editCurrentUser( $UserNewPassword, $UserEmailadress, $UserLanguage, $UserFirstDayOfWeek))
          echo $L_053.'<br />';
        else { echo $L_054.'<br />'; }
        echo '<br />
                <form method="post" action="index.php?submenu=user&amp;page=editCurrentUser">
                  <fieldset>               
                    <input type="submit" value="'.$L_Button26.'" class="button" />
                  </fieldset>
                </form>';
      }
      else
      {
        echo '<form id="addUser" method="post" action="index.php?submenu=user&amp;page=editCurrentUser">
                <table summary="addUser">';
        //  UserName
          echo '<tr>
                  <td>'.$L_UserName.':</td>
    		          <td>'.getCurrentUser().'</td>
  	            </tr>';
        include ('admin/includes/addUser/UserLanguage.php');
        include ('admin/includes/addUser/UserFirstDayOfWeek.php');
        include ('admin/includes/addUser/UserCurrentPassword.php');
        include ('admin/includes/addUser/UserNewPassword.php');
        include ('admin/includes/addUser/UserNewPasswordRepeated.php');
        include ('admin/includes/addUser/UserEmailadress.php');
        
        //include ('admin/includes/addUser/UserBackendCalenderListCols.php');
        // Buttons
          echo '<tr>
                  <td></td>
                  <td>
                    <input type="submit" name="senden" value="'.$L_Button01.'" class="button" />
      		          <input type="button" value="'.$L_Button03.'" onclick="self.location.href=\'index.php?submenu=user&amp;page=editCurrentUser\'" class="button" />
      		          <input type="hidden" name="CurrentUserName" value="'.getCurrentUser().'" />
      		          <input type="hidden" name="UserSession" maxlength="32" value="'.$UserSession.'" readonly="readonly" />
                  </td>
                </tr>
              </table>
            </form>';
      }
  }
?>
Return current item: GigKalender