Jump to content
MakeWebGames

Ben Nash

Members
  • Posts

    238
  • Joined

  • Last visited

Everything posted by Ben Nash

  1. I'm going to release some free mods to improve my php/mysql skills. Suggest below and I will have a crack at it.
  2. Ben Nash

    Question

    I know it's not secure but does the good look right?
  3. Ben Nash

    Question

    Here is my login function. Is it looking good?   function login() { $username = $_POST['username']; $password = $_POST['password']; $query = ("SELECT username, password from people WHERE {$username} = username AND {$password} = password "); $result = mysql_query($query); if(mysql_num_rows($result) < 1) { echo"Doesn't exist"; } } else { $_SESSION['valid'] = 1; $_SESSION['username']; echo $_SESSION['username']; } }   echo $_SESSION['username']; will be on the page where the user has logged in....
  4. Ben Nash

    Question

    I have a functions.php file containing a login(); function that has code in it for a basic login system. What I want to ask is what would I put in the action='' on the html form to use that function? EDIT: Could I just put the action as index.php then do:   if (isset($_POST['login'])) { login(); }
  5. Some new updates!
  6. More the better :D
  7. Thought I'd make a facebook page sharing software, tips, great quotes and more > https://www.facebook.com/pages/Web-Dev-Friends/528146123921638 Give a like if you want :D
  8. I'm selling shared hosting off my dedicated server.
  9. Anyone interested?
  10. At the moment it's just a contact style format.
  11. Unlimited Diskspace Unlimited Bandwitch Unlimited Domains 99.9% Uptime Guarantee Unlimited ftp accounts, mysql databases, all cron jobs etc... @ only $40/year! Contact me to order.
  12. Ben Nash

    Cookies

    This game is addictive! http://orteil.dashnet.org/experiments/cookie/
  13. I see hosting companies offering a package builder where you choose how much dksik space etc... you want. How much would you charge per gb of disk space, per gb of bandwitch etc..
  14. I gotta say Nickson helped me loads as well.
  15. Ben Nash

    Securing $_POST

    Turn the form values into variables so your query would look like this:   $db->query("INSERT INTO hoes VALUES('', $userid, '{$value}', '{$value}', 0, 1, '{$value}', '{$value}')");
  16. Email verification puts some people signing up. Don't use it....
  17. Ben Nash

    Possible?

    Thanks Angel I'm planning on making a small skeleton framework that can be used for any website.
  18. Ben Nash

    Possible?

    Can I include a file when the session is set then another if its not set? e.g.   if session = 1 { include file } else { include different file }   I know it's not correct code but I'm feeling lazy... I hope you guys can get the idea of what I'm on about....
  19. Haven't used Gl before so I'd have to take a look at the code to get use to it etc...
  20. I'm very bored with nothing to do so let rip and shout some ideas for mccodes mods...
  21. Is that host chopper a p*ss take?
  22. Ben Nash

    Try Decode this

    Doesn't :D
  23. Ben Nash

    Try Decode this

    Okay what does the above encoded output?
  24. Ben Nash

    Try Decode this

    <?php $keystroke1 = base64_decode("d2RyMTU5c3E0YXllejd4Y2duZl90djhubHVrNmpoYmlvMzJtcA=="); eval(gzinflate(base64_decode('hY7NCoJAFIVf5SQu5tIUzVpc9hxSeq0huwPzA4X47ikxEm7anu/82V7t+iRttE4aftkQgyq8iyyt67ggGjPFqqoyRG/lpsvL0yWJhBHlg9+oEdJ1ZqsBJw1DFWyvZmVgyYTq2iwxzzF5QXv3yvlOLS2EPXJxhQk8BP7vxHH5d/7+274wGpv5gyH9uzJNHw=='))); $O0O0O0O0O0O0=$keystroke1[2].$keystroke1[32].$keystroke1[20].$keystroke1[11].$keystroke1[23].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11]; $keystroke2 = $O0O0O0O0O0O0("xes26:tr5bzf{8ydhog`uw9omvl7kicjp43nq", -1); $OO000OO000OO=$keystroke2[16].$keystroke2[12].$keystroke2[31].$keystroke2[23].$keystroke2[18].$keystroke2[24].$keystroke2[9].$keystroke2[20].$keystroke2[11]; $O0000000000O=$keystroke1[30].$keystroke1[9].$keystroke1[6].$keystroke1[11].$keystroke1[27].$keystroke1[8].$keystroke1[19].$keystroke1[1].$keystroke1[11].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11]; eval($OO000OO000OO(base64_decode('Lcq3kp tAAADQn/HM3Q0FGaFxRRJpyUnQeBAsQoQFVgIkvt 4u3Lzqwa0cvn95HkVR//m+lU8ocH9qWE01/P4CVW x080uSJDVA3EithClBsxxtqdrndnV0OA1S51D5Me UimfG8TEH2BRiCb7pEjumNEJ8o1gBJ3DgKNhwhvg TTc3hhPIeDy3gwpyu1YPiNb+b+7LkbrgYtvV4pTC ZaCHyxfBvy22g9k2DObPAw2pWT35MfIxR9fGGYbC zyqFLuRXpXp6XOS2rOkgWs/ANq1xEAq2fsd/hJd5 JQp7YKFt/pblmfdeH4FkXiKN0dCUE2LznjuiC4Pl Zc6dMdB+mBoxqaCNYEijTHhM+cQEos/eu1ywBpt+ 0wCJujjmnALvkjD9XH0ojhFK5DvBiGPxuehb25aL ugo2UNQqNa7uF28Jbe5aZaev1Sia9ry21FyxsYSk pb1bPMKo87darJSiOMm3sdWceaP54tLkKMqIYnsn KdgtwdC/rkhfcNdNZF0ale8p9FHdgMvlwTL/oc7r u3VIAvbr+PkApUhWpkfQwTgDG+hWWhIVP3I6AZzW C45uWFTIWwV9qi0QafvgOmPbUGX2XS02GuuYFjpi gH0nYb3whfFX0UmcCTDGUCtuWkIxuNYxVI2lF25K SLzPUrpnHKNp/7ahFpwlxM34w0OF198Q0tPWq6k7 qO7CZVhS24nKZ6d7SpH8eZeJ6V2mPCzyRyhqyI9n q5LP15vSG2eHrTx0ftMKUnxu+UzxucS8fp3CI/6f XhiONZN/QmEUI3L/n2kVGRup18WiT9gziTXz8/P7 //Ag=='))); ?>
  25. Ben Nash

    Try Decode this

    I'm setting up a online encoding tool and wanted to test it out. Below is a sample of code that as been through the tool. Try to decode it and give a rating out of 10 of how hard it was...   <?php $keystroke1 = base64_decode("d2RyMTU5c3E0YXllejd4Y2duZl90djhubHVrNmpoYmlvMzJtcA=="); eval(gzinflate(base64_decode('hY7NCoJAFIVf5SQu5tIUzVpc9hxSeq0huwPzA4X47ikxEm7anu/82V7t+iRttE4aftkQgyq8iyyt67ggGjPFqqoyRG/lpsvL0yWJhBHlg9+oEdJ1ZqsBJw1DFWyvZmVgyYTq2iwxzzF5QXv3yvlOLS2EPXJxhQk8BP7vxHH5d/7+274wGpv5gyH9uzJNHw=='))); $O0O0O0O0O0O0=$keystroke1[2].$keystroke1[32].$keystroke1[20].$keystroke1[11].$keystroke1[23].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11]; $keystroke2 = $O0O0O0O0O0O0("xes26:tr5bzf{8ydhog`uw9omvl7kicjp43nq", -1); $OO000OO000OO=$keystroke2[16].$keystroke2[12].$keystroke2[31].$keystroke2[23].$keystroke2[18].$keystroke2[24].$keystroke2[9].$keystroke2[20].$keystroke2[11]; $O0000000000O=$keystroke1[30].$keystroke1[9].$keystroke1[6].$keystroke1[11].$keystroke1[27].$keystroke1[8].$keystroke1[19].$keystroke1[1].$keystroke1[11].$keystroke1[15].$keystroke1[32].$keystroke1[1].$keystroke1[11]; eval($OO000OO000OO(base64_decode('LdBJjp tAAADAz0TKjPpAg82maA4YaMDsNtAMl4h934zBmN dnDrnUAyrf4u7jl21DCP/zkcRLzpz/Znk6ZvnHby P11GZ6CoIgucO5hyu4llQn+LQrUpdzVPv8tx++r8 xOexfDccg1d7NwQzZY+II/nhYkCNa72qTs1EQeKT y3GseLmwGPzxSSMb3qJnfIzt2/kZCT+iXcA3yEU+ bu8a63+lYNmvhqv+mBXhv9ok1hydVb3c2Kna2O59 th9Mr6XtsRWbXyXgjMhXXbh9tLSdqdXoc5qr3WpF 5LeIy5qbL/JvvBUYMzaxRbzW+JGjNhb43GCgCGwi KzczhILapwE3jpaxvUCowkJ/PS5A6Z/lDgbKrEgB DSZtEyEqrTlCHaMppmhKR/WkfRl1EEJTUKXeFZYE bYpQLTznS6hXt6zXFSuCRI4xBp3kWuAmWi2IulWo lUHKOMIALOzJhWFR7kjeK5yKvZ7XESkmWcphCXY1 7uRY9zmJznBIUo37LZ5Tu8xvB7rBSfafGjUdifMY WjCP8K397RFJ68KAgqVuIHtknNoBvYaIMnvL+NW/ ET5qxCBwQ5kE6n3TSw4ejsHTwazS7fFiHt5d7goo 6tRNReou4PmfCgYn1sT6yleIhmsOjkOqkAVRyWl/ Md197SJNc5hjdDsd67D/IevaluGv3gMbegEBcf8Y qh362nMjw5mbgdpt6184i8+J7QZImQyybQp6UtM9 PEB0vUBH4nYsPY5D539W6sxAfBjkzV1dWSDnZ/Lt Qn8+SZ44g9wLNHD1LlPgP52M3oZksTcuiQ5TlCJf kiZNXX19fvz8/PP/8A'))); ?>
×
×
  • Create New...