'george@jge.com', //paypal email address 'currency' => 'USD', //paypal currency 'cursymbol'=> '$', //currency symbol 'location' => 'US', //location code (ex GB) 'returnurl'=> 'http://mysite/myreturnpage',//where to go back when the transaction is done. 'returntxt'=> 'Return to My Site', //What is written on the return button in paypal 'cancelurl'=> 'http://mysite/mycancelpage',//Where to go if the user cancels. //Shipping Cost 'custom' => $invoice,//Custom attribute 'handling_cart' => '',// if using percentage handling below leave empty ); $adminEmail='email'; $shopName ='PayPal Shopping Cart'; $slogan ='Be in business in minutes. One page of code, css and product file.'; $pageTitle = 'CMXads.com "FREE". One Page PayPal Shopping Cart Ecommerce Php Website Script'; //page title $taxout='0';//leave as is $shipout='';//leave as is $cartLogo ='th2.jpg'; //other cart variables $tax_rate='6'; $taxstate='WV'; $currency='USD'; //base handling added to shipping $handling='2';//2 percent of order total $ship_rate='';//percent of order total. NOTE: LEAVE EMPTY TO USE PER ITEM SHIPPING FEE FROM PRODUCT FILE $disc_ship='75'; //more than 2 same items shipping 75% of combined item shipping from product file function flock_utf8_contents($filename){ $return = FALSE; if(file_exists($filename) and is_readable($filename)){ if($handle = @fopen($filename, 'r')){ while(!$return){ if(flock($handle, LOCK_SH)){ if($return = file_get_contents($filename)){ flock($handle, LOCK_UN); }}}fclose($handle);}} return mb_convert_encoding($return, 'UTF-8', mb_detect_encoding($return, 'UTF-8, ISO-8859-1', true));} $str=flock_utf8_contents($fl); function parse_file($str) { global $str; global $fields; $res=array(); $lines=array(); $output = array(); $output = explode("\n", $str); $output=array_filter($output); $output=array_map('trim', $output); foreach ($output as $key=>$data) { $lines = explode(';', $data); $res[]=array_combine($fields,$lines); } return $res; } $current_url = base64_encode("http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); $res=parse_file($str); function find($string, $array){ foreach ($array as $key => $value) { unset ($array[$key]); if (in_array($string, $value)) { $array[$key] = $value;}} return $array;} ?>