Jump to content

mark103

Members
  • Posts

    268
  • Joined

  • Last visited

Everything posted by mark103

  1. My purpose is to protected the site I am connect to, so should I use something like this? <?php $connect = http.www.mysite.com/script.php }
  2. Ok please can you post the source that would hide the url similar as my first post?
  3. Well, I want to hide the actual url in the config file that I wish to connect to. So, is the code I have posted is the correct source to use or if I have to adjust them?
  4. Hi guys, I want to set up a php script to connect to php sources on another site, something is like this: <?php $mysql = array ( 'host' => 'http://www.mysite.com/myscript.php', } <?php try { include_once('mysql_connect.php'); } Is the source is correct to use that I want to read the script while hide the actual url in the config php script?? Thanks, Mark
  5. Hi guys, I am creating a script as I am using this to detection the proxy server levels. <?php //proxy levels //Level 3 Elite Proxy, connection looks like a regular client //Level 2 Anonymous Proxy, no ip is forworded but target site could still tell it's a proxy //Level 1 Transparent Proxy, ip is forworded and target site would be able to tell it's a proxy if(!$_SERVER['HTTP_X_FORWARDED_FOR'] && !$_SERVER['HTTP_VIA'] && !$_SERVER['HTTP_PROXY_CONNECTION']){ echo '3'; } elseif(!$_SERVER['HTTP_X_FORWARDED_FOR']){ echo '2'; } else echo '1'; ?> I want the script to check the ip that if the proxy server is a Codeen/PlanetLab and BotNet proxy servers, then place on level one and if they are safe/unsafe to use. I cannot find the code to do the methods. Please help me! Thanks in advance.
  6. please can someone help????????????????????
  7. Hi guys, Before I am going to create php script to make a proxy detection, I want to ask that if it possible to create a method that checking whether if the proxy server is a located governments or fbi. Is it possible? If so, what method I would use? Thanks, Mark
  8. Oh sorry, I realised why it doesn't work. I have input the wrong details. Here it is: $link = mysql_connect('DB_HOST', 'DB_USER', 'DB_PASSWORD'); How can I find out what is my database host?
  9. Hi guys, I have a problem with the script. There is an error while I tried to produce the script. Parse error: syntax error, unexpected T_DNUMBER in /home/mysite/public_html/mysite.com/script.php on line 15 Here it is the code: <?php //Start session session_start(); //Include database connection details require_once('config.php'); //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Connect to mysql server $link = mysql_connect(111.11.11.11.11:5002, myusername, mypassword); if(!$link) { die('Failed to connect to server: ' . mysql_error()); } //Select database $db = mysql_select_db(DB_DATABASE); if(!$db) { die("Unable to select database"); } //Function to sanitize values received from the form. Prevents SQL injection function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } //Sanitize the POST values $fname = clean($_POST['fname']); $lname = clean($_POST['lname']); $login = clean($_POST['login']); $password = clean($_POST['password']); $cpassword = clean($_POST['cpassword']); //Input Validations if($fname == '') { $errmsg_arr[] = 'First name missing'; $errflag = true; } if($lname == '') { $errmsg_arr[] = 'Last name missing'; $errflag = true; } if($login == '') { $errmsg_arr[] = 'Login ID missing'; $errflag = true; } if($password == '') { $errmsg_arr[] = 'Password missing'; $errflag = true; } if($cpassword == '') { $errmsg_arr[] = 'Confirm password missing'; $errflag = true; } if( strcmp($password, $cpassword) != 0 ) { $errmsg_arr[] = 'Passwords do not match'; $errflag = true; } //Check for duplicate login ID if($login != '') { $qry = "SELECT * FROM members WHERE login='$login'"; $result = mysql_query($qry); if($result) { if(mysql_num_rows($result) > 0) { $errmsg_arr[] = 'Login ID already in use'; $errflag = true; } @mysql_free_result($result); } else { die("Query failed"); } } //If there are input validations, redirect back to the registration form if($errflag) { $_SESSION['ERRMSG_ARR'] = $errmsg_arr; session_write_close(); header("location: register-form.php"); exit(); } //Create INSERT query $qry = "INSERT INTO members(firstname, lastname, login, passwd) VALUES('$fname','$lname','$login','".md5($_POST['password'])."')"; $result = @mysql_query($qry); //Check whether the query was successful or not if($result) { header("location: register-success.php"); exit(); }else { die("Query failed"); } ?> Suely I have enter the correct local host ip, username and password?
  10. yeah so where can i get the script from?? i need one to transfer from alertpay to my paypal......E.G take funds from alertpay account (me@myemail.com) to paypal account (me@mypaypal.com). Is that possible?? if so i need the script??
  11. Hi guys I need your help. I am looking for php script that would allow me to transfer the money from my alertpay to my paypal account. Is that possible to get a script?? Looking forward your reply. Thanks, Mark
  12. To find some help. It general question also. Any idea how i can transfer the amount from paypal to my account on my website?? Then why was it posted in this section...?
  13. It nothing to do with it. Just it have to do with script dude.
  14. Hi guys Do any of you know how I could transfer the amount from my paypal account (deposit only) to any accounts of the website in the world?? As I am trying to deposit the cash from paypal to my website just like this: It bit like Epay where they have got their own site to store money in easily but i don't know how to do that. Any idea how I can do this?? Thanks, Mark
  15. That's correct. That's what I am trying to do so why it haven't send the information to paypal and changes the amount when I entered the value on my form?? We have tried it all afternoon and have no luck to successful yet. Do you know how to send the information to paypal site and changes the amount when I entered the value on my form?? Hopefully we can get it tonight. Thanks, Mark
  16. Thanks but you got this incorrect. I said that I need the script to send the input value on paypal site by the amount value where to require for the payment. Please reconsider my thread once again. It is getting annoying to say same things all over again when you mislead me in the wrong situations. Thanks, Mark
  17. thanks, i have exchange the code but it is still the same.
  18. Yeah so how can I display the value number on next page when I input the value on formtext1?? Please let me know how we can resolve it. Thanks, Mark
  19. any idea how to situations and get this resolve?? Thanks, Mark
  20. here it is: <?php ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>My Profile</title> <link href="loginmodule.css" rel="stylesheet" type="text/css" /> </head> <body> <a href="test.php">Back</a> <h1 align="center">Deposit</h1> <input name="formtext1" type="text" style="position:absolute;width:105px;left:351px;top:89px;z-index:0"> <div id="text1" style="position:absolute; overflow:hidden; left:194px; top:92px; width:155px; height:21px; z-index:1"><div class="wpmd"> <div align=right>Add Fund: £ </div> </div></div> <form action="paypal.php" method="post"> <input name="formbutton1" type="submit" value="Submit" style="position:absolute;left:372px;top:120px;z-index:2"> </form> </body> </html> That is the form code.
  21. I have input the first code you post die($_POST['formtext1']); but it is incorrect. It make the page goes blank so I have convert it to $_POST['formtext1']; And I have replaced with your second code you post $p->add_field('amount', $_POST['formtext1']); It is still the same. I have no luck. Any idea how to set up the value on the next page that to display it?? Thanks, Mark
×
×
  • 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.