[ Index ] |
|
Code source de Horde 3.1.3 |
1 <?php 2 /** 3 * $Horde: horde/scripts/cookie_login.php,v 1.2.2.2 2006/01/01 21:29:09 jan Exp $ 4 * 5 * Copyright 2005-2006 Jan Schneider <jan@horde.org> 6 * 7 * See the enclosed file COPYING for license information (LGPL). If you did 8 * 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 COOKIE auth. 18 if (empty($_COOKIE['user']) || empty($_COOKIE['password']) || 19 !$auth->authenticate($_COOKIE['user'], array('password' => $_COOKIE['password']))) { 20 header('Location: ' . Horde::applicationUrl('login.php?logout_reason=' . AUTH_REASON_BADLOGIN, true)); 21 exit; 22 } 23 24 $url = Util::getFormData('url'); 25 if (empty($url)) { 26 $url = Horde::applicationUrl('index.php', true); 27 } 28 header('Location: ' . $url);
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |