> User CP"; if(isset($u_edit)) { include "func.inc.php"; if(!is_logged_in($user_env, $pass_env, $power_env, $id_env)) { echo ""; exit; } else { if (!isset($u_email)) { include "header.php"; echo "please enter your email!"; include "footer.php"; exit; } if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*$", $u_email)) { include "header.php"; echo "please enter a valid email!"; include "footer.php"; exit; } $u_sig = chop($u_sig); if(substr(trim(strtolower($u_site)), 0, 7) != "http://") { $u_site = "http://" . $u_site; } if(strlen($u_newpass) > 0) { if($u_newpass != $u_newpass2) { include "header.php"; echo "your pass and pass confirm are not matching!"; include "footer.php"; exit; } if(strlen($u_newpass) < 4) { include "header.php"; echo "your password has to be longer then 4 characters"; include "footer.php"; exit; } setcookie("pass_env", "", time()+(3600*100)); } $r = get($id_env, "./db/users"); if(strlen($u_newpass) > 0) { $pass = t_encrypt($u_newpass, $key); } else { @$pass = $r[password]; } @edit($id_env, "$user_env<~>$pass<~>$power_env<~>$u_email<~>$show_email<~>$email_list<~>$u_loca<~>$u_site<~>$avatar<~>$u_icq<~>$u_aim<~>$u_msn<~>$u_sig<~>$r[posts]<~>$r[date_added]<~>$id_env", "./db/users", "no"); if(strlen($u_newpass) > 0) { setcookie("user_env", "", time()-(800*100)); setcookie("power_env", "", time()-(800*100)); setcookie("id_env", "", time()-(800*100)); $ht = ""; } else { $ht = ""; } include "header.php"; echo "your profile has been changed sucessfully"; echo $ht; include "footer.php"; } } elseif (isset($action)) { if(!isset($id)) { echo ""; exit; } else { include "func.inc.php"; $rec = get($id, "./db/users"); include "db/config2.dat"; if( $rec[ 'level' ] == '1' ) { if( $rec[ 'posts' ] >= $member_post1 ) { $status = $member_status1; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $member_post2 ) { $status = $member_status2; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $member_post3 ) { $status = $member_status3; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $member_post4 ) { $status = $member_status4; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $member_post5 ) { $status = $member_status5; $statuscolor = 'black'; } } elseif($rec[ 'level' ] == '2' ) { if( $rec[ 'posts' ] >= $mod_post1 ) { $status = $mod_status1; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $mod_post2 ) { $status = $mod_status2; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $mod_post3 ) { $status = $mod_status3; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $mod_post4 ) { $status = $mod_status4; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $mod_post5 ) { $status = $mod_status5; $statuscolor = 'black'; } } elseif($rec[ 'level' ] == '3' ) { if( $rec[ 'posts' ] >= $admin_post1 ) { $status = $admin_status1; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $admin_post2 ) { $status = $admin_status2; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $admin_post3 ) { $status = $admin_status3; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $admin_post4 ) { $status = $admin_status4; $statuscolor = 'black'; } if( $rec[ 'posts' ] >= $admin_post5 ) { $status = $admin_status5; $statuscolor = 'black'; } } else { $status = 'Member'; $statuscolor = 'black'; } include "header.php"; echo "
$skin_tableheading "; } if(@$rec[avatar] != "") { echo ""; } if(@$rec[url] != "") { echo ""; } if(@$rec[icq] != "") { echo ""; } if(@$rec[aim] != "") { echo ""; } if(@$rec[msn] != "") { echo ""; } if(@strlen($HTTP_POST_VARS["u_sig"]) > 200) { include "header.php"; print "You cannot have more than 200 characters in your signature."; include "footer.php"; exit; } if(@$rec[sig] != "") { echo ""; } echo ""; echo ""; echo "
Profile
login $rec[user_name]
status $status
email "; if(@$rec[view_email] == "on") { echo "$rec[email]"; } else { echo "not public"; } if(@$rec[location] != "") { echo "
location $rec[location]
avatar "; } if(@$rec[avatar] != "") { echo "
"; } else { echo "
homepage $rec[url]
icq  $rec[icq]
aim  $rec[aim]
msn  $rec[msn]
signature ".@undo_format($rec[sig])."
date registered $rec[date_added]
total number of posts $rec[posts]
$skin_tablefooter"; include "footer.php"; } } else { include "func.inc.php"; if(!isset($user_env) || !isset($pass_env) || !isset($id_env)) { echo ""; exit; } else { if(!is_logged_in($user_env, $pass_env, $power_env, $id_env)) { echo ""; exit; } else { $rec = get($id_env, "./db/users"); @$rec[sig] = undo_format($rec[sig]); include "header.php"; @$rec[sig] = str_replace("
", "", $rec[sig]); @$rec[sig] = str_replace("
", "", $rec[sig]); @$rec[sig] = str_replace("
", "", $rec[sig]); @$rec[sig] = str_replace("
", "", $rec[sig]); echo "
$skin_tableheading "; if(isset($power_env) && isset($user_env) && isset($pass_env) && isset($id_env)) { if(is_logged_in($user_env, $pass_env, $power_env, $id_env) && $power_env >= 2) { echo ""; } else { echo ""; } } echo "
Edit Profile
login $rec[user_name]
new pass
new pass confirm
email  $rec[email]
email
Email the Forum Administrator to change your email address.
 $rec[email]
Make email address public in profile?    Privacy Policy
Add email to UPB discussion forums mailing list?
location
avatar       read this for avatar info!    "; if(@$rec[avatar] != "") { echo "
"; } echo "
homepage
icq
aim
msn
signature
$skin_tablefooter "; include "footer.php"; } } } ?>