PHP Classes
elePHPant
Icontem

AzDGOnlineUsers: Show online users, hits at this moment at the site

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2002-08-30 (12 years ago) RSS 2.0 feedStarStarStar 53%Total: 3,320 This week: 1All time: 989 This week: 1,124Down
Version License Categories  
azdgonlineusers 1.0.0GNU General Publi...Statistics, User Management
Description Author  

This class count online users on the all pages where class-code are included. It may count:
- Users on all pages (website) or only this page.
- Hits number from last $sec time in the site or only this page.

Uses MySQL.

Picture of AzDG
Name: AzDG <contact>
Classes: 5 packages by
Country: Azerbaijan Azerbaijan
Age: 38
All time rank: 1831 in Azerbaijan Azerbaijan
Week rank: 891 Down2 in Azerbaijan Azerbaijan Down

Details provided by the author  
##################################################################
# \-\-\-\-\-\-\-\-\   AzDG  - S C R I P T S  /-/-/-/-/-/-/-/-/-/ #
##################################################################
# AzDGOnlineUsers(class)        Version 1                        #
# Writed by                     AzDG (support@azdg.com)          #
# Created 25/08/02              Last Modified 25/08/02           #
# Scripts Home:                 http://www.azdg.com              #
##################################################################

1. About
2. Purposes
3. Requirements
4. Installation
5. How to use?
##################################################################

1. This class writed by AzDG. Its free, but under GPL.

2. This class count online users on the all pages where class-code are included. It may count: 
- users on all pages (website) or only this page
- hits number from last $sec time in the site or only this page

3. Requirements, PHP 4.0.6, MySQL 3.20 or more versions

4. Installation:
- unzip archiv to some directory (ex. online)
- change configs in install.php, and open it from www
//////// Change configs //////////
$host     = 'localhost';
$database = 'database';
$user     = 'user';
$password = 'password';
$table    = 'ou';
s//////////////////////////////////

- change configs in AzDGOnlineUsers.class.inc.php
// Auth information - Please change
###### Be Carefull - "var" must entered before each $variable
var $host     = 'localhost';
var $database = 'database';
var $user     = 'user';
var $password = 'password';
var $table    = 'ou';
/////////////////    
    var $sec = 180; // how many second set to user for timeout
/////////////////    
- Thats all (read about insert code in your pages)
5. How to use?
Code Example
Online code (without statistic see, only code)
<?php
include('AzDGOnlineUsers.class.inc.php');
$ol = new ou();
?>

Example1.php
<?php
include('AzDGOnlineUsers.class.inc.php');
$ol = new ou();
$ol->view(1); // 1 - Show online users number on all page with code
$ol->view(2); // 2 - Show hits on all pages with code

// You may show all 2 statistics line
$ol->view(); // Show all 2 statistics line
?>

Please send me all questions to support@azdg.com
  Files folder image Files  
File Role Description
Plain text file AzDGOnlineUsers.class.inc.php Class Main class file
Accessible without login Plain text file install.php Conf. Install table script
Accessible without login Plain text file Readme.txt Doc. Help file

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,320All time:989
 This week:1This week:1,124Down
 User Ratings  
 
 All time
Utility:80%StarStarStarStarStar
Consistency:65%StarStarStarStar
Documentation:70%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1434