Location: PHPKode > projects > Absolut Engine > absolut-engine-33870/admin/edituser.php
<?
@include("coreclass.php");
$ae=new CEngine();
$ae->EngineInitialize();
$ae->RequestVariables();
$ae->UserVerifySession();
if ($ae->action==2)
{
header("location: http://".$ae->server."/".$ae->path."admin/modify.php?username=".$ae->username."&session=".$ae->session."&command=50&userID=".$ae->userID);
exit;
}
if ($ae->currentuserposition<>1 AND $ae->currentuserID<>$ae->userID) $ae->DisplayError(12);
$ae->DBQuery("SELECT * FROM ".$ae->table[5]." WHERE ID='".$ae->userID."'");
$ae->DBGetRow();
$user=$ae->access["user"];
$fullname=$ae->access["fullname"];
$email=$ae->access["email"];
$position=$ae->access["position"];
$language=$ae->access["language"];
$photo=$ae->access["photo"];
$photothumb=$ae->GetThumbnail($photo);
$otherinfo=$ae->access["otherinfo"];
@include("header.php");
?>
<div id="content">
<form method="post" action="modify.php?command=<? if ($ae->currentuserposition==1) echo 52; else echo 4; ?>" enctype="multipart/form-data">
<table cellspacing="0" class="form">
<tr>
<td width="20%"><strong><? echo $ae->textbasic[0] ?>
</strong></td>
<td>
<? echo $user; ?>
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[1] ?></strong></td>
<td>
<input type="password" name="password" size="30" maxlength="100">
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[2] ?></strong></td>
<td>
<input type="password" name="password2" size="30" maxlength="100">
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[3] ?></strong></td>
<td>
<input type="text" name="fullname" size="50" maxlength="100" value="<? echo $fullname; ?>">
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[27] ?></strong></td>
<td>
<input type="text" name="email" size="30" maxlength="255" value="<? echo $email; ?>">
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[4] ?></strong></td>
<td>
<?
if ($ae->currentuserposition<>1)
{
if ($ae->currentuserposition==1) echo $ae->textbasic[5];
if ($ae->currentuserposition==2) echo $ae->textbasic[6];
if ($ae->currentuserposition==3) echo $ae->textbasic[7];
}
else
{
echo '<select name="position">';
echo '<option value="1"'; if ($position==1) echo ' selected';
echo '>',$ae->textbasic[5],'</option>';
echo '<option value="2"'; if ($position==2) echo ' selected';
echo '>',$ae->textbasic[6],'</option>';
echo '<option value="3"'; if ($position==3) echo ' selected';
echo '>',$ae->textbasic[7],'</option>';
echo '</select>';
}
?>
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[26] ?></strong></td>
<td>
<select name="language">
<?
$languagearray=$ae->RequestLanguageVersions();
while (list($key,$optionvalue)=each($languagearray))
{
echo '<option value="',$optionvalue,'"';
if ($optionvalue==$language) echo ' selected';
echo '>',$optionvalue,'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[30] ?></strong></td>
<td><strong>
<?
if ($photo)
{
echo ' <a href="',$ae->pathimages,$photo,'"><img src="',$ae->pathimages,$photothumb,'"></a> ';
echo ' <input type="checkbox" name="delete[',$i,']" value="1"> ',$ae->textbasic[110],' ',$photo,'<br />';
}
?></strong>
<input type="file" name="file" size="50">
</td>
</tr>
<tr>
<td><strong><? echo $ae->textbasic[31] ?></strong></td>
<td>
<textarea cols="78" rows="5" name="otherinfo"><? echo $otherinfo ?></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="userID" value="<? echo $ae->userID ?>">
<input type="hidden" name="username" value="<? echo $ae->username ?>" />
<input type="hidden" name="session" value="<? echo $ae->session ?>" />
<input type="hidden" name="MAX_FILE_SIZE" value="<? echo $ae->sizemaximages ?>">
<input type="submit" name="Submit" value="<? echo $ae->textbasic[103] ?>" class="button" />
<input type="reset" name="Reset" value="<? echo $ae->textbasic[105] ?>" class="button" />
</td>
</tr>
</table>
</form>
</div>
<? @include("footer.php"); ?>
Return current item: Absolut Engine