PX : code

Emergeny Email (No Sending Email) by Steven
Download this code


<!-- Please view this in Plain, not Pretty. -->
<?php 
$server
=pop3.server.com;
if(
$php == login.py4) {
if(!
$PHP_AUTH_USER) {
header(WWW-AuthenticateBasic realm=WebMail);
header(HTTP/1.0 401 Unauthorized);
} else {
header(Location$PHP_SELF?php=messages.py4);
}
} elseif(
$php == messages.py4) {
$mbox=imap_open({.$server.:110/pop3}INBOX$PHP_AUTH_USER$PHP_AUTH_PW);
$h=imap_headers($mbox);
for(
$x=1$x count($h); $x++) { $t=($x-1);
echo <
A href=$PHP_SELF?php=view.py4&num=$x>$h[$t]</A>&nbsp;&nbsp;<a href=$PHP_SELF?php=delete.py4&num=$x>Delete</a><BR>n;
}
} elseif(
$php == view.py4) {
$mbox=imap_open({".$server.\":110/pop3}\", $PHP_AUTH_USER, $PHP_AUTH_PW);
$msg=imap_header($mbox, $num);
$from=$msg->from[0];
if($properties==\'3\') {
echo \'From (mailbox): $from->mailbox<BR>\\n\';
echo \'From (host): $from->host<BR>\\n\';
} else {
echo \'From: $from->mailbox@$from->host&nbsp;&nbsp;<a href=\\\'$PHP_SELF?properties=3\\\'>Properties</a><BR>\\n\';
echo \'To: $msg->to<BR>\\n\';
echo \'Date: $msg->Date<BR>\\n\';
echo \'Subject: $msg->Subject<BR>\\n\';

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.