Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
PHP to ASP Need HELP!
Old 04-11-2010, 10:44 AM PHP to ASP Need HELP!
Junior Talker

Posts: 1
Trades: 0
can anyone this do to asp ? i realy need it much! thank you.

PHP Code:
 <?php
$ipadressen 
= array (
'82.94.203.80',
'82.94.203.81',
'82.94.203.82',
'82.94.203.83',
'82.94.203.84',
'82.94.203.85',
'82.94.203.86'
);
 
if(
$_SERVER['REQUEST_METHOD'] == "GET")
{
//Iemand roept ons aan met een aantal GET variabelen! Wie is het?
$ipadres $_SERVER['REMOTE_ADDR'];
 
//We laten alleen de onderstaande ipadressen toe... Die zijn van Mollie!
if(in_array($ipadres$ipadressen))
{
if(isset(
$_GET['parameter']))
{
$waarde1 $_GET['parameter'][1];
$waarde2 $_GET['parameter'][2];
 
//Dit is de enige output die Mollie kan hebben... de betaling is ontvangen! 
echo 'OK';


}
?>

Last edited by 2day2die; 04-11-2010 at 11:00 AM..
2day2die is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-11-2010, 04:42 PM Re: PHP to ASP Need HELP!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
dim ipadressen(6) 
	ipadressen(0) = '82.94.203.80',
	ipadressen(1) = '82.94.203.81',
	ipadressen(2) = '82.94.203.82',
	ipadressen(3) = '82.94.203.83',
	ipadressen(4) = '82.94.203.84',
	ipadressen(5) = '82.94.203.85',
	ipadressen(6) = '82.94.203.86'
);

if ucase(request.servervariables("REQUEST_METHOD")) = "GET") then
    //Iemand roept ons aan met een aantal GET variabelen! Wie is het?
    dim ipadres : ipadres = request.servervariable("REMOTE_ADDR")
    
    //We laten alleen de onderstaande ipadressen toe... Die zijn van Mollie!
    if in_array($ipadres, $ipadressen) then
        	if request.querystring("parameter") <> "" then 
	            $waarde1 = request.querystring(0)
            	$waarde2 = request.querystring(1)

            	//Dit is de enige output die Mollie kan hebben... de betaling is ontvangen!        
            	response.write 'OK'
			end if
    end if    
end if
in_array function
Code:
function in_array(p_sIP, p_sIPArray) 
	dim l_iLoop
	in_array = false
	
	for l_iLoop = lbound(p_sIPArray) to ubound(p_sIPArray)
		if p_sIPArray(l_iLoop) then
			in_array = true
			exit for
		end if
	end for
end function
Not tested BTW
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to PHP to ASP Need HELP!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.70268 seconds with 12 queries