Jump to content

ryanfilard

Members
  • Posts

    252
  • Joined

  • Last visited

Everything posted by ryanfilard

  1. Thanks for pointing the injection out so I guess now I will add strip_tags to those form fields.
  2. Don't store images in a zip file if you intend to unzip the image each time. It will cause the server to work harder and even cause slow loading time. If you are looking to save space use the jpeg format.
  3. The login table just stores failed attempts.
  4. Sorry about that, I just pulled it off my website. But if you don't like amazon just google USB IDE Adapter and you should find what you are looking for.
  5. I am trying to create for the first time a lock out system on my CMS. So is the code below sufficient for locking out impostors. This code is included onto the login page and has a few other files to help support it. <?PHP $ip = $_SERVER['REMOTE_ADDR']; include("../Connections/default.php"); mysql_select_db($database_default, $default); $query_uvs2 = "SELECT * FROM login WHERE `ip` = '".$ip."' "; $uvs2 = mysql_query($query_uvs2, $default) or die(mysql_error()); $total_fails = mysql_num_rows($uvs2); if($_REQUEST["error"] == "1") { $lockout = "10";//Maximum lockout attempts. if($total_fails >= $lockout) { include('functions/standard.php'); date_default_timezone_set("America/New_York"); e_log("security", "IP Ban for Brute Force (Possibly Page Refreshing)",$_SERVER['REMOTE_ADDR']); die("One does not simply brute force, to appeal this IP ban please empty the table login"); } else { include("../Connections/default.php"); mysql_select_db($database_default, $default); $addmenu = "INSERT INTO login (`ip`) VALUES ('$ip')"; mysql_query($addmenu, $default) or die(mysql_error()); } } ?>
  6. Yes, do you have an amazon account or a nearby bestbuy. You could probably pick up a cheap USB adapter on amazon like this one, http://goo.gl/g9yym
  7. I am currently working on a newer version with a few other programmers. We fixed a lot of bugs and added a few features. It's not available for download yet but if you would like to see the progress http://elemata.com
  8. This could be very useful my only suggestion would be to create a modern design also don't show the encrypted data. Make it a gray box until the password is entered.
  9. I stopped renting servers and switched to my own private place. I have a few dell poweredges. Is there any thing I should know about NY Sales tax or someone suing me?
  10. I left out some parts because I knew they were compatible such as the 250GB SSD, 4x 1TB HDD, and a cd/dvd/blueray drive
  11. I am building a computer for my brother for his birthday and wanted to see if anyone in the forums could confirm the parts are compatible. http://www.amazon.com/gp/product/B005E98I0G/ref=ox_sc_act_title_2?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B0050I1PI8/ref=ox_sc_act_title_3?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B004RFBIUU/ref=ox_sc_act_title_4?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B00858CYDA/ref=ox_sc_act_title_5?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B007SZ0EOW/ref=ox_sc_act_title_6?ie=UTF8&smid=ATVPDKIKX0DER http://www.amazon.com/gp/product/B004351H9G/ref=ox_sc_act_title_7?ie=UTF8&smid=ATVPDKIKX0DER Thanks
  12. UPDATE: I have reset the settings now it displays the website but shows the Default Website Page. How should I troubleshoot.
  13. I recently purchased a new server and it was working yesterday, the only problem is I turned it off and on again now the site won't load. The admin panel works remotely but the site is down. All Help would be appreciated.
  14. It works fine but flash is slowing fading from computers and cell phones. HTML5 or Javascript would be the better choice for a site.
  15. I am currently aware of the Sites We Host picture bug.
  16. http://goo.gl/77kp7 Can I have some feedback on how to make it better?
  17. Welcome Andrew! PHP Freaks has helped me accelerate and expand my php knowledge, you will learn a lot here.
  18. I made a mistake when retyping the script, it should be this: echo $row_usersfriends['user'];
  19. User is text, friend is text, and accepted is one This is what I am using to display the data mysql_select_db($database_main, $main); $query_userfriends = "SELECT * FROM friends WHERE `friend` = '$uid' LIMIT 9"; $userfriends = mysql_query($query_userfriends, $main) or die(mysql_error()); $row_userfriends = mysql_fetch_assoc($userfriends);
  20. I made this script: <?PHP while($row_userfriends = mysql_fetch_array($userfriends)) { echo '$row_userfriends['user']'; } ?> problem is it works but does not display the first result. Whats wrong? :-\
  21. I am making a server management program that uses a web interface. I am new to javascript, how would I make text in <div id="var">0</div> change to the contents on http://mysite.com/cpu.php every 2 seconds
  22. I like a challenge so I choose PHP.
  23. I am trying to make a chat bot with preg_match but how would I go about scanning a sentence for hello, hi, and how are you?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.