$my_css[] = "list.css";
$my_css[] = "user_info.css";
include "header.php";
$action = $_POST["action"];
if ($action == 'proc_edit') {
if(!$curr_user) {
$success = 0;
} else {
$new_pass = 0;
$new_email = 0;
$new_username = 0;
if ($_POST['username'] != $curr_user->username) {
$curr_user->username = $_POST['username'];
$new_username = 1;
}
if ($_POST['password']) {
$curr_user->password = md5($_POST['password']);
$new_pass = 1;
}
if ($_POST['email']) {
$curr_user->email = $_POST['email'];
$new_email = 1;
}
if ($_POST['realname'] == '') {
$curr_user->realname = null;
} else {
$curr_user->realname = $_POST['realname'];
}
if ($_POST['scaname'] == '') {
$curr_user->scaname = null;
} else {
$curr_user->scaname = $_POST['scaname'];
}
$curr_user->bio = $_POST["bio"];
$pass_conf = md5($_POST['pass_conf']);
$email_conf = $_POST['email_conf'];
if ($_POST['kingdom']) {
$curr_user->kingdom = $_POST['kingdom'];
}
if ($_POST['local_group']) {
$curr_user->local_group = $_POST['local_group'];
}
if ($new_username && $curr_user->checkusername() == 0) {
echo '
if ($_GET["id"]) {
$user = fpUser::initFromDB($_GET["id"]);
?>
$articles = fpArticle::listArticles($user->id, '', '', '', '', '', 0, 0, 12)
?>
Recent Submissions By This User
|
$row_color = 0;
foreach ($articles as $article) {
echo '' . "\n";
echo ' ' . "\n";
echo ' ' . date("m/d/Y", $article->added) . '';
echo " | \n";
echo '' . "\n";
echo ' '
. $article->title . " \n";
echo " | \n";
echo "
\n";
$row_color = $row_color ^ 1;
}
?>
if ($user->realname) { ?>
}
if ($user->scaname) { ?>
} ?>
if ($user->bio) { ?>
} ?>
} else { ?>
No user was selected!
} ?>
include "footer.php";
?>