Hello MPGH.
~ Information ~
I created a system within VB.Net and PHP to see how many people are using/used your program.
This allows you to see how many people
- Use your program
- Used your program in the past year/month/day/minute
Important: THIS SYSTEM DOES WORK WITH DATABASES THAT DO NOT ALLOW EXTERNAL ACCESS!!!
You can therefore use any free database in the ********* rather than paying for one that allows external access.
The whole system works locally, so it does not require any external access.
It is very easy to setup and use.
~ Files ~
- Users.dll(library to easily access everything)
- advanced log.php
- curusers.php
- install.php
- login.php
- logout.php
~ Setup ~
1. Upload all .php files to your website using any ftp client(f.e. Filezilla) or your CPanel.
2. Browse the install.php in your webbrowser
www.websitelink.com/install.php
Set your information like this:
If you are done, simply hit "Save"(obvious). If no error appears, everything is fine
The whole database stuff is already done, awesome eh?
~ Library Usage ~
1. Add the library as reference
2. Code sample
[php] 'DO NOT USE HTTP OR WWW INFRONT OF THE LINK!!!
Private User As New Users.AppUsers("localhost/users/") 'all php scripts are located in here
Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
User.Logout()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
User.Login()
End Sub
Private Function Users()
Return User.CurrentUsers
End Function
Private Sub cmdLog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdLog.Click
'you gotta split it with "|"
For Each AppUser As String In User.GetAllUsers
Dim use() As String = AppUser.Split("|")
For i = 0 To use.Length - 1
MsgBox(use(i)) 'you can add them into a listbox or whatever
Next
Next
End Sub[/php]
~ Function Overview ~
~ Database Overview ~
CurUsers - This table is only to see how many people are currently using your program, if your program is closed, the user will be removed from the table
- ID[INT] - Auto Increment - Primary Key
- PCName[VARCHAR(30)]
- IP[VARCHAR(20)]
- GUID[VARCHAR(50)]
Log - This table keeps an advanced track of the user login/logouts.
- ID[INT] - Auto Increment - Primary Key
- Login[INT(2)]
- PCName[VARCHAR(30)]
- OS[VARCHAR(10)]
- Processor[INT(2)]
- IP[VARCHAR(20)]
- GUID[VARCHAR(50)]
- Date[VARCHAR(12)]
- Time[VARCHAR(5)]
~ Requirements ~
- .Net Framework 2.0
- A MySQL database
- A Brain
~ License ~
You may merge it into your program but only with credits.
If you have any further ideas on what can be added into this system, please let me know.
All rights reserved to me.
~ Virusscans ~
VirusTotal
Jotti
PS: If you guys like this, I may add a couple of more functions + some proper style for the installation =D
We'll see
Enjoy this
