php webauth

For all the help you need with Armagetron!
Post Reply
pikachu
Posts: 7
Joined: Sun Apr 27, 2008 5:25 am
Location: PA

php webauth

Post by pikachu »

What are the steps in installing...
https://code.launchpad.net/~armagetrona ... lient-work


in config.php...

Code: Select all

<?php
2		
3		$AAGIDDb['host'] = '';
4		$AAGIDDb['name'] = 'http-auth-test';
5		$AAGIDDb['table'] = 'client-webform';
6		$AAGIDDb['user'] = '';
7		$AAGIDDb['passwd'] = '';
8		$AAGIDDb['key_row'] = 'key';
9		$AAGIDDb['authority_row'] = 'authority';
10		$AAGIDDb['key_hash_row'] = 'key_hash';
11	9	$AAGIDDb['key_time_row'] = 'key_time';
12		$AAGIDDb['keyTimeout'] = 5 * 60;
13	1	
14		?>
I don't under stand where to put the mysql address,user,pass.
also the database name and table plus the tablename.

and what rows to i need to add to the database if any.
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: php webauth

Post by Z-Man »

Peeking into the source code quickly reveals:

Code: Select all

$db = mysql_connect( $AAGIDDb['host'], $AAGIDDb['user'], $AAGIDDb['passwd'] );
So you do

Code: Select all

$AAGIDDb['host'] = <sql server>;
$AAGIDDb['user'] = <sql user>;
$AAGIDDb['passwd'] = <sql_password>;
also the database name
That would be in $AAGIDDb['name'].
and table plus the tablename.
$AAGIDDb['table']
and what rows to i need to add to the database if any.
All the $AAGIDDb['*_row'] values.

But really, I don't know anything about this webauth thing, I'm just pointing out things that seem fairy obvious :)

(If this was a core part of Arma, I'd now be bullying someone to write actual documentation. But it isn't.)
epsy
Adjust Outside Corner Grinder
Posts: 2003
Joined: Tue Nov 07, 2006 6:02 pm
Location: paris
Contact:

Post by epsy »

Documentation is not done, indeed, I'm waiting to have it feature-compliant with arma before this atm. (white- and blacklists aren't done, so the example config is likely to change)
pikachu
Posts: 7
Joined: Sun Apr 27, 2008 5:25 am
Location: PA

Post by pikachu »

thanks, both of you...

i kind of figured just wanted to double check.

hope this question helps most people...
Post Reply