On Thu, 18 Apr 2002, Timophey wrote:
> Hello all.
>
> I have a problem with dialup_admin: I just can't get it working correctly
> with databses. :)
> PostgreSQL, PHP 4.1.2
> I have created all databases and granted all permissions. But I still can't
> get it working.
>
> I hope the problem is in ~/dialup_admin/lib/sql/drivers/pg/functions.php3
> file.
> there is a link to $config variable "tmp_pg_array_num" in the function
> "da_sql_fetch_array
>
> function da_sql_fetch_array($result,$config)
> {
> $row =
> @pg_fetch_array($result,$config[tmp_pg_array_num][$result]++,PGSQL_ASSOC);
> if (!$row)
> $config[tmp_pg_array_num][$result] = 0;
> return $row;
> }
>
> in the default "admin.conf" file there are no such variable.
> What value of "tmp_pg_array_num" should I put in the amdin.conf file?
This is just an array used internally by the functions to implement a static
counter. You don't need to set it.
>
> I have rewritten this function, but in this case I should rewrite almost all
> dialup_admin. I would not rather do that.
How have you rewritten the function? Will dialup_admin now work with postgresql?
Unfortunately I don't have postgresql so i just wrote the necessary functions
and waited for someone to post some bug reports. :-)
> What would you advise me?
>
> Also there is a small bug in ~/dialup_admin/lib/functions.php3, in function
> "time2strclock":
> in "Online Users" page, seconds of connection duration are not shown if
> second's amount is more than 9
> I propose to comment out last 2 lines of least "if" - condition.
Fixed, thanks. The fix was to add a {} block.
--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED] National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html