Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
harman.punj is on a distinguished road
 
Posts: 3
Join Date: Aug 2012
Default Rate my site!! - 08-06-2012, 06:05 AM

Hi guys, this is my first website hosted on 000webhost.com whom I would like to thank for great hosting services.

My website : PassGen.org

Please visit and suggestions and comments most welcomed!
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
purcellj's Avatar
Senior Member
purcellj is on a distinguished road
 
Posts: 218
Join Date: Aug 2010
Location: Bedford, Bedfordshire, England
Send a message via Skype™ to purcellj
Default 08-06-2012, 12:19 PM

Not bad actually, would recommend that for the widget you use a similar method to this:

http://passgen.org/widget-code.php?ClientID=[CLIENTID]&Host=[HOST]

Then put into widget-code.php

Code:
mysql_connect($MySQLHost, $MySQLUser, $MySQLPass);
//blah blah blah (Connect to MySQL DB and then do following...)
$IsClient = mysql_query("SELECT * FROM Clients WHERE ClientID='$_GET[ClientID]' AND Host='$_GET[Host]'");
if(mysql_numrows($IsClient) == "0") {
   echo "You are <b>not</b> a valid client!";
}
else {
   echo "THE WIDGET CODE";
}
Just a suggestion :P


Don't be an idiot, read the Terms Of Service | Nerd Chat | Service Status
Reply With Quote
(#3 (permalink))
Old
kuroneko's Avatar
Senior Member
kuroneko is on a distinguished road
 
Posts: 113
Join Date: Jul 2012
Default 08-06-2012, 07:31 PM

Quote:
Originally Posted by purcellj View Post
Not bad actually, would recommend that for the widget you use a similar method to this:

http://passgen.org/widget-code.php?ClientID=[CLIENTID]&Host=[HOST]

Then put into widget-code.php

Code:
mysql_connect($MySQLHost, $MySQLUser, $MySQLPass);
//blah blah blah (Connect to MySQL DB and then do following...)
$IsClient = mysql_query("SELECT * FROM Clients WHERE ClientID='$_GET[ClientID]' AND Host='$_GET[Host]'");
if(mysql_numrows($IsClient) == "0") {
   echo "You are <b>not</b> a valid client!";
}
else {
   echo "THE WIDGET CODE";
}
Just a suggestion :P
Code is very much open for SQL injection.


Anything about web design and development
frostproject.org
Reply With Quote
(#4 (permalink))
Old
Junior Member
harman.punj is on a distinguished road
 
Posts: 3
Join Date: Aug 2012
Default 08-09-2012, 04:57 AM

Hi thanks for the suggestion! But I fear SQL injection as my 6 months work on a wordpress website got hacked due to it, so Im using no SQL this time for the widget. Its like keeping website fast and responsive.
Reply With Quote
(#5 (permalink))
Old
Junior Member
funnyatic is on a distinguished road
 
Posts: 1
Join Date: Aug 2012
Default 08-21-2012, 02:06 PM

Very Funny Thumbs Up
Reply With Quote
Reply

Tags
passgen.org

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 Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com