> Private Msg"; if(isset($section) && $section != "") $where .= " > ".ucfirst($section); include "header.php"; if(is_logged_in($user_env, $pass_env, $power_env, $id_env)) { if($section == "" || !isset($section)) { echo "
$skin_tableheading
Private Msg Menu
View Inbox $new_pm New Private Msg(s) and $old_pm Old Private Msg(s)
View Outbox
Send a Private Msg
Manage Blocked Users
Block a User
$skin_tablefooter"; } elseif($section == "inbox") { $upb["def"] = "./db/pms/inbox"; $file_pm = "./db/pms/".$id_env."_inbox"; $file_users = "./db/users"; $file_block = "./db/pms/".$id_env."_block.dat"; if($action == "Delete PMs") { $num = 0; $all = listall($file_pm); $count = count($all); for($i=0;$i<$count;$i++) { $rec = def($all[$i], $upb["def"]); $del = $rec[id]."_del"; if(isset($$del)) { @edit($rec[id], "", $file_pm, "yes"); $num++; } unset($rec, $del); } if($num > 0) { echo "

Successfully Deleted $num Private Msg(s)

"; } else { echo "

No Private Msg(s) Successfully Deleted...

"; } unset($all, $count, $num); } echo "
$skin_tableheading
"; $none = 0; $f = fopen($file_block, 'r'); $old = fread($f, filesize($file_block)); fclose($f); $ids = explode(",", $old); deleteWhiteIndex($ids); $c = count($ids); $all = listall($file_pm); $count = count($all); for($i=0;$i<$count;$i++) { if($all[$i] != "") { $rec = def($all[$i], $upb["def"]); if(@strtotime($rec[date]) > strtotime($lastvisit)) $new = "new"; else $new = " "; if(@$rec[from_lvl] == "1") { $found = false; for($k=0;$k<$c;$k++) { if($rec[from_id] == $ids[$k]) $found = true; } if(!($found)) $ban_text = "Block"; else $ban_text = "BLOCKED!"; } else { $ban_text = "Admin/Mod"; } echo ""; unset($admin_disable, $new, $found, $ban_text); } else { $none++; } unset($rec); } if($none == $count) { echo ""; $disable = "DISABLED"; } echo "
Delete Message Block User Title: By:
$new

$ban_text

$rec[subject] Sent by $rec[from] on $rec[date]
No Messages in your $section


You are not allowed to block Administrators/Moderators"; echo "
$skin_tablefooter"; } elseif($section == "outbox") { $upb["def"] = "./db/pms/outbox"; $file_pm = "./db/pms/".$id_env."_outbox"; $file_users = "./db/users"; $file_block = "./db/pms/".$id_env."_block.dat"; $none = 0; $all = listall($file_pm); $count = count($all); echo "
$skin_tableheading "; for($i=0;$i<$count;$i++) { if($all[$i] != "") { $rec = def($all[$i], $upb["def"]); echo ""; unset($rec); } else { $none++; } unset($rec); } if($none == $count) { echo ""; $disable = "DISABLED"; } echo "
Title: By:
$rec[subject] Sent to $rec[to] on $rec[date]
No Messages in your Inbox
$skin_tablefooter"; } else { redirect("pmsystem.php", "0"); } } else { echo "You are not logged in."; } include "footer.php"; ?>