Advertisement
Guest User

Untitled

a guest
May 9th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 29.25 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. <style type="text/css">
  6. #bold {
  7.     color:#05924b;
  8.     font-family:Gisha, Verdana, Sans-Serif;
  9.     font-size:25px;
  10.     font-weight:700;
  11.     text-align:center;
  12.     margin-bottom:-10px;
  13.     margin-top:50px;
  14. }
  15. #bold3 {
  16.     color:#05924b;
  17.     font-family:Gisha, Verdana, Sans-Serif;
  18.     font-size:25px;
  19.     text-align:center;
  20.     margin-bottom:-10px;
  21.     margin-top:50px;
  22. }
  23. #welcomeText {
  24.     color:#05924b;
  25.     font-family:Gisha, Verdana, Sans-Serif;
  26.     font-size:24px;
  27.     margin-top:90px;
  28.     margin-bottom:15px;
  29.     text-align:center;
  30. }
  31. .abouttext {
  32.     color:#05924b;
  33.     font-family:Gisha, Verdana, Sans-Serif;
  34.     font-size:22px;
  35.     margin-left:355px;
  36.     margin-top:0px;
  37.     text-align:left;
  38. }
  39. #ul {
  40.     color:#05924b;
  41.     font-family:Gisha, Verdana, Sans-Serif;
  42.     font-size:22px;
  43.     margin-left:355px;
  44.     margin-top:0px;
  45.     text-align:left;
  46.     text-decoration:underline;
  47.     font-weight:bold;
  48. }
  49. .abouttext2 {
  50.     color:#05924b;
  51.     font-family:Gisha, Verdana, Sans-Serif;
  52.     font-size:22px;
  53.     margin-top:0px;
  54.     text-align:center;
  55. }
  56. .abouttext3 {
  57.     color:#05924b;
  58.     font-family:Gisha, Verdana, Sans-Serif;
  59.     font-size:18px;
  60.     margin-bottom:50px;
  61.     text-align:center;
  62. }
  63. .vidtext {
  64.     float: left;
  65.     margin-left: 60px;
  66.     margin-right: -286px;
  67.     margin-top: 5px;
  68.     font-weight:700;
  69. }
  70. #undertext {
  71.     text-align:center;
  72.     color:#05924b;
  73.     font-family:Gisha, Verdana, Sans-Serif;
  74.     font-size:15px;
  75.     margin-right:0px;
  76.     margin-top:50px;
  77.     padding-bottom:50px;
  78.     }
  79. #wrapper {
  80. -moz-border-radius-bottomleft:15px;
  81.     -moz-border-radius-bottomright:15px;
  82.     -webkit-border-bottom-left-radius:15px;
  83.     -webkit-border-bottom-right-radius:15px;
  84.     -webkit-box-shadow:2px 2px 20px 5px #000;
  85.     background-color:#FFF;
  86.     border-bottom-left-radius:15px;
  87.     border-bottom-right-radius:15px;
  88.     box-shadow:2px 2px 20px 5px #000;
  89.     display:block;
  90.     height:auto!important;
  91.     margin:-57px auto 0;
  92.     padding-top:12px;
  93.     text-align:center;
  94.     width:900px;   
  95. }
  96. html, body {
  97. background-color:#FFF;
  98.     background-image:url(/wp-content/themes/blank/images/bg3.jpg);
  99.     height:100%;
  100.     line-height:1;
  101.     text-align:center; 
  102. }
  103. </style>
  104. <?php
  105.  
  106. /*
  107.  update: 06/27/2011
  108.   - updated to use cURL for better security, assumes PHP version 5.3
  109. */
  110.  
  111. // read the post from PayPal system and add 'cmd'
  112. $req = 'cmd=_notify-synch';
  113.  
  114. $tx_token = $_GET['tx'];
  115.  
  116. // For sandbox testing
  117. //$pp_hostname = "www.sandbox.paypal.com";
  118.  
  119. //live
  120. $pp_hostname = "www.paypal.com";
  121.  
  122. //sandbox token
  123. //$auth_token = "***";
  124.  
  125. //real token
  126. $auth_token = "***";
  127. $req .= "&tx=$tx_token&at=$auth_token";
  128.  
  129. $ch = curl_init();
  130. curl_setopt($ch, CURLOPT_URL, "https://$pp_hostname/cgi-bin/webscr");
  131. curl_setopt($ch, CURLOPT_POST, 1);
  132. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  133. curl_setopt($ch, CURLOPT_POSTFIELDS, $req);
  134. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
  135. //set cacert.pem verisign certificate path in curl using 'CURLOPT_CAINFO' field here,
  136. //if your server does not bundled with default verisign certificates.
  137. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
  138. curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host: $pp_hostname"));
  139. $res = curl_exec($ch);
  140. curl_close($ch);
  141.  
  142. if(!$res){
  143.     //HTTP ERROR
  144. }else{
  145.      // parse the data
  146.     $lines = explode("\n", $res);
  147.     $keyarray = array();
  148.     if (strcmp ($lines[0], "SUCCESS") == 0) {
  149.         for ($i=1; $i<count($lines);$i++){
  150.         list($key,$val) = explode("=", $lines[$i]);
  151.         $keyarray[urldecode($key)] = urldecode($val);
  152.     }
  153.     // check the payment_status is Completed
  154.     // check that txn_id has not been previously processed
  155.     // check that receiver_email is your Primary PayPal email
  156.     // check that payment_amount/payment_currency are correct
  157.     // process payment
  158.     $string1 = 'item_number';
  159.     $string2 = 'item_name';
  160.     $string3 = 'quantity';
  161.     $firstname = $keyarray['first_name'];
  162.     $lastname = $keyarray['last_name'];
  163.     $itemname = $keyarray['item_name'];
  164.     iconv('windows-1250', 'utf-8', $firstname);
  165.     iconv('windows-1250', 'utf-8', $lastname);
  166.     iconv('windows-1250', 'utf-8', $itemname);
  167.     $amountusd = $keyarray['payment_gross'];
  168.     $amountnonusd = $keyarray['mc_gross'];
  169.     $cc = $keyarray['currencyCode'];
  170.     $id = $keyarray['item_number'];
  171.     $h1 = 0;
  172.     $h2 = 0;
  173.     $h3 = 0;
  174.     $h4 = 0;
  175.     $h5 = 0;
  176.     $h6 = 0;
  177.     $h7 = 0;
  178.     $h8 = 0;
  179.     $h9 = 0;
  180.     $h10 = 0;
  181.     $h11 = 0;
  182.     $h12 = 0;
  183.     $h13 = 0;
  184.     $h14 = 0;
  185.     $h15 = 0;
  186.     $h16 = 0;
  187.     $h17 = 0;
  188.     $h18 = 0;
  189.     $h19 = 0;
  190.     $h20 = 0;
  191.     $h21 = 0;
  192.     $h22 = 0;
  193.     $h23 = 0;
  194.     $h24 = 0;
  195.     $h25 = 0;
  196.     $h26 = 0;
  197.     $h27 = 0;
  198.     $h28 = 0;
  199.     $h29 = 0;
  200.     $h30 = 0;
  201.     $h31 = 0;
  202.     $h32 = 0;
  203.  
  204.     echo ("<div id='wrapper'>");
  205.     echo ("<div id='welcomeText'>Tack för ditt köp!</div>");
  206.     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>");
  207.     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>");
  208.     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");
  209.     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");
  210.     echo ("<div class='abouttext2'>Vi önskar Dig en bra dag. <br>");
  211.     echo ("Välkommen tillbaka till energyshop.se när du vill! </div>");
  212.     //if id=1 (x) then set h1 to 1 and so-on
  213.     if ($keyarray[$string1.$idx] == '1' ) {
  214.         $h1 = 1;
  215.     }
  216.     if ($keyarray[$string1.$idx] == '3' ) {
  217.         $h2 = 1;
  218.     }
  219.     if ($keyarray[$string1.$idx] == '5' ) {
  220.         $h3 = 1;
  221.     }
  222.     if ($keyarray[$string1.$idx] == '7' ) {
  223.         $h4 = 1;
  224.     }
  225.     if ($keyarray[$string1.$idx] == '9' ) {
  226.         $h5 = 1;
  227.     }
  228.     if ($keyarray[$string1.$idx] == '11' ) {
  229.         $h6 = 1;
  230.     }
  231.     if ($keyarray[$string1.$idx] == '13' ) {
  232.         $h7 = 1;
  233.     }
  234.     if ($keyarray[$string1.$idx] == '15' ) {
  235.         $h8 = 1;
  236.     }
  237.     if ($keyarray[$string1.$idx] == '17' ) {
  238.         $h9 = 1;
  239.     }
  240.     if ($keyarray[$string1.$idx] == '18' ) {
  241.         $h10 = 1;
  242.     }
  243.     if ($keyarray[$string1.$idx] == '19' ) {
  244.         $h11 = 1;
  245.     }
  246.     if ($keyarray[$string1.$idx] == '20' ) {
  247.         $h12 = 1;
  248.     }
  249.     if ($keyarray[$string1.$idx] == '21' ) {
  250.         $h13 = 1;
  251.     }
  252.     if ($keyarray[$string1.$idx] == '22' ) {
  253.         $h14 = 1;
  254.     }
  255.     if ($keyarray[$string1.$idx] == '24' ) {
  256.         $h15 = 1;
  257.     }
  258.     if ($keyarray[$string1.$idx] == '26' ) {
  259.         $h16 = 1;
  260.     }
  261.     if ($keyarray[$string1.$idx] == '27' ) {
  262.         $h17 = 1;
  263.     }
  264.     if ($keyarray[$string1.$idx] == '28' ) {
  265.         $h18 = 1;
  266.     }
  267.     if ($keyarray[$string1.$idx] == '29' ) {
  268.         $h19 = 1;
  269.     }
  270.     if ($keyarray[$string1.$idx] == '30' ) {
  271.         $h20 = 1;
  272.     }
  273.     if ($keyarray[$string1.$idx] == '31' ) {
  274.         $h21 = 1;
  275.     }
  276.     if ($keyarray[$string1.$idx] == '33' ) {
  277.         $h22 = 1;
  278.     }
  279.     if ($keyarray[$string1.$idx] == '41' ) {
  280.         $h23 = 1;
  281.     }
  282.     if ($keyarray[$string1.$idx] == '43' ) {
  283.         $h24 = 1;
  284.     }
  285.     if ($keyarray[$string1.$idx] == '45' ) {
  286.         $h25 = 1;
  287.     }
  288.     if ($keyarray[$string1.$idx] == '47' ) {
  289.         $h26 = 1;
  290.     }
  291.     if ($keyarray[$string1.$idx] == '49' ) {
  292.         $h27 = 1;
  293.     }
  294.     if ($keyarray[$string1.$idx] == '51' ) {
  295.         $h28 = 1;
  296.     }
  297.     if ($keyarray[$string1.$idx] == '55' ) {
  298.         $h29 = 1;
  299.     }
  300.     if ($keyarray[$string1.$idx] == '58' ) {
  301.         $h30 = 1;
  302.     }
  303.     if ($keyarray[$string1.$idx] == '54' ) {
  304.         $h31 = 1;
  305.     }
  306.     if ($keyarray[$string1.$idx] == '57' ) {
  307.         $h32 = 1;
  308.     }
  309.     // show items for donwload/listening if their id = X
  310.     if ($h1 == '1' || $h2 == '1' || $h3 == '1' || $h4 == '1' || $h5 == '1' || $h6 == '1' || $h7 == '1' || $h8 == '1' || $h9 == '1' || $h10 == '1' || $h11 == '1' || $h12 == '1' || $h13 == '1' || $h14 == '1' || $h15 == '1' || $h16 == '1' || $h17 == '1' || $h18 == '1' || $h19 == '1' || $h20 == '1' || $h21 == '1' || $h22 == '1' || $h23 == '1' || $h24 == '1' || $h25 == '1' || $h26 == '1' || $h27 == '1' || $h28 == '1' || $h29 == '1' || $h30 == '1' || $h31 == '1' || $h32 == '1') {
  311.     echo ("<p><div id='bold'>Produkter tillgängliga för nerladdning/lyssning</div></p><br>\n");
  312.     }
  313.    
  314.     if ($h1 == '1' ) {
  315.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gladje/art-Gladje.rar'>Glädje</a></div>\n");      
  316.         echo ("<br />");
  317.     }
  318.     if ($h2 == '1' ) {
  319.         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");    
  320.         echo ("<br />");
  321.     }
  322.     if ($h3 == '1' ) {
  323.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Njuta_Livet/art-Njuta_Livet.rar'>Njuta av livet</a></div>\n");
  324.         echo ("<br />");
  325.     }
  326.     if ($h4 == '1' ) {
  327.         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");
  328.         echo ("<br />");
  329.     }
  330.     if ($h5 == '1' ) {
  331.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gladje/art-Gladje.rar'>Happiness</a></div>\n");    
  332.         echo ("<br />");
  333.     }
  334.     if ($h6 == '1' ) {
  335.         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");      
  336.         echo ("<br />");
  337.     }
  338.     if ($h7 == '1' ) {
  339.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Njuta_Livet/art-Njuta_Livet.rar'>Enjoy life</a></div>\n");
  340.         echo ("<br />");
  341.     }
  342.     if ($h8 == '1' ) {
  343.         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");
  344.         echo ("<br />");
  345.     }
  346.     if ($h9 == '1' ) {
  347.         echo ("<section>");
  348.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåten av dig</div>\n");
  349.         echo("<br />");
  350.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  351.         echo("<audio controls>");
  352.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/1_Inledning_Forlatelseprocess.mp3' type='audio/mpeg'>");
  353.         echo("Your browser does not support the audio tag.");
  354.         echo("</audio>");
  355.         echo("<br />");
  356.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  357.         echo("<audio controls>");
  358.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/2_Avslappning.mp3' type='audio/mpeg'>");
  359.         echo("Your browser does not support the audio tag.");
  360.         echo("</audio>");
  361.         echo("<br />");
  362.         echo("<div class='vidtext'>Del 3: Jag vill bli förlåten av dig</div>");
  363.         echo("<audio controls>");
  364.         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'>");
  365.         echo("Your browser does not support the audio tag.");
  366.         echo("</audio>");
  367.         echo("</section>");
  368.         echo("<div class='abouttext2'><br /></div>");
  369.     }
  370.     if ($h10 == '1' ) {
  371.         echo ("<section>");
  372.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåta mig själv</div>\n");
  373.         echo("<br />");
  374.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  375.         echo("<audio controls>");
  376.         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'>");
  377.         echo("Your browser does not support the audio tag.");
  378.         echo("</audio>");
  379.         echo("<br />");
  380.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  381.         echo("<audio controls>");
  382.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/2 Avslappning.mp3' type='audio/mpeg'>");
  383.         echo("Your browser does not support the audio tag.");
  384.         echo("</audio>");
  385.         echo("<br />");
  386.         echo("<div class='vidtext'>Del 3: Jag vill förlåta mig själv</div>");
  387.         echo("<audio controls>");
  388.         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'>");
  389.         echo("Your browser does not support the audio tag.");
  390.         echo("</audio>");
  391.         echo("</section>");
  392.         echo("<div class='abouttext2'><br /></div>");
  393.     }
  394.     if ($h11 == '1' ) {
  395.         echo ("<section>");
  396.         echo("<div class='abouttext2'>Guidade upplevelser - Jag förlåter dig</div>\n");
  397.         echo("<br />");
  398.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  399.         echo("<audio controls>");
  400.         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'>");
  401.         echo("Your browser does not support the audio tag.");
  402.         echo("</audio>");
  403.         echo("<br />");
  404.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  405.         echo("<audio controls>");
  406.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/2 Avslappning.mp3' type='audio/mpeg'>");
  407.         echo("Your browser does not support the audio tag.");
  408.         echo("</audio>");
  409.         echo("<br />");
  410.         echo("<div class='vidtext'>Del 3: Jag förlåter dig</div>");
  411.         echo("<audio controls>");
  412.         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'>");
  413.         echo("Your browser does not support the audio tag.");
  414.         echo("</audio>");
  415.         echo("</section>");
  416.         echo("<div class='abouttext2'><br /></div>");
  417.     }
  418.     if ($h12 == '1' ) {
  419.         echo ("<section>");
  420.         echo("<div class='abouttext2'>Guidade upplevelser - Du förlåter dig</div>\n");
  421.         echo("<br />");
  422.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  423.         echo("<audio controls>");
  424.         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'>");
  425.         echo("Your browser does not support the audio tag.");
  426.         echo("</audio>");
  427.         echo("<br />");
  428.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  429.         echo("<audio controls>");
  430.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/2 Avslappning.mp3' type='audio/mpeg'>");
  431.         echo("Your browser does not support the audio tag.");
  432.         echo("</audio>");
  433.         echo("<br />");
  434.         echo("<div class='vidtext'>Del 3: Du förlåter dig</div>");
  435.         echo("<audio controls>");
  436.         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'>");
  437.         echo("Your browser does not support the audio tag.");
  438.         echo("</audio>");
  439.         echo("</section>");
  440.         echo("<div class='abouttext2'><br /></div>");
  441.     }
  442.     if ($h13 == '1' ) {
  443.         echo ("<section>");
  444.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåtelseprocess alla delar</div>\n");
  445.         echo("<br />");
  446.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  447.         echo("<audio controls>");
  448.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  449.         echo("Your browser does not support the audio tag.");
  450.         echo("</audio>");
  451.         echo("<br />");
  452.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  453.         echo("<audio controls>");
  454.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/2 Avslappning.mp3' type='audio/mpeg'>");
  455.         echo("Your browser does not support the audio tag.");
  456.         echo("</audio>");
  457.         echo("<br />");
  458.         echo("<div class='vidtext'>Del 3: Jag vill förlåta dig</div>");
  459.         echo("<audio controls>");
  460.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  461.         echo("Your browser does not support the audio tag.");
  462.         echo("</audio>");
  463.         echo("<br />");
  464.         echo("<div class='vidtext'>Del 4: Jag vill bli förlåten av dig</div>");
  465.         echo("<audio controls>");
  466.         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'>");
  467.         echo("Your browser does not support the audio tag.");
  468.         echo("</audio>");
  469.         echo("<br />");
  470.         echo("<div class='vidtext'>Del 5: Jag vill förlåta mig själv</div>");
  471.         echo("<audio controls>");
  472.         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'>");
  473.         echo("Your browser does not support the audio tag.");
  474.         echo("</audio>");
  475.         echo("<br />");
  476.         echo("<div class='vidtext'>Del 6: Jag vill att du förlåter dig</div>");
  477.         echo("<audio controls>");
  478.         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'>");
  479.         echo("Your browser does not support the audio tag.");
  480.         echo("</audio>");
  481.         echo("</section>");
  482.         echo("<div class='abouttext2'><br /></div>");
  483.     }
  484.     if ($h14 == '1') {
  485.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Taltet/guidade_upplevelser-Taltet.rar'>Tältet</a></div>\n");
  486.         echo ("<br />");   
  487.     }
  488.     if ($h15 == '1') {
  489.         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");
  490.         echo ("<br />");
  491.     }
  492.     if ($h16 == '1' ) {
  493.         echo ("<section>");
  494.         echo("<div class='abouttext2'>Guided Experiences - I want to be forgiven by you</div>\n");
  495.         echo("<br />");
  496.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  497.         echo("<audio controls>");
  498.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/1_Inledning_Forlatelseprocess.mp3' type='audio/mpeg'>");
  499.         echo("Your browser does not support the audio tag.");
  500.         echo("</audio>");
  501.         echo("<br />");
  502.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  503.         echo("<audio controls>");
  504.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/2_Avslappning.mp3' type='audio/mpeg'>");
  505.         echo("Your browser does not support the audio tag.");
  506.         echo("</audio>");
  507.         echo("<br />");
  508.         echo("<div class='vidtext'>Part 3: I want to be forgiven..</div>");
  509.         echo("<audio controls>");
  510.         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'>");
  511.         echo("Your browser does not support the audio tag.");
  512.         echo("</audio>");
  513.         echo("</section>");
  514.         echo("<div class='abouttext2'><br /></div>");
  515.     }
  516.     if ($h17 == '1' ) {
  517.         echo("<section>");
  518.         echo("<div class='abouttext2'>Guided Experiences - I want to forgive myself</div>\n");
  519.         echo("<br />");
  520.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  521.         echo("<audio controls>");
  522.         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'>");
  523.         echo("Your browser does not support the audio tag.");
  524.         echo("</audio>");
  525.         echo("<br />");
  526.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  527.         echo("<audio controls>");
  528.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/2 Avslappning.mp3' type='audio/mpeg'>");
  529.         echo("Your browser does not support the audio tag.");
  530.         echo("</audio>");
  531.         echo("<br />");
  532.         echo("<div class='vidtext'>Part 3: I want to forgive myself</div>");
  533.         echo("<audio controls>");
  534.         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'>");
  535.         echo("Your browser does not support the audio tag.");
  536.         echo("</audio>");
  537.         echo("</section>");
  538.         echo("<div class='abouttext2'><br /></div>");
  539.     }
  540.     if ($h18 == '1' ) {
  541.         echo("<section>");
  542.         echo("<div class='abouttext2'>Guided Experiences - I want to forgive you</div>\n");
  543.         echo("<br />");
  544.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  545.         echo("<audio controls>");
  546.         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'>");
  547.         echo("Your browser does not support the audio tag.");
  548.         echo("</audio>");
  549.         echo("<br />");
  550.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  551.         echo("<audio controls>");
  552.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/2 Avslappning.mp3' type='audio/mpeg'>");
  553.         echo("Your browser does not support the audio tag.");
  554.         echo("</audio>");
  555.         echo ("<br />");
  556.         echo("<div class='vidtext'>Part 3: I want to forgive you</div>");
  557.         echo("<audio controls>");
  558.         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'>");
  559.         echo("Your browser does not support the audio tag.");
  560.         echo("</audio>");
  561.         echo("</section>");
  562.         echo("<div class='abouttext2'><br /></div>");
  563.     }
  564.     if ($h19 == '1' ) {
  565.         echo("<section>");
  566.         echo("<div class='abouttext2'>Guided Experiences - You forgive yourself</div>\n");
  567.         echo("<br />");
  568.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  569.         echo("<audio controls>");
  570.         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'>");
  571.         echo("Your browser does not support the audio tag.");
  572.         echo("</audio>");
  573.         echo("<br />");
  574.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  575.         echo("<audio controls>");
  576.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/2 Avslappning.mp3' type='audio/mpeg'>");
  577.         echo("Your browser does not support the audio tag.");
  578.         echo("</audio>");
  579.         echo("<br />");
  580.         echo("<div class='vidtext'>Part 3: You forgive yourself</div>");
  581.         echo("<audio controls>");
  582.         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'>");
  583.         echo("Your browser does not support the audio tag.");
  584.         echo("</audio>");
  585.         echo("</section>");
  586.         echo("<div class='abouttext2'><br /></div>");
  587.     }
  588.     if ($h20 == '1' ) {
  589.         echo("<section>");
  590.         echo("<div class='abouttext2'>Guided Experiences - Forgiveness all parts</div>\n");
  591.         echo("<br />");
  592.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  593.         echo("<audio controls>");
  594.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  595.         echo("Your browser does not support the audio tag.");
  596.         echo("</audio>");
  597.         echo("<br />");
  598.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  599.         echo("<audio controls>");
  600.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/2 Avslappning.mp3' type='audio/mpeg'>");
  601.         echo("Your browser does not support the audio tag.");
  602.         echo("</audio>");
  603.         echo("<br />");
  604.         echo("<div class='vidtext'>Part 3: I want to forgive you</div>");
  605.         echo("<audio controls>");
  606.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  607.         echo("Your browser does not support the audio tag.");
  608.         echo("</audio>");
  609.         echo("<br />");
  610.         echo("<div class='vidtext'>Part 4: I want to be forgiven..</div>");
  611.         echo("<audio controls>");
  612.         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'>");
  613.         echo("Your browser does not support the audio tag.");
  614.         echo("</audio>");
  615.         echo("<br />");
  616.         echo("<div class='vidtext'>Part 5: I want to forgive myself</div>");
  617.         echo("<audio controls>");
  618.         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'>");
  619.         echo("Your browser does not support the audio tag.");
  620.         echo("</audio>");
  621.         echo("<br />");
  622.         echo("<div class='vidtext'>Part 6: You forgive yourself</div>");
  623.         echo("<audio controls>");
  624.         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'>");
  625.         echo("Your browser does not support the audio tag.");
  626.         echo("</audio>");
  627.         echo("</section>");
  628.         echo("<div class='abouttext2'><br /></div>");
  629.     }
  630.     if ($h21 == '1') {
  631.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Taltet/guidade_upplevelser-Taltet.rar'>The Tent</a></div>\n");
  632.         echo ("<br />");   
  633.     }
  634.     if ($h22 == '1') {
  635.         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");
  636.         echo ("<br />");   
  637.     }
  638.     if ($h23 == '1') {
  639.         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");
  640.         echo ("<br />");   
  641.     }
  642.     if ($h24 == '1') {
  643.         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");
  644.         echo ("<br />");   
  645.     }
  646.     if ($h25 == '1') {
  647.         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");
  648.         echo ("<br />");   
  649.     }
  650.     if ($h26 == '1') {
  651.         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");
  652.         echo ("<br />");   
  653.     }
  654.     if ($h27 == '1') {
  655.         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");
  656.         echo ("<br />");   
  657.     }
  658.     if ($h28 == '1') {
  659.         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");
  660.         echo ("<br />");   
  661.     }
  662.     if ($h29 == '1') {
  663.         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");
  664.         echo ("<br />");
  665.         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");
  666.         echo ("<br />");   
  667.     }
  668.     if ($h30 == '1') {
  669.         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");
  670.         echo ("<br />");
  671.         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");
  672.         echo ("<br />");   
  673.     }
  674.     if ($h31 == '1') {
  675.         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");
  676.         echo ("<br />");   
  677.     }
  678.     if ($h32 == '1') {
  679.         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");
  680.         echo ("<br />");   
  681.     }
  682.    
  683.     echo ("<p><div id='bold'>Betalningsinformation</div></p><br>\n");
  684.     echo ("<div class='abouttext'>Kund: $firstname $lastname</div>\n");
  685.    
  686.     $array_keys = array_keys($keyarray);
  687.     $count = 1;
  688.     foreach($array_keys as $element) {
  689.     if (!strncmp('item_number', $element, strlen('item_number')))
  690.         $count++;      
  691. }
  692.     for($idx = 1; $idx < $count; $idx ++) {
  693.     if (isset($string2) && 'item_name' != null)
  694.     echo ("<div class='abouttext'>Produkt: ".$keyarray[$string2.$idx]."</div>\n");
  695.     echo ("<div class='abouttext'>ID: ".$keyarray[$string1.$idx]."</div>\n");
  696.     echo ("<div class='abouttext'>Antal: ".$keyarray[$string3.$idx]."</div>\n");
  697.     echo ("<br />");
  698.     }
  699.     echo ("<div id='ul'>Summa: $amountnonusd kr</div>\n");
  700.     echo ("<br />");
  701.     echo ("<div class='abouttext3'>Alla priser är i svenska kronor inklusive moms: <br>");
  702.     echo ("6% moms på böcker, 12% moms på EnergyUnion, 25% moms på resten av sortimentet. <br></div>");
  703.     echo ("<div class='abouttext3'>Din transaktion är slutförd.");
  704.     echo ("<br />");
  705.     echo ("Ett kvitto av ditt köp har skickats till din mail.");
  706.     echo ("<br />");
  707.     echo ("Du kan logga in på ditt konto på www.paypal.com för att se detaljerna av köpet.");
  708.     echo ("<br />");
  709.     echo ("<div class='abouttext3'>Tillbaka till: <a href='http://energyshop.se'>energyshop.se</a></div>");
  710.     echo ("<br />");
  711.     }
  712.     else if (strcmp ($lines[0], "FAIL") == 0) {
  713.         // log for manual investigation
  714. }
  715. }
  716. ?>
  717. <title>Tack för ditt köp!</title>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement