home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / _header.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  6.4 KB  |  159 lines

  1. <?php
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // <!--Copyright (c) 2005 Pure Networks Inc.  All rights reserved.-->
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Build: 3.0.6121.0 (Stable)
  7. // $Revision: #3 $
  8. //
  9.  
  10. $sPageTitle     = htmlspecialchars(returnPageTitle($sIntoTitle, $sProductNameInformal, $nmSharedPlace, $sPath, $fileName));
  11. $sFeedTitle = "";
  12. if (isValidString($sIntroHeadline))
  13. {
  14.     $sFeedTitle = $sIntroHeadline;
  15. }
  16. else
  17. {
  18.     $sFeedTitle = $sProductNameInformal;
  19. }
  20. ?>
  21. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  22. <html>
  23. <head>
  24. <META NAME="Generator" CONTENT="<?php echo $sParentProductNameInformal ?> 3.0.6121.0 (Stable)"> 
  25. <?php
  26. if ($sNavLocation == "login")
  27. {
  28.     require "_login_js.php";
  29. }
  30. else
  31. {
  32. ?>
  33. <META HTTP-EQUIV=Refresh CONTENT="<?php echo ini_get("session.cookie_lifetime"); ?>; URL=<?php echo $_SERVER['REQUEST_URI']; ?>"> 
  34. <?php
  35. }
  36. ////////////////////////////////////////////////////////////////////////////////
  37. // Add link rel tags for the site's various RSS 2.0 feeds that are available    
  38. ////////////////////////////////////////////////////////////////////////////////
  39. if ($bRssFeedsEnabled)
  40. {
  41.     switch ($sNavPage)
  42.     {
  43.         // let's do a switch case here so we can define different feeds for different parts of the site if we so choose.
  44.         case "folders":
  45.         case "details":
  46.             // we're in a share or detail view of a share's image, let's add the rel link tag for the share's specifc rss feed.
  47.     ?>
  48.             <link rel="alternate" type="application/rss+xml" title="<?php echo ($sPageTitle)?>" href="/rss2/<?php echo ($_GET['share']); ?>">
  49.     <?php
  50.             break;
  51.         default:
  52.             // we're anywhere but a share, let's add the rel link tag for the general sitewide rss feed.
  53.     ?>
  54.             <link rel="alternate" type="application/rss+xml" title="<?php echo ($sFeedTitle)?>" href="/rss2/sitefeed/">
  55.     <?php
  56.             break;
  57.     }
  58. }
  59. ?>
  60.  
  61. <link rel="shortcut icon" href="/favicon.ico">
  62. <title><?php echo $sPageTitle; ?></title>
  63. <?php
  64. require "_styles_import.php";
  65. ?>
  66. </head>
  67. <?php
  68. if ($sNavLocation == "login" && !$bIsLockedOut)
  69. {
  70.     $bIsIE55Plus = false;
  71.     if ((stristr($_SERVER['HTTP_USER_AGENT'], "MSIE 6.0")) OR (stristr($_SERVER['HTTP_USER_AGENT'], "MSIE 5.5")))
  72.     {
  73.         $bIsIE55Plus = true;
  74.     }
  75. ?>
  76.     <body onload="focusLoginInput()" class="MainBodyBackground">
  77.     <!--Copyright (c) 2005 Pure Networks Inc.  All rights reserved.-->
  78. <?php
  79. }
  80. else
  81. {
  82. ?>
  83.     <body class="MainBodyBackground">
  84.     <!--Copyright (c) 2005 Pure Networks Inc.  All rights reserved.-->
  85. <?php
  86. }
  87.  
  88. $sPageTitle = "";
  89. $sSiteTitle = "";
  90. if (isValidString($sIntroHeadline))
  91. {
  92.     $sSiteTitle = $sIntroHeadline;
  93. }
  94. else
  95. {
  96.     $sSiteTitle = $sProductNameInformal;
  97. }
  98.  
  99. if ($sNavLocation != "login")
  100. {
  101. ?>
  102. <div class="PageHeader"><img src="/images/pixel.trans.gif" alt=""></div>
  103. <?php
  104. }
  105. ?>
  106.             <table cellspacing="0" cellpadding="0" width="100%" height="98%" border="0">
  107.                 <tr>
  108.                     <td>
  109.                     <?php
  110.                     if ($sNavLocation != "login")
  111.                     {
  112.                     ?>
  113.                         <div class="Header">
  114.                             <table cellspacing="0" cellpadding="0" border="0" width="100%">
  115.                                 <tr>
  116.                                     <td class="HeaderLeft"><div><img src="/images/pixel.trans.gif" width="1" height="1" alt=""></div></td>
  117.                                     <td class="HeaderMiddle">
  118.                                         <a class="SiteTitle" href="/folders/public" title="Go to home page"><?php echo ($sSiteTitle); ?>   </a>
  119.                                     </td>
  120.                                     <td class="HeaderMiddle">
  121.                                             <div class="SiteTitleLinks">
  122.                                             <?php
  123.                                             if (!$bLoggedIn)
  124.                                             {
  125.                                             ?>
  126.                                                 <a id="SignIn" href="javascript:location.href='/login';" title="Sign in to access files in private folders">Sign In</a>
  127.                                             <?php
  128.                                             }
  129.                                             else
  130.                                             {
  131.                                             ?>
  132.                                                 Signed in to: <strong><?php echo str_replace(" ", " ",truncate_string(htmlspecialchars($sNetworkName), $iNetworkNameTruncateLength, "...", "right", true)); ?></strong>
  133.                                                 <br/>
  134.                                                 <a id="SignOut" href="javascript:location.href='/logout';" title="Sign out and return to public folders">Sign Out</a>
  135.                                                  | 
  136.                                                 <a id="Preferences" href="javascript:location.href='/preferences/preferences.php';" title="Set sitewide preferences">Preferences</a>
  137.                                             <?php
  138.                                             }
  139.                                              ?>
  140.                                               | 
  141.                                              <a target="_new" href="/help" title="Help With <?php echo ($sProductNameInformal); ?>">Help</a>
  142.                                          </div>
  143.                                     </td>
  144.                                     <td class="HeaderRight"><div><img src="/images/pixel.trans.gif" width="1" height="1" alt=""></div></td>
  145.                                 </tr>
  146.                             </table>
  147.                         </div>
  148.                     <?php
  149.                     }
  150.                     ?>
  151.                     </td>
  152.                 </tr>
  153.                 <tr valign="top">
  154.                     <td class="BodyTable">
  155.                         <table cellspacing="0" cellpadding="0" width="100%" border="0">
  156.                         <tr>
  157.                             <td valign="top">
  158.                             <!--Main Content Starts Here-->
  159.