aboutsummaryrefslogtreecommitdiff
path: root/examples/blog/essay_fulfillment.php
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-07-25 18:30:04 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-07-25 18:30:04 +0200
commit5eac4e76af3c5aea686213854e08c0753f92d523 (patch)
tree95fa0de1ca3da5bc306bb3e029704f116cf07ce3 /examples/blog/essay_fulfillment.php
parent0776397028140e6441b22928cc5d7c5d73a54015 (diff)
Closing #4456 (PHP side). In order to fulfill #4456, the article
that has image x.jpg in it must contain the tag <img src='/data/article_x/x.jpg'></img>. Furthermore, before running the blog, the webmaster must run $ php articles/article_images.php in order to generate the JSON database file which accounts for each article which images are associated to it. Finally, any image must be placed under data/. See next commit for how to configure nginx in order to make PHP scripts handle images requests.
Diffstat (limited to 'examples/blog/essay_fulfillment.php')
-rw-r--r--examples/blog/essay_fulfillment.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blog/essay_fulfillment.php b/examples/blog/essay_fulfillment.php
index 2e33c018..abe5c329 100644
--- a/examples/blog/essay_fulfillment.php
+++ b/examples/blog/essay_fulfillment.php
@@ -76,14 +76,14 @@
}
$hc = json_decode($resp->body->toString(), true)['H_contract'];
$my_payment['hc'] = $hc;
- syslog($LOG_INFO, "sending payment event");
+ //syslog($LOG_INFO, "sending payment event");
$js_code = "taler.executePayment(\"$hc\", \"$pay_url\", \"$offering_url\");";
$cc_page = template("./essay_cc-form.html", array('article' => $article, 'jscode' => $js_code));
echo $cc_page;
return;
}
// control here == article payed
- syslog($LOG_INFO, "showing article");
+ //syslog($LOG_INFO, "showing article");
$article = get_article($article);
echo $article;
?>