Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 53
5 members and 48 guests
affiz4iliate6ec, cliaw9cckhereto, mariacolmanyne3, medaricalddw93g, parttarcts
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
place username in external file
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Dec 2004
place username in external file - 01-03-2005, 01:19 AM

HI, I have a DC hub running on my server as well as my php site. What i want to do is have my website also place the username and password into an external file. This way as a user registers his/her username and password is also placed into another file called "reglist2". the hub also uses MD5 encryption, so this is good. So this is the code i have written up. I placed this section of code after the "finishnewuser function"
Code:
function odch($filename, $content, $fw, $fp, $username, $new_password) {
$filename = "~/opendchub/reglist2.txt";
$content = "$username $new_password 0\n\r";
$fp = fopen($filename, "a");
$fw = fwrite($fp, $content);
fclose($fp);
}
This should place the username and password into the file reglist2.txt correct? or are there errors? Thanks in advance
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Block that links to an external site. chriss366 Nuke 7.x - Blocks 1 12-22-2006 07:16 AM
username and email in use Pinball Nuke 7.x - General 0 10-17-2006 07:38 PM
What file do I place a google ad on? RMRuler Open topics 2 05-13-2006 12:56 PM
I'm not sure if this is the right place to post this. ohl Other "stuff" 0 05-14-2003 09:26 AM
How to Place the Banner ? byron Purged Topics 5 12-29-2002 06:26 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31