Download Horizon :: Staff Members :: Save Vault :: XboxMB YouTube


Old 04-13-2012   #1 (permalink)
Regular Member
Kuzahara's Avatar
Join Date: Apr 2012
Posts: 8
Thanks: 1
Default Looking for CnC on web project

I started this a couple hours ago, and I'm pretty much done. Now, I'm looking for ways to improve it.

Here it is:



"But what does it do?" you ask.

In short, it analyzes what browser your viewers use and splits that into a nice graph for you to see. It logs visitors md5'd IPs to make sure you don't get multiple submissions from one person. It also logs their browser version, but that much is only stored via MySQL and not displayed on the graph. Soon, it will send all of the information that you've collected into a bigger database that collects the information from every site that has it. All of this is available for anyone to see.

So, how do you guys like it? How could I improve upon this?

EDIT:
Got the first release done. Download it here.

Here's a virus scan of it... which is kind of stupid, but I don't want to get in trouble: https://www.virustotal.com/file/2b0c...is/1334532015/

Updated:
  • PDO implemented
  • Code shortened to best of my abilities

Next release will include GUI updates.

Last edited by Kuzahara; 04-15-2012 at 06:25 PM.
Kuzahara is offline
Reply With Quote


Old 04-14-2012   #2 (permalink)
David's Avatar
Join Date: Sep 2010
Location: England
Posts: 3,510
Thanks: 3,164
Default Re: Looking for CnC on web project

It's not bad, the graph is displayed quite nicely only thing I would add is possible a background and then add a box around each browser. Also providing some information about the backend would be beneficial as we can help you improve and make it more efficient.
__________________
David is offline Send a message via AIM to David
Reply With Quote
The following user thanked this post: Kuzahara


Old 04-14-2012   #3 (permalink)
Cheater912's Avatar
x &= ~0;
Join Date: Jul 2010
Location: New York
Posts: 6,682
Thanks: 16,736
Default Re: Looking for CnC on web project

Store the IP instead of a MD5.
__________________
Cheater912 is offline
Reply With Quote
The following user thanked this post: Kuzahara




Old 04-14-2012   #4 (permalink)
Regular Member
 
Join Date: Oct 2011
Location: Hull, UK
Posts: 418
Thanks: 129
Default Re: Looking for CnC on web project

Quote:
Originally Posted by Cheater912 View Post
Store the IP instead of a MD5.
What if they change there ip? :I
Joe_ is offline
Reply With Quote


Old 04-14-2012   #5 (permalink)

godzcheater's Avatar
Live life,die young.
Join Date: Sep 2010
Location: UK
Posts: 1,568
Thanks: 549
Default Re: Looking for CnC on web project

Quote:
Originally Posted by Joe_ View Post
What if they change there ip? :I
md5 dosnt fix that
godzcheater is offline Send a message via AIM to godzcheater Send a message via MSN to godzcheater
Reply With Quote
The following user thanked this post: Kuzahara


Old 04-14-2012   #6 (permalink)
Regular Member
 
Join Date: Oct 2011
Location: Hull, UK
Posts: 418
Thanks: 129
Default Re: Looking for CnC on web project

Quote:
Originally Posted by godzcheater View Post
md5 dosnt fix that
Ohhhh i'm stupid sorry
Joe_ is offline
Reply With Quote


Old 04-14-2012   #7 (permalink)
sgt frankieboy's Avatar
Visual Bounds
Join Date: Nov 2010
Location: Netherlands
Posts: 3,760
Thanks: 3,211
Default Re: Looking for CnC on web project

Quote:
Originally Posted by Joe_ View Post
What if they change there ip? :I
Really? sorry but that sounded funny.




It is looking nice though

Are you using PDO for the MySQL?
__________________

XboxMB Chat


Programming Resources

Quote:
Originally Posted by Rich Cook
Programming today is a race between software engineers striving to build bigger and better
idiot-proof programs, and the Universe trying to produce bigger and better idiots.
So far, the Universe is winning.
sgt frankieboy is offline Send a message via AIM to sgt frankieboy Send a message via Yahoo to sgt frankieboy
Reply With Quote
The following user thanked this post: Kuzahara


Old 04-14-2012   #8 (permalink)
UnderCoverUZI's Avatar
I R UZI
Join Date: Aug 2010
Location: Bodymore, MD
Posts: 4,621
Thanks: 3,849
Default Re: Looking for CnC on web project

In terms of design I like it. But why is the 1% and 3% the same size lol
__________________
UnderCoverUZI is offline Send a message via AIM to UnderCoverUZI
Reply With Quote
The following users thanked this post: godzcheater, Kuzahara


Old 04-15-2012   #9 (permalink)
Regular Member
Kuzahara's Avatar
Join Date: Apr 2012
Posts: 8
Thanks: 1
Default Re: Looking for CnC on web project

Quote:
Originally Posted by Dave View Post
It's not bad, the graph is displayed quite nicely only thing I would add is possible a background and then add a box around each browser. Also providing some information about the backend would be beneficial as we can help you improve and make it more efficient.
The backend is simple. It uses a function I found to discover the user's browser and stores their md5'd IP, browser, and browser version into the 'stats' table.

To display the information, it does a query to select all information from every row where name = "browser name". The count is added to a total, where it is then divided into percentages. The rest you should be able to figure out.

Maybe I am not understanding what you said correctly though, because I don't see any other way to accomplish this, other than using a file to read/write from rather than MySQL.

Quote:
Originally Posted by Cheater912 View Post
Store the IP instead of a MD5.
I know I wouldn't like my IP to be stored by someone, so I just assumed that others felt the same way. I don't see any real reason to store the actual IP, either, since I am not using it for anything besides preventing duplicates.

Any reason you are suggesting this?

Quote:
Originally Posted by sgt frankieboy View Post
Really? sorry but that sounded funny.




It is looking nice though

Are you using PDO for the MySQL?
Nope, just plain old MySQL queries.

Quote:
Originally Posted by UnderCoverUZI View Post
In terms of design I like it. But why is the 1% and 3% the same size lol
The div needs to be a certain width to be able to fit the percentage. It is more distinguished when the percentages are higher -- which they most likely will be. Poor Internet Explorer.
__________________
Beginner/amateur web developer

Last edited by Kuzahara; 04-15-2012 at 01:46 AM.
Kuzahara is offline
Reply With Quote


Old 04-15-2012   #10 (permalink)
David's Avatar
Join Date: Sep 2010
Location: England
Posts: 3,510
Thanks: 3,164
Default Re: Looking for CnC on web project

Quote:
Originally Posted by Kuzahara View Post
Nope, just plain old MySQL queries.
I would learn PDO and rewrite it, the MySQL drive is outdated and isn't very efficient.
__________________
David is offline Send a message via AIM to David
Reply With Quote
The following user thanked this post: sgt frankieboy

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:24 AM.


 

Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
COPYRIGHT (c) 2010 - 2013 - XboxMB - DESIGN BY:
EDENWEBS.COM