Posts by Kaili

Freeradius + MySQL + WHMCS + Mikrotik (Step 3)

Running v7 whmcs. Installing freeradius whmcs module from For using hotspot with time limit from first login, enable sqlcounter mod on free radius add code in authorize section on sites-available default file: For hotspot login: on whmcs, login, add product, select module freeradius, add radiusgroup, ex.hs-1d (hotspot 1day active). Goto freeradius database > radgroupcheck table,…

Read More

Freeradius + MySQL (Step 1)

Based on Ubuntu 20.04 box with virtualmin installed, apache, php7.4 Install Freeradius Create FR database schema Set FR to using MySQL Open “default” config using text editor Add sql on every category Edit radius sql module’s config Modif following Fill nas table from freeradius database with shortname (refer to ip address), shortname (server identify, ex.…

Read More

Add a tiktok social media icon to the Beaver Builder Theme

To do this, edit the functions.php file in your theme and paste in the below php code: Now, when you go to your WordPress Dashboard > Appearance > Customize > Settings > Social Links there will be a new field to add your URL for this new social media channel, as per below, where you can now see a field…

Read More

Simple loan simulation on WordPress

Insert following code on function.php on your theme. This is flat loan simulation with following formula: a = loan principalb = interest per tahunc = time in yeard = downpayment so, installment per month = (a-d) / cinterest per month = (a-d) x b / 12Total  installament per month = (a-d) x b / 12…

Read More

Installing CHR on CentOS

Login as root. Check IP address: make install.sh files: copy paste following code: choose your chr version you want to download. change eth1 with your interface. Change /dev/vda with your diskname. check diskname: check interface name: save install.sh file. then make it executable and run it. done.

Read More