BolPoint.wordpress.com

November 21, 2011

Merubah pesan Error Freeradius Chillispot “Your maximum never usage time has been reached” dan “You are already logged in – access denied”

Filed under: Linux — bolpoint @ 12:28 pm

buka file login freeradius di /usr/lib/cgi-bin/hotspotlogin.cgi dengan editor kesayangan anda

“sudo su gedit /usr/lib/cgi-bin/hotspotlogin.cgi”

tambahkan file di baris 371 setelah baris “if ($result == 2) {”

if ($reply =~ /^Your maximum never usage time has been reached$/ ) {
$reply = “<font color=\”red\”><blink>Kuota / Masa Aktif Voucher anda telah Habis.<br> Terimakasih telah menggunakan Bolpoint-HOTSPOT.</blink></font>”;
}
if ($reply =~ /^\r\nYou are already logged in – access denied\r\n\n$/ ) {
$reply = “<font color=\”red\”><blink>Akun anda sudah digunakan untuk Login – Akses Di tolak.<br>Silahkan Hubungi Admin kita untuk mendapat bantuan</blink></font>”;
}

Coba login menggunakan user unutk mencoba skrip diatas.

 

skrip lengkapnya

if ($result == 2) {
if ($reply =~ /^Your maximum never usage time has been reached$/ ) {
$reply = “<font color=\”red\”><blink>Kuota / Masa Aktif Voucher anda telah Habis.<br> Terimakasih telah menggunakan BOLPOINT-HOTSPOT, Anda Puas Beritahu Teman, Ada Kekurangan Beritahu Kami.</blink></font>”;
}
if ($reply =~ /^\r\nYou are already logged in – access denied\r\n\n$/ ) {
$reply = “<font color=\”red\”><blink>Akun anda sudah digunakan untuk Login – Akses Di tolak.<br>Silahkan Hubungi Admin kita di untuk mendapat bantuan</blink></font>”;
}
print ”
<h3 style=\”text-align: center;\”><font color=\”#FF1C07\”>Gagal Masuk Ke BOLPOINT HotSpot</font></h3>”;

if ($reply) {
print “<center> $reply </BR></BR></center>”;
}
}

Semoga bermanfaat,  Jazakumullah khairan katsiran. Wa jazakumullah ahsanal jaza

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: