Qual: Remove deprecated files
This commit is contained in:
parent
ee999273ba
commit
351e612563
@ -1,4 +1,4 @@
|
||||
#Tue Jun 16 23:27:50 CEST 2009
|
||||
#Tue Jul 28 19:24:41 CEST 2009
|
||||
eclipse.preferences.version=1
|
||||
encoding//dev/initdemo/initdemo.sql=UTF-8
|
||||
encoding//dev/skeletons/modMyModule.class.php=ISO-8859-1
|
||||
@ -641,7 +641,6 @@ encoding//htdocs/theme/eldy/graph-color.php=ISO-8859-1
|
||||
encoding//htdocs/theme/freelug/freelug.css.php=ISO-8859-1
|
||||
encoding//htdocs/theme/yellow/yellow.css.php=ISO-8859-1
|
||||
encoding//htdocs/user.class.php=ISO-8859-1
|
||||
encoding//htdocs/user/modules/login.anakin.class.php=ISO-8859-1
|
||||
encoding//htdocs/user/param_ihm.php=ISO-8859-1
|
||||
encoding//htdocs/webservices/server.wsdl=UTF-8
|
||||
encoding//mysql/data/data.sql=UTF-8
|
||||
|
||||
@ -1,39 +0,0 @@
|
||||
Classification des modules de login
|
||||
|
||||
Les noms de modules dans ce répertoire doivent être sélectionnés
|
||||
dans la liste des personnages de Stars Wars
|
||||
|
||||
http://fr.wikipedia.org/wiki/Cat%C3%A9gorie:Personnage_de_la_Guerre_des_%C3%A9toiles
|
||||
|
||||
|
||||
Pris
|
||||
|
||||
- anakin
|
||||
|
||||
Disponibles
|
||||
|
||||
- palpatine
|
||||
- yoda
|
||||
- luke
|
||||
- r2d2
|
||||
- ...
|
||||
|
||||
|
||||
Classification des modules de mot de passe
|
||||
|
||||
Les noms de modules dans ce répertoire doivent être sélectionnés
|
||||
dans la liste des affluents du Danube
|
||||
|
||||
http://fr.wikipedia.org/wiki/Danube
|
||||
|
||||
Pris
|
||||
|
||||
- prout
|
||||
|
||||
|
||||
Disponibles
|
||||
|
||||
- morava
|
||||
- vah
|
||||
- enns
|
||||
- ...
|
||||
@ -1,160 +0,0 @@
|
||||
<?php
|
||||
/* Copyright (c) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (c) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
|
||||
* Copyright (c) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/user/modules/login.anakin.class.php
|
||||
\brief Fichier de la classe de generation de login anakin
|
||||
\author Rodolphe Qiedeville
|
||||
\version $Revision$
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
\class LoginAnakin
|
||||
\brief Classe permettant la generation de login anakin
|
||||
*/
|
||||
class LoginAnakin
|
||||
{
|
||||
var $error;
|
||||
var $db;
|
||||
var $user;
|
||||
|
||||
var $login;
|
||||
|
||||
|
||||
/**
|
||||
* \brief Constructeur de la classe
|
||||
* \param $DB Handler acces base de donnees
|
||||
* \param $user Objet de l'utilisateur
|
||||
*/
|
||||
function LoginAnakin($DB, $user)
|
||||
{
|
||||
$this->db = $DB;
|
||||
$this->user = $user;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief Verifie la disponibilite du login
|
||||
* \return 1 si le login n'existe pas dans la base, 1 sinon
|
||||
*/
|
||||
function dispo()
|
||||
{
|
||||
$sql = "SELECT login FROM ".MAIN_DB_PREFIX."user WHERE login ='".$this->login."';";
|
||||
|
||||
$resql=$this->db->query($sql);
|
||||
|
||||
if ($resql)
|
||||
{
|
||||
$num = $this->db->num_rows($resql);
|
||||
}
|
||||
|
||||
if ($num == 0)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Genere un login depuis nom
|
||||
* Ce login est stocke dans ->login
|
||||
*/
|
||||
function generate_login()
|
||||
{
|
||||
$ok = 0;
|
||||
$step = 1;
|
||||
$this->else_step = 1;
|
||||
|
||||
while ($ok == 0)
|
||||
{
|
||||
$func = 'generate_login_'.$step;
|
||||
|
||||
if (method_exists($this, $func))
|
||||
{
|
||||
$this->$func();
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->generate_login_else();
|
||||
$this->else_step++;
|
||||
}
|
||||
|
||||
$ok = $this->dispo();
|
||||
$step++;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// Regle primaire
|
||||
// 8 premieres lettre desaccentuees du nom en minuscule
|
||||
function generate_login_1()
|
||||
{
|
||||
$nom = strtolower(dol_string_unaccent(dol_string_nospecial($this->user->nom)));
|
||||
|
||||
$this->login = substr($nom, 0, 8);
|
||||
}
|
||||
|
||||
|
||||
// Regle de defaut
|
||||
function generate_login_else()
|
||||
{
|
||||
$login = strtolower(dol_string_unaccent(dol_string_nospecial($this->user->nom)));
|
||||
|
||||
$le = strlen($this->else_step);
|
||||
|
||||
$this->login = substr($login, 0, (8-$le)) . $this->else_step;
|
||||
}
|
||||
|
||||
|
||||
// Regles annexes
|
||||
// premiere lettre du prenom + 7 premieres lettres du nom, desaccentuees en minuscule
|
||||
function generate_login_2()
|
||||
{
|
||||
$nom = strtolower(dol_string_unaccent(dol_string_nospecial($this->user->nom)));
|
||||
$prenom = strtolower(dol_string_unaccent(dol_string_nospecial($this->user->prenom)));
|
||||
|
||||
$this->login = substr($prenom, 0, 1) . substr($nom, 0, 7);
|
||||
}
|
||||
|
||||
|
||||
// 2 premieres lettres du prenom + 6 premieres lettres du nom, desaccentuees en minuscule
|
||||
function generate_login_3()
|
||||
{
|
||||
$nom = strtolower(dol_string_unaccent(dol_string_nospecial($this->user->nom)));
|
||||
$prenom = strtolower(dol_string_unaccent(dol_string_nospecial($this->user->prenom)));
|
||||
|
||||
$this->login = substr($prenom, 0, 2) . substr($nom, 0, 6);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user