help check this code , what it error THX

Discussion in 'PHP' started by adsenselabs, Apr 20, 2010.

  1. #1
    help check this code , what it error THX

    i have test it code,
    run it. see blank page.

    function cncard_process($params){
    	global $base, $securebase;
    
    	if($params['auth_test']=="1"){$params['auth_test']="Y";}else{$params['auth_test']="";}
    
    	$returnurl=str_replace("http://","",$base)."/cncardcallback.php";
    
    	$c_mid		= $params['auth_username'];	      
    	$c_order	= $params['seed'];                 
    	$c_address	= $params['AuxBillingAddress1'];			
    	$c_tel		= $params['AuxBillingCardPhone'];			
    	$c_post		= $params['AuxBillingPostalCode'];			
    	$c_email	= $params['RegistrantEmailAddress'];		
    	$c_usd1	    = $params['total_charge'];               
    	$c_rmb      = 6.85;                                
             $c_orderamount = $params['total_charge']*$c_rmb;      
    	$c_ymd		= data(Ymd);					
    	$c_moneytype= "0";							
    	$c_retflag	= "1";							
    	$c_paygate	= "";						
    	$c_returl	= "http://$base/";
    	$c_memo1	= "ABCDE";							$c_memo2	= "12345";							$c_pass     = $params['auth_secretkey'];					
    	$notifytype	= "1";								$c_language	= "0";
        $srcStr = $c_mid . $c_order . $c_orderamount . $c_ymd . $c_moneytype . $c_retflag . $c_returl . $c_paygate . $c_memo1 . $c_memo2 . $notifytype . $c_language . $c_pass;
    	$c_signstr	= md5($srcStr);
    
    	$theform = "<form action=\"".$params['auth_url']."\" method=\"post\">
    				<input type=\"hidden\" name=\"c_mid\" value=\".$c_mid.\">
    				<input type=\"hidden\" name=\"c_order\" value=\".$c_order.\">
    				<input type=\"hidden\" name=\"c_name\" value=\"".$params['AuxBillingFirstName']."%20".$params['AuxBillingLastName']."\">
    				<input type=\"hidden\" name=\"c_address\" value=\".$c_address.\">
    				<input type=\"hidden\" name=\"c_tel\" value=\".$c_tel.\">
    				<input type=\"hidden\" name=\"c_post\" value=\"".$params['AuxBillingPostalCode']."\">
    				<input type=\"hidden\" name=\"c_email\" value=\"".$params['RegistrantEmailAddress']."\">
    				<input type=\"hidden\" name=\"c_orderamount\" value=\".$c_orderamount.\">
    				<input type=\"hidden\" name=\"c_ymd\" value=\".$c_ymd.\">
    				<input type=\"hidden\" name=\"c_moneytype\" value=\".$c_moneytype.\">
    				<input type=\"hidden\" name=\"c_retflag\" value=\".$c_retflag.\">
    				<input type=\"hidden\" name=\"c_paygate\" value=\".$c_paygate.\">
    				<input type=\"hidden\" name=\"c_returl\" value=\"$returnurl\">
    				<input type=\"hidden\" name=\"c_memo1\" value=\".$c_memo1.\">
    				<input type=\"hidden\" name=\"c_memo2\" value=\".$c_memo2.\">
    				<input type=\"hidden\" name=\"c_language\" value=\".$c_language.\">
    				<input type=\"hidden\" name=\"notifytype\" value=\".$notifytype.\">
    				<input type=\"hidden\" name=\"c_signstr\" value=\"$c_signstr\">
                    <input type=\"submit\" name=\"Submit\" value=\"".CONTINUETOPAY."\" class=\"formfield\">
                    </form>";
    
    	return $theform;
    }
    PHP:
     
    adsenselabs, Apr 20, 2010 IP
  2. tech163

    tech163 Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well, do you call the function in the script? If you don't, then nothing is *supposed* to appear.
     
    tech163, Apr 20, 2010 IP
  3. adsenselabs

    adsenselabs Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this ioncube encode ,don't see code....
     
    adsenselabs, Apr 20, 2010 IP
  4. Pudge1

    Pudge1 Well-Known Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    140
    Digital Goods:
    1
    #4
    From what I see all you did is create a function. You never used it.
     
    Pudge1, Apr 20, 2010 IP