X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fnewmail%2Fnewmail.php;h=da04ec4fa1e8a46ac703e05d1c6a9db531518c04;hp=02eb6437eec3aa44ca02754aa9d483cc9183e986;hb=d9c1dcccb1fe3a547f92cc48f4b964a580ec35ee;hpb=15e6162eacc97158393bc75aed3afeb7b19c24a6 diff --git a/plugins/newmail/newmail.php b/plugins/newmail/newmail.php index 02eb6437..da04ec4f 100644 --- a/plugins/newmail/newmail.php +++ b/plugins/newmail/newmail.php @@ -11,32 +11,38 @@ ** $Id$ ** **/ - - chdir ('../'); - require_once('../src/validate.php'); - require_once('../src/load_prefs.php'); - require_once('../functions/page_header.php'); + chdir('..'); + define('SM_PATH','../'); + + /* SquirrelMail required files. */ + require_once(SM_PATH . 'include/validate.php'); + require_once(SM_PATH . 'include/load_prefs.php'); + require_once(SM_PATH . 'functions/page_header.php'); displayHtmlHeader( _("New Mail"), '', FALSE ); - echo "\n". - '
'. - "\n". - "\n". - "\n". - "\n". - "
\n". - '
' . _("SquirrelMail Notice:") . "
\n". - "

" . - _("You have new mail!") . "

\n". - "
\n". - ''. - "
\n". + echo "\n". + '
'. "\n" . + html_tag( 'table', "\n" . + html_tag( 'tr', "\n" . + html_tag( 'td', '' . _("SquirrelMail Notice:") . '', 'center', $color[0] ) + ) . + html_tag( 'tr', "\n" . + html_tag( 'td', + '
' . + _("You have new mail!") . '

' . "\n" . + '
' . "\n". + ''."\n". + '
', + 'center' ) + ) , + '', '', 'width="100%" cellpadding="2" cellspacing="2" border="0"' ) . + '
' . "\n". - "\n"; + "\n"; ?>