Update of /home/spip-cvs/spip/ecrire
In directory alan:/tmp/cvs-serv8629/ecrire
Modified Files:
inc_acces.php3
Log Message:
global inutile (esj)
Index: inc_acces.php3
RCS file: /home/spip-cvs/spip/ecrire/inc_acces.php3,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- inc_acces.php3 4 May 2004 09:02:56 -0000 1.23
+++ inc_acces.php3 16 Aug 2004 17:31:59 -0000 1.24
@@ -6,9 +6,6 @@
define("_ECRIRE_INC_ACCES", "1");
-$GLOBALS['htaccess'] = $GLOBALS['dir_ecrire'].'.htaccess';
-$GLOBALS['htpasswd'] = $GLOBALS['dir_ecrire'].'data/.htpasswd';
-
function creer_pass_aleatoire($longueur = 8, $sel = "") {
$seed = (double) (microtime() + 1) * time();
mt_srand($seed);
@@ -89,7 +86,8 @@
function ecrire_acces() {
- global $htaccess, $htpasswd;
+ $htaccess = $GLOBALS['dir_ecrire'].'.htaccess';
+ $htpasswd = $GLOBALS['dir_ecrire'].'data/.htpasswd';
// si .htaccess existe, outrepasser spip_meta
if ((lire_meta('creer_htpasswd') == 'non') AND !@file_exists($htaccess)) {