home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 May / INTERNET103.ISO / pc / software / windows / building / php_nuke / html / modules / webmail / mailheader.php < prev    next >
Encoding:
PHP Script  |  2002-09-16  |  4.1 KB  |  96 lines

  1. <?php
  2.  
  3. /*************************************************************************/
  4.  #  Mailbox 0.9.2a   by Sivaprasad R.L (http://netlogger.net)             #
  5.  #  eMailBox 0.9.3   by Don Grabowski  (http://ecomjunk.com)              #
  6.  #          --  A pop3 client addon for phpnuked websites --              #
  7.  #                                                                        #
  8.  # This program is distributed in the hope that it will be useful,        #
  9.  # but WITHOUT ANY WARRANTY; without even the implied warranty of         #
  10.  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          #
  11.  # GNU General Public License for more details.                           #
  12.  #                                                                        #
  13.  # You should have received a copy of the GNU General Public License      #
  14.  # along with this program; if not, write to the Free Software            #
  15.  # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.              #
  16.  #                                                                        #
  17.  #             Copyright (C) by Sivaprasad R.L                            #
  18.  #            Script completed by Ecomjunk.com 2001                       #
  19. /*************************************************************************/
  20.  
  21. if (!eregi("modules.php", $PHP_SELF)) {
  22.     die ("You can't access this file directly...");
  23. }
  24.  
  25. require_once("mainfile.php");
  26. $module_name = basename(dirname(__FILE__));
  27. get_lang($module_name);
  28.  
  29. title("$sitename: "._WEBMAILSERVICE."");
  30.  
  31. if (is_user($user)) {
  32.     include("modules/Your_Account/navbar.php");
  33.     OpenTable();
  34.     nav();
  35.     CloseTable();
  36.     echo "<br>";
  37. }
  38.  
  39. function mailimg($gfile) {
  40.     global $ThemeSel, $Default_Theme, $user, $cookie, $module_name;
  41.     $ThemeSel = get_theme();
  42.     if (file_exists("themes/$ThemeSel/images/webmail/$gfile")) {
  43.     $mailimg = "themes/$ThemeSel/images/webmail/$gfile";
  44.     } else {
  45.     $mailimg = "modules/$module_name/images/$gfile";
  46.     }
  47.     return($mailimg);
  48. }
  49.  
  50. OpenTable();
  51. echo "<b><font class=\"option\"><center>"._WEBMAILMAINMENU."</center></font></b>"
  52.     ."<br><br>"
  53.     ."<table align=\"center\" width=\"100%\"><tr><td width=\"15%\" align=\"center\">";
  54.  
  55. $mailimg = mailimg("mailbox.gif");
  56. echo "<a href=\"modules.php?name=$module_name\"><IMG SRC=\"$mailimg\" border=\"0\" alt=\""._MAILBOX."\" title=\""._MAILBOX."\"></a></td>";
  57.  
  58. if ($email_send == 1) {
  59.     $mailimg = mailimg("compose.gif");
  60.     echo "<td align=\"center\" width=\"15%\">"
  61.     ."<a href=\"modules.php?name=$module_name&file=compose\"><img src=\"$mailimg\" border=\"0\" alt=\""._COMPOSE."\" title=\""._COMPOSE."\"></a></td>";
  62. }
  63.  
  64. $mailimg = mailimg("settings.gif");
  65. echo "<td width=\"15%\" align=\"center\">"
  66.     ."<a href=\"modules.php?name=$module_name&file=settings\"><IMG SRC=\"$mailimg\" border=\"0\" alt=\""._SETTINGS."\" title=\""._SETTINGS."\"></a></td>";
  67.  
  68. $mailimg = mailimg("contact.gif");
  69. echo "<td align=\"center\" width=\"15%\">"
  70.     ."<a href=\"modules.php?name=$module_name&file=contactbook\"><IMG SRC=\"$mailimg\" border=\"0\" alt=\""._ADDRESSBOOK."\" title=\""._ADDRESSBOOK."\"></a></td>";
  71.  
  72. $mailimg = mailimg("search.gif");
  73. echo "<td width=\"15%\" align=\"center\">"
  74.     ."<a href=\"modules.php?name=$module_name&file=contactbook&op=search\"><IMG SRC=\"$mailimg\" border=\"0\" alt=\""._SEARCHCONTACT."\" title=\""._SEARCHCONTACT."\"></a></td>"
  75.     ."<td width=\"15%\" align=\"center\">";
  76.  
  77. $mailimg = mailimg("logout.gif");
  78. if (is_user($user) AND is_active("Your_Account")) {
  79.     echo "<a href=\"modules.php?name=Your_Account\"><IMG SRC=\"$mailimg\" border=\"0\" alt=\""._EXIT."\" title=\""._EXIT."\"></a></td>";
  80. } else {
  81.     echo "<a href=\"index.php\"><IMG SRC=\"$mailimg\" border=\"0\" alt=\""._EXIT."\" title=\""._EXIT."\"></a></td>";
  82. }
  83. echo "<tr>"
  84.     ."<td align=\"center\">"._MAILBOX."</td>";
  85. if ($email_send == 1) {
  86.     echo "<td align=\"center\">"._COMPOSE."</td>";
  87. }
  88. echo "<td align=\"center\">"._SETTINGS."</td>"
  89.     ."<td align=\"center\">"._ADDRESSBOOK."</td>"
  90.     ."<td align=\"center\">"._SEARCHCONTACT."</td>"
  91.     ."<td align=\"center\">"._EXIT."</td></tr>"
  92.     ."</table>";
  93. CloseTable();
  94. echo "<br>";
  95.  
  96. ?>