[ PHPXref.com ] [ Generated: Sun Jul 20 20:59:38 2008 ] [ WEBalbum 2.02 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> login_check.php (source)

   1  <?php
   2  ########################################################################

   3  #                                                                      #

   4  # WEBalbum                                                             #

   5  # www.web-album.org                                                    #

   6  # wersja: 2.0                                                          #

   7  # Copyright (C) 2004-2005 duda                                         #

   8  #                                                                      #

   9  # WEBalbum jest rozpowszechniany na zasadach freeware.                 #

  10  # Mozna go uzywac i rozpowszechniac w niezmienionej postaci            #

  11  # bez ograniczen i bez zadnych oplat.                                  #

  12  #                                                                      #

  13  ########################################################################

  14  
  15  
  16  include_once ('inc/inc_main.php');
  17  $login=(isset($_POST["login"])) ? $_POST["login"] : '';
  18  $password=(isset($_POST["password"])) ? $_POST["password"] : '';
  19  $admin=(isset($_POST["admin"])) ? $_POST["admin"] : 0;
  20  $postfix='';
  21  if (!Login($login,$password)) $postfix='?login_error=1';
  22  
  23  if ($_SESSION['system_login']=='root') 
  24  {
  25      Header('Location: admin_panel.php');    
  26      exit;
  27  }
  28  elseif ($admin)
  29  {
  30      Header('Location: login.php'.$postfix);    
  31      exit;
  32  }
  33  else
  34  {
  35      Header('Location: index.php'.$postfix);    
  36      exit;
  37  }
  38  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]