home *** CD-ROM | disk | FTP | other *** search
/ PCNet 2006 April / PCnet 2006-06.4.iso / shareware / nmsetup.exe / WebServer / web / authorize.php < prev    next >
Encoding:
PHP Script  |  2006-05-01  |  772 b   |  30 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: #1 $
  8. //
  9. require '_util.php';
  10. session_start();
  11. if (is_user_logged_on() == 0) // not logged in that is...
  12. {
  13.     // code in here will determine if the system is authorized to allow use of RA
  14.     // Do we have an error code to pass along?
  15.     if (isset($_GET['errorcode']))
  16.     {
  17.         gotoAbs('/login' . $_GET['errorcode']);
  18.         exit();
  19.     }
  20.     else
  21.     {
  22.         gotoAbs('/folders/public');
  23.         exit();
  24.     }
  25. }
  26. else
  27. {
  28.     goto_logged_in_url();
  29. }
  30. ?>