You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ryzom-core/ryzom/tools/server/www/mailbox.php

33 lines
658 B
PHP

<?php
include_once('utils.php');
importParam('page');
unset($user);
$user = $user_login;
$user_dir = build_user_dir($user, $shard);
$fname = $user_dir.'mailbox.html';
if (!file_exists($fname))
{
include_once('mail_utils.php');
build_mail_page($user);
}
$fname = $user_dir.'mailbox'.(isset($page) && $page!="" && $page!="0" ? "_$page" : '').'.html';
if (!file_exists($fname))
die("INTERNAL ERROR 10");
$f = fopen($fname, 'r');
echo fread($f, filesize($fname));
fclose($f);
// remove new_mails file when user checks its mailbox
$fname = $user_dir.'new_mails';
if (file_exists($fname))
unlink($fname);
/* display_time(); */
?>