adapted templating to architecture of fsfe site

svn path=/branches/test/; revision=26169
This commit is contained in:
2013-08-22 13:00:28 +00:00
parent de8f8af958
commit 4b94d7a320

View File

@@ -1,7 +1,7 @@
<?php
function eval_xml_template($template, $data) {
$dir = dirname(__FILE__) . '/templates';
$dir = dirname(__FILE__) . '/../templates';
$result = file_get_contents("$dir/$template");
foreach ($data as $key => $value)
$result = preg_replace("/<tpl name=\"$key\"><\/tpl>/", $value, $result);
@@ -26,9 +26,9 @@ function relay_donation($orderID) {
$lang = substr($language, 0, 2);
$PSPID = "40F00871";
$TP = "https://fsfe.org/donate/tmpl-concardis.$lang.html";
$acceptURL = "https://fsfe.org/donate/thankyou.$lang.html";
$cancelURL = "https://fsfe.org/donate/cancel.$lang.html";
$TP = "http://fsfe.org/donate/tmpl-concardis.$lang.html";
$acceptURL = "http://fsfe.org/donate/thankyou.$lang.html";
$cancelURL = "http://fsfe.org/donate/cancel.$lang.html";
$salt = "Only4TestingPurposes";
$shasum = strtoupper(sha1(