Guest User

PDT SCRIPT

a guest
May 15th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 26.23 KB | None | 0 0
  1. <?php
  2. header('Content-type: text/html; charset=utf-8');
  3. ?>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
  5.  
  6. <?php
  7. // For sandbox testing
  8. //$pp_hostname = "www.sandbox.paypal.com";
  9.  
  10. //live
  11. $pp_hostname = "www.paypal.com";
  12.  
  13. //sandbox token
  14. //$auth_token = "***";
  15.  
  16. //real token
  17. $auth_token = "***";
  18.  
  19. if(isset($_GET['tx']))
  20. {
  21.   $tx = $_GET['tx'];
  22.  
  23.     // Init cURL
  24.     $request = curl_init();
  25.  
  26.     // Set request options
  27.     $req = 'cmd=_notify-synch';
  28.     $req .= "&tx=$tx&at=$auth_token";
  29.  
  30. curl_setopt($request, CURLOPT_URL, "https://$pp_hostname/cgi-bin/webscr");
  31. curl_setopt($request, CURLOPT_POST, 1);
  32. curl_setopt($request, CURLOPT_RETURNTRANSFER,1);
  33. curl_setopt($request, CURLOPT_POSTFIELDS, $req);
  34. curl_setopt($request, CURLOPT_SSL_VERIFYPEER, 1);
  35. curl_setopt($request, CURLOPT_SSL_VERIFYHOST, 2);
  36. curl_setopt($request, CURLOPT_HTTPHEADER, array("Host: $pp_hostname"));
  37.  
  38. // Execute request and get response and status code
  39. $response = curl_exec($request);
  40. $status   = curl_getinfo($request, CURLINFO_HTTP_CODE);
  41.        
  42.         // Close connection
  43.         curl_close($request);
  44.        
  45.         // Validate response
  46.         if($status == 200 AND strpos($response, 'SUCCESS') === 0)
  47.         {       echo ("$response");
  48.                 // Remove SUCCESS part (7 characters long)
  49.                 $response = substr($response, 7);
  50.  
  51.                 // URL decode
  52.                 $response = urldecode($response);
  53.                
  54.                 // Turn into associative array
  55.                 preg_match_all('/^([^=\s]++)=(.*+)/m', $response, $m, PREG_PATTERN_ORDER);
  56.                 $response = array_combine($m[1], $m[2]);
  57.                 // Fix character encoding if different from UTF-8 (in my case)
  58.                 if(isset($response['charset']) AND strtoupper($response['charset']) !== 'UTF-8')
  59.                 {
  60.                         foreach($response as $key => &$value)
  61.                         {
  62.                                 $value = mb_convert_encoding($value, 'UTF-8', $response['charset']);
  63.                         }
  64.  
  65.                         $response['charset_original'] = $response['charset'];
  66.                         $response['charset'] = 'UTF-8';
  67.                 }
  68.                
  69.                 // Sort on keys for readability (handy when debugging)
  70.                 ksort($response);
  71.                 // Build customer purchase receipt
  72.                 $item_number = $response[item_number];
  73.                 $item_name = $response[item_name];
  74.                 $qty = $response[quantity];
  75.            
  76.                 $string1 = 'item_name';
  77.                 $string2 = 'item_number';
  78.                 $firstname = $response[first_name];
  79.                 $lastname = $response[last_name];
  80.                 $total = $response[mc_gross];
  81.                 $id = $response[item_number];
  82.  
  83.     echo ("<div id='wrapper'>");
  84.     echo ("<div id='welcomeText'>Tack för ditt köp!</div>");
  85.     echo ("<div class='abouttext3'>Har du köpt produkter som ska laddas ned, laddar du ned dem NU till din dator. <br> Du har endast möjlighet att ladda ned från just den här sidan.<br>");
  86.     echo ("Stanna kvar på sidan tills du laddat ned ALLT du köpt. <br>OBS! Om du stänger ned sidan har du inte möjlighet att komma tillbaka till den.<br></p>");
  87.     echo ("Har du köpt en lyssning av ”Guidning till förlåtelse” lyssnar du på den HÄR och NU. <br> Var kvar på sidan tills du lyssnat klart. <br> OBS! Om du stänger ned sidan har du inte möjlighet att komma tillbaka till den. <br /></p>\n");
  88.     echo ("Har du köpt varor som levereras med Posten, skickas de så snart som möjligt från oss. <br> Allra senast inom en vecka.</div></p>\n");
  89.     echo ("<div class='abouttext2'>Vi önskar Dig en bra dag. <br>");
  90.     echo ("Välkommen tillbaka till energyshop.se när du vill! </div>");
  91.    
  92.     // If item_number matches any product that is for download/listetning, then print this headline
  93.     if ($item_number.$idx == '1' || $item_number.$idx == '3' || $item_number.$idx == '5' || $item_number.$idx == '7' || $item_number.$idx == '9' || $item_number.$idx == '11' || $item_number.$idx == '13' || $item_number.$idx == '15' || $item_number.$idx == '17' || $item_number.$idx == '18' || $item_number.$idx == '19' || $item_number.$idx == '20' || $item_number.$idx == '21' || $item_number.$idx == '22' || $item_number.$idx == '24' || $item_number.$idx == '26' || $item_number.$idx == '27' || $item_number.$idx == '28' || $item_number.$idx == '29' || $item_number.$idx == '30' || $item_number.$idx == '31' || $item_number.$idx == '33' || $item_number.$idx == '41' || $item_number.$idx == '43' || $item_number.$idx == '45' || $item_number.$idx == '47' || $item_number.$idx == '49' || $item_number.$idx == '51' || $item_number.$idx == '54' || $item_number.$idx == '55' || $item_number.$idx == '57' || $item_number.$idx == '58')
  94.     {
  95.         echo ("<p><div id='bold'>Produkter tillgängliga för nerladdning/lyssning</div></p><br>\n");
  96.     }
  97.    
  98.     // Show items for donwload/listening if their id = X
  99.     if ($item_number.$idx == '1' ) {
  100.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gladje/art-Gladje.rar'>Glädje</a></div>\n");      
  101.         echo ("<br />");
  102.     }
  103.     if ($item_number.$idx == '3' ) {
  104.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gora_min_rost_hord/art-Gora_min_rost_hord.rar'>Göra min röst hörd</a></div>\n");    
  105.         echo ("<br />");
  106.     }
  107.     if ($item_number.$idx == '5' ) {
  108.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Njuta_Livet/art-Njuta_Livet.rar'>Njuta av livet</a></div>\n");
  109.         echo ("<br />");
  110.     }
  111.     if ($item_number.$idx == '7' ) {
  112.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Valja_alskar/art-Valja_alskar.rar'>Välja det jag älskar</a></div>\n");
  113.         echo ("<br />");
  114.     }
  115.     if ($item_number.$idx == '9' ) {
  116.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gladje/art-Gladje.rar'>Happiness</a></div>\n");    
  117.         echo ("<br />");
  118.     }
  119.     if ($item_number.$idx == '11' ) {
  120.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gora_min_rost_hord/art-Gora_min_rost_hord.rar'>Make my voice heard</a></div>\n");      
  121.         echo ("<br />");
  122.     }
  123.     if ($item_number.$idx == '13' ) {
  124.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Njuta_Livet/art-Njuta_Livet.rar'>Enjoy life</a></div>\n");
  125.         echo ("<br />");
  126.     }
  127.     if ($item_number.$idx == '15' ) {
  128.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Valja_alskar/art-Valja_alskar.rar'>Choose what I love</a></div>\n");
  129.         echo ("<br />");
  130.     }
  131.     if ($item_number.$idx == '17' ) {
  132.         echo ("<section>");
  133.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåten av dig</div>\n");
  134.         echo("<br />");
  135.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  136.         echo("<audio controls>");
  137.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/1_Inledning_Forlatelseprocess.mp3' type='audio/mpeg'>");
  138.         echo("Your browser does not support the audio tag.");
  139.         echo("</audio>");
  140.         echo("<br />");
  141.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  142.         echo("<audio controls>");
  143.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/2_Avslappning.mp3' type='audio/mpeg'>");
  144.         echo("Your browser does not support the audio tag.");
  145.         echo("</audio>");
  146.         echo("<br />");
  147.         echo("<div class='vidtext'>Del 3: Jag vill bli förlåten av dig</div>");
  148.         echo("<audio controls>");
  149.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/3_Jag_vill_bli_forlaten_av_dig.mp3' type='audio/mpeg'>");
  150.         echo("Your browser does not support the audio tag.");
  151.         echo("</audio>");
  152.         echo("</section>");
  153.         echo("<div class='abouttext2'><br /></div>");
  154.     }
  155.     if ($item_number.$idx == '18' ) {
  156.         echo ("<section>");
  157.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåta mig själv</div>\n");
  158.         echo("<br />");
  159.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  160.         echo("<audio controls>");
  161.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  162.         echo("Your browser does not support the audio tag.");
  163.         echo("</audio>");
  164.         echo("<br />");
  165.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  166.         echo("<audio controls>");
  167.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/2 Avslappning.mp3' type='audio/mpeg'>");
  168.         echo("Your browser does not support the audio tag.");
  169.         echo("</audio>");
  170.         echo("<br />");
  171.         echo("<div class='vidtext'>Del 3: Jag vill förlåta mig själv</div>");
  172.         echo("<audio controls>");
  173.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/3 Jag vill förlåta mig själv.mp3' type='audio/mpeg'>");
  174.         echo("Your browser does not support the audio tag.");
  175.         echo("</audio>");
  176.         echo("</section>");
  177.         echo("<div class='abouttext2'><br /></div>");
  178.     }
  179.     if ($item_number.$idx == '19' ) {
  180.         echo ("<section>");
  181.         echo("<div class='abouttext2'>Guidade upplevelser - Jag förlåter dig</div>\n");
  182.         echo("<br />");
  183.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  184.         echo("<audio controls>");
  185.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  186.         echo("Your browser does not support the audio tag.");
  187.         echo("</audio>");
  188.         echo("<br />");
  189.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  190.         echo("<audio controls>");
  191.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/2 Avslappning.mp3' type='audio/mpeg'>");
  192.         echo("Your browser does not support the audio tag.");
  193.         echo("</audio>");
  194.         echo("<br />");
  195.         echo("<div class='vidtext'>Del 3: Jag förlåter dig</div>");
  196.         echo("<audio controls>");
  197.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  198.         echo("Your browser does not support the audio tag.");
  199.         echo("</audio>");
  200.         echo("</section>");
  201.         echo("<div class='abouttext2'><br /></div>");
  202.     }
  203.     if ($item_number.$idx == '20' ) {
  204.         echo ("<section>");
  205.         echo("<div class='abouttext2'>Guidade upplevelser - Du förlåter dig</div>\n");
  206.         echo("<br />");
  207.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  208.         echo("<audio controls>");
  209.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  210.         echo("Your browser does not support the audio tag.");
  211.         echo("</audio>");
  212.         echo("<br />");
  213.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  214.         echo("<audio controls>");
  215.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/2 Avslappning.mp3' type='audio/mpeg'>");
  216.         echo("Your browser does not support the audio tag.");
  217.         echo("</audio>");
  218.         echo("<br />");
  219.         echo("<div class='vidtext'>Del 3: Du förlåter dig</div>");
  220.         echo("<audio controls>");
  221.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/3 Du förlåter Dig.mp3' type='audio/mpeg'>");
  222.         echo("Your browser does not support the audio tag.");
  223.         echo("</audio>");
  224.         echo("</section>");
  225.         echo("<div class='abouttext2'><br /></div>");
  226.     }
  227.     if ($item_number.$idx == '21' ) {
  228.             echo ("<section>");
  229.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåtelseprocess alla delar</div>\n");
  230.         echo("<br />");
  231.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  232.         echo("<audio controls>");
  233.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  234.         echo("Your browser does not support the audio tag.");
  235.         echo("</audio>");
  236.         echo("<br />");
  237.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  238.         echo("<audio controls>");
  239.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/2 Avslappning.mp3' type='audio/mpeg'>");
  240.         echo("Your browser does not support the audio tag.");
  241.         echo("</audio>");
  242.         echo("<br />");
  243.         echo("<div class='vidtext'>Del 3: Jag vill förlåta dig</div>");
  244.         echo("<audio controls>");
  245.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  246.         echo("Your browser does not support the audio tag.");
  247.         echo("</audio>");
  248.         echo("<br />");
  249.         echo("<div class='vidtext'>Del 4: Jag vill bli förlåten av dig</div>");
  250.         echo("<audio controls>");
  251.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/4 Jag vill bli förlåten av dig.mp3' type='audio/mpeg'>");
  252.         echo("Your browser does not support the audio tag.");
  253.         echo("</audio>");
  254.         echo("<br />");
  255.         echo("<div class='vidtext'>Del 5: Jag vill förlåta mig själv</div>");
  256.         echo("<audio controls>");
  257.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/5 Jag vill förlåta mig själv.mp3' type='audio/mpeg'>");
  258.         echo("Your browser does not support the audio tag.");
  259.         echo("</audio>");
  260.         echo("<br />");
  261.         echo("<div class='vidtext'>Del 6: Jag vill att du förlåter dig</div>");
  262.         echo("<audio controls>");
  263.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/6 Jag vill att du förlåter dig.mp3' type='audio/mpeg'>");
  264.         echo("Your browser does not support the audio tag.");
  265.         echo("</audio>");
  266.         echo("</section>");
  267.         echo("<div class='abouttext2'><br /></div>");
  268.     }
  269.     if ($item_number.$idx == '22' ) {
  270.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Taltet/guidade_upplevelser-Taltet.rar'>Tältet</a></div>\n");
  271.         echo ("<br />");
  272.     }
  273.     if ($item_numbe.$idxr == '24' ) {
  274.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Guidning_till_kroppen/Guidning_till_kroppen.rar'>Guidning till kroppen</a></div>\n");
  275.         echo ("<br />");
  276.     }
  277.     if ($item_number.$idx == '26' ) {
  278.         echo ("<section>");
  279.         echo("<div class='abouttext2'>Guided Experiences - I want to be forgiven by you</div>\n");
  280.         echo("<br />");
  281.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  282.         echo("<audio controls>");
  283.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/1_Inledning_Forlatelseprocess.mp3' type='audio/mpeg'>");
  284.         echo("Your browser does not support the audio tag.");
  285.         echo("</audio>");
  286.         echo("<br />");
  287.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  288.         echo("<audio controls>");
  289.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/2_Avslappning.mp3' type='audio/mpeg'>");
  290.         echo("Your browser does not support the audio tag.");
  291.         echo("</audio>");
  292.         echo("<br />");
  293.         echo("<div class='vidtext'>Part 3: I want to be forgiven..</div>");
  294.         echo("<audio controls>");
  295.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/3_Jag_vill_bli_forlaten_av_dig.mp3' type='audio/mpeg'>");
  296.         echo("Your browser does not support the audio tag.");
  297.         echo("</audio>");
  298.         echo("</section>");
  299.         echo("<div class='abouttext2'><br /></div>");
  300.     }
  301.     if ($item_number.$idx == '27' ) {
  302.         echo("<section>");
  303.         echo("<div class='abouttext2'>Guided Experiences - I want to forgive myself</div>\n");
  304.         echo("<br />");
  305.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  306.         echo("<audio controls>");
  307.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  308.         echo("Your browser does not support the audio tag.");
  309.         echo("</audio>");
  310.         echo("<br />");
  311.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  312.         echo("<audio controls>");
  313.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/2 Avslappning.mp3' type='audio/mpeg'>");
  314.         echo("Your browser does not support the audio tag.");
  315.         echo("</audio>");
  316.         echo("<br />");
  317.         echo("<div class='vidtext'>Part 3: I want to forgive myself</div>");
  318.         echo("<audio controls>");
  319.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/3 Jag vill förlåta mig själv.mp3' type='audio/mpeg'>");
  320.         echo("Your browser does not support the audio tag.");
  321.         echo("</audio>");
  322.         echo("</section>");
  323.         echo("<div class='abouttext2'><br /></div>");
  324.     }
  325.     if ($item_number.$idx == '28' ) {
  326.         echo("<section>");
  327.         echo("<div class='abouttext2'>Guided Experiences - I want to forgive you</div>\n");
  328.         echo("<br />");
  329.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  330.         echo("<audio controls>");
  331.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  332.         echo("Your browser does not support the audio tag.");
  333.         echo("</audio>");
  334.         echo("<br />");
  335.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  336.         echo("<audio controls>");
  337.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/2 Avslappning.mp3' type='audio/mpeg'>");
  338.         echo("Your browser does not support the audio tag.");
  339.         echo("</audio>");
  340.         echo ("<br />");
  341.         echo("<div class='vidtext'>Part 3: I want to forgive you</div>");
  342.         echo("<audio controls>");
  343.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  344.         echo("Your browser does not support the audio tag.");
  345.         echo("</audio>");
  346.         echo("</section>");
  347.         echo("<div class='abouttext2'><br /></div>");
  348.     }
  349.     if ($item_number.$idx == '29' ) {
  350.         echo("<section>");
  351.         echo("<div class='abouttext2'>Guided Experiences - You forgive yourself</div>\n");
  352.         echo("<br />");
  353.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  354.         echo("<audio controls>");
  355.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  356.         echo("Your browser does not support the audio tag.");
  357.         echo("</audio>");
  358.         echo("<br />");
  359.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  360.         echo("<audio controls>");
  361.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/2 Avslappning.mp3' type='audio/mpeg'>");
  362.         echo("Your browser does not support the audio tag.");
  363.         echo("</audio>");
  364.         echo("<br />");
  365.         echo("<div class='vidtext'>Part 3: You forgive yourself</div>");
  366.         echo("<audio controls>");
  367.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/3 Du förlåter Dig.mp3' type='audio/mpeg'>");
  368.         echo("Your browser does not support the audio tag.");
  369.         echo("</audio>");
  370.         echo("</section>");
  371.         echo("<div class='abouttext2'><br /></div>");
  372.     }
  373.     if ($item_number.$idx == '30' ) {
  374.         echo("<section>");
  375.         echo("<div class='abouttext2'>Guided Experiences - Forgiveness all parts</div>\n");
  376.         echo("<br />");
  377.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  378.         echo("<audio controls>");
  379.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  380.         echo("Your browser does not support the audio tag.");
  381.         echo("</audio>");
  382.         echo("<br />");
  383.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  384.         echo("<audio controls>");
  385.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/2 Avslappning.mp3' type='audio/mpeg'>");
  386.         echo("Your browser does not support the audio tag.");
  387.         echo("</audio>");
  388.         echo("<br />");
  389.         echo("<div class='vidtext'>Part 3: I want to forgive you</div>");
  390.         echo("<audio controls>");
  391.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  392.         echo("Your browser does not support the audio tag.");
  393.         echo("</audio>");
  394.         echo("<br />");
  395.         echo("<div class='vidtext'>Part 4: I want to be forgiven..</div>");
  396.         echo("<audio controls>");
  397.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/4 Jag vill bli förlåten av dig.mp3' type='audio/mpeg'>");
  398.         echo("Your browser does not support the audio tag.");
  399.         echo("</audio>");
  400.         echo("<br />");
  401.         echo("<div class='vidtext'>Part 5: I want to forgive myself</div>");
  402.         echo("<audio controls>");
  403.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/5 Jag vill förlåta mig själv.mp3' type='audio/mpeg'>");
  404.         echo("Your browser does not support the audio tag.");
  405.         echo("</audio>");
  406.         echo("<br />");
  407.         echo("<div class='vidtext'>Part 6: You forgive yourself</div>");
  408.         echo("<audio controls>");
  409.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/6 Jag vill att du förlåter dig.mp3' type='audio/mpeg'>");
  410.         echo("Your browser does not support the audio tag.");
  411.         echo("</audio>");
  412.         echo("</section>");
  413.         echo("<div class='abouttext2'><br /></div>");
  414.     }
  415.     if ($item_number.$idx == '31' ) {
  416.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Taltet/guidade_upplevelser-Taltet.rar'>The Tent</a></div>\n");
  417.         echo ("<br />");
  418.     }
  419.     if ($item_number.$idx == '33' ) {
  420.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Guidning_till_kroppen/Guidning_till_kroppen.rar'>Guidance to the body</a></div>\n");
  421.         echo ("<br />");
  422.     }
  423.     if ($item_number.$idx == '41' ) {
  424.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Clearings_Aktiveringar/Mal/clearings_aktiveringr-Att_Satta_Mal.rar'>Att Sätta Mål och Ta ut Riktning</a></div>\n");
  425.         echo ("<br />");
  426.     }
  427.     if ($item_number.$idx == '43' ) {
  428.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Clearings_Aktiveringar/Fragor/clearings_aktiveringar-Fragor.rar'>Att ställa och få Frågor</a></div>\n");
  429.         echo ("<br />");
  430.     }
  431.     if ($item_number.$idx == '45' ) {
  432.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Clearings_Aktiveringar/Forandring/clearings_aktiveringar-Forandring.rar'>Min Förmåga och Möjlighet till Förändring</a></div>\n");
  433.         echo ("<br />");
  434.     }
  435.     if ($item_number.$idx == '47' ) {
  436.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Clearings_Aktiveringar/Mal/clearings_aktiveringr-Att_Satta_Mal.rar'>Goal setting and finding direction</a></div>\n");
  437.         echo ("<br />");
  438.     }
  439.     if ($item_number.$idx == '49' ) {
  440.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Clearings_Aktiveringar/Fragor/clearings_aktiveringar-Fragor.rar'>Questions, ask and answer them</a></div>\n");
  441.         echo ("<br />");
  442.     }
  443.     if ($item_number.$idx == '51' ) {
  444.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Clearings_Aktiveringar/Forandring/clearings_aktiveringar-Forandring.rar'>My own Capacity and My Possibility of Change</a></div>\n");
  445.         echo ("<br />");
  446.     }
  447.     if ($item_number.$idx == '55' ) {
  448.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Böcker_föreläsningar_kurser/01 Svensk Intro Your Wish is Your Command.rar'>Introduktion: Your Wish is Your Command</a></div>\n");
  449.         echo ("<br />");
  450.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Böcker_föreläsningar_kurser/Your wish is your command.rar'>Your Wish is Your Command</a></div>\n");
  451.         echo ("<br />");
  452.     }
  453.     if ($item_number.$idx == '58' ) {
  454.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Böcker_föreläsningar_kurser/02 Intro Your Wish is Your Command.rar'>Introduction: Your Wish is Your Command</a></div>\n");
  455.         echo ("<br />");
  456.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Böcker_föreläsningar_kurser/Your wish is your command.rar'>Your Wish is Your Command</a></div>\n");
  457.         echo ("<br />");
  458.     }
  459.     if ($item_number.$idx == '54' ) {
  460.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Böcker_föreläsningar_kurser/01 Svensk Intro Your Wish is Your Command.rar'>Introduktion: Your Wish is Your Command</a></div>\n");
  461.         echo ("<br />");
  462.     }
  463.     if ($item_number.$idx == '57' ) {
  464.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Böcker_föreläsningar_kurser/02 Intro Your Wish is Your Command.rar'>Introduction: Your Wish is Your Command</a></div>\n");
  465.         echo ("<br />");
  466.     }
  467.    
  468.     echo ("<p><div id='bold'>Betalningsinformation</div></p><br>\n");
  469.     echo ("<div class='abouttext'>Kund: ".$firstname." ".$lastname."</div>\n");
  470.    
  471.     $array_keys = array_keys($response);
  472.     $count = 1;
  473.     foreach($array_keys as $element)
  474.     {
  475.         if (!strncmp('item_number', $element, strlen('item_number')))
  476.             $count++;      
  477.     }
  478.         for($idx = 1; $idx < $count; $idx ++)
  479.         {
  480.             if (isset($string1) && 'item_name' != null)
  481.             {
  482.             //$item_name .=$idx ++;
  483.             //$item_name = $item_name++;
  484.             echo ("<div class='abouttext'>Produkt: ".$item_name."</div>\n");
  485.             echo ("<div class='abouttext'>ID: ".$item_number."</div>\n");
  486.             echo ("<div class='abouttext'>Antal: ".$qty."</div>\n");
  487.             echo ("<br />");
  488.             }
  489.         }
  490.         echo ("<div id='ul'>Summa: ".$total." kr</div>\n");
  491.         echo ("<br />");
  492.         echo ("<div class='abouttext3'>Alla priser är i svenska kronor inklusive moms: <br>");
  493.         echo ("6% moms på böcker, 12% moms på EnergyUnion, 25% moms på resten av sortimentet. <br></div>");
  494.         echo ("<div class='abouttext3'>Din transaktion är slutförd.");
  495.         echo ("<br />");
  496.         echo ("Ett kvitto av ditt köp har skickats till din mail.");
  497.         echo ("<br />");
  498.         echo ("Du kan logga in på ditt konto på www.paypal.com för att se detaljerna av köpet.");
  499.         echo ("<br />");
  500.         echo ("<div class='abouttext3'>Tillbaka till: <a href='http://energyshop.se'>energyshop.se</a></div>");
  501.         echo ("<br />");
  502.  
  503.         }
  504.         else
  505.         {
  506.                 // Log the error, ignore it, whatever
  507.                 echo("nerru");
  508.         }
  509. }
Advertisement
Add Comment
Please, Sign In to add comment