summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-01-03 21:23:58 +0000
committerDries Buytaert <dries@buytaert.net>2001-01-03 21:23:58 +0000
commit4572760eb3bd2a9454660bf187d17c7258e04bfd (patch)
tree6c73bb27ddb2c8afb5cf4dfd5ab8038ab75356da /scripts
parentc85a0ee005d67a3104954ad7b637b7d22f9109b4 (diff)
downloadbrdo-4572760eb3bd2a9454660bf187d17c7258e04bfd.tar.gz
brdo-4572760eb3bd2a9454660bf187d17c7258e04bfd.tar.bz2
A batch of preparations for release candidate 2:
- expanded documentation (written by Jeroen) - fixed bug in includes/module.inc - fixed bug in modules/backend.class - renamed some of the SQL tables (!) - started making the diary.module truly modular (not finished yet) - renamed "admin_blocks" to "boxes" - added new functionality to "boxes": apart from PHP boxes, you can now create ASCII boxes as well as HTML boxes for those who are not confident with PHP. (requested by stalor) - added drupal-site module to keep track of known drupal sites - added small Perl script to generate encrypted CVS passwords
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cvs-pass.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/cvs-pass.pl b/scripts/cvs-pass.pl
new file mode 100644
index 000000000..17f366b71
--- /dev/null
+++ b/scripts/cvs-pass.pl
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+
+srand (time());
+my $randletter = "(int (rand (26)) + (int (rand (1) + .5) % 2 ? 65 : 97))";
+my $salt = sprintf ("%c%c", eval $randletter, eval $randletter);
+my $plaintext = shift;
+my $crypttext = crypt ($plaintext, $salt);
+
+print "${crypttext}\n";