Jump to content

3raser

Members
  • Posts

    815
  • Joined

  • Last visited

Everything posted by 3raser

  1. No help at all, this is probably the best one you can find without purchasing shit. Please just leave this thread.
  2. I can't seem to get this proxy to work. I own a site where people can earn points, but they are just using proxies to by-pass everything, and get all the points they want! But I'm trying to take action by including a script that block proxies, I have no errors, but it just doesn't seem to be working! I did everything EXACTLY the way they told me to in this: (Editing nothing but the .log file, and all I did was change permissions) http://www.roscripts.com/PHP_Proxy_Detector-75.html My site: http://friction.comuf.com/ (Yes, I still have the script on there.) Whenever I used http://www.air-proxy.com (just to test the script), it still lets my through. Can anyone help?
  3. Have to go soon... require("settings.php"); //extract $extract = mysql_query("SELECT * FROM users"); $numrows = mysql_num_rows($extract); while ($row = mysql_fetch_assoc($extract)) { $total = 0; $overall = $row[frpcash] + $total; echo "Total FrP cash: ". $overall .""; } Result: "Total FrP cash: 10Total FrP cash: 10" But it should say 20, AND the text is messed up :/
  4. Why is it everytime I login, it gives me the incorrect password error? I KNOW FOR A FACT I'm typing it in right, whats wrong with my code?... <?php session_start(); /*no whitespace before opening php tag...*/ ?> <link rel="stylesheet" type="text/css" href="style.css" /> <div align="center"><div class="box"><div align="left"><img src="Banner.png" border="0"><?php require("navi.php"); ?></div></div><br><br> <?php require("settings.php"); $username = $_POST['username']; $password = $_POST['password']; $secret_password = md5($password); if ($_SESSION['username']) die("You're currently logged in already! <a href='index.php'>Return home</a>"); if (!$username) die(" <font face='arial' size='2'> <html><center><br /><br /><h3>Login</h3> <form action='login.php' method='POST'> <div class='box2'>Username: <input type='text' name='username'></div> <div class='box2'>Password: <input type='password' name='password'></div> <div class='box2'><input type='submit' value='Login'></div> </form></center> "); //protection $before = array('(', ')', '^', '<', '>', '`', '*', '<script>', '</script>', ';DROP TABLE users;', 'users', 'DROP', 'TABLE'); $after = array('', '', '', '', '', '', '', '', '', '', '', '', ''); $output = str_replace($before, $after, $username); if ($username&&$password) { $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $query = mysql_query("SELECT * FROM users WHERE username='$output'"); $numrows = mysql_num_rows($query); if ($numrows!=0) { while ($row = mysql_fetch_assoc($query)) { $dbusername = $row['username']; $dbpassword = $row['password']; } if ($output==$dbusername&&$secret_password==$dbpassword) { echo "<div class='box'>Successfully logged in! <a href='index.php'>Return home</a></div>"; $_SESSION['username']=$output; } else echo "<div class='box'><span style='color:red'>Incorrect password!</span></div>"; } else die("<div class='box'><span style='color:red'>That user doesn't exist!</span></div>"); } else die("<div class='box'><span style='color:red'>Please enter a username and password</span></div>"); ?><?php require("footer.php"); ?>
  5. Edit: Got it working
  6. It's just login.php....nothing else.
  7. Fixed the session thing, but I still get the error.
  8. Parse error: syntax error, unexpected '<' in /home/a9558420/public_html/login.php on line 3 <?php session_start ?> <link rel="stylesheet" type="text/css" href="style.css" /> <div align="center"><div class="box"><div align="left"><img src="Banner.png" border="0"><div class="line">Home | Start<div class="line"></div></div><br><br> <?php require ("settings.php"); $username = $_POST['username']; $password = $_POST['password']; $anti = $_POST['anti']; $secret_password = md5($password); $anti1 = "djksdfjiu44"; if (!$username || !$password) die (" <p align='left'><form action='register.php' method='POST'> <b>Please note that special characters will be removed upon registering.</b><br /><br /> * Username: <input type='text' name='username' maxlength='13'><br /><br /> * Anti-spam verification: <input type='text' name='anti'><br>//The code is $anti1//<br /><br /> * Password: <input type='password' name='password' maxlength='25'></div><br /><br /> <input type='submit' value='Register'> </form></p>"); if (!$anti) die ("You didn't enter in the anti-spam verification code!"); if ($anti==$anti1) { if (strlen($password)<=3) { echo "Password must be more then 3 characters long! <a href='register.php'> << Back </a>"; } else { if (strlen($username)<=3) { echo "Username must be more then 3 characters long! <a href='register.php'> << Back </a>"; } else { $ip = $_SERVER['REMOTE_ADDR']; //protection $before = array('(', ')', '^', '<', '>', '`', '*', '<script>', '</script>', ';DROP TABLE users;', 'users', 'DROP', 'TABLE'); $after = array('', '', '', '', '', '', '', '', '', '', '', '', ''); $output = str_replace($before, $after, $username); //protection $display_name_output = str_replace($before, $after, $dname); //protection $output4 = str_replace($before, $after, $email); //protection $output2 = str_replace($before, $after, $signature); $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $query = mysql_query("SELECT * FROM users WHERE username='$output'"); $numrows = mysql_num_rows($query); if ($numrows!=0) { echo "This username already exists!"; } else { //write $write = mysql_query("INSERT INTO users (id, username, password, frpcash, premium, ip) VALUES ('', '$output', '$secret_password', '10', '0', '$ip')") or die(mysql_error()); echo "<div class='box'>Thank you for registering ". $output ."! Login <a href='login.php'>here</a>!</div>"; } } } } else { echo "You entered the incorrect anti-spam verification code!"; } ?></div><br><br><Br><br><img src="1.png" border="0"></img></div></div>
  9. Oh, ok.
  10. Never got it before. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 <link rel="stylesheet" type="text/css" href="style.css" /> <div align="center"><div class="box"><div align="left"><img src="Banner.png" border="0"><div class="line">Home | Start<div class="line"></div></div><br><br><?php require ("settings.php"); $username = $_POST['username']; $password = $_POST['password']; $anti = $_POST['anti']; $secret_password = md5($password); $anti1 = "djksdfjiu44"; if (!$username || !$password) die (" <p align='left'><form action='register.php' method='POST'> <b>Please note that special characters will be removed upon registering.</b><br /><br /> * Username: <input type='text' name='username' maxlength='13'><br /><br /> * Anti-spam verification: <input type='text' name='anti'><br>//The code is $anti1//<br /><br /> * Password: <input type='password' name='password' maxlength='25'></div><br /><br /> <input type='submit' value='Register'> </form></p>"); if (!$anti) die ("You didn't enter in the anti-spam verification code!"); if ($anti==$anti1) { if (strlen($password)<=3) { echo "Password must be more then 3 characters long! <a href='register.php'> << Back </a>"; } else { if (strlen($username)<=3) { echo "Username must be more then 3 characters long! <a href='register.php'> << Back </a>"; } else { $ip = $_SERVER['REMOTE_ADDR']; //protection $before = array('(', ')', '^', '<', '>', '`', '*', '<script>', '</script>', ';DROP TABLE users;', 'users', 'DROP', 'TABLE'); $after = array('', '', '', '', '', '', '', '', '', '', '', '', ''); $output = str_replace($before, $after, $username); //protection $display_name_output = str_replace($before, $after, $dname); //protection $output4 = str_replace($before, $after, $email); //protection $output2 = str_replace($before, $after, $signature); $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); $query = mysql_query("SELECT * FROM users WHERE username='$output'"); $numrows = mysql_num_rows($query); if ($numrows!=0) { echo "This username already exists!"; } else { //write $write = mysql_query("INSERT INTO users (id, username, password, frpcash, premium, ip) VALUES ('', '$output', '$secret_password', '10', '0', '$ip'") or die(mysql_error()); echo "<div class='box'>Thank you for registering ". $output ."! Login <a href='login.php'>here</a>!</div>"; } } } } else { echo "You entered the incorrect anti-spam verification code!"; } ?></div><br><br><Br><br><img src="1.png" border="0"></img></div></div>
  11. Here is my error video: http://www.youtube.com/watch?v=IShnOqX7M14
  12. I'm sorry, but I have no clue what you mean. I keep trying it with this code: "LOAD DATA LOCAL INFILE '/home/user/names.txt' INTO TABLE pkitems;" - I select the table I want, and then click insert. Why isn't it inserting the item names? My file structure: Dragon claws Dragonplatebody Wornout dragon gauntlets Ruined dragon armour lump Ruined dragon armour shard Ruined dragon armour slice Statius full helm Statius platebody Statius platelegs Statius warhammer Vesta's chainbody Vesta's longsword Vesta's plateskirt Vesta's spear Zuriel's hood Zuriel's robe top Zuriel's robe bottom Zuriel's staff Morrigan's coif Morrigan's javelin Morrigan's javelin(p) Morrigan's javelin(p+) Morrigan's javelin(p++) Morrigan's leather body Morrigan's leather chaps Morrigan's throwing axe Elite black full helm Elite black platebody Elite black platelegs Arcane spirit shield Blessed spirit shield Divine spirit shield Elysian spirit shield Spectral spirit shield Spirit shield Corrupt dragon battleaxe Corrupt dragon chainbody Corrupt dragon dagger Corrupt dragon longsword Corrupt dragon mace Corrupt dragon med helm Corrupt dragon platelegs Corrupt dragon plateskirt Corrupt dragon scimitar Corrupt dragon spear Corrupt dragon sq shield Santa's Top Santa's Bottoms Santa's Amulet Robe top Robe bottom Hat Regen. Bracelet Skills necklace Forinthry bracelet My code: LOAD DATA LOCAL INFILE '/home/user/names.txt' INTO TABLE pkitems;
  13. Well, if you know of any other ways for me to insert over 6,000+ game items into my database with an ID, Name, and INT then please do say so. So that's why I was hoping for a file instead, so I could just copy and paste. I want to show you an example: http://item-db.co.nr/ - That website is an item searcher, over 6,000 items just like how I want it. Game items of http://www.runescape.com to help you remember the codes, did they enter 6,000 items into a database manually? Thank you, but how do I make it display the data it found? Say you search for the item with the name: "Dragon Dagger" and it comes up with a result, and tells me the location/position of the file. I want it to also display the ID, so would that also be possible? And inside the file it would be listed something like this: "426 Dragon Dagger" - And when you search "Dragon Dagger" is should bring up the results: "ID ItemName" (Which would/should be listed in the file)
  14. Note: I can use a database, but I have about 10000 items I need to include in a search, and adding that into a database just isn't going to happen.....Is it possible VIA PHP to search a files contents? Say I'm making an item search system, and I want to search itemlist.txt, is it possible to make a PHP code to grab that file and then search it for the users input?
  15. Bump
  16. Also, I have ONE more error I forgot to post that is related to this somehow. Here is my code: if ($amountleft == 3) { $get2 = mysql_query("SELECT * FROM done WHERE ip='$ip'"); while ($row2 = mysql_fetch_assoc($get2)) { $done = $row2['done']; } $mv = "It seems you've reffered 3 people already, <a href='done.php'>tell us</a>."; if ($done ==1) { $mv = "Your forum link has been sent, and your posts will be done very soon. "; } echo $mv; } My error is: Parse error: syntax error, unexpected '}' in /home/a2392706/public_html/start.php on line 57
  17. Never mind, I got it. And thank you for solving my problem
  18. Ok it's working, but how come when done does == 1 in my database, it still doesn't say "You've already submitted your forum link, please be patient. "
  19. Parse error: syntax error, unexpected T_ELSE in /home/a2392706/public_html/done.php on line 51 Code: <?php $ip = $_SERVER['REMOTE_ADDR']; $get2 = mysql_query("SELECT * FROM done WHERE ip='$ip'"); while ($row2 = mysql_fetch_assoc($get2)) { $done = $row2['done']; } //seeing if they've started $construct = "SELECT * FROM ref WHERE ip='$ip'"; $run = mysql_query($construct); $foundnum = (mysql_num_rows($run)); $get = mysql_query("SELECT * FROM ref WHERE ip='$ip'"); while ($row = mysql_fetch_assoc($get)) { // get data $id = $row['id']; $ip = $row['ip']; $amountleft = $row['amountleft']; $pending = $row['pending']; } $amountleft1 = 3 - $amountleft; if ($done ==1) { echo "You've already submitted your forum link, please be patient. "; } else { if ($foundnum ==1) { if ($amountleft == 3) { echo "It seems you've completed the deal. Please, enter in the link to your forum:<br><br> <form action='sendinfo.php' method='POST'><input type='text' name='wlink' /><input type='submit' value='Send it!'></form> "; } else { echo "You haven't completed your refering deal, you must refer the REQUIRED amount of people. You need to refer ". $amountleft1 ." more."; } } } else { echo "You haven't even started. <a href='info.php'>Go here</a>"; } ?>
  20. THANK YOU!
  21. It makes no since!!! Why isn't my ip and message table updating in the database to the text, it's suppose to be updated but it isn't! (see the code below, look at the $output code and then mysql update queries) <?php header("Content-type: image/png"); $dbhost = "****"; $db = "****"; $dbuser = "****"; $dbpassword = "****"; //connect to database $connect = mysql_connect("$dbhost","$dbuser","$dbpassword") or die("Connection failed!"); mysql_select_db("$db") or die("Database fail!"); //protection $before = array('(', ')', '^', '<', '>', '`', '*', '<script>', '</script>', ';DROP TABLE users;', 'users', 'DROP', 'TABLE'); $after = array('', '', '', '', '', '', '', '', '', '', '', '', '', ''); $output = str_replace($before, $after, $message); $im = @imagecreate(500, 48) or die("Error"); $message = $_POST['message']; $ip = $_SEVER['REMOTE_ADDR']; if (!$message) { //extract $extract2 = mysql_query("SELECT * FROM data"); $numrows2 = mysql_num_rows($extract2); while ($row2 = mysql_fetch_assoc($extract2)) { $number = $row2[messagenumber]; $views = $row2[imageviews]; $message = $row2[message]; } } else { mysql_query("UPDATE data SET messagenumber = messagenumber + 1"); mysql_query("UPDATE data SET message='$output'"); $message = $_POST['message']; } mysql_query("UPDATE data SET ip='$ip'"); mysql_query("UPDATE data SET imageviews = imageviews + 1"); $background_color = imagecolorallocate($im, 255, 255, 0); // yellow $blue = imagecolorallocate($im, 0, 0, 255); // blue $idk = imagecolorallocate($im, 0, 0, 50); //idk imagestring($im, 2, 5, 2, "WWC: ". $message ."", $blue); imagestring($im, 3, 5, 15, "Make a world-wide-comment at srl.comoj.com", $idk); imagestring($im, 3, 5, 25, "Total comments made: ". $number ."!", $idk); imagestring($im, 3, 5, 35, "The total amount of message views is: ". $views ."!", $idk); imagepng($im); imagedestroy($im); ?>
×
×
  • 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.