[SPIP] +2.1.12
[velocampus/web/www.git] / www / plugins / auto / cfg / cfg / classes / type_pwd.php
diff --git a/www/plugins/auto/cfg/cfg/classes/type_pwd.php b/www/plugins/auto/cfg/cfg/classes/type_pwd.php
new file mode 100644 (file)
index 0000000..997cd91
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+/**
+ * Plugin générique de configuration pour SPIP
+ *
+ * @license    GNU/GPL
+ * @package    plugins
+ * @subpackage cfg
+ * @category   outils
+ * @copyright  (c) toggg, marcimat 2007-2008
+ * @link       http://www.spip-contrib.net/
+ * @version    $Id: type_pwd.php 36735 2010-03-28 21:25:09Z gilles.vincent@gmail.com $
+ */
+
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+/**
+ * 
+ * @param string $champ
+ * @param Object $cfg
+ * @return string
+ */
+function cfg_verifier_type_pwd($champ, &$cfg) {
+       if (strlen($cfg->val[$champ]) < 5){
+               $cfg->ajouter_erreur($champ, _T('cfg:erreur_type_pwd', array('champ'=>$champ)));
+       }
+       return true;
+}
+
+
+?>