[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/templates/fallback/content/ -> affiliate_logout.tpl.php (source)

   1  <table border="0" width="100%" cellspacing="0" cellpadding="0">
   2        <tr>
   3          <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
   4            <tr>
   5              <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
   6            </tr>
   7            <tr>
   8              <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
   9            </tr>
  10            <tr>
  11  <?php
  12    session_start();
  13    $old_user = $affiliate_id;  // store  to test if they *were* logged in
  14    $result = session_unregister("affiliate_id");
  15  
  16  //session_destroy();
  17  
  18    if (!empty($old_user)) {
  19      if ($result) { // if they were logged in and are not logged out 
  20        echo '            <td class="main">' . TEXT_INFORMATION . '</td>';
  21      } else { // they were logged in and could not be logged out
  22        echo '            <td class="main">' . TEXT_INFORMATION_ERROR_1 . '</td>';
  23      } 
  24    } else { // if they weren't logged in but came to this page somehow
  25      echo '            <td class="main">' . TEXT_INFORMATION_ERROR_2 . '</td>';
  26    }
  27  ?>
  28            </tr>
  29          </table></td>
  30        </tr>
  31        <tr>
  32          <td align="right" class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
  33        </tr>
  34      </table>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7