user_is_admin) { header("Location: login.php"); exit; } include "top.php"; $row = mysql_fetch_object(mysql_query_wrapper("select * from users where user_id='{$_GET['user_id']}'")); ?>

Edit user info

user_id == $user->user_id || !isset($row->user_id)) { ?> user_id && 0 == (mysql_query_one_value("select count(*) from notes where note_user_id='$row->user_id'") + mysql_query_one_value("select count(*) from tickets where ticket_assigned_to='$row->user_id'"))) { ?>
Name
Email address
Email notification user_notify_newticket ? 'checked' : '')?>> Send email to me when a new ticket is submitted
user_notify_assign ? 'checked' : '')?>> Send email to me when someone assigns a ticket to me
user_notify_ownticket ? 'checked' : '')?>> Send email to me when someone adds a note to a ticket which is assigned to me
Change password
(confirmation)