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.


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

&nbsp;<table border="1" width="100%">
<td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tb-bg">
<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">
<td nowrap class="normal" width="112"><div align="left">
<td class="normal">&nbsp;<input name="username" type="text" class="normal" id="username" size="29" maxlength="32"></td>
<p align="center">
<input type="submit" name="Submit2" value="{FNDUSR23}">
</form> </td>


Now it will look like following after the edition.


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 …



Syed Jahanzaib


  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.


    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


    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?


    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?


    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


    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


    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)
      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.


      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


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

    • Try with
      and look for

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



      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


        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?>


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

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


        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)


      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)


        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?


    -bs sawant


    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?


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

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


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

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: