Syed Jahanzaib – Personal Blog to Share Knowledge !

November 13, 2014

Howto add SEARCH/EDIT button on main page in Radius Manager

Filed under: Radius Manager — Tags: — Syed Jahanzaib / Pinochio~:) @ 4:29 PM

Following is a small tip to add SEARCH or EDIT function for DMASOFTLAB Radius Manager admin page , by Syed Jahanzaib.

Ideally you should have HTML editor software, I use Ms FRONTPAGE, but if you know the basics of html, you can even use any good text editor like NOTEPAD++

in /var/www/radiusmanager folder, open the adminmain_tpl.htm file in the html editor.
(for centos , use /var/www/html/radiusmanager/)

You will see something like following.

page2


Now search for word {CONTENT} and after this line, paste the following html code


&nbsp;<table border="1" width="100%">
<tr>
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tb-bg">
<tr>
<td><form name="form2" method="post" action="admin.php?cont=list_users">
<p class="title2"><font color="#FF0000">{FNDUSR23} User
Database by Syed Jahanzaib</font></p>
<table border="0" align="center" cellpadding="2" cellspacing="2" width="421">
<tr>
<td nowrap class="normal" width="112"><div align="left">
{FNDUSR2}:
</div></td>
<td class="normal">&nbsp;<input name="username" type="text" class="normal" id="username" size="29" maxlength="32"></td>
</tr>
</table>
<p align="center">
<input type="submit" name="Submit2" value="{FNDUSR23}">
</p>
</form> </td>
</tr>
</table></td>

.

Now it will look like following after the edition.

page3.

Save this file. (If you are saving from windows, then after saving, upload the file backup to /var/www/radiusmanager/ folder [if you have Ubuntu.
[ If you have centos then copy to /var/www/html/radiusmanager/ ]


 

Now reload the admin page and you will see some thign like as below …

page4


 

Regard’s
Syed Jahanzaib

19 Comments »

  1. Dear sir,
    If we buy CVAS data license from pta and purchase CIR bandwidth from PTCL can we share this internet to our customers from ethernet cable and wireless? what are limitation of this type license thanks.If we share bandwidth in customers with private ips would it cause any conflict? please suggest any best solution for small size ISP.

    Like

    Comment by ABdullah — November 14, 2014 @ 5:49 PM

  2. Greetings, all your excellent post!

    For this example you have been able to execute PHP code in file tpl of Radius Manager?

    Sorry for my English

    Like

    Comment by Wuilliams — November 16, 2014 @ 5:45 AM

  3. As salam,
    Can you add Search User name, MAC, PIN database too as it useful to search prepaid users?

    Like

    Comment by car1 cow — November 22, 2014 @ 1:28 PM

  4. Hi Syed, Will this search wild cards or will it only work for the full username?

    Like

    Comment by Harley — January 16, 2015 @ 6:34 AM

  5. Assalamualaikum..
    Hi syed. Do you have any idea about how to setting download limit for ‘Simultaneous use’ per username?. In this case I have download rate for a user 1024 kbps, its ‘Simultaneous use’ is 3. if he connect in different device (3 device) its download rate will be shared each other device, but if he just logged in one device, the download rate will become 1024kbps. Thanks

    Like

    Comment by sam — January 19, 2015 @ 2:56 PM

  6. Assalamualaikum..
    Dear sir. Do you have any idea about how to manage download limitation for ‘Simultaneous use’?. In this case, the download rate for a use is 1024. The ‘Simultaneous use’ is 3. If a user logged in 3 device, the download rate will be shared, but if just logged in one device the download rate will become 1024. Thanks

    Like

    Comment by sam — January 19, 2015 @ 3:31 PM

    • @sam
      It’s not supported by default. you have to make do some manual work. (ok for smaller environment)
      Example:
      Create queue , in target, provide 3 ip address of users (users ip must be fixed via there user properties) , then in radius, give those users from that ip pool. then the bandwidth will be shared among 3 users, and if only 1 user is online he will be bale to get all.

      Like

      Comment by Syed Jahanzaib / Pinochio~:) — January 21, 2015 @ 9:50 AM

  7. hello, I’m looking for a script that can do a search of all the double sessions opened by the user account. Once you find the double sessions I would close the open sessions older remained hung.
    thanks in advance
    Tony

    Like

    Comment by Tony Quadarella — April 23, 2015 @ 12:54 PM

    • Try with
      https://aacable.wordpress.com/2011/08/15/mikrotik-howto-prevent-mt-host-from-invalid-login-attempts-from-lanwan-users/
      and look for

      “SCRIPT to disconnect previously logged user if same id is used at second computer”

      section

      Like

      Comment by Syed Jahanzaib / Pinochio~:) — April 23, 2015 @ 1:04 PM

      • thanks, I’ll try but I’m not sure that’s what I wanted.
        double sessions to which I refer are hung on radiusmanager and not on mikrotik and when I try to close them by radiusmanager this has no effect on the log mikrotik. are in effect sessions ghost
        Tony

        Like

        Comment by Tony Quadarella — April 23, 2015 @ 1:16 PM

      • is there any connectivity issues between your nas and rm? have you tried lowering the timeout value to auto close the hung session?>

        Like

        Comment by Syed Jahanzaib / Pinochio~:) — April 23, 2015 @ 1:26 PM

      • I force auto disconnetion every 1 day, and sometimes sessions remain hanging

        Like

        Comment by Tony Quadarella — April 23, 2015 @ 2:58 PM

    • Qualcuno ha idea di come creare uno script e un pulsante per chiudere solo le doppie sessioni su Radiusmanager lasciando aperte solo le più recenti? (su mikrotik tutto funziona bene e non ci sono doppie sessioni aperte)

      Like

      Comment by Tony Quadarella — April 28, 2015 @ 12:11 PM

      • sorry, in english:
        Does anyone have any idea how to create a script and a button to close only the double sessions on Radiusmanager leaving open only the most recent? (on mikrotik everything works well and there are no double open sessions)

        Like

        Comment by Tony Quadarella — April 28, 2015 @ 12:12 PM

  8. Hello Sir,

    Can you add Search for Address also as it is useful to search customers by address?

    Regards,

    -bs sawant

    Like

    Comment by bhalchandra sawant — August 10, 2015 @ 4:02 AM

  9. Hello sir, if I wanted to include in the fields the contract ID, what would I have to add?

    Like

    Comment by amingar — September 23, 2018 @ 3:43 AM

  10. Hello Sir, how to included for searching for firstname or lastname..?
    Thanks

    Like

    Comment by Azizpr — February 21, 2022 @ 7:03 PM


RSS feed for comments on this post. TrackBack URI

Leave a comment