Armaauth 0.1 problem

For all the help you need with Armagetron!
Post Reply
foxx
Core Dumper
Posts: 110
Joined: Sat Aug 28, 2010 9:31 pm

Armaauth 0.1 problem

Post by foxx »

Okay, I'm using armaauth and it works fine, only one problem. I have to manually add accounts, which I don't want. The only idea I came up with is a something like this that adds the line i need (line below) to a specific area in the php. But idk how to do this :/


###EDIT: The only thing i tried so far was a .bat and it doesn't work well click here beacuse the web browser doesn't run batch

Code: Select all

'theirusernamehere' => 'theirpasswordhere',
Image
^Someone's mad ;)
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: Armaauth 0.1 problem

Post by Tank Program »

PHP can of course read and [url=http://uk.php.net/manual/en/function.fi ... ntents.php]write[/write] files... With more variations on those functions. The issue with flat files is that if the file with all your username/password info gets opened more than once at a time you can loose stuff. It might be best to keep doing it by hand.
Image
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: Armaauth 0.1 problem

Post by dukevin »

If he has passwords in a separate file, could this be possible?

Code: Select all

file_put_contents('filename.txt', "\"$username\",\"$password\\n" FILE_APPEND); 
Then get the contents with

Code: Select all

 $passwords = fgetcsv('filename.txt')
Image
Post Reply