Advertisement
Guest User

PDT SCRIPT

a guest
May 12th, 2013
753
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 28.94 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 = "FBO_RlnSKMrFCJlPOvghIonpJx2uiXH_ICIeh8-VMIUWtVjM5vhPJV0LCUW";
  124.  
  125. //real token
  126. $auth_token = "P0d7_HmQSAuXh9r-7hG1Rzf_npI2LaFgYHQJyWUsjQHg7WhZARqs3sq6IW4";
  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.     $item_number = $keyarray['item_number'];
  159.     $item_name = $keyarray['item_name'];
  160.     $string1 = 'item_name';
  161.     $string2 = 'item_number';
  162.     $qty = $keyarray['quantity'];
  163.     $firstname = $keyarray['first_name'];
  164.     $lastname = $keyarray['last_name'];
  165.     $total = $keyarray['mc_gross'];
  166.     $id = $keyarray['item_number'];
  167.     $h1 = 0;
  168.     $h2 = 0;
  169.     $h3 = 0;
  170.     $h4 = 0;
  171.     $h5 = 0;
  172.     $h6 = 0;
  173.     $h7 = 0;
  174.     $h8 = 0;
  175.     $h9 = 0;
  176.     $h10 = 0;
  177.     $h11 = 0;
  178.     $h12 = 0;
  179.     $h13 = 0;
  180.     $h14 = 0;
  181.     $h15 = 0;
  182.     $h16 = 0;
  183.     $h17 = 0;
  184.     $h18 = 0;
  185.     $h19 = 0;
  186.     $h20 = 0;
  187.     $h21 = 0;
  188.     $h22 = 0;
  189.     $h23 = 0;
  190.     $h24 = 0;
  191.     $h25 = 0;
  192.     $h26 = 0;
  193.     $h27 = 0;
  194.     $h28 = 0;
  195.     $h29 = 0;
  196.     $h30 = 0;
  197.     $h31 = 0;
  198.     $h32 = 0;
  199.  
  200.     echo ("<div id='wrapper'>");
  201.     echo ("<div id='welcomeText'>Tack för ditt köp!</div>");
  202.     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>");
  203.     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>");
  204.     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");
  205.     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");
  206.     echo ("<div class='abouttext2'>Vi önskar Dig en bra dag. <br>");
  207.     echo ("Välkommen tillbaka till energyshop.se när du vill! </div>");
  208.     //if id=1 (x) then set h1 to 1 and so-on
  209.     if ($item_number.$idx == '1' ) {
  210.         $h1 = 1;
  211.     }
  212.     if ($item_number.$idx == '3' ) {
  213.         $h2 = 1;
  214.     }
  215.     if ($item_number.$idx == '5' ) {
  216.         $h3 = 1;
  217.     }
  218.     if ($item_number.$idx == '7' ) {
  219.         $h4 = 1;
  220.     }
  221.     if ($item_number.$idx == '9' ) {
  222.         $h5 = 1;
  223.     }
  224.     if ($item_number.$idx == '11' ) {
  225.         $h6 = 1;
  226.     }
  227.     if ($item_number.$idx == '13' ) {
  228.         $h7 = 1;
  229.     }
  230.     if ($item_number.$idx == '15' ) {
  231.         $h8 = 1;
  232.     }
  233.     if ($item_number.$idx == '17' ) {
  234.         $h9 = 1;
  235.     }
  236.     if ($item_number.$idx == '18' ) {
  237.         $h10 = 1;
  238.     }
  239.     if ($item_number.$idx == '19' ) {
  240.         $h11 = 1;
  241.     }
  242.     if ($item_number.$idx == '20' ) {
  243.         $h12 = 1;
  244.     }
  245.     if ($item_number.$idx == '21' ) {
  246.         $h13 = 1;
  247.     }
  248.     if ($item_number.$idx == '22' ) {
  249.         $h14 = 1;
  250.     }
  251.     if ($item_numbe.$idxr == '24' ) {
  252.         $h15 = 1;
  253.     }
  254.     if ($item_number.$idx == '26' ) {
  255.         $h16 = 1;
  256.     }
  257.     if ($item_number.$idx == '27' ) {
  258.         $h17 = 1;
  259.     }
  260.     if ($item_number.$idx == '28' ) {
  261.         $h18 = 1;
  262.     }
  263.     if ($item_number.$idx == '29' ) {
  264.         $h19 = 1;
  265.     }
  266.     if ($item_number.$idx == '30' ) {
  267.         $h20 = 1;
  268.     }
  269.     if ($item_number.$idx == '31' ) {
  270.         $h21 = 1;
  271.     }
  272.     if ($item_number.$idx == '33' ) {
  273.         $h22 = 1;
  274.     }
  275.     if ($item_number.$idx == '41' ) {
  276.         $h23 = 1;
  277.     }
  278.     if ($item_number.$idx == '43' ) {
  279.         $h24 = 1;
  280.     }
  281.     if ($item_number.$idx == '45' ) {
  282.         $h25 = 1;
  283.     }
  284.     if ($item_number.$idx == '47' ) {
  285.         $h26 = 1;
  286.     }
  287.     if ($item_number.$idx == '49' ) {
  288.         $h27 = 1;
  289.     }
  290.     if ($item_number.$idx == '51' ) {
  291.         $h28 = 1;
  292.     }
  293.     if ($item_number.$idx == '55' ) {
  294.         $h29 = 1;
  295.     }
  296.     if ($item_number.$idx == '58' ) {
  297.         $h30 = 1;
  298.     }
  299.     if ($item_number.$idx == '54' ) {
  300.         $h31 = 1;
  301.     }
  302.     if ($item_number.$idx == '57' ) {
  303.         $h32 = 1;
  304.     }
  305.     // show items for donwload/listening if their id = X
  306.     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') {
  307.     echo ("<p><div id='bold'>Produkter tillgängliga för nerladdning/lyssning</div></p><br>\n");
  308.     }
  309.    
  310.     if ($h1 == '1' ) {
  311.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gladje/art-Gladje.rar'>Glädje</a></div>\n");      
  312.         echo ("<br />");
  313.     }
  314.     if ($h2 == '1' ) {
  315.         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");    
  316.         echo ("<br />");
  317.     }
  318.     if ($h3 == '1' ) {
  319.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Njuta_Livet/art-Njuta_Livet.rar'>Njuta av livet</a></div>\n");
  320.         echo ("<br />");
  321.     }
  322.     if ($h4 == '1' ) {
  323.         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");
  324.         echo ("<br />");
  325.     }
  326.     if ($h5 == '1' ) {
  327.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Gladje/art-Gladje.rar'>Happiness</a></div>\n");    
  328.         echo ("<br />");
  329.     }
  330.     if ($h6 == '1' ) {
  331.         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");      
  332.         echo ("<br />");
  333.     }
  334.     if ($h7 == '1' ) {
  335.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/ART/Njuta_Livet/art-Njuta_Livet.rar'>Enjoy life</a></div>\n");
  336.         echo ("<br />");
  337.     }
  338.     if ($h8 == '1' ) {
  339.         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");
  340.         echo ("<br />");
  341.     }
  342.     if ($h9 == '1' ) {
  343.         echo ("<section>");
  344.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåten av dig</div>\n");
  345.         echo("<br />");
  346.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  347.         echo("<audio controls>");
  348.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/1_Inledning_Forlatelseprocess.mp3' type='audio/mpeg'>");
  349.         echo("Your browser does not support the audio tag.");
  350.         echo("</audio>");
  351.         echo("<br />");
  352.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  353.         echo("<audio controls>");
  354.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/2_Avslappning.mp3' type='audio/mpeg'>");
  355.         echo("Your browser does not support the audio tag.");
  356.         echo("</audio>");
  357.         echo("<br />");
  358.         echo("<div class='vidtext'>Del 3: Jag vill bli förlåten av dig</div>");
  359.         echo("<audio controls>");
  360.         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'>");
  361.         echo("Your browser does not support the audio tag.");
  362.         echo("</audio>");
  363.         echo("</section>");
  364.         echo("<div class='abouttext2'><br /></div>");
  365.     }
  366.     if ($h10 == '1' ) {
  367.         echo ("<section>");
  368.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåta mig själv</div>\n");
  369.         echo("<br />");
  370.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  371.         echo("<audio controls>");
  372.         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'>");
  373.         echo("Your browser does not support the audio tag.");
  374.         echo("</audio>");
  375.         echo("<br />");
  376.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  377.         echo("<audio controls>");
  378.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/2 Avslappning.mp3' type='audio/mpeg'>");
  379.         echo("Your browser does not support the audio tag.");
  380.         echo("</audio>");
  381.         echo("<br />");
  382.         echo("<div class='vidtext'>Del 3: Jag vill förlåta mig själv</div>");
  383.         echo("<audio controls>");
  384.         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'>");
  385.         echo("Your browser does not support the audio tag.");
  386.         echo("</audio>");
  387.         echo("</section>");
  388.         echo("<div class='abouttext2'><br /></div>");
  389.     }
  390.     if ($h11 == '1' ) {
  391.         echo ("<section>");
  392.         echo("<div class='abouttext2'>Guidade upplevelser - Jag förlåter dig</div>\n");
  393.         echo("<br />");
  394.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  395.         echo("<audio controls>");
  396.         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'>");
  397.         echo("Your browser does not support the audio tag.");
  398.         echo("</audio>");
  399.         echo("<br />");
  400.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  401.         echo("<audio controls>");
  402.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/2 Avslappning.mp3' type='audio/mpeg'>");
  403.         echo("Your browser does not support the audio tag.");
  404.         echo("</audio>");
  405.         echo("<br />");
  406.         echo("<div class='vidtext'>Del 3: Jag förlåter dig</div>");
  407.         echo("<audio controls>");
  408.         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'>");
  409.         echo("Your browser does not support the audio tag.");
  410.         echo("</audio>");
  411.         echo("</section>");
  412.         echo("<div class='abouttext2'><br /></div>");
  413.     }
  414.     if ($h12 == '1' ) {
  415.         echo ("<section>");
  416.         echo("<div class='abouttext2'>Guidade upplevelser - Du förlåter dig</div>\n");
  417.         echo("<br />");
  418.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  419.         echo("<audio controls>");
  420.         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'>");
  421.         echo("Your browser does not support the audio tag.");
  422.         echo("</audio>");
  423.         echo("<br />");
  424.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  425.         echo("<audio controls>");
  426.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/2 Avslappning.mp3' type='audio/mpeg'>");
  427.         echo("Your browser does not support the audio tag.");
  428.         echo("</audio>");
  429.         echo("<br />");
  430.         echo("<div class='vidtext'>Del 3: Du förlåter dig</div>");
  431.         echo("<audio controls>");
  432.         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'>");
  433.         echo("Your browser does not support the audio tag.");
  434.         echo("</audio>");
  435.         echo("</section>");
  436.         echo("<div class='abouttext2'><br /></div>");
  437.     }
  438.     if ($h13 == '1' ) {
  439.         echo ("<section>");
  440.         echo("<div class='abouttext2'>Guidade upplevelser - Förlåtelseprocess alla delar</div>\n");
  441.         echo("<br />");
  442.         echo("<div class='vidtext'>Del 1: Inledning</div>");
  443.         echo("<audio controls>");
  444.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  445.         echo("Your browser does not support the audio tag.");
  446.         echo("</audio>");
  447.         echo("<br />");
  448.         echo("<div class='vidtext'>Del 2: Avslappning</div>");
  449.         echo("<audio controls>");
  450.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/2 Avslappning.mp3' type='audio/mpeg'>");
  451.         echo("Your browser does not support the audio tag.");
  452.         echo("</audio>");
  453.         echo("<br />");
  454.         echo("<div class='vidtext'>Del 3: Jag vill förlåta dig</div>");
  455.         echo("<audio controls>");
  456.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  457.         echo("Your browser does not support the audio tag.");
  458.         echo("</audio>");
  459.         echo("<br />");
  460.         echo("<div class='vidtext'>Del 4: Jag vill bli förlåten av dig</div>");
  461.         echo("<audio controls>");
  462.         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'>");
  463.         echo("Your browser does not support the audio tag.");
  464.         echo("</audio>");
  465.         echo("<br />");
  466.         echo("<div class='vidtext'>Del 5: Jag vill förlåta mig själv</div>");
  467.         echo("<audio controls>");
  468.         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'>");
  469.         echo("Your browser does not support the audio tag.");
  470.         echo("</audio>");
  471.         echo("<br />");
  472.         echo("<div class='vidtext'>Del 6: Jag vill att du förlåter dig</div>");
  473.         echo("<audio controls>");
  474.         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'>");
  475.         echo("Your browser does not support the audio tag.");
  476.         echo("</audio>");
  477.         echo("</section>");
  478.         echo("<div class='abouttext2'><br /></div>");
  479.     }
  480.     if ($h14 == '1') {
  481.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Taltet/guidade_upplevelser-Taltet.rar'>Tältet</a></div>\n");
  482.         echo ("<br />");   
  483.     }
  484.     if ($h15 == '1') {
  485.         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");
  486.         echo ("<br />");
  487.     }
  488.     if ($h16 == '1' ) {
  489.         echo ("<section>");
  490.         echo("<div class='abouttext2'>Guided Experiences - I want to be forgiven by you</div>\n");
  491.         echo("<br />");
  492.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  493.         echo("<audio controls>");
  494.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/1_Inledning_Forlatelseprocess.mp3' type='audio/mpeg'>");
  495.         echo("Your browser does not support the audio tag.");
  496.         echo("</audio>");
  497.         echo("<br />");
  498.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  499.         echo("<audio controls>");
  500.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlaten_av_dig/2_Avslappning.mp3' type='audio/mpeg'>");
  501.         echo("Your browser does not support the audio tag.");
  502.         echo("</audio>");
  503.         echo("<br />");
  504.         echo("<div class='vidtext'>Part 3: I want to be forgiven..</div>");
  505.         echo("<audio controls>");
  506.         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'>");
  507.         echo("Your browser does not support the audio tag.");
  508.         echo("</audio>");
  509.         echo("</section>");
  510.         echo("<div class='abouttext2'><br /></div>");
  511.     }
  512.     if ($h17 == '1' ) {
  513.         echo("<section>");
  514.         echo("<div class='abouttext2'>Guided Experiences - I want to forgive myself</div>\n");
  515.         echo("<br />");
  516.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  517.         echo("<audio controls>");
  518.         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'>");
  519.         echo("Your browser does not support the audio tag.");
  520.         echo("</audio>");
  521.         echo("<br />");
  522.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  523.         echo("<audio controls>");
  524.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Forlata_mig_sjalv/2 Avslappning.mp3' type='audio/mpeg'>");
  525.         echo("Your browser does not support the audio tag.");
  526.         echo("</audio>");
  527.         echo("<br />");
  528.         echo("<div class='vidtext'>Part 3: I want to forgive myself</div>");
  529.         echo("<audio controls>");
  530.         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'>");
  531.         echo("Your browser does not support the audio tag.");
  532.         echo("</audio>");
  533.         echo("</section>");
  534.         echo("<div class='abouttext2'><br /></div>");
  535.     }
  536.     if ($h18 == '1' ) {
  537.         echo("<section>");
  538.         echo("<div class='abouttext2'>Guided Experiences - I want to forgive you</div>\n");
  539.         echo("<br />");
  540.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  541.         echo("<audio controls>");
  542.         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'>");
  543.         echo("Your browser does not support the audio tag.");
  544.         echo("</audio>");
  545.         echo("<br />");
  546.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  547.         echo("<audio controls>");
  548.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Jag_forlater_dig/2 Avslappning.mp3' type='audio/mpeg'>");
  549.         echo("Your browser does not support the audio tag.");
  550.         echo("</audio>");
  551.         echo ("<br />");
  552.         echo("<div class='vidtext'>Part 3: I want to forgive you</div>");
  553.         echo("<audio controls>");
  554.         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'>");
  555.         echo("Your browser does not support the audio tag.");
  556.         echo("</audio>");
  557.         echo("</section>");
  558.         echo("<div class='abouttext2'><br /></div>");
  559.     }
  560.     if ($h19 == '1' ) {
  561.         echo("<section>");
  562.         echo("<div class='abouttext2'>Guided Experiences - You forgive yourself</div>\n");
  563.         echo("<br />");
  564.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  565.         echo("<audio controls>");
  566.         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'>");
  567.         echo("Your browser does not support the audio tag.");
  568.         echo("</audio>");
  569.         echo("<br />");
  570.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  571.         echo("<audio controls>");
  572.         echo("<source src='/wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Delar/Du_forlater_Dig/2 Avslappning.mp3' type='audio/mpeg'>");
  573.         echo("Your browser does not support the audio tag.");
  574.         echo("</audio>");
  575.         echo("<br />");
  576.         echo("<div class='vidtext'>Part 3: You forgive yourself</div>");
  577.         echo("<audio controls>");
  578.         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'>");
  579.         echo("Your browser does not support the audio tag.");
  580.         echo("</audio>");
  581.         echo("</section>");
  582.         echo("<div class='abouttext2'><br /></div>");
  583.     }
  584.     if ($h20 == '1' ) {
  585.         echo("<section>");
  586.         echo("<div class='abouttext2'>Guided Experiences - Forgiveness all parts</div>\n");
  587.         echo("<br />");
  588.         echo("<div class='vidtext'>Part 1: Introduction</div>");
  589.         echo("<audio controls>");
  590.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/1 Inledning Förlåtelseprocess.mp3' type='audio/mpeg'>");
  591.         echo("Your browser does not support the audio tag.");
  592.         echo("</audio>");
  593.         echo("<br />");
  594.         echo("<div class='vidtext'>Part 2: Relaxation</div>");
  595.         echo("<audio controls>");
  596.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/2 Avslappning.mp3' type='audio/mpeg'>");
  597.         echo("Your browser does not support the audio tag.");
  598.         echo("</audio>");
  599.         echo("<br />");
  600.         echo("<div class='vidtext'>Part 3: I want to forgive you</div>");
  601.         echo("<audio controls>");
  602.         echo("<source src='wp-content/themes/blank/dl/Guidade_Upplevelser/Forlatelseprocess/Forlatelse_Hel/3 Jag vill förlåta dig.mp3' type='audio/mpeg'>");
  603.         echo("Your browser does not support the audio tag.");
  604.         echo("</audio>");
  605.         echo("<br />");
  606.         echo("<div class='vidtext'>Part 4: I want to be forgiven..</div>");
  607.         echo("<audio controls>");
  608.         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'>");
  609.         echo("Your browser does not support the audio tag.");
  610.         echo("</audio>");
  611.         echo("<br />");
  612.         echo("<div class='vidtext'>Part 5: I want to forgive myself</div>");
  613.         echo("<audio controls>");
  614.         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'>");
  615.         echo("Your browser does not support the audio tag.");
  616.         echo("</audio>");
  617.         echo("<br />");
  618.         echo("<div class='vidtext'>Part 6: You forgive yourself</div>");
  619.         echo("<audio controls>");
  620.         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'>");
  621.         echo("Your browser does not support the audio tag.");
  622.         echo("</audio>");
  623.         echo("</section>");
  624.         echo("<div class='abouttext2'><br /></div>");
  625.     }
  626.     if ($h21 == '1') {
  627.         echo ("<div class='abouttext2'><a href='/wp-content/themes/blank/dl/Guidade_Upplevelser/Taltet/guidade_upplevelser-Taltet.rar'>The Tent</a></div>\n");
  628.         echo ("<br />");   
  629.     }
  630.     if ($h22 == '1') {
  631.         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");
  632.         echo ("<br />");   
  633.     }
  634.     if ($h23 == '1') {
  635.         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");
  636.         echo ("<br />");   
  637.     }
  638.     if ($h24 == '1') {
  639.         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");
  640.         echo ("<br />");   
  641.     }
  642.     if ($h25 == '1') {
  643.         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");
  644.         echo ("<br />");   
  645.     }
  646.     if ($h26 == '1') {
  647.         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");
  648.         echo ("<br />");   
  649.     }
  650.     if ($h27 == '1') {
  651.         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");
  652.         echo ("<br />");   
  653.     }
  654.     if ($h28 == '1') {
  655.         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");
  656.         echo ("<br />");   
  657.     }
  658.     if ($h29 == '1') {
  659.         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");
  660.         echo ("<br />");
  661.         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");
  662.         echo ("<br />");   
  663.     }
  664.     if ($h30 == '1') {
  665.         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");
  666.         echo ("<br />");
  667.         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");
  668.         echo ("<br />");   
  669.     }
  670.     if ($h31 == '1') {
  671.         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");
  672.         echo ("<br />");   
  673.     }
  674.     if ($h32 == '1') {
  675.         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");
  676.         echo ("<br />");   
  677.     }
  678.    
  679.     echo ("<p><div id='bold'>Betalningsinformation</div></p><br>\n");
  680.     echo ("<div class='abouttext'>Kund: ".$firstname." ".$lastname."</div>\n");
  681.    
  682.     $array_keys = array_keys($keyarray);
  683.     $count = 1;
  684.     foreach($array_keys as $element) {
  685.     if (!strncmp('item_number', $element, strlen('item_number')))
  686.         $count++;      
  687. }
  688.     for($idx = 1; $idx < $count; $idx ++) {
  689.     if (isset($string1) && 'item_name' != null)
  690.     echo ("<div class='abouttext'>Produkt: ".$item_name."</div>\n");
  691.     echo ("<div class='abouttext'>ID: ".$item_number."</div>\n");
  692.     echo ("<div class='abouttext'>Antal: ".$qty."</div>\n");
  693.     echo ("<br />");
  694.     }
  695.     echo ("<div id='ul'>Summa: ".$total." kr</div>\n");
  696.     echo ("<br />");
  697.     echo ("<div class='abouttext3'>Alla priser är i svenska kronor inklusive moms: <br>");
  698.     echo ("6% moms på böcker, 12% moms på EnergyUnion, 25% moms på resten av sortimentet. <br></div>");
  699.     echo ("<div class='abouttext3'>Din transaktion är slutförd.");
  700.     echo ("<br />");
  701.     echo ("Ett kvitto av ditt köp har skickats till din mail.");
  702.     echo ("<br />");
  703.     echo ("Du kan logga in på ditt konto på www.paypal.com för att se detaljerna av köpet.");
  704.     echo ("<br />");
  705.     echo ("<div class='abouttext3'>Tillbaka till: <a href='http://energyshop.se'>energyshop.se</a></div>");
  706.     echo ("<br />");
  707.     }
  708.     else if (strcmp ($lines[0], "FAIL") == 0) {
  709.         // log for manual investigation
  710. }
  711. }
  712. ?>
  713. <title>Tack för ditt köp!</title>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement