Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 04-07-2006, 04:49 AM   #1
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

If you have perl installed, you can use something like
Code:
perl -e "while (<>) {$_ =~ s/^User Name: .*$/User Name: yourusername/; $_ =~ s/^Password: .*$/Password: yourpass/; print $_}" importfile.txt >exportfile.txt
This will edit all the "User Name:" and "Password:" lines to write "yourusername" and "yourpass" (don't forget to edit the latest two).

Whatever language your forum is using (most probably PHP or perl), you can use similar regexps to generate the file dynamically from a single template. You only need to use variables instead of fixed usernames and passwords. Note that this means you have to store usernames/passwords somewhere on your forum/website/database.
Harm is offline  
Closed Thread

Tags
convenient, folders, make, sites, type


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:10 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)