update control and reply in 1 php page
تعلم البرمجة
mido2010bona at gmail.com
Sun Apr 29 11:43:20 CEST 2018
but i want use php this code is simple for you but i have more with sql
and functions and i cant use it by unlang
2018-04-28 21:07 GMT+02:00 تعلم البرمجة <mido2010bona at gmail.com>:
> hello ,
>
> I am using freeradius 3.0.11 and iam using this :
>
> update{
> control: += `/usr/bin/php5.6 /var/www/html/update.php %{User-Name}
> %{User-Password} 1`
> }
> update{
> reply: += `/usr/bin/php5.6 /var/www/html/update.php %{User-Name}
> %{%{User-Password}} 2 `
> }
>
> update.php
>
> <?php
> $user = @$argv[1];
> $pass = @$argv[2];
> $val = @$argv[3];
>
> if ($val == 1){
> echo "Framed-Pool :=pool1\n";
> }else{
> echo "Reply-Message :=Hello '\n";
> }
>
> ?>
>
> but this code is very slow and i want do this
>
> update{
> `/usr/bin/php5.6 /var/www/html/update.php %{User-Name}
> %{User-Password} 1`
> }
>
> update.php
>
> <?php
> $user = @$argv[1];
> $pass = @$argv[2];
> $val = @$argv[3];
>
> if ($val == 1){
> echo " control: += \n Framed-Pool :=pool1\n";
> }else{
> echo " reply: += \n Reply-Message :=Hello '\n";
> }
>
> Sorry for my english
>
>
More information about the Freeradius-Users
mailing list