[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/scripts/ -> get_login.php (source)

   1  <?php
   2  /**
   3   * $Horde: horde/scripts/get_login.php,v 1.3.10.3 2006/01/01 21:29:09 jan Exp $
   4   *
   5   * Copyright 2004-2006 Joel Vandal <jvandal@infoteck.qc.ca>
   6   *
   7   * See the enclosed file COPYING for license information (LGPL). If you
   8   * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
   9   */
  10  
  11  @define('AUTH_HANDLER', true);
  12  @define('HORDE_BASE', dirname(__FILE__) . '/..');
  13  require_once  HORDE_BASE . '/lib/base.php';
  14  
  15  $auth = &Auth::singleton($conf['auth']['driver']);
  16  
  17  // Check for GET auth.
  18  if (empty($_GET['user']) || !$auth->authenticate($_GET['user'], array('password' => $_GET['pass']))) {
  19      header('Location: ' . Horde::applicationUrl('login.php?logout_reason=logout'));
  20      exit;
  21  }
  22  
  23  header('Location: ' . Horde::applicationUrl('index.php'));


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7