[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/ -> anon_wrapper.php (source)

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare                                                               *
   4      * http://www.egroupware.org                                                *
   5      * Written by Dan Kuykendall <seek3r@phpgroupware.org>                      *
   6      * --------------------------------------------                             *
   7      *  This program is free software; you can redistribute it and/or modify it *
   8      *  under the terms of the GNU General Public License as published by the   *
   9      *  Free Software Foundation; either version 2 of the License, or (at your  *
  10      *  option) any later version.                                              *
  11      \**************************************************************************/
  12  
  13      /* $Id: anon_wrapper.php 20295 2006-02-15 12:31:25Z  $ */
  14  
  15      // TODO:
  16      // Limit which users can access this program (ACL check)
  17      // Global disabler
  18      // Detect bad logins and passwords, spit out generic message
  19  
  20      // If your are going to use multiable accounts, remove the following lines
  21      $login  = 'anonymous';
  22      $passwd = 'anonymous';
  23  
  24      $GLOBALS['egw_info']['flags'] = array(
  25          'disable_Template_class' => True,
  26          'login' => True,
  27          'currentapp' => 'login',
  28          'noheader'  => True
  29      );
  30      include('./header.inc.php');
  31  
  32      // If your are going to use multiable accounts, remove the following lines 
  33      // You must create the useraccount and check its permissions before use 
  34  
  35      $login  = 'anonymous'; 
  36      $passwd = 'anonymous'; 
  37  
  38      $sessionid = $GLOBALS['egw']->session->create($login,$passwd,'text');
  39      $GLOBALS['egw']->redirect($GLOBALS['egw']->link('/index.php'));
  40  ?>


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