#!/usr/bin/perl ####################################################### # Locked Area Lite Version 3.2 Linux Stable # http://www.lockedarea.com/ # Originally Released: 1st September 1999 (v1.0) # Latest Release: 8th June 2003 (v3.2) ####################################################### # # COPYRIGHT NOTE: # Locked Area Lite may be used and modified by anyone so # long as they have a fully registered copy and this # copyright notice and the comments above remain intact. # By using this code you agree to indemnify Neil Skirrow # and LockedArea.com from any liability that might arise # from its use. Selling the code for this program without # prior written consent is expressly forbidden. In other # words, please ask first before you try and make money # off of our program. Obtain permission before # redistributing this software over the Internet or in # any other medium. In all cases copyright and header # must remain intact. We cannot be held responsible # for any harm this may cause. # ####################################################### use CGI qw(:standard); # Calls CGI.pm Library $query = new CGI; use Fcntl qw(:flock); # Calls File Locking Library ####################################################### # The above three lines are essential to the script, if # they are causing you an error, you don't have the # required modules to use Locked Area Lite v3.2 Linux. # Contact your web host and ask them to install them as # they are essential modules. ####################################################### # THIS FILE REQUIRES NO MANUAL MODIFICATION TO BE USED # WITH THE EXCEPTION OF THE PATH TO PERL ON THE TOP # LINE OTHERWISE ALL CONFIGURATION IS DONE FROM THE # ADMIN PANEL. ####################################################### require "variables.pl"; # Go and get the variables. print "Content-type: text/html\n\n"; $admin_main = $query->param('admin_main'); &admin_main if ($admin_main && $ENV{'REQUEST_METHOD'} eq "POST"); $remove_user = $query->param('remove_user'); &remove_user if ($remove_user && $ENV{'REQUEST_METHOD'} eq "POST"); $add_user = $query->param('add_user'); &add_user if ($add_user && $ENV{'REQUEST_METHOD'} eq "POST"); $update_config = $query->param('update_config'); &update_config if ($update_config && $ENV{'REQUEST_METHOD'} eq "POST"); $send_email = $query->param('send_email'); if ($send_email && $ENV{'REQUEST_METHOD'} eq "POST") { $subject = $query->param('subject'); $content = $query->param('content'); $footer = $query->param('footer'); &send_email($adminmail,$membersdb,$subject,$content,$footer,$mailprog); } &actions if ($ENV{'QUERY_STRING'}); &print_login if ($ENV{'REQUEST_METHOD'} eq "GET"); sub actions { my $enc_password = param("p"); my $action = param("a"); if ($enc_password eq $adminpassword) { if ($action eq "list") { &admin_list; } elsif ($action eq "remove") { &admin_remove; } elsif ($action eq "add") { &admin_add; } elsif ($action eq "email") { &admin_email; } elsif ($action eq "config") { &admin_config; } elsif ($action eq "main") { &admin_main2; } elsif ($action eq "stats") { &stats; } elsif ($action eq "stats_s") { &stats_s; } elsif ($action eq "stats_l") { &stats_l; } elsif ($action eq "stats_b") { &stats_b; } elsif ($action eq "stats_u") { &stats_u; } elsif ($action eq "stats_a") { &stats_a; } elsif ($action eq "stats_r") { &stats_r; } elsif ($action eq "stats_i") { &stats_i; } else { &print_login; } } else { &admin_login_failed; } } sub admin_list { my $enc_password = param("p"); &count_users; $font = ""; $efont = ""; &header; print "
| $font Name $efont | $font Email $efont | $font Username $efont | $font $extra_field_name $efont | $font Date $efont |
| $font $name $efont | $font $email $efont | $font $username $efont | $font"; if ($extra_url ne "1") { print " $extra "; } else { print " $extra "; } print "$efont | $font $date $efont |
Username: $usernameok
Password: $passwordok
Email Address: $emailok
Full Name: $name
$extra_field_name: $extra
$remove_username
Subject: $subject
Content:
$content
$footer
Please note, the data from the member's db you see in the above message is that of the last user to be emailed.
logger.cgi is a simple little script that will display a Welcome [username] message when loaded into the member's
area using SSI tags. It also records details about the visitor to a log file. This log file can be read here in the administration panel.
To call logger.cgi into your member's area html just place the following tag anywhere in your member's area html.
<!--#exec cgi="/cgi-bin/logger.cgi"-->
If you didn't install the scripts into your cgi-bin, just modify the path. You must use a relative url. e.g. /dir/dir/logger.cgi or /cgi-bin/logger.cgi, not a full path or url. You may find that you need to use the extension .shtml to use SSI tags in your html. If you're not sure, contact your system administrator or have a look at your web host's FAQ page, most good hosts have them.
All Dates | ||
| % | Qty | Date |
| $dpercent\% | $dates{$element} | $element |
| Average Number of Accesses per Day: | $avg | |
| Suspected Leechers | |
| Accesses | Username |
| $usernames{$element} | $element |
Browsers | |||
| Rank | % | Qty | Browser |
| $count | $bpercent\% | $browsers{$element} | $element |
| Users | |||
| Rank | % | Qty | Username |
| $count | $upercent\% | $usernames{$element} | $element |
| All Users | ||
| % | Qty | Username |
| $upercent\% | $usernames{$element} | $element |
All IP Addresses | ||
| % | Qty | IP |
| $ipercent\% | $ips{$element} | $element |
All Referrers | ||
| % | Qty | URL |
| $rpercent\% | $referrers{$element} | $element |
All Browsers | ||
| % | Qty | Browser |
| $bpercent\% | $browsers{$element} | $element |
Referrers | |||
| Rank | % | Qty | URL |
| $count | $rpercent\% | $referrers{$element} | $element |
IP Addresses | |||
| Rank | % | Qty | IP |
| $count | $ipercent\% | $ips{$element} | $element |
| Welcome to the Locked Area Lite v3.2 Linux Stable Administration Panel. From here you can manage your member's area and it's member's. To begin please select a link from the left select menu. | |||||||||||||||||||||||
|
Select Menu Main List Users Add New User Delete Users Bulk Email Statistics Configuration LockedArea.com |
||||||||||||||||||||||
| ||
| ||
|
Powered by Locked Area Lite v3.2 Linux Stable, a product of LockedArea.com. Copyright © 1999 - 2003 Neil Skirrow and LockedArea.com, All Rights Reserved. | |
~; # The above copyright notice may not be modified in anyway! It is too remain at all times and be visible in all HTML generated by Locked Area Lite. # Removing the copyright note, text and link back is a criminal offence and a breech of the contract you have with LockedArea.com. Doing so will result in legal action! }